From shamil at users.mns.ru Sat Sep 1 00:53:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 1 Sep 2007 09:53:48 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: Message-ID: <000001c7ec5c$77386740$6401a8c0@nant> Charlotte, I think that MS is both market- and software-usability-features- driven. And ribbon is also probably a "baby of these two parents" and which of these parents has more chromosomes in this baby is an open question for me :) I'm just telling from my recent experience: I was also skeptical/hesitant (http://www.m-w.com/dictionary/hesitant) with MS Access 2007 - then as I've written here recently I was a kind of forced to use MS Access 2007 to solve very urgent and rather advanced task - that was database model design for the system to be in production 24x7x365 in a few days (and non-stop in the future when inevitable design changes will have to be introduced IOW I needed to "foresee" these future changes to minimize future upgrade troubles), design of queries etc. and all that has had to be checked against MS SQL 2005, upsized, polished and put into production - there was no VBA programming, which I usually do without that much efforts and which we I think will agree didn't change that much in MS Access 2007. And what is more all that happened with me in another country, when I was out of my usual working and living environment etc. etc. You have got the picture how one could feel them in the context as I described briefly above - a context in which I was put tete-a-tete with MS Access 2007, which I was so skeptical, hesitant and untrained to use? And, as I have written recently here, in a few hours I started to see that MS Access is really more useful/effective for advanced design work than MS Access 2003 IOW MS Access 2007 is not a power-toy for power-users but a real development tool... VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... Have nice weekend! -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, August 31, 2007 9:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? Shamil, You have much more faith in market-driven (as opposed to MARKETING!-driven) design that I have. I seriously doubt that the ribbon, which didn't exist before, was market-driven. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, August 31, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? John, I will try to check at the end of the next week when urgent work will hopefully be finished here: - I'd think that MS Access 2007 built-in MDI tabbing feature should be very suitable for your multi-tab designs - you will have to "just" disintegrate your multi-tab forms... - I'd also think (and Martin can approve./disapprove) that ribbon can be made hidden/substituted with custom "thin" ribbons a la' good old commandbars... - and I suppose that MS Access 2007 free runtime, which (I expect) should be not a big issue to install on fresh PCs can help you to smoothly solve the third part of your "puzzle" - I mean supply your customers/users with an interface you develop for them and nothing else "extra" on top of that... Access 2007 is what is called progress comparing with MS Access 2003, isn't it? :) I'd suppose MS staff spent countless (and usually well paid hours) before they made and implemented new MS Office 2007 interface solution... And AFAIK MS has a lot of corporate customers and they (MS stuff) do communicate closely with these customers and they do react on their demands - so my simple guess is that ribbon was requested by their customers first of all because it's very useful in there everyday work... Not arguing, just supposing/proposing that "fighting/neglecting" MS-driven progress "bulldozer" could be an expensive endeavor... :) -- Shamil -- 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 Sep 1 01:00:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 1 Sep 2007 10:00:44 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <00e101c7ebfd$4364c800$048e01c7@SusanOne> Message-ID: <000001c7ec5d$6f7bb380$6401a8c0@nant> OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =========I only require warm sands and shade trees. :) -- Shamil From ssharkins at gmail.com Sat Sep 1 08:51:01 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 1 Sep 2007 09:51:01 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <000001c7ec5d$6f7bb380$6401a8c0@nant> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> Message-ID: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =======You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) Susan H. From ssharkins at gmail.com Sat Sep 1 08:51:02 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 1 Sep 2007 09:51:02 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <000001c7ec5c$77386740$6401a8c0@nant> References: <000001c7ec5c$77386740$6401a8c0@nant> Message-ID: <004f01c7ec9f$29532ae0$048e01c7@SusanOne> VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... =====Crap! Are you serious? Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... =====You probably should come up with an outline and sell this as an article Shamil -- you'd be MS's new best friend and I think, any help you could give serious developers would be well appreciated. If I could do it, I would. Susan H. From rbgajewski at adelphia.net Sat Sep 1 13:46:48 2007 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sat, 1 Sep 2007 14:46:48 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> Message-ID: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Hi Folks I am in need of some rather complex WHERE statements in my SELECT clauses, and was wondering if anyone knew of a tool/program that helps keep parentheses properly paired --- perhaps similar to the way that Excel uses different colors for highlighting corresponding pairs? Thanks, Bob Gajewski No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 17:21 PM From dwaters at usinternet.com Sat Sep 1 14:11:03 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 1 Sep 2007 14:11:03 -0500 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant><004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <000601c7eccb$d7980950$0200a8c0@danwaters> What I do is to create and test a query using the query designer. Then go to SQL view in the query window. Then copy the Select statement into a code window, and do a little adjusting so it works in VBA. The parentheses are all there. And believe me, they are ALL there! BOL! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, September 01, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Does anyone have a parenthesis highlighting tool? Hi Folks I am in need of some rather complex WHERE statements in my SELECT clauses, and was wondering if anyone knew of a tool/program that helps keep parentheses properly paired --- perhaps similar to the way that Excel uses different colors for highlighting corresponding pairs? Thanks, Bob Gajewski No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 17:21 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sat Sep 1 14:25:25 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 1 Sep 2007 15:25:25 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <29f585dd0709011225m328a4326u1c5018243467e96a@mail.gmail.com> You could download an eval copy of Red Gate's SQL Prompt, which will do what you want, and a lot more. And if you like it, buy it. Arthur On 9/1/07, Bob Gajewski wrote: > > Hi Folks > > I am in need of some rather complex WHERE statements in my SELECT clauses, > and was wondering if anyone knew of a tool/program that helps keep > parentheses properly paired --- perhaps similar to the way that Excel uses > different colors for highlighting corresponding pairs? > > Thanks, > Bob Gajewski > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 > 17:21 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at gmail.com Sun Sep 2 11:40:38 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sun, 2 Sep 2007 12:40:38 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: On 9/1/07, Bob Gajewski wrote: > I am in need of some rather complex WHERE statements in my SELECT clauses, > and was wondering if anyone knew of a tool/program that helps keep > parentheses properly paired --- perhaps similar to the way that Excel uses > different colors for highlighting corresponding pairs? you can look at PSPad http://www.pspad.com/en/ It is a freeware text editor that will highlight parentheses pair. -- 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 Mon Sep 3 06:45:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 04:45:34 -0700 Subject: [AccessD] Force a new page in code In-Reply-To: <00cd01c7ebde$b050f070$7b57a27a@personalec1122> Message-ID: Hi A.D.Tejal: Thanks for that information... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, August 31, 2007 7:53 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Force a new page in code Jim, For conditional page break, ForceNewPage property can be manipulated in format event of the section concerned. Sample code in detail section's format event, as given below, will force a page break after every two records in the group. TxtCountGrp is a count tracking text box for the group. Note: (a) Use of Else clause is always necessary, otherwise after the condition is once met, the break will keep get applied for each record. (b) Different values that can be assigned to ForceNewPage property, and implications thereof, are explained in HELP. If no conditions are involved, ForceNewPage property can be set permanently in design view (Format tab of properties dialog box for the pertinent section). Best wishes, A.D.Tejpal -------------- ================================ Private Sub Detail_Format(Cancel As Integer, _ FormatCount As Integer) If Me.TxtCountGrp Mod 2 = 0 Then Me.Detail.ForceNewPage = 2 ' Pg break after section Else Me.Detail.ForceNewPage = 0 ' No pg break End If End Sub ================================ ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Tuesday, August 28, 2007 11:49 Subject: [AccessD] Force a new page in code Hi all: Is there a way to force a new page in Access reports under program control? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 06:57:12 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 04:57:12 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <002701c7ebe3$82709bb0$8119fea9@LTVM> Message-ID: <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 07:26:52 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 13:26:52 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> References: <002701c7ebe3$82709bb0$8119fea9@LTVM> <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> Message-ID: <007501c7ee25$b657b370$8119fea9@LTVM> Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 3 09:45:21 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 07:45:21 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <007501c7ee25$b657b370$8119fea9@LTVM> Message-ID: <004e01c7ee39$0e12ad00$0301a8c0@HAL9005> Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From RRANTHON at sentara.com Mon Sep 3 11:30:28 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 12:30:28 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel Message-ID: <200709031630.l83GUmZU028702@databaseadvisors.com> Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If From askolits at nni.com Mon Sep 3 11:44:16 2007 From: askolits at nni.com (John Skolits) Date: Mon, 3 Sep 2007 12:44:16 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031630.l83GUmZU028702@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> Message-ID: <008b01c7ee49$aaad83f0$0f01a8c0@officexp> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 12:04:09 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 13:04:09 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <008b01c7ee49$aaad83f0$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> Message-ID: <200709031704.l83H4XLw010193@databaseadvisors.com> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 12:36:00 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 13:36:00 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031704.l83H4XLw010193@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> <200709031704.l83H4XLw010193@databaseadvisors.com> Message-ID: <200709031736.l83HaBmp020845@databaseadvisors.com> Okay, got some code from the KB and I guess I'm getting froggy. ReDim TempArray(1 To rs.RecordCount, 1 To rs.Fields.Count) For r = 1 To rs.RecordCount For c = 1 To rs.Fields.Count If IsNull(rs(c - 1)) Then TempArray(r, c) = Empty Else TempArray(r, c) = rs(c - 1) End If Next rs.MoveNext Next The column segment gets the first record and the columns, but then immediately bugs out and writes the first record n times to the spreadsheet. Why isn't it looping through (in this case) 500 records? >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 13:38:55 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 14:38:55 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031704.l83H4XLw010193@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> <200709031704.l83H4XLw010193@databaseadvisors.com> Message-ID: <200709031839.l83Id7Wt011463@databaseadvisors.com> Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 13:53:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 11:53:38 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <007501c7ee25$b657b370$8119fea9@LTVM> Message-ID: <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> Hi Max: I just finished checking on the site and get no more than a counter value at the top left of the screen in large black letters. Something like 000048. I have tried to access this site with both IE7 and FF both with the same result. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 13:54:59 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 11:54:59 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <004e01c7ee39$0e12ad00$0301a8c0@HAL9005> Message-ID: <2AE8A61D783C4227956941889230DADC@creativesystemdesigns.com> Hi Rocky: Please send a copy to me as I can not get to the site from this location... maybe it is blocked in some way from our ISP??? TIA Jim -----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, September 03, 2007 7:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 13:54:21 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 19:54:21 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031839.l83Id7Wt011463@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> Message-ID: <002201c7ee5b$d76825f0$8119fea9@LTVM> Hi, You could try this code. Regards Max Function xv() Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBE_SystemForms")' your table name rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 7:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 14:00:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 20:00:45 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> Message-ID: <002901c7ee5c$bc74ed90$8119fea9@LTVM> Hi Jim, I think there is something at your end stopping you getting through. You do need to have javascript allowed/enabled as it is a Flash site. Thinking about it, that is probably why nothing happens but you are seeing the counter. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: I just finished checking on the site and get no more than a counter value at the top left of the screen in large black letters. Something like 000048. I have tried to access this site with both IE7 and FF both with the same result. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Sep 3 14:30:59 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Sep 2007 15:30:59 -0400 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <002901c7ee5c$bc74ed90$8119fea9@LTVM> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> Message-ID: <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> I got through with no problem. Must be something on Jim's end. On 9/3/07, Gmail wrote: > > Hi Jim, > I think there is something at your end stopping you getting through. You > do > need to have javascript allowed/enabled as it is a Flash site. > Thinking about it, that is probably why nothing happens but you are seeing > the counter. > Regards > Max > From RRANTHON at sentara.com Mon Sep 3 14:37:03 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 15:37:03 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <002201c7ee5b$d76825f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> <002201c7ee5b$d76825f0$8119fea9@LTVM> Message-ID: <200709031937.l83JbLMu032689@databaseadvisors.com> Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range("a1").Resize(lngRecCt, _ lngFldCt).Value = TempArray End With End With >>> "Gmail" 9/3/2007 2:54 PM >>> Hi, You could try this code. Regards Max Function xv() Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBE_SystemForms")' your table name rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 7:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) From spike at tenbus.co.uk Mon Sep 3 15:18:35 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 03 Sep 2007 21:18:35 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> Message-ID: <46DC6C1B.9080507@tenbus.co.uk> It's one of things designed in (cough)Flash. You'll need the appropriate plug-in to view it. It seems that accessibility is not high in the list of priorities of the designer. Regards Chris Foote Arthur Fuller wrote: > I got through with no problem. Must be something on Jim's end. > > On 9/3/07, Gmail wrote: > >> Hi Jim, >> I think there is something at your end stopping you getting through. You >> do >> need to have javascript allowed/enabled as it is a Flash site. >> Thinking about it, that is probably why nothing happens but you are seeing >> the counter. >> Regards >> Max >> >> From askolits at nni.com Mon Sep 3 15:21:30 2007 From: askolits at nni.com (John Skolits) Date: Mon, 3 Sep 2007 16:21:30 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031839.l83Id7Wt011463@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> Message-ID: <00c401c7ee68$03a8c4b0$0f01a8c0@officexp> Actually, try to break the memo filed into 255 character chunks. I know it's not the cleanest approach but it might work. Create a query against the table. Use that query instead of the table to create the recordset. Include all the fields except the memo field. For the memo field try. Expr1: Mid([FieldName],1,255) & Mid([FieldName],256,255) & mid([FiledName],510,255) ..... Etc. The only problem is at some point you have to decide how far you're going to go repeating the 'Mid' function. I bet there is another way. But try this and see if you cam make progress with it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 2:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spike at tenbus.co.uk Mon Sep 3 15:27:41 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 03 Sep 2007 21:27:41 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <46DC6C1B.9080507@tenbus.co.uk> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> <46DC6C1B.9080507@tenbus.co.uk> Message-ID: <46DC6E3D.5020501@tenbus.co.uk> Sorry Max - I did not mean to sound so rude! I've been struggling against flash only websites all day. Regards Chris Foote Webadmin - Tenbus wrote: > It's one of things designed in (cough)Flash. > > You'll need the appropriate plug-in to view it. It seems that > accessibility is not high in the list of priorities of the designer. > > Regards > Chris Foote > > Arthur Fuller wrote: > >> I got through with no problem. Must be something on Jim's end. >> >> On 9/3/07, Gmail wrote: >> >> >>> Hi Jim, >>> I think there is something at your end stopping you getting through. You >>> do >>> need to have javascript allowed/enabled as it is a Flash site. >>> Thinking about it, that is probably why nothing happens but you are seeing >>> the counter. >>> Regards >>> Max >>> >>> >>> > > > From max.wanadoo at gmail.com Mon Sep 3 16:27:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 22:27:34 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <46DC6E3D.5020501@tenbus.co.uk> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com><46DC6C1B.9080507@tenbus.co.uk> <46DC6E3D.5020501@tenbus.co.uk> Message-ID: <000301c7ee71$3f480c70$8119fea9@LTVM> No worries Chris, I thought it was quite good actually as I read it as a pun on "Access"ability. But actually you are quite right - It just didn't occur to me, but I want to stay with Flash for my site, so what I will do is post a URL to bypass the Flash Bit for those who can't (or probably, don't want to) view Flash. The URL is: http://www.peoplelinks.co.uk/msaccess/downloads/ But (sob!) you will miss out on my lovely Flash site... Thanks for the interest Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Webadmin - Tenbus Sent: Monday, September 03, 2007 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] EATBloat V3.0 Sorry Max - I did not mean to sound so rude! I've been struggling against flash only websites all day. Regards Chris Foote Webadmin - Tenbus wrote: > It's one of things designed in (cough)Flash. > > You'll need the appropriate plug-in to view it. It seems that > accessibility is not high in the list of priorities of the designer. > > Regards > Chris Foote > > Arthur Fuller wrote: > >> I got through with no problem. Must be something on Jim's end. >> >> On 9/3/07, Gmail wrote: >> >> >>> Hi Jim, >>> I think there is something at your end stopping you getting through. >>> You do need to have javascript allowed/enabled as it is a Flash >>> site. >>> Thinking about it, that is probably why nothing happens but you are >>> seeing the counter. >>> Regards >>> Max >>> >>> >>> > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 16:53:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 22:53:48 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031937.l83JbLMu032689@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM> <200709031937.l83JbLMu032689@databaseadvisors.com> Message-ID: <000a01c7ee74$e934ff10$8119fea9@LTVM> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' From rockysmolin at bchacc.com Mon Sep 3 19:46:53 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 17:46:53 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <2AE8A61D783C4227956941889230DADC@creativesystemdesigns.com> Message-ID: <011601c7ee8d$170e48c0$0301a8c0@HAL9005> Done. Attached as a zip file. Hopefully that won't get blocked. Let me know. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Rocky: Please send a copy to me as I can not get to the site from this location... maybe it is blocked in some way from our ISP??? TIA Jim -----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, September 03, 2007 7:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From markamatte at hotmail.com Mon Sep 3 20:26:28 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 01:26:28 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From rockysmolin at bchacc.com Mon Sep 3 22:23:05 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 20:23:05 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: <011d01c7eea2$e8e2f890$0301a8c0@HAL9005> Why do you want to do this. Or, what are you trying to accomplish? Why not just open a second recordset? The criteria are the same, yes? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, September 03, 2007 6:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] SQL against recordset Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- 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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From markamatte at hotmail.com Tue Sep 4 09:12:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 14:12:53 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: <011d01c7eea2$e8e2f890$0301a8c0@HAL9005> Message-ID: This is the speed thing again. I am running 10K SQL statements against a 3K row table. I need it to be as fast as possible. Currently my 10K statements are stored in a table. I pull them in as a recordset...loop through...and execute each one. The 10K are all looking at the same table...just different sets of criteria. A friend suggested I pull the data into a recordset...and have each SQL statement reference the recorset...as an attempt to save time. Maybe an array? Any thoughts? Thanks, Mark A. Matte P.S...Searching for 'stuff' like this...found an articly by Susan H. about arrays...but not quite what I needed. >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] SQL against recordset >Date: Mon, 3 Sep 2007 20:23:05 -0700 > >Why do you want to do this. Or, what are you trying to accomplish? Why >not >just open a second recordset? The criteria are the same, yes? > >Rocky > > > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Monday, September 03, 2007 6:26 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] SQL against recordset > >Hello All, > >This might sound odd...but I want to use VBA to open a recordset... > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > >then I want to open a new recordset by running an SQL statement against the >first recordset. I don't know if this is possible...and if so...what >syntax >would I use to reference the recordset? > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > >Any thoughts? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >A place for moms to take a break! >http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us > >-- >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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 >4:32 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get the device you want, with the Hotmail? you love. http://www.windowsmobile.com/hotmailmobile?ocid=MobileHMTagline_1 From Gustav at cactus.dk Tue Sep 4 09:30:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 16:30:10 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark To initiate an SQL Execute is slow. Running DAO on a recordset is very fast, indeed when you have only 3K records. So open a recordset and apply the 10K filters - my guess is a 10 fold speed increase or more. /gustav >>> markamatte at hotmail.com 04-09-2007 16:12 >>> This is the speed thing again. I am running 10K SQL statements against a 3K row table. I need it to be as fast as possible. Currently my 10K statements are stored in a table. I pull them in as a recordset...loop through...and execute each one. The 10K are all looking at the same table...just different sets of criteria. A friend suggested I pull the data into a recordset...and have each SQL statement reference the recorset...as an attempt to save time. Maybe an array? Any thoughts? Thanks, Mark A. Matte P.S...Searching for 'stuff' like this...found an articly by Susan H. about arrays...but not quite what I needed. >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] SQL against recordset >Date: Mon, 3 Sep 2007 20:23:05 -0700 > >Why do you want to do this. Or, what are you trying to accomplish? Why >not >just open a second recordset? The criteria are the same, yes? > >Rocky > > > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Monday, September 03, 2007 6:26 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] SQL against recordset > >Hello All, > >This might sound odd...but I want to use VBA to open a recordset... > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > >then I want to open a new recordset by running an SQL statement against the >first recordset. I don't know if this is possible...and if so...what >syntax >would I use to reference the recordset? > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > >Any thoughts? > >Thanks, > >Mark A. Matte From fuller.artful at gmail.com Tue Sep 4 09:35:30 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 10:35:30 -0400 Subject: [AccessD] Related combos in a datasheet Message-ID: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. TIA, Arthur From RRANTHON at sentara.com Tue Sep 4 09:36:11 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 10:36:11 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000a01c7ee74$e934ff10$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM> <200709031937.l83JbLMu032689@databaseadvisors.com> <000a01c7ee74$e934ff10$8119fea9@LTVM> Message-ID: <200709041436.l84EaS76005625@databaseadvisors.com> Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 4 09:47:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 14:47:43 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft? Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From max.wanadoo at gmail.com Tue Sep 4 09:54:47 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 15:54:47 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041436.l84EaS76005625@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM> <200709041436.l84EaS76005625@databaseadvisors.com> Message-ID: <007701c7ef03$8aa3cf00$8119fea9@LTVM> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:09:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 17:09:48 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark The on-line help has an example: Set dbs = CurrentDb Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) ' First filter. strFilter = "Country = 'France'" rstOrders.Filter = strFilter Set rstFiltered = rstOrders.OpenRecordset ' Do something ... ' ' Next filter. strFilter = "Country = 'Italy'" rstOrders.Filter = strFilter Set rstFiltered = rstOrders.OpenRecordset ' Do something ... ' ' Clean up. rstFiltered.Close rstOrders.Close Set dbs = Nothing /gustav >>> markamatte at hotmail.com 04-09-2007 16:47 >>> Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte From RRANTHON at sentara.com Tue Sep 4 10:11:36 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 11:11:36 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <007701c7ef03$8aa3cf00$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM> <200709041436.l84EaS76005625@databaseadvisors.com> <007701c7ef03$8aa3cf00$8119fea9@LTVM> Message-ID: <200709041512.l84FC1M2023466@databaseadvisors.com> Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Tue Sep 4 10:14:57 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 4 Sep 2007 11:14:57 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Message-ID: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Arthur, I don't think you can -- it kind of goes against the form's nature. I've worked with this problem off in on in one of my own apps -- where I want to disable a control based on the contents of another -- but I've never gotten it to work in continuous form. Susan H. Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. From cfoust at infostatsystems.com Tue Sep 4 10:27:26 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:27:26 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: Instead of dbs.OpenRecordset, use a filter on rst1 like this: Rst1.Filter = "X = ??" ' set a filter on rst1 Set rst2 = rst1.OpenRecordset(dbOpenSnapshot) ' Set rst2 as a filtered recordset of rst1 Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, September 03, 2007 6:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] SQL against recordset Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 4 10:31:50 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 15:31:50 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 17:09:48 +0200 > >Hi Mark > >The on-line help has an example: > > Set dbs = CurrentDb > Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) > ' First filter. > strFilter = "Country = 'France'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Next filter. > strFilter = "Country = 'Italy'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Clean up. > rstFiltered.Close > rstOrders.Close > Set dbs = Nothing > >/gustav > > > >>> markamatte at hotmail.com 04-09-2007 16:47 >>> >Thanks Gustav, > >...but that is where I am confused">So open a recordset and apply the 10K >filters "\ > >After I open the recordset...how do I "apply" the 10K filters? > >When I pull in the 3K records...an example of the 10K SQL...all records >where (FieldX between 1 and 25) and FieldY >.15 > >How do I get this criteria to reference the recordset? > >Thanks, > >Mark > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a > >3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the > >data > >into a recordset...and have each SQL statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > > >P.S...Searching for 'stuff' like this...found an articly by Susan H. >about > >arrays...but not quite what I needed. > > > > > > >From: "Rocky Smolin at Beach Access Software" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "'Access Developers discussion and problem > > >solving'" > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > > > >Why do you want to do this. Or, what are you trying to accomplish? >Why > > >not > > >just open a second recordset? The criteria are the same, yes? > > > > > >Rocky > > > > > > > > > > > > > > > > > > > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > >Sent: Monday, September 03, 2007 6:26 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] SQL against recordset > > > > > >Hello All, > > > > > >This might sound odd...but I want to use VBA to open a recordset... > > > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > > > >then I want to open a new recordset by running an SQL statement against > >the > > >first recordset. I don't know if this is possible...and if so...what > > >syntax > > >would I use to reference the recordset? > > > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From cfoust at infostatsystems.com Tue Sep 4 10:30:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:30:25 -0700 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: Are we talking continuous form or datasheet here? In a continuous form you can use a textbox bound to the same field to display the actual contents of the field, even when the combobox doesn't contain a match. Not possible in a datasheet, as far as I know. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, September 04, 2007 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Related combos in a datasheet Arthur, I don't think you can -- it kind of goes against the form's nature. I've worked with this problem off in on in one of my own apps -- where I want to disable a control based on the contents of another -- but I've never gotten it to work in continuous form. Susan H. Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 10:36:38 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 16:36:38 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041512.l84FC1M2023466@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> Message-ID: <000d01c7ef09$62e4bb90$8119fea9@LTVM> Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:37:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:37:43 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: Same as you would in any criteria string: "Country = 'France' Or Country = 'England'" Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 8:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL against recordset Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 17:09:48 +0200 > >Hi Mark > >The on-line help has an example: > > Set dbs = CurrentDb > Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) > ' First filter. > strFilter = "Country = 'France'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Next filter. > strFilter = "Country = 'Italy'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Clean up. > rstFiltered.Close > rstOrders.Close > Set dbs = Nothing > >/gustav > > > >>> markamatte at hotmail.com 04-09-2007 16:47 >>> >Thanks Gustav, > >...but that is where I am confused">So open a recordset and apply the >10K filters "\ > >After I open the recordset...how do I "apply" the 10K filters? > >When I pull in the 3K records...an example of the 10K SQL...all records >where (FieldX between 1 and 25) and FieldY >.15 > >How do I get this criteria to reference the recordset? > >Thanks, > >Mark > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is > >very fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements > >against a 3K row table. I need it to be as fast as possible. > >Currently my 10K statements are stored in a table. I pull them in as > >a recordset...loop through...and execute each one. The 10K are all > >looking at the same table...just different sets of criteria. A > >friend suggested I pull the data into a recordset...and have each SQL > >statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > > >P.S...Searching for 'stuff' like this...found an articly by Susan H. >about > >arrays...but not quite what I needed. > > > > > > >From: "Rocky Smolin at Beach Access Software" > > > > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "'Access Developers discussion and problem > > >solving'" > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > > > >Why do you want to do this. Or, what are you trying to accomplish? >Why > > >not > > >just open a second recordset? The criteria are the same, yes? > > > > > >Rocky > > > > > > > > > > > > > > > > > > > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > >Matte > > >Sent: Monday, September 03, 2007 6:26 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] SQL against recordset > > > > > >Hello All, > > > > > >This might sound odd...but I want to use VBA to open a recordset... > > > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > > > >then I want to open a new recordset by running an SQL statement > > >against > >the > > >first recordset. I don't know if this is possible...and if > > >so...what syntax would I use to reference the recordset? > > > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Gustav at cactus.dk Tue Sep 4 10:44:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 17:44:10 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Yes, that's the normal "where" syntax like: strFilter = "Country = 'France' And ProductID = 34" /gustav >>> markamatte at hotmail.com 04-09-2007 17:31 >>> Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark From askolits at nni.com Tue Sep 4 10:44:56 2007 From: askolits at nni.com (John Skolits) Date: Tue, 4 Sep 2007 11:44:56 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000d01c7ef09$62e4bb90$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com> <000d01c7ef09$62e4bb90$8119fea9@LTVM> Message-ID: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:52:28 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 10:52:28 -0500 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: <002a01c7ef0b$987f8080$0200a8c0@danwaters> Mark - something like this might work . . . Dim stg1 as String Dim rst1 as DAO.Recordset Dim rstCriteria as DAO.Recordset Dim rstDuplicate as DAO.Recordset '-- Set original recordset Stg1 = "SELECT * FROM tbl3K" Set rst1 = dbengine(0)(0).Openrecordset(stg1,dbopensnapshot) Set rstDuplicate = rst1 Do while rst1.eof = false '-- Now start working your 10K criteria list rstDuplicate.filter = rst1("Criteria") set rstCriteria = rstDuplicate.OpenRecordset Do while rstCriteria.eof = false '-- take actions rstCriteria.movenext Loop Rst1.movenext Loop '-- Close recordsets -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 9:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL against recordset Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft. Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From markamatte at hotmail.com Tue Sep 4 11:34:34 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 16:34:34 +0000 Subject: [AccessD] FTP Problem In-Reply-To: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreateanftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From ssharkins at gmail.com Tue Sep 4 11:37:18 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 4 Sep 2007 12:37:18 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <001301c7ef11$df6acf30$048e01c7@SusanOne> Are we talking continuous form or datasheet here? In a continuous form you can use a textbox bound to the same field to display the actual contents of the field, even when the combobox doesn't contain a match. Not possible in a datasheet, as far as I know. =========Maybe I misunderstood the problem. I thought he was saying that when he chooses an item from a combo box to update the contents of another field in the same record, that the form updates all the records, not just the current one. I have a similar problem -- if I try to disable a control based on the contents of another field in the same record, Access disables the control for all the records, if I use continuous form. Susan H. From RRANTHON at sentara.com Tue Sep 4 12:01:09 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 13:01:09 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com> <000d01c7ef09$62e4bb90$8119fea9@LTVM> <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Message-ID: <200709041701.l84H1S2s004737@databaseadvisors.com> As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 12:09:32 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 18:09:32 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM> <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Message-ID: <002401c7ef16$5d713e10$8119fea9@LTVM> Ooops, sorry. I didn't mean it to read that way. Merely that, generally speaking, we work quite long hours in the UK and that I will probably be able to respond even if you are 5 hrs behind in time zones! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, September 04, 2007 4:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 nni.com Tue Sep 4 12:11:04 2007 From: askolits at nni.com (John Skolits) Date: Tue, 4 Sep 2007 13:11:04 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041701.l84H1S2s004737@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM><004201c7ef0a$8b5a2280$0f01a8c0@officexp> <200709041701.l84H1S2s004737@databaseadvisors.com> Message-ID: <008801c7ef16$93e58500$0f01a8c0@officexp> Actually, I was referring to the implication that the UK starts early and finishes late, while maybe other countries do not? Either way, I was stretching a bit to make that conclusion. It was only in fun :) Hope Max doesn't take it personally. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 1:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 12:22:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 18:22:22 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <008801c7ef16$93e58500$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM><004201c7ef0a$8b5a2280$0f01a8c0@officexp><200709041701.l84H1S2s004737@databaseadvisors.com> <008801c7ef16$93e58500$0f01a8c0@officexp> Message-ID: <002801c7ef18$28506740$8119fea9@LTVM> Not at all, John. No worries. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, September 04, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Actually, I was referring to the implication that the UK starts early and finishes late, while maybe other countries do not? Either way, I was stretching a bit to make that conclusion. It was only in fun :) Hope Max doesn't take it personally. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 1:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 14:47:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 20:47:34 +0100 Subject: [AccessD] FTP Problem In-Reply-To: References: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <003601c7ef2c$71313c00$8119fea9@LTVM> Mark, I downloaded the code, but it keeps falling over when compiling on the line "Me.SetDir m_RemoteDir" The error message is "Method or data member not found" and highlights the ".SetDir", it obviously doesn't like the "ME" bit. I presume you have code that compiles ok. Can you email me a copy please (max.wanadoo at gmail.com) Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 5:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] FTP Problem Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 16:32 From Chester_Kaup at kindermorgan.com Tue Sep 4 16:32:42 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 4 Sep 2007 16:32:42 -0500 Subject: [AccessD] Cannot run query in code. Message-ID: I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 max.wanadoo at gmail.com Tue Sep 4 16:46:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 22:46:54 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041512.l84FC1M2023466@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> Message-ID: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 16:46:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 22:46:54 +0100 Subject: [AccessD] Cannot run query in code. In-Reply-To: References: Message-ID: <000701c7ef3d$1e2456d0$8119fea9@LTVM> Hi, The error is caused because you have a SELECT Statement as your sql. This is not an Action Statement You need an Action Statement (eg "insert into tmp_Hold_Source (fld1) values (2)") Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 10:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 miscellany at mvps.org Tue Sep 4 16:46:55 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 09:46:55 +1200 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Message-ID: <46DDD24F.5050002@mvps.org> Arthur, I am not sure about datasheet, I don't have any experience with that. But in a contunuous form you can do code like this, on the Enter event of the second combobox: Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE YourField = " & Me.FirstCombo ... and then on its Exit event: Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" This will not work if you use the traditional Requery of the second combobox on the After Update of the first. Regards Steve Arthur Fuller wrote: > Has anyone figured out how to make related combos work in a datasheet form? > They work fine in a single form, but in a datasheet they have a problem, in > that redefining the second combo's row source screws up the display of the > other visible records. > > TIA, > Arthur From Chester_Kaup at kindermorgan.com Tue Sep 4 16:56:15 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 4 Sep 2007 16:56:15 -0500 Subject: [AccessD] Cannot run query in code. In-Reply-To: <000701c7ef3d$1e2456d0$8119fea9@LTVM> References: <000701c7ef3d$1e2456d0$8119fea9@LTVM> Message-ID: Silly me. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 4:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cannot run query in code. Hi, The error is caused because you have a SELECT Statement as your sql. This is not an Action Statement You need an Action Statement (eg "insert into tmp_Hold_Source (fld1) values (2)") Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 10:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 dwaters at usinternet.com Tue Sep 4 16:58:10 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 16:58:10 -0500 Subject: [AccessD] Cannot run query in code. In-Reply-To: References: Message-ID: <001401c7ef3e$af3e1240$0200a8c0@danwaters> I've never used a SELECT statement and the DoCmd.RunSQL method together. Use DoCmd.RunSQL with an INSERT INTO or an UPDATE or a DELETE. Or, Set rst = CurrentDB.OpenRecordset(strSQL,dbOpenSnapshot). Now you have a recordset to work with. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 4:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 rusty.hammond at cpiqpc.com Tue Sep 4 16:59:00 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 4 Sep 2007 16:59:00 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> I have a form that when I close it either from a close button on the form or from the built in close button, I want to test if the current record has changed. If it has changed, I want to prompt the user to either Save the record and go ahead and close the form, not save the record and close the form, or not save the record and not close the form via a YesNoCancel message box. If I use the close event of the form testing for me.dirty doesn't work because the record is already saved. Is there any way to do this? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 dwaters at usinternet.com Tue Sep 4 17:13:32 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 17:13:32 -0500 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> Message-ID: <001501c7ef40$d472d7b0$0200a8c0@danwaters> Once the changes have been saved to the table, the only way to undo the changes is to change the record again back to the condition it was in to begin with. Instead, I'd use an unbound form. Then keep track of the original values in duplicate controls that are hidden. Then you can do a comparison when the Close button is pushed and the button's click event runs. Based on the comparison, you can offer your user the choices you want. If you want to use the X in the upper right corner, you'll need to do the comparison in the form's close event, and cancel that event if needed. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, September 04, 2007 4:59 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cancel the closing of a form I have a form that when I close it either from a close button on the form or from the built in close button, I want to test if the current record has changed. If it has changed, I want to prompt the user to either Save the record and go ahead and close the form, not save the record and close the form, or not save the record and not close the form via a YesNoCancel message box. If I use the close event of the form testing for me.dirty doesn't work because the record is already saved. Is there any way to do this? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 fuller.artful at gmail.com Tue Sep 4 17:19:22 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 18:19:22 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <46DDD24F.5050002@mvps.org> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <46DDD24F.5050002@mvps.org> Message-ID: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Interesting. i will try that on a little test program. A. On 9/4/07, Steve Schapel wrote: > > Arthur, > > I am not sure about datasheet, I don't have any experience with that. > But in a contunuous form you can do code like this, on the Enter event > of the second combobox: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE > YourField = " & Me.FirstCombo > ... and then on its Exit event: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" > > This will not work if you use the traditional Requery of the second > combobox on the After Update of the first. > > Regards > Steve > From fuller.artful at gmail.com Tue Sep 4 20:56:48 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 21:56:48 -0400 Subject: [AccessD] Access Toolbar Question Message-ID: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur From accessd at shaw.ca Tue Sep 4 21:07:09 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 04 Sep 2007 19:07:09 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002a01c7ef0b$987f8080$0200a8c0@danwaters> Message-ID: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim From rockysmolin at bchacc.com Tue Sep 4 21:33:12 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 4 Sep 2007 19:33:12 -0700 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <010301c7ef65$1aec5620$0301a8c0@HAL9005> Make the query into a Make Table, run it from code, create the table and then export the table using TrasnferSpreadsheet? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 6:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- 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.485 / Virus Database: 269.13.5/990 - Release Date: 9/4/2007 10:36 PM From dwaters at usinternet.com Tue Sep 4 22:02:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 22:02:34 -0500 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <001f01c7ef69$35b16050$0200a8c0@danwaters> To restore all the default toolbar buttons and menu items: Tools | Customize | Options tab | push Reset menu and toolbar usage data Then with the query in datasheet view select: Tools | Office Links | Analyze it With Microsoft Excel BOL! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 8:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 4 22:02:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 22:02:34 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> References: <002a01c7ef0b$987f8080$0200a8c0@danwaters> <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Message-ID: <002001c7ef69$362271a0$0200a8c0@danwaters> Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 4 22:42:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 04 Sep 2007 20:42:34 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002001c7ef69$362271a0$0200a8c0@danwaters> Message-ID: <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> Now that sounds bloody easy. You're a genius Dan. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 04, 2007 8:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 miscellany at mvps.org Wed Sep 5 00:21:12 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 17:21:12 +1200 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> Message-ID: <46DE3CC8.7010201@mvps.org> Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the form or > from the built in close button, I want to test if the current record has > changed. If it has changed, I want to prompt the user to either Save the > record and go ahead and close the form, not save the record and close the > form, or not save the record and not close the form via a YesNoCancel > message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? From miscellany at mvps.org Wed Sep 5 00:28:32 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 17:28:32 +1200 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <46DE3E80.7030509@mvps.org> Arthur, You can use code to dynamically control the number of columns in a report based on a crosstab query. I think I could dig out some sample code if you're interested. Otherwise, couldn't you use either DoCmd.OutputTo or DoCmd.TransferSpreadsheet to get the crosstab query data into an Excel file? Regards Steve Arthur Fuller wrote: > Version: A2k3, classic FE/BE arrangement. > No Customization of Toolbars. Central UI is the classic switchboard, > customized by me. > Problem: When running an MDB crosstab report, that is date-scoped, one > cannot predict the number of columns (let's say it's scoped by day), but the > user may choose something larger or smaller than the default "this week" > date range. So one cannot predict the number of columns, and therefore a > report as such is out of the question, since it's a crosstab. The obvious > alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), > which works a treat. However, the "Export to Excel" button has disappeared > from the toolbar. I want to provide a one-click "export to Excel" of the > resultant xtab and in Excel the user can format and customize to suit. > > I am aware that this is a tad the "lazy man's approach" but I'm doing this > for a friend and I've already spent way more time satisfying petty > requirements than the pay deserves, but that's what you get for hiring me. > The friend in question is perfectly willing to accept an Excel spreadsheet > as the output. Given that I'm in a query, however, rather than a form, I > can't exactly plonk on a button. Said "Export to Excel" button used to be > there, but I don't know where it's gone. > > Any suggestions? (I've never had joy with custom toolbars; perhaps because I > never understood them fully, but that's beside the point.) I just want to > locate and reveal those "Export" buttons, most importantly Excel but perhaps > also including the Word button. > > What to do? > > TIA, > Arthur From max.wanadoo at gmail.com Wed Sep 5 02:31:40 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 08:31:40 +0100 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Hi Arthur, This will output a Table or Query into Excel DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. HTH Max Ps. I am using V11.0 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 2:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 5 02:35:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 08:35:09 +0100 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Message-ID: <001401c7ef8f$4a7e4720$8119fea9@LTVM> Hi Arthur, I *think* I have a solution, but I have to go out now. Will post it when I check it later. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 11:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Related combos in a datasheet Interesting. i will try that on a little test program. A. On 9/4/07, Steve Schapel wrote: > > Arthur, > > I am not sure about datasheet, I don't have any experience with that. > But in a contunuous form you can do code like this, on the Enter event > of the second combobox: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE > YourField = " & Me.FirstCombo ... and then on its Exit event: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" > > This will not work if you use the traditional Requery of the second > combobox on the After Update of the first. > > Regards > Steve > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Wed Sep 5 07:40:27 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Wed, 05 Sep 2007 08:40:27 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel (Solved) In-Reply-To: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Message-ID: <200709051240.l85CeorW012130@databaseadvisors.com> Max, An excellent example of great minds think alike. One of my colleague's suggested I was in a desperate search for a problem, when the answer was quite obvious. I used the transfer method to export it to a .csv, which by default opens in Excel. The transferspreadsheet works even better. Thanks for all your help, and thanks, John for chiming in. Now I should be able to make an afternoon tee time no problem.. >>> "Gmail" 9/4/2007 5:46 PM >>> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 5 07:43:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 08:43:04 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Message-ID: <20070905124305.D5636C06B@smtp-auth.no-ip.com> You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Wed Sep 5 07:49:12 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Wed, 05 Sep 2007 08:49:12 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Message-ID: <200709051249.l85CnTIO018285@databaseadvisors.com> Oops I spoke too soon. Guess what? The transferspreadsheet method still cuts off at 255 characters. The transfer method to a .csv is the way to go. Thanks again!! >>> "Gmail" 9/4/2007 5:46 PM >>> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Sep 5 08:40:41 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 5 Sep 2007 08:40:41 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Steve, When I put that code in the BeforeUpdate the form still closes. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 12:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the form or > from the built in close button, I want to test if the current record has > changed. If it has changed, I want to prompt the user to either Save the > record and go ahead and close the form, not save the record and close the > form, or not save the record and not close the form via a YesNoCancel > message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? -- 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 markamatte at hotmail.com Wed Sep 5 09:12:09 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 05 Sep 2007 14:12:09 +0000 Subject: [AccessD] FTP Problem In-Reply-To: <003601c7ef2c$71313c00$8119fea9@LTVM> Message-ID: Sent a copy offline...probably a reference issue. Good luck, Mark A. Matte >From: "Gmail" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] FTP Problem >Date: Tue, 4 Sep 2007 20:47:34 +0100 > >Mark, >I downloaded the code, but it keeps falling over when compiling on the line >"Me.SetDir m_RemoteDir" >The error message is "Method or data member not found" and highlights the >".SetDir", it obviously doesn't like the "ME" bit. >I presume you have code that compiles ok. Can you email me a copy please >(max.wanadoo at gmail.com) >Thanks >Max > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, September 04, 2007 5:35 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] FTP Problem > >Hello All, > >I finally found where I got my ftp code... > >http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate >anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp > >"By William Hindman,Darren Dick, and Jim Lawrence " > >This code has been running 24/7 for the last few years...no problem. Last >week something changed with my ISP...and of course they are telling me the >problem is with whatever program I am using to FTP(after I explain what FTP >is)...anyway...here is the problem: > >I can use IE to navigate to the site...I can see the files...I can download >them...the problem is when I do it via code. I can connect and open the >FTP >directory. When the code brings back the first file found...it is mostly >"empty rectangles" with some of the file name mixed in...and it can't parse >out the name. I'm pretty sure it has something to do with them changing >servers. > >Anyone have any ideas as why the file name would be returned 'garbled'...or >what I need to find out from them? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >No virus found in this incoming message. >Checked by AVG. >Version: 7.5.485 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 >16:32 > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From fuller.artful at gmail.com Wed Sep 5 10:12:15 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Sep 2007 11:12:15 -0400 Subject: [AccessD] Access Toolbar Question In-Reply-To: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Message-ID: <29f585dd0709050812o54ad7f8dm61c7f90b23d1abfb@mail.gmail.com> Thanks! On 9/5/07, Gmail wrote: > > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > > HTH > Max > Ps. I am using V11.0 > From cfoust at infostatsystems.com Wed Sep 5 10:21:48 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:21:48 -0700 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Message-ID: All you're doing is cancelling the update, not cancelling the close of the form. Use the Unload event of the form to cancel a close. Set a flag in BeforeUpdate and then test that flag in Unload to see whether the form should be allowed to close. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, September 05, 2007 6:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cancel the closing of a form Steve, When I put that code in the BeforeUpdate the form still closes. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 12:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the > form or > from the built in close button, I want to test if the current record > has changed. If it has changed, I want to prompt the user to either > Save the record and go ahead and close the form, not save the record > and close the form, or not save the record and not close the form via > a YesNoCancel message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? -- 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 dwaters at usinternet.com Wed Sep 5 10:30:52 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 10:30:52 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> References: <002001c7ef69$362271a0$0200a8c0@danwaters> <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> Message-ID: <001601c7efd1$bf105370$0200a8c0@danwaters> Thanks - I'll save this email for all the unbelievers! ;-) Actually, John's method is a good one because it can handle all the events in a subform from the main form. Now, if John can just teach us how to do it . . . Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 10:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Now that sounds bloody easy. You're a genius Dan. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 04, 2007 8:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 10:30:52 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 10:30:52 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <20070905124305.D5636C06B@smtp-auth.no-ip.com> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> <20070905124305.D5636C06B@smtp-auth.no-ip.com> Message-ID: <001701c7efd1$bf6f1540$0200a8c0@danwaters> John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 10:45:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:45:36 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <001701c7efd1$bf6f1540$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com> <001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 10:58:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:58:52 -0700 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: Oops, sorry. I was thinking of a popup form there. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 11:13:36 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 11:13:36 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: <002101c7efd7$b743cef0$0200a8c0@danwaters> Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 11:28:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 09:28:05 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002101c7efd7$b743cef0$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> <002101c7efd7$b743cef0$0200a8c0@danwaters> Message-ID: No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 11:50:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 11:50:19 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters> Message-ID: <002501c7efdc$d826bf10$0200a8c0@danwaters> Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 galeper at gmail.com Wed Sep 5 11:59:47 2007 From: galeper at gmail.com (Gale Perez) Date: Wed, 5 Sep 2007 09:59:47 -0700 Subject: [AccessD] Access 2007 Reports: Only Three Margin Options? Message-ID: <5b2621db0709050959k5a9b788alc89f1190169fd150@mail.gmail.com> Hi! I'm doing a report in Access 2007 and feel silly asking this question, but am I stuck with the three margin options on the Page Setup tab? I need a .5" top/bottom and 1" sides, but the only options are Normal (top/bottom .75", sides .35"), Wide (top/bottom 1", sides .75"), and Narrow (all .25"). I've tried moving my Detail controls to the right to simulate 1" side margins, but the alternate row coloring shows up all the way to the real margin and looks funny since there is no data that far to the left. I didn't see a property setting to change it. Is there a way around this? Thank you, Gale From cfoust at infostatsystems.com Wed Sep 5 11:58:11 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 09:58:11 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002501c7efdc$d826bf10$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters> <002501c7efdc$d826bf10$0200a8c0@danwaters> Message-ID: I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 5 12:10:14 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 18:10:14 +0100 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Message-ID: <001501c7efdf$a1a26b30$8119fea9@LTVM> Hi Arthur, I have uploaded a demo of Combo Boxes populated within a Data Sheet to: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip There are two Forms, each has 4 Records/Rows in the Form. Form 1 and Form 2 do NOT operate the same Each Record/Row has 6 Combo Boxes. The first three are BOUND to the Record (I will call them Group 1). The second group of three are UNBOUND (I will call them Group 2) so that you can see the difference between the two groups. I make use of the Persistent Static Function that was posted on this site (of which you were one of the contributors - so what goes around, comes around). These are the Gotchas: Form 1: Within each Group, selecting an item in Combo1, will populate Combo2 and selecting an item in Combo2 will populate Combo3. Group 1. Because they are Bound, they will correctly hold the values selected BUT when you move to a new Record/Row the combo boxes of the previous record may no long be visible/viewable on screen until you move back to that record. This is because the combo boxes will now hold/display the values of the current record. This may be disconcerting to some users. Group 2. Because they are UNBound, they will show the same info on each record/row regardless of what was selected. I hope this helps a bit, but I don't think it is a perfect solution and because of the nature of multi-records being display, it cannot (I believe) be overcome directly. It may however be possible to have the Bound Combo Boxes hidden behind a Label/Text box which shows the values within the Record. On clicking the Label/Text you can swap over the visibilie. I have shown an example of this in Form 2. Form 2: This does not show any combo boxes (but they are there). Instead it shows the current values of the selection. when a user clicks on the value, a popup shows and displays the combo boxes for selection. On exit from the popup, the values are written back to the main form2 and then displayed. I really dont know if this is what you want, but it was a difficult exercise for me! I hope it helps somewhate. Regards Max From dwaters at usinternet.com Wed Sep 5 12:20:57 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 12:20:57 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters><002501c7efdc$d826bf10$0200a8c0@danwaters> Message-ID: <002601c7efe1$1fa055f0$0200a8c0@danwaters> Thanks - I'll look for that! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 5 12:32:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 13:32:02 -0400 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: <20070905173204.A2DE2BBFB@smtp-auth.no-ip.com> The biggest thing to understand is that because the subform loads first, its events fire first BEFORE the class for the main form is even loaded. Thus the main form is incapable of responding to the OnOpen (for example) of the subform simply because the main form class is not yet loaded. This is NOT true if you use JIT subforms, since in that case the click on the tab causes the subform to load (and its class) and of course the main form class is already loaded by then so it can sink the subform events, even the load events. By and large though it is not the OnOpen or OnLoad of the subform that you are trying to sink in the main form but rather things like the AfterUpdate and control events in the subform. John 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: Wednesday, September 05, 2007 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Wed Sep 5 13:03:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 05 Sep 2007 11:03:08 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <20070905124305.D5636C06B@smtp-auth.no-ip.com> Message-ID: <2C3A49E64FF242C09E77BB96B6D11D63@creativesystemdesigns.com> Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 miscellany at mvps.org Wed Sep 5 13:02:17 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 06:02:17 +1200 Subject: [AccessD] Access Toolbar Question In-Reply-To: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Message-ID: <46DEEF29.2070801@mvps.org> Max, I have sometimes found that OutputTo method can be preferable to TransferSpreadsheet in cases like this, as data typing and formatting seem to be better retained. Regards Steve Gmail wrote: > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > From accessd at shaw.ca Wed Sep 5 13:06:46 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 05 Sep 2007 11:06:46 -0700 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 13:09:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 11:09:23 -0700 Subject: [AccessD] SubForm and form In-Reply-To: References: Message-ID: I'll rummage around and see if I can find something that would help. Since I work almost exclusively in .Net now, it may take a while. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 max.wanadoo at gmail.com Wed Sep 5 13:24:12 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 19:24:12 +0100 Subject: [AccessD] Access Toolbar Question In-Reply-To: <46DEEF29.2070801@mvps.org> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com><001201c7ef8e$cdc78cf0$8119fea9@LTVM> <46DEEF29.2070801@mvps.org> Message-ID: <000001c7efe9$f61b4830$8119fea9@LTVM> Hi Steve, Yes, I think you may be right, and there is another issue here which has just been brought to my attention. Apparently (I haven't checked) but the TransferSpreadsheeet method truncates at 255 characters (in a Memo field for example) whereas, I am told, the CSV method does not. This will impact on my EATBloat program which defaults to the Transferspreadsheet method (there is the CSV option there, but commented out and with no Form interface). Once I have tested these assertions, then I will have to make some changes. Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Wednesday, September 05, 2007 7:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Toolbar Question Max, I have sometimes found that OutputTo method can be preferable to TransferSpreadsheet in cases like this, as data typing and formatting seem to be better retained. Regards Steve Gmail wrote: > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Wed Sep 5 13:40:18 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 06:40:18 +1200 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Message-ID: <46DEF812.1040709@mvps.org> Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > From jwcolby at colbyconsulting.com Wed Sep 5 13:48:00 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 14:48:00 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <2C3A49E64FF242C09E77BB96B6D11D63@creativesystemdesigns.com> Message-ID: <000001c7efed$4911f630$6c7aa8c0@M90> I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 rusty.hammond at cpiqpc.com Wed Sep 5 14:46:11 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 5 Sep 2007 14:46:11 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> I was afraid of that. I was hoping to be able to leave the native close button. Thanks for the help. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > -- 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 cfoust at infostatsystems.com Wed Sep 5 14:56:20 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 12:56:20 -0700 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> Message-ID: You should be able to leave the close button. The Unload event has a cancel argument. If fires when you try to close the form, so you can cancel the close in the Unload event. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, September 05, 2007 12:46 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cancel the closing of a form I was afraid of that. I was hoping to be able to leave the native close button. Thanks for the help. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > -- 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 shamil at users.mns.ru Wed Sep 5 05:38:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 14:38:31 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> Message-ID: <001501c7efa8$f2029c30$6601a8c0@nant> <<< You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) >>> OK :) I have found (in Russian) collected on one web site portal/information about all Island-State territories (http://www.homegalerie.net/ ) - it's a list of ninety(?) such State-Islands - which one should we start with? Still I'd need my PC to make some good money at least to travel between these Islands by air (for speed) until we find the best one to settle with plenty of fish to fish and enough woods for fire :) Or you prefer raw fish? - no problem with that here but some vinegar and salt will be needed for some time until my stomach will manage to digest unprepared raw fish :) - honestly I'd prefer cooked fish... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, September 01, 2007 5:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =======You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) Susan H. -- 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 Sep 5 05:38:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 14:38:31 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <004f01c7ec9f$29532ae0$048e01c7@SusanOne> Message-ID: <001401c7efa8$f1acb400$6601a8c0@nant> =====Crap! Are you serious? Yes, Susan, VBA IMO is getting depreciated and is becoming "Latin of software programming languages"... AFAIS with VB.Net 2005/C# one can program "quickly and easily" many things which for a VBA programmer will forever stay a "never come true science fiction dream"... Just my opinion of course with all the other opinions welcomed, no flame, no "soap-box" stubbornness/snobbism... To start with VB.NET 2005 is easy and this programming language power and flexibility is very impressive... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, September 01, 2007 5:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... =====Crap! Are you serious? Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... =====You probably should come up with an outline and sell this as an article Shamil -- you'd be MS's new best friend and I think, any help you could give serious developers would be well appreciated. If I could do it, I would. Susan H. -- 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 Sep 5 11:34:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 20:34:31 +0400 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: <000301c7efda$a353b6f0$6601a8c0@nant> <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 18:07:11 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 18:07:11 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <000301c7efda$a353b6f0$6601a8c0@nant> References: <000301c7efda$a353b6f0$6601a8c0@nant> Message-ID: <000b01c7f011$7df02970$0200a8c0@danwaters> Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 18:22:20 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 16:22:20 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000b01c7f011$7df02970$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant> <000b01c7f011$7df02970$0200a8c0@danwaters> Message-ID: Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 5 19:59:46 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 19:59:46 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters> Message-ID: <000601c7f021$387e3250$0200a8c0@danwaters> Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Sep 5 16:43:38 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 6 Sep 2007 01:43:38 +0400 Subject: [AccessD] SubForm and form In-Reply-To: <000001c7efed$4911f630$6c7aa8c0@M90> Message-ID: <003301c7f005$d20d2cd0$6601a8c0@nant> John, Do not waste your time - just use (lately bound) callbacks from subform to the mainform - it really doesn't worth to waste time with VBA tricks now when we have VB.NET in which you have as an "easy going game" the things which needed "dirty and unreliable" tricks in VB6 and VBA - please read this story: "The End of Hardcore Visual Basic" http://vb.mvps.org/hardweb/ As you can find from visiting this site the word "HardCore" is stroked through there and the title is looking as: "The end of Visual Basic" (and VBA) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" But before you take one of those paths, let's take a moment to celebrate one of the most remarkable and influential languages in programming history. It was the best. It was the worst. It gave us instant gratification. It drove us crazy. Against all odds, we pushed it far beyond its logical limits. Visual Basic. 1991-2002. It's time to pay our respects, throw some dirt on the coffin, and move on. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim <<<< tail skipped >>> From fuller.artful at gmail.com Wed Sep 5 22:45:12 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Sep 2007 23:45:12 -0400 Subject: [AccessD] Transactions Message-ID: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. From miscellany at mvps.org Wed Sep 5 23:24:07 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 16:24:07 +1200 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <46DF80E7.70209@mvps.org> Arthur, Yes. :-) Regards Steve Arthur Fuller wrote: > I've developed this software and I totally agree with the accountant's > analysis, which reduces to: recorded transactions are history and cannot be > edited. All you are allowed to do is add an adjustment that refers to some > previous transaction and supplies a positive or negative number as the > adjustment. > > My question is this: given a continuous form or datasheet presentation of > the data, how do I prevent editing of the existing rows while also allowing > new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / > Allow Inserts properties on the property sheet? I've never experimented with > these, but suddenly I need to know. I need to prevent editing of any > existing transaction but allow addition of new transactions. Is this as > simple as those aforementioned flags on the properties sheet? > > A. From miscellany at mvps.org Wed Sep 5 23:36:31 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 16:36:31 +1200 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <46DF83CF.40400@mvps.org> Arthur, A possibly more sophisticated approach could be achieved by having the records displayed on a form which is totally disabled, and with the Allow Additions property set to No. And then, new records can be added either via a) a separate popup single view form that does not allow access to existing records, or... b) via unbound controls in the form header, and submitted to the transactions table via an Append Query You might also consider this, which is what I have done in one of my applications recently... Use a separate form or subform for the "adjustment" records, in which case you can display additional fields for a reference to the original transaction that is being adjusted, and a note field for an explanation for the adjustment. Regards Steve Arthur Fuller wrote: > I've developed this software and I totally agree with the accountant's > analysis, which reduces to: recorded transactions are history and cannot be > edited. All you are allowed to do is add an adjustment that refers to some > previous transaction and supplies a positive or negative number as the > adjustment. > > My question is this: given a continuous form or datasheet presentation of > the data, how do I prevent editing of the existing rows while also allowing > new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / > Allow Inserts properties on the property sheet? I've never experimented with > these, but suddenly I need to know. I need to prevent editing of any > existing transaction but allow addition of new transactions. Is this as > simple as those aforementioned flags on the properties sheet? > > A. From adtp at airtelbroadband.in Thu Sep 6 00:03:18 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Thu, 6 Sep 2007 10:33:18 +0530 Subject: [AccessD] Transactions References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <008101c7f043$66e335b0$1f57a27a@personalec1122> Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Arthur Fuller To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 09:15 Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. From fuller.artful at gmail.com Thu Sep 6 00:08:37 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:08:37 -0400 Subject: [AccessD] Transactions In-Reply-To: <46DF83CF.40400@mvps.org> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> <46DF83CF.40400@mvps.org> Message-ID: <29f585dd0709052208p7e19ff67r6dfc8f0b640029b9@mail.gmail.com> Good idea, Steve. Thanks. Not difficult to implement, and presents a nice audit trail. A. On 9/6/07, Steve Schapel wrote: > > Arthur, > > A possibly more sophisticated approach could be achieved by having the > records displayed on a form which is totally disabled, and with the > Allow Additions property set to No. And then, new records can be added > either via > a) a separate popup single view form that does not allow access to > existing records, or... > b) via unbound controls in the form header, and submitted to the > transactions table via an Append Query > > You might also consider this, which is what I have done in one of my > applications recently... Use a separate form or subform for the > "adjustment" records, in which case you can display additional fields > for a reference to the original transaction that is being adjusted, and > a note field for an explanation for the adjustment. > > Regards > Steve > From jwcolby at colbyconsulting.com Thu Sep 6 00:15:31 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 01:15:31 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <003301c7f005$d20d2cd0$6601a8c0@nant> Message-ID: <000401c7f044$f2ce30b0$6c7aa8c0@M90> LOL. I agree completely. However I have done this a million times before. And unfortunately we still live with VBA every day in Access. Our projects live on and so we continue to use the language that directly supports them. John 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, September 05, 2007 5:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Do not waste your time - just use (lately bound) callbacks from subform to the mainform - it really doesn't worth to waste time with VBA tricks now when we have VB.NET in which you have as an "easy going game" the things which needed "dirty and unreliable" tricks in VB6 and VBA - please read this story: "The End of Hardcore Visual Basic" http://vb.mvps.org/hardweb/ As you can find from visiting this site the word "HardCore" is stroked through there and the title is looking as: "The end of Visual Basic" (and VBA) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" But before you take one of those paths, let's take a moment to celebrate one of the most remarkable and influential languages in programming history. It was the best. It was the worst. It gave us instant gratification. It drove us crazy. Against all odds, we pushed it far beyond its logical limits. Visual Basic. 1991-2002. It's time to pay our respects, throw some dirt on the coffin, and move on. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim <<<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Sep 6 00:19:19 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:19:19 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <001501c7efdf$a1a26b30$8119fea9@LTVM> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> <001501c7efdf$a1a26b30$8119fea9@LTVM> Message-ID: <29f585dd0709052219p633a496fo6e3523513c1c6d32@mail.gmail.com> Thanks a ton for your effort, which I hope was not entirely directed to my problem, but profited you in some way. I was vaguely thinking something similar but didn't work out the details. Thanks for your assistance. A. On 9/5/07, Gmail wrote: > > Hi Arthur, > > I have uploaded a demo of Combo Boxes populated within a Data Sheet to: > > http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip > > There are two Forms, each has 4 Records/Rows in the Form. > > Form 1 and Form 2 do NOT operate the same > > Each Record/Row has 6 Combo Boxes. The first three are BOUND to the > Record > (I will call them Group 1). > The second group of three are UNBOUND (I will call them Group 2) so that > you > can see the difference between the two groups. > > I make use of the Persistent Static Function that was posted on this site > (of which you were one of the contributors - so what goes around, comes > around). > > These are the Gotchas: > > Form 1: > Within each Group, selecting an item in Combo1, will populate Combo2 and > selecting an item in Combo2 will populate Combo3. > > Group 1. Because they are Bound, they will correctly hold the values > selected BUT when you move to a new Record/Row the combo boxes of the > previous record may no long be visible/viewable on screen until you move > back to that record. This is because the combo boxes will now > hold/display > the values of the current record. This may be disconcerting to some > users. > > Group 2. Because they are UNBound, they will show the same info on each > record/row regardless of what was selected. > > I hope this helps a bit, but I don't think it is a perfect solution and > because of the nature of multi-records being display, it cannot (I > believe) > be overcome directly. It may however be possible to have the Bound Combo > Boxes hidden behind a Label/Text box which shows the values within the > Record. On clicking the Label/Text you can swap over the visibilie. I > have > shown an example of this in Form 2. > > Form 2: > This does not show any combo boxes (but they are there). Instead it shows > the current values of the selection. when a user clicks on the value, a > popup shows and displays the combo boxes for selection. On exit from the > popup, the values are written back to the main form2 and then displayed. > > I really dont know if this is what you want, but it was a difficult > exercise > for me! I hope it helps somewhate. > > Regards > Max > From fuller.artful at gmail.com Thu Sep 6 00:21:52 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:21:52 -0400 Subject: [AccessD] Transactions In-Reply-To: <008101c7f043$66e335b0$1f57a27a@personalec1122> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> <008101c7f043$66e335b0$1f57a27a@personalec1122> Message-ID: <29f585dd0709052221j67272f85wfab13089002154ae@mail.gmail.com> Thanks, A.D., I will check it out forthwith. It sound like just what the customer ordered. A. On 9/6/07, A.D.TEJPAL wrote: > > Arthur, > > My sample db named NotesHierarchical might be of interest to you. It > is available at Rogers Access Library (other developers library). Link - > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. > > In this db, meant for recording employee's performance notes, the > notes table, has a Yes/No field named Sent. Once Sent is set to true, the > note in question can no longer be edited, even by the person who recorded it > originally. More-over, once set to True, it can no longer be re-set to False > and no back dated note can be created. > > The sample is in Access 2K file format. Reference: DAO 3.6 > > Best wishes, > A.D.Tejpal > From accessd at shaw.ca Thu Sep 6 02:04:23 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 00:04:23 -0700 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: Thanks Charlotte. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I'll rummage around and see if I can find something that would help. Since I work almost exclusively in .Net now, it may take a while. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 accessd at shaw.ca Thu Sep 6 02:05:09 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 00:05:09 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000001c7efed$4911f630$6c7aa8c0@M90> Message-ID: <8A438AA2BD1E40928FE38A2CCA5A769B@creativesystemdesigns.com> Thanks John... looking forward to see what comes up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 11:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 darren at activebilling.com.au Thu Sep 6 04:49:15 2007 From: darren at activebilling.com.au (Darren D) Date: Thu, 6 Sep 2007 19:49:15 +1000 Subject: [AccessD] A2K:Reading PDF Message-ID: <200709060949.l869nPUt008553@databaseadvisors.com> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren From max.wanadoo at gmail.com Thu Sep 6 05:13:17 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 11:13:17 +0100 Subject: [AccessD] A2K:Reading PDF In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> References: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: <001501c7f06e$8daa8560$8119fea9@LTVM> Daren, Thinking of the top of my head, would it be possible to set a Macro Recording ON, do the steps manually, turn the Macro OFF and then look at the code? HTH Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren D Sent: Thursday, September 06, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K:Reading PDF Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Sep 6 07:42:18 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 06 Sep 2007 08:42:18 -0400 Subject: [AccessD] FTP Problem In-Reply-To: References: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <000f01c7f083$5ce7ddf0$8abea8c0@XPS> Mark, Use the standard Windows FTP client to attempt a transfer. Your ISP can't argue with that if it doesn't work. The first thing that would come to mind is that the transfer type is set incorrectly. Drop to a command line prompt, then type "FTP". The type "OPEN " Provide username/pswd Use "dir" or "ls" to see the files available. "CD" to change directories if need be. Use "lcd" to change directory on your PC. Depending on the file type, either do "SET ASCII" or "SET BINARY" Do a "GET " to get the file. Then "QUIT" Now look at the file. Is it correct? If it is, then it's something being done in the code. If not, well then you've got some ammo to go back to the ISP with. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 12:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] FTP Problem Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Gustav at cactus.dk Thu Sep 6 09:50:00 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 16:50:00 +0200 Subject: [AccessD] A2K:Reading PDF Message-ID: Hi Darren I think you can use Ghostscript for this - but I'm no expert. Call a series of command line commands ... /gustav >>> darren at activebilling.com.au 06-09-2007 11:49 >>> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren From DWUTKA at Marlow.com Thu Sep 6 10:05:05 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:05:05 -0500 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 10:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Sep 6 10:08:46 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 08:08:46 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000601c7f021$387e3250$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters> <000601c7f021$387e3250$0200a8c0@danwaters> Message-ID: The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 6 10:18:11 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:18:11 -0500 Subject: [AccessD] Transactions In-Reply-To: <008101c7f043$66e335b0$1f57a27a@personalec1122> Message-ID: A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Thu Sep 6 10:24:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 11:24:56 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003001c7f09a$159dc740$6c7aa8c0@M90> I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 10:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Sep 6 10:46:48 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:46:48 -0500 Subject: [AccessD] Transactions In-Reply-To: <003001c7f09a$159dc740$6c7aa8c0@M90> Message-ID: Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From actebs at actebs.com.au Thu Sep 6 11:13:15 2007 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 7 Sep 2007 02:13:15 +1000 Subject: [AccessD] A2K:Reading PDF In-Reply-To: Message-ID: <005601c7f0a0$d46a7a50$0d08a8c0@carltonone.local> Darren, Try the open source PDF Creator. It has heaps of programming examples and methods of interacting with PDF files. You'll find it here: http://www.pdfforge.org/ HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, 7 September 2007 12:50 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2K:Reading PDF Hi Darren I think you can use Ghostscript for this - but I'm no expert. Call a series of command line commands ... /gustav >>> darren at activebilling.com.au 06-09-2007 11:49 >>> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 6 11:22:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:22:06 -0400 Subject: [AccessD] Whatamess Message-ID: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> OK, so the "method" provided by access of getting rid of the s_GUID fields created by the replication process is to use make table queries to "copy" the tables. I did so. What is NOT mentioned (and I STUPIDLY failed to think about) is that a make table query is pure sql and as such does not copy such things as default values and format properties for the fields in the table. WHATAMESS!!! So, does anyone have code already written that will step through a "from/to" table pair and set the properties of the fields in the to table to match the from table? IOW, if a field in the old table had a default value of zero for a number, the field in the new table does not have a default value, so set the default value to 0 in that field of the new table. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Sep 6 11:22:57 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:22:57 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003601c7f0a2$2fdba340$6c7aa8c0@M90> OK, I see what you are doing. John 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, September 06, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 11:25:54 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 09:25:54 -0700 Subject: [AccessD] Transactions In-Reply-To: References: <003001c7f09a$159dc740$6c7aa8c0@M90> Message-ID: But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 11:36:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 09:36:48 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim From jwcolby at colbyconsulting.com Thu Sep 6 11:37:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:37:54 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003701c7f0a4$48944d90$6c7aa8c0@M90> Uhhh... Don't use 2007? ;-) John 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, September 06, 2007 12:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 6 11:45:54 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 18:45:54 +0200 Subject: [AccessD] Coping a Table. Message-ID: Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim From dwaters at usinternet.com Thu Sep 6 11:56:12 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 6 Sep 2007 11:56:12 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters> Message-ID: <002101c7f0a6$d49ec200$0200a8c0@danwaters> I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Thu Sep 6 12:09:15 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 6 Sep 2007 12:09:15 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 Sep 6 12:13:23 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 19:13:23 +0200 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: Hi Rusty You may use my little function: Public Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function /gustav >>> rusty.hammond at cpiqpc.com 06-09-2007 19:09 >>> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond From DWUTKA at Marlow.com Thu Sep 6 12:15:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 12:15:50 -0500 Subject: [AccessD] Access User Level Security. Message-ID: This is how to setup a database so that some tables can only be read, some can only be written to, but not updated. First, Open Access, but don't create a database. (I'm doing this in Access 2003, this should be the same back to 2000, in 97, you need to hit StartyRunRwrkgadm to open the work group administrator for Access 97). Click ToolsCSecuritySWorkGroup Administrator Click the Create Button. Fill in your name, Organization and put in a WorkGroup ID (1234 will work just fine). Select a path and name your .mdw (workgroup) file. I'm going to create C:\AccessD.mdw You'll get some prompts telling you it created it, click ok or yes until all the dialog boxes are gone. Access is now using the AccessD.mdw for it's workgroup (instead of the default system32\system.mdw). What we need to do now is create an admin account for this work group, and sign into it. So first: Click ToolsCSecuritySUser and Group Accounts The first tab is the User tab, and we want to click the New button. This asks us for a Name and a Personal ID. The name is the account name we will use to log into the database with, and the Personal ID is a number we supply it. I typically use birthdays, if I am setting up accounts for specific people (though I rarely do that for people other then me). So, in this case, I put in Drew for the Name, and 9161972 as my PersonalID. Once you create this user, it should be the users selected in the dropdown box. (If not, select it). Below the user and add, delete, clearpassword buttons are two listboxes. The one on the left shows all of the groups (right now, just Admins and Users), and the one on the right shows the groups the 'selected' user belongs too. Click Admins in the left box, and then click the Add box. Now 'Drew' is a member of both Admins and Users. By default, Access logs into EVERY database using Admin as the user name, and a blank password. We need to log in as Drew, so we need to put a password on the Admin account. Click the Change Logon password tab.? It should show Admin as the 'User Name'.? Skip the Old Password box (since the password is blank), and put in 'test' (without quotes) in the New Password and Verify boxes, click Ok. ? Now close Access and start Access again.? Click create a new file, and then select Blank Database.? I created one on my c drive called AccessDSecured.? We now are prompted for a name and password (because we set a password on the admin account).? Put in Drew as the username and leave the password blank (we haven't set one yet). ? We now have a blank database.? Let's go set a password: ? Click ToolsCSecuritySUser and Group Accounts Click the Change Logon Password tab. Again, skip the Old Password, and put AccessD in the New Password and Verify fields, and click OK. ? Now we need to setup the defaults for this blank database: ? Click Tools-->Security-->User and Group Permissions Under the permissions tab, there is a combo box in the middle right of the window. Select Database from that list. Select the user Drew, and make sure that the three check boxes available are all checked. (after each change, we need to click apply. If you don't, you'll be prompted to apply the changes) Select the Admin user, it should have nothing checked.We want Open/Run to be the only checked item ,click apply. Switch the 'List:' option to Groups. Admins has all three checked. Uncheck everything, click apply. Users has all three checked. Uncheck everything, click apply. Switch object type to 'Table'. The rightside listbox has . We want that. We should still have Users as the User/group name selected. Uncheck everything, click apply. Select the Admins group (in the left listbox). Uncheck everything (just an FYI, unchecking Read Design clears all the checks), click apply Switch 'List:' option back to Users. Admin should have nothing checked Check Read Design and Read Data, click apply.? Drew should have everything checked. Check Object Type to Form (Queries are already set with what we did with Table). Drew should have all checked, Admins and Users should have nothing checked. Admin should have Open/Run checked. Switch Object Type to Report. Same thing.? Drew should have all checked, Admins and Users should have nothing checked and Admin should have only Open/Run checked. (in the last two steps, Admins and Users will have everything checked, so you will be changing those as I instructed.) Switch Object Type to Macro, and again, set it up the same way. Drew has everything checked, Admin has 'Open/Run' checked, Admins and Users have nothing checked. ? Click OK. ? Create a new table in design view. Let's add a few fields (whatever you want).? Name it tblDefaultReadOnly.? Create another table, add whatever fields you want, and name it tblAddDataOnly. ? Click Tools-->Security-->User and Group Permissions. Set Object Type to Table. Select tblAddDataOnly (in the right listbox) Switch 'List:' to Users. Select Admin from the Left listbox. Note, it has Read Design and Read Data checked (and nothing else). That is because we set the defaults for New tables and queries in the steps above.? We want to allow data to be entered in this table, so check the Insert Data box, and click apply.? (If you uncheck Read design and Read data first, then check Insert Data, you'll note that read design and read data check themselves again, can't put data in if you can't see the design of the table, and can't read the data in the table) ? Click Ok. ? We are still logged in as Drew, so let's go into both the tables we created, and add some test data. ? Click Tools-->Security-->WorkGroup Administrator Click Join. Select the original system.mdw (should be in your system32 folder) ? Our database is now setup so that anyone can open it, without a prompt (using their default .mdw). To create a shortcut to specifically use our 'secured' .mdw, it should be "C:\Program Files\Microsoft Office\Office11\msaccess.exe" "C:\AccessDSecured.mdb" /wrkgrp "C:\AccessD.mdw" /user "Drew" /pwd "AccessD" All one line, and the first part should be the path to MSAccess.exe on that machine. (Leaving the /user and /pwd tags off, will prompt the user for a username and password (leaving the /user tag in will put that user name in automatically, but will require the user to enter a password)). Notice now, that when you open the database (as a normal user), you can't enter, change, or delete any data in tblDefaultReadOnly. We can't change or delete data in tblAddDataOnly, but we can enter a new record (but can't change it once it's saved.). I have put the demo I wrote doing this at http://www.marlow.com/AccessD.zip Drew? ? ? ? ? The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 12:16:48 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 12:16:48 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Don't know, don't use the 2007 format, heck, I still enforce the 2000 format when in Access 2003 (and prefer to use Access 97 as backends anyway! ;)) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 11:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Sep 6 12:22:13 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 10:22:13 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: References: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 12:23:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 10:23:24 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002101c7f0a6$d49ec200$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters> <002101c7f0a6$d49ec200$0200a8c0@danwaters> Message-ID: Then it would still be easier to manage elsewhere than in current. What is it the code does that you want to manage? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 06, 2007 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 6 12:56:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 6 Sep 2007 12:56:38 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters><002101c7f0a6$d49ec200$0200a8c0@danwaters> Message-ID: <000001c7f0af$45f314d0$0200a8c0@danwaters> This changes the screen display characteristics. Enable/disable, lock/unlock, and label colors depending on a user's authorities, the state of the process, and data content. This is the only thing I use the Current event for, and I know all the reasons the current event gets triggered, so I can manage this effectively. Putting this into a separate sub would work fine, this is just what I've evolved into doing. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Then it would still be easier to manage elsewhere than in current. What is it the code does that you want to manage? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 06, 2007 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 6 13:55:01 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 19:55:01 +0100 Subject: [AccessD] Returning only numbers from a phone number field In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> Message-ID: <003401c7f0b7$6e9c0ab0$8119fea9@LTVM> Hi Rusty, This should do the trick for you: Function teststripNonNumerics() MsgBox stripNonNumerics("1.2.3.4/5/6/akjfjakfd-789kjjkaf880-087222/.88") End Function Function stripNonNumerics(str As String) As String Dim lngLoop As Long, strTemp As String For lngLoop = 1 To Len(str) If IsNumeric(Mid(str, lngLoop, 1)) Then strTemp = strTemp & Mid(str, lngLoop, 1) End If Next lngLoop stripNonNumerics = strTemp End Function Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, September 06, 2007 6:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Returning only numbers from a phone number field Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 Sep 6 14:01:37 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 12:01:37 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <7AFEACEF6BFA4F5785382AD1F760F56A@creativesystemdesigns.com> Hi Gustav: I am not sure how the client is replicating the table into their MDB. It could be drag and drop or cut and paste. I will suggest export and import if the Make-table query does not work. My question is why the table is appearing locked in the first place. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 06, 2007 9:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 14:09:32 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 12:09:32 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 miscellany at mvps.org Thu Sep 6 14:41:54 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 07:41:54 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E05802.9070508@mvps.org> Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > From fuller.artful at gmail.com Thu Sep 6 14:43:16 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 15:43:16 -0400 Subject: [AccessD] Whatamess In-Reply-To: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> References: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> Message-ID: <29f585dd0709061243w3720f87clcee3de581da24b7c@mail.gmail.com> Visit Trigeminal Software, JC, and grab their un-replicator tool. http://www.trigeminal.com/utility.asp?1033 Arthur On 9/6/07, jwcolby wrote: > > OK, so the "method" provided by access of getting rid of the s_GUID fields > created by the replication process is to use make table queries to "copy" > the tables. I did so. What is NOT mentioned (and I STUPIDLY failed to > think about) is that a make table query is pure sql and as such does not > copy such things as default values and format properties for the fields in > the table. > > WHATAMESS!!! > > So, does anyone have code already written that will step through a > "from/to" > table pair and set the properties of the fields in the to table to match > the > from table? > > IOW, if a field in the old table had a default value of zero for a number, > the field in the new table does not have a default value, so set the > default > value to 0 in that field of the new table. > > 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 Thu Sep 6 14:45:55 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 15:45:55 -0400 Subject: [AccessD] Whatamess In-Reply-To: <29f585dd0709061243w3720f87clcee3de581da24b7c@mail.gmail.com> Message-ID: <005001c7f0be$8ad1b480$6c7aa8c0@M90> Been there, tried that (last month). It doesn't 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 Arthur Fuller Sent: Thursday, September 06, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Whatamess Visit Trigeminal Software, JC, and grab their un-replicator tool. http://www.trigeminal.com/utility.asp?1033 Arthur On 9/6/07, jwcolby wrote: > > OK, so the "method" provided by access of getting rid of the s_GUID > fields created by the replication process is to use make table queries to "copy" > the tables. I did so. What is NOT mentioned (and I STUPIDLY failed > to think about) is that a make table query is pure sql and as such > does not copy such things as default values and format properties for > the fields in the table. > > WHATAMESS!!! > > So, does anyone have code already written that will step through a > "from/to" > table pair and set the properties of the fields in the to table to > match the from table? > > IOW, if a field in the old table had a default value of zero for a > number, the field in the new table does not have a default value, so > set the default value to 0 in that field of the new table. > > 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 cfoust at infostatsystems.com Thu Sep 6 14:44:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 12:44:31 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> References: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Message-ID: Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 markamatte at hotmail.com Thu Sep 6 14:51:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 06 Sep 2007 19:51:22 +0000 Subject: [AccessD] Coping a Table. In-Reply-To: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Message-ID: Did you zip it while it was in use? Long shot guess???? >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Coping a Table. >Date: Thu, 06 Sep 2007 12:09:32 -0700 > >Hi Charlotte: > >I am just sending a zip as an attachment to an email. It should be as >simple >as to open the destination MDB, save the attachment to a directory, unzip >it, open the source MDB and drag and drop. > >...but for some reason the new table appears to arrive 'locked'??? > >Of course you never know what is really happening at the other end. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, September 06, 2007 10:22 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Coping a Table. > >How are you sending it? If you put it on a CD, it will be normally >readonly by default and they have to copy it to their hard drive and set >the read-only file attribute to false. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >Sent: Thursday, September 06, 2007 9:37 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Coping a Table. > >Hi All: > >I have been sending a single table, in a new MDB, to a client so they >can copy it into their MDB. They report that the table is locked and >they can not copy it. We have gone through this process a couple of >times and I am not sure what is going on. > >I have just suggested a Make-Table query and hopefully that will solve >the problem. > >Has anyone else ran across this problem before and found a solution or a >reason. > >TIA >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 _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From DWUTKA at Marlow.com Thu Sep 6 14:55:49 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 14:55:49 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E05802.9070508@mvps.org> Message-ID: Show me a way to truly prevent it. It's there whether you like it or not. Disable the Access Keys such as F11, and you just have to go through the Window Menu. Even hiding the Access Window itself doesn't guarantee a curious user can't get to the database window. Heck, the code to unhide every Access window on your machine is just a few lines. User level security isn't hack proof (nothing is), but it is a lot stronger then 'hiding' the database window. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 2:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Thu Sep 6 15:19:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 21:19:48 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <46E05802.9070508@mvps.org> Message-ID: <005701c7f0c3$46f55280$8119fea9@LTVM> Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max Option Compare Database Option Explicit ' API: Manipulate Access Window ' Author (s) 'Dev Ashish ' ' '(Q) How do I maximize or minimize the main Access Window from code? ' '(A) Pass one of the declared constants to the function fSetAccessWindow. ' 'This same function can also be used to completely hide Access window and just show your form on the desktop. 'Make the form popup and from it's Open Event, call the fSetAccessWindow function with SW_HIDE as the argument. ' 'Warning: If you're hiding the main Access window, make sure your error handlers are good. 'Because with the window hidden, if an error is raised, pressing "End" on the Error window will NOT make Access window 'visible and you will be left with just the form open. 'A recommended method is to make a call to fSetAccessWindow with SW_SHOWNORMAL from your error handlers. ' If, for some reason, the Access window does not show itself, then you can always close the mdb from the Task List, available in Win 95 with Control-Alt-Delete (once) and under NT, by right clicking on the Taskbar and selecting Task Manager, by selecting the mdb and clicking End Task. '************ Code Start ********** ' This code was originally written by Dev Ashish. ' It is not to be altered or distributed, ' except as part of an application. ' You are free to use it in any application, ' provided the copyright notice is left unchanged. ' ' Code Courtesy of ' Dev Ashish ' Global Const SW_HIDE = 0 Global Const SW_SHOWNORMAL = 1 Global Const SW_SHOWMINIMIZED = 2 Global Const SW_SHOWMAXIMIZED = 3 Private Declare Function apiShowWindow Lib "user32" _ Alias "ShowWindow" (ByVal hWnd As Long, _ ByVal nCmdShow As Long) As Long Function fSetAccessWindow(nCmdShow As Long) 'Usage Examples 'Maximize window: ' ?fSetAccessWindow(SW_SHOWMAXIMIZED) 'Minimize window: ' ?fSetAccessWindow(SW_SHOWMINIMIZED) 'Hide window: ' ?fSetAccessWindow(SW_HIDE) 'Normal window: ' ?fSetAccessWindow(SW_SHOWNORMAL) ' Dim loX As Long Dim loForm As Form On Error Resume Next Set loForm = Screen.ActiveForm If Err <> 0 Then 'no Activeform If nCmdShow = SW_HIDE Then MsgBox "Cannot hide Access unless " _ & "a form is on screen" Else loX = apiShowWindow(hWndAccessApp, nCmdShow) Err.Clear End If Else If nCmdShow = SW_SHOWMINIMIZED And loForm.Modal = True Then MsgBox "Cannot minimize Access with " _ & (loForm.Caption + " ") _ & "form on screen" ElseIf nCmdShow = SW_HIDE And loForm.PopUp <> True Then MsgBox "Cannot hide Access with " _ & (loForm.Caption + " ") _ & "form on screen" Else loX = apiShowWindow(hWndAccessApp, nCmdShow) End If End If fSetAccessWindow = (loX <> 0) End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Show me a way to truly prevent it. It's there whether you like it or not. Disable the Access Keys such as F11, and you just have to go through the Window Menu. Even hiding the Access Window itself doesn't guarantee a curious user can't get to the database window. Heck, the code to unhide every Access window on your machine is just a few lines. User level security isn't hack proof (nothing is), but it is a lot stronger then 'hiding' the database window. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 2:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 15:35:15 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 13:35:15 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> Thanks Charlotte... will try that next but I hesitate to assume they are too unknowledgeable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 Thu Sep 6 15:36:24 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 13:36:24 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: No Mark, but a thought. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 06, 2007 12:51 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Did you zip it while it was in use? Long shot guess???? >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Coping a Table. >Date: Thu, 06 Sep 2007 12:09:32 -0700 > >Hi Charlotte: > >I am just sending a zip as an attachment to an email. It should be as >simple >as to open the destination MDB, save the attachment to a directory, unzip >it, open the source MDB and drag and drop. > >...but for some reason the new table appears to arrive 'locked'??? > >Of course you never know what is really happening at the other end. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, September 06, 2007 10:22 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Coping a Table. > >How are you sending it? If you put it on a CD, it will be normally >readonly by default and they have to copy it to their hard drive and set >the read-only file attribute to false. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >Sent: Thursday, September 06, 2007 9:37 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Coping a Table. > >Hi All: > >I have been sending a single table, in a new MDB, to a client so they >can copy it into their MDB. They report that the table is locked and >they can not copy it. We have gone through this process a couple of >times and I am not sure what is going on. > >I have just suggested a Make-Table query and hopefully that will solve >the problem. > >Has anyone else ran across this problem before and found a solution or a >reason. > >TIA >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 _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From miscellany at mvps.org Thu Sep 6 15:40:57 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 08:40:57 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E065D9.5070505@mvps.org> Thanks, Drew. Well, I guess it depends on what sort of users you are dealing with. At the risk of re-hashing a discussion that has probably been done before, I think there is a distinction between functionality in the application when it is being used in the intended way, and deliberate unauthiorised attempts to circumvent the intended functionality. In terms of the original question asked by Arthur, where he wants the users to be able to add new records but not delete or edit existing records, I can open a form in design view, set the Allow Deletions and Allow Edits properties to No, and close and save the form, in less than 10 seconds. My time is valuable, so this is an important factor. If that form is the only way (apart from unauthorised hacking) for the data to be accessed, then that would be perfectly adequate in the case of all the clients who I have ever worked for. Regards Steve Drew Wutka wrote: > Show me a way to truly prevent it. It's there whether you like it or > not. Disable the Access Keys such as F11, and you just have to go > through the Window Menu. Even hiding the Access Window itself doesn't > guarantee a curious user can't get to the database window. Heck, the > code to unhide every Access window on your machine is just a few lines. > > User level security isn't hack proof (nothing is), but it is a lot > stronger then 'hiding' the database window. > From cfoust at infostatsystems.com Thu Sep 6 15:39:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 13:39:36 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> References: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> Message-ID: Hey, I've done that myself a few times. It's more a case of paying attention. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Thanks Charlotte... will try that next but I hesitate to assume they are too unknowledgeable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 Thu Sep 6 16:15:17 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 16:15:17 -0500 Subject: [AccessD] Transactions In-Reply-To: <005701c7f0c3$46f55280$8119fea9@LTVM> Message-ID: Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 16:18:04 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 16:18:04 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E065D9.5070505@mvps.org> Message-ID: One of the many reasons I use .asp and VB front ends, no direct .mdb access. IMHO, though, data integrity done only through the GUI is to easy to get around. F11 or Window --> unhide will always let someone at the database window. So if a user shouldn't be able to change data in a table, that table should be secured at the table level, not the form. (Not too mention, securing it at the table level once, makes EVERY form created have the same limitations, since the forms are going through the table. (And queries....) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thanks, Drew. Well, I guess it depends on what sort of users you are dealing with. At the risk of re-hashing a discussion that has probably been done before, I think there is a distinction between functionality in the application when it is being used in the intended way, and deliberate unauthiorised attempts to circumvent the intended functionality. In terms of the original question asked by Arthur, where he wants the users to be able to add new records but not delete or edit existing records, I can open a form in design view, set the Allow Deletions and Allow Edits properties to No, and close and save the form, in less than 10 seconds. My time is valuable, so this is an important factor. If that form is the only way (apart from unauthorised hacking) for the data to be accessed, then that would be perfectly adequate in the case of all the clients who I have ever worked for. Regards Steve Drew Wutka wrote: > Show me a way to truly prevent it. It's there whether you like it or > not. Disable the Access Keys such as F11, and you just have to go > through the Window Menu. Even hiding the Access Window itself doesn't > guarantee a curious user can't get to the database window. Heck, the > code to unhide every Access window on your machine is just a few lines. > > User level security isn't hack proof (nothing is), but it is a lot > stronger then 'hiding' the database window. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fuller.artful at gmail.com Thu Sep 6 16:23:22 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 17:23:22 -0400 Subject: [AccessD] Transactions In-Reply-To: References: <46E065D9.5070505@mvps.org> Message-ID: <29f585dd0709061423yb7e6718x762c7a392d9ff923@mail.gmail.com> I definitely like that concept, Drew. Not quite as clean as Roles+Permissions in SQL, but it will suffice for the problem at hand. A. On 9/6/07, Drew Wutka wrote: > > One of the many reasons I use .asp and VB front ends, no direct .mdb > access. > > IMHO, though, data integrity done only through the GUI is to easy to get > around. F11 or Window --> unhide will always let someone at the > database window. So if a user shouldn't be able to change data in a > table, that table should be secured at the table level, not the form. > (Not too mention, securing it at the table level once, makes EVERY form > created have the same limitations, since the forms are going through the > table. (And queries....) > > Drew > From miscellany at mvps.org Thu Sep 6 16:36:13 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 09:36:13 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E072CD.8010608@mvps.org> Drew, Drew Wutka wrote: > ... data integrity done only through the GUI is to easy to get > around. In 12 years as a full-time Access freelance developer, I have never had anyone get around it. Yes, it can be got around. Fair enough. In theory. > F11 or Window --> unhide will always let someone at the > database window. Agreed that it is unthinkable that a user should have access to the Database Window. I never allow this. Regards Steve From max.wanadoo at gmail.com Thu Sep 6 16:39:39 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 22:39:39 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <005701c7f0c3$46f55280$8119fea9@LTVM> Message-ID: <005f01c7f0ce$6e055180$8119fea9@LTVM> Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Sep 6 17:25:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:25:56 -0500 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709061423yb7e6718x762c7a392d9ff923@mail.gmail.com> Message-ID: Oh sure, the bigger the system, the more bells and whistles you have. But Access User Level security (no comments yet on the posted example I put up) does it's job just fine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 06, 2007 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions I definitely like that concept, Drew. Not quite as clean as Roles+Permissions in SQL, but it will suffice for the problem at hand. A. On 9/6/07, Drew Wutka wrote: > > One of the many reasons I use .asp and VB front ends, no direct .mdb > access. > > IMHO, though, data integrity done only through the GUI is to easy to get > around. F11 or Window --> unhide will always let someone at the > database window. So if a user shouldn't be able to change data in a > table, that table should be secured at the table level, not the form. > (Not too mention, securing it at the table level once, makes EVERY form > created have the same limitations, since the forms are going through the > table. (And queries....) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 17:31:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:31:38 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E072CD.8010608@mvps.org> Message-ID: Ummm, I think we are talking past each other. You CAN'T prevent someone from getting to the database window. It's just not possible. Not if they are allowed in the database. 'Hiding' the database window, and then disabling the Access Keys (which includes F11), only requires that the user Clicks Window and then UnHide. Hiding the Access Window is also a work around, and is only going to be viable if your application never needs to run a report (since reports only show within the Access Window). The work involved in trying to maintain a process that prevents the user from getting to a table is much more then simply setting up the appropriate security in the tables from the get go. In my example post, I went through and blocked everything, but as long as Administrative rights are removed from the database and tables, the data is safe. Takes a few minutes at most. Locking down forms, reports, macros and queries is only if you want to protect your design. Another thing to keep in mind, is that if a future developer wants to look at your system, by putting constraints in the tables themselves, that future developer isn't going to have to dig through the interface to find your data integrity rules. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Drew Wutka wrote: > ... data integrity done only through the GUI is to easy to get > around. In 12 years as a full-time Access freelance developer, I have never had anyone get around it. Yes, it can be got around. Fair enough. In theory. > F11 or Window --> unhide will always let someone at the > database window. Agreed that it is unthinkable that a user should have access to the Database Window. I never allow this. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 17:33:15 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:33:15 -0500 Subject: [AccessD] Transactions In-Reply-To: <005f01c7f0ce$6e055180$8119fea9@LTVM> Message-ID: Be my guest. I never post code in here that I wouldn't want someone else to use! This, by the way, is something Susan and I co-wrote an article about. (Microsoft still hasn't noticed, their knowledge base still uses a timer to 'mimic' the always on top affect.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 4:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From miscellany at mvps.org Thu Sep 6 17:56:27 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 10:56:27 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E0859B.4090705@mvps.org> Hi Drew, Drew Wutka wrote: > 'Hiding' the database window, and then disabling the Access Keys (which > includes F11), only requires that the user Clicks Window and then > UnHide. Assuming you leave a Window menu in your application. Which I never do. Hey, don't get me wrong... I am not arguing against the approach you are promoting. Not at all. All I am saying is that a simpler (to me) approach has always served my purposes, and I have never myself felt the necessity to go beyond that. Regards Steve From max.wanadoo at gmail.com Thu Sep 6 18:03:58 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 00:03:58 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <005f01c7f0ce$6e055180$8119fea9@LTVM> Message-ID: <006101c7f0da$35ec3dc0$8119fea9@LTVM> Many thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 11:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Be my guest. I never post code in here that I wouldn't want someone else to use! This, by the way, is something Susan and I co-wrote an article about. (Microsoft still hasn't noticed, their knowledge base still uses a timer to 'mimic' the always on top affect.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 4:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 18:03:51 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 16:03:51 -0700 Subject: [AccessD] Transactions In-Reply-To: <46E0859B.4090705@mvps.org> References: <46E0859B.4090705@mvps.org> Message-ID: Steve, Susan and I wrote an article one time about hiding the database window. We did a pretty good job but there were still ways around it if your users had more than just the runtime version of Access and knew what they were doing. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Hi Drew, Drew Wutka wrote: > 'Hiding' the database window, and then disabling the Access Keys > (which includes F11), only requires that the user Clicks Window and > then UnHide. Assuming you leave a Window menu in your application. Which I never do. Hey, don't get me wrong... I am not arguing against the approach you are promoting. Not at all. All I am saying is that a simpler (to me) approach has always served my purposes, and I have never myself felt the necessity to go beyond that. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Sep 6 18:48:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 16:48:01 -0700 Subject: [AccessD] Database Patent Message-ID: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky From miscellany at mvps.org Thu Sep 6 18:52:16 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 11:52:16 +1200 Subject: [AccessD] Transactions In-Reply-To: References: <46E0859B.4090705@mvps.org> Message-ID: <46E092B0.5060406@mvps.org> Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. From DWUTKA at Marlow.com Thu Sep 6 21:22:53 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 21:22:53 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E092B0.5060406@mvps.org> Message-ID: The biggest hole in the 'GUI' data integrity process is the .mdb itself. You can link tables or import them into another .mdb with a few clicks of the mouse. So, if you have a table that you really don't want people editing data in, no amount of GUI tricks are going to prevent that if you don't put security on a table. If someone wants to get at the data, they can just link the tables in a blank database, and have at the data. So, in the case of your customers, who want to have access to write their own queries and reports, you are simply getting by with having uninformed or inexperienced customers. A user of Access, who knows the just a fraction of how Access works can link to the tables in your database. No protection on the tables, no protection on the linked tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 21:23:46 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 21:23:46 -0500 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Thu Sep 6 21:57:10 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 19:57:10 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From fuller.artful at gmail.com Thu Sep 6 22:06:46 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 23:06:46 -0400 Subject: [AccessD] Database Patent In-Reply-To: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> References: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> Message-ID: <29f585dd0709062006g3129096au9900a63340c7db2c@mail.gmail.com> This is a really old idea, and if it slides through the patent office, so much the worse for its ability to judge technology. There is not one single shred of novelty in this concept. It's been done since the days of DOS. Arthur On 9/6/07, Rocky Smolin at Beach Access Software wrote: > > This is an existing patent. The patent is date Feb. 21, 2007. Does your > work predate the patent? Does it use this two-part scheme of the records > data set and the categories data set? Or is yours a different technique > which would duplicate one of the salient advantages of this patent which > is > the ability to alter the design of a database without interruption in the > service? > > Part of what I'm trying to find out here, is knowing if this is a more or > less common or existing technique or is truly unique. That would > determine > what value, if anything, the patent would have in a sale of the rights. > > How much of what you did can you share or want to share? > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Thursday, September 06, 2007 7:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Patent > > Is this an existing patent, or one that is applying for a patent? I ask, > because I have actually built databases that pretty much use this > principle. > > Drew > > -----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, September 06, 2007 6:48 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Database Patent > > Dear List: > > A client who is a patent and trademark attorney is interested in opinions > on > a patent - basically it's a way to update databases on-the-fly by > disconnecting the data from the data definition. > > You can download the patent by going to this web page: > > http://www.pat2pdf.org/ > > > and entering the patent number 7003524. > > I guess I'm looking for opinions on whether this is a solution to a > problem > that exists and whether there is something of value in this approach. > > I know there's some deep database design talent on this list so I'm > thinking > this is the best place to start the research. > > Here's a teaser. From the patent: > > TECHNICAL FIELD > > The invention relates generally to databases and, more particularly, to > the > underlying schematic structure of databases. > > BACKGROUND > > Large databases running in publicly accessible environments are notorious > for their inability to accommodate change. In today's world of massive > access to large databases via the Internet, it is increasingly common to > encounter messages to the effect of "database is down for maintenance" > instead of the actual data requested. > > In a conventional database environment, when a change needs to be made to > the schematic structure of a database, the data in the database must be > extracted from the database in the old structure and re-written to the > database in the new structure. If new data were to be inserted into the > database while said changes were being effected, it could cause > unpredictable effects to the database. Such effects could include > corruption > of pre-existing data, misapplication of database changes, misalignment of > data relative to internal data boundaries, or any number of problems that > could render the database effectively incoherent. Such results are > untenable > in most live database deployments. > > Conventionally, the most common solution to the problem of updating during > changes to the schematic structure is to simply disallow it. > > Conventional databases also require a tight bind between the data type and > the data storage. Users require that the data they request be presented in > a > manner consistent with the expected usage of the data. For example, a date > may be stored in the database as a string of decimal digits (e.g., > 20010303), but to present the data to the user in its raw form would be > unacceptable. A conventional computer user requires that it be presented > in > a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order > for the date to be presented in a manner consistent with its usage, the > database must carry type-related information along with each unit of data. > > Binding between data and type is conventionally accomplished by organizing > the data into metaphorical rows and columns. Rows of data are divided into > pre-defined columns, where each column represents a particular data type > and/or use of the data. Such data/type binding allows a computer program > to > make assumptions and inferences about the data appropriate to its type. > Additional rows of data may be readily added to a database. However, if a > new column is desired in a database, then the database must typically be > made unavailable for a period of time so that data can be converted into > the > new format. Modifications to pre-existing programs would have to be made, > along with the requisite testing and debugging necessary to validate any > new > code. > > It is also worth noting that in conventional databases there tends to be > redundancy in the storage of data. For example, cities, states, zip codes, > and telephone area codes may be repeated among a number of rows of data. > Such redundancy results in inefficient use of memory. > > In light of the foregoing, it is apparent that there is a need for a > system > and method for modifying the schematic structure of a database without > making the database unavailable for the entry of new data. Preferably, > such > a system and method would, among other things, also minimize redundancy of > data in a database. > > SUMMARY > > The present invention, accordingly, provides a database in which an > application program accesses data stored in a records data set (RDS) and a > categories data set (CDS). The RDS contains at least one RDS entry having > a > data field configured for representing data. The CDS contains at least one > CDS entry configured for being associated with at least one RDS entry and > having at least one data type field sufficient to describe the type of > data > contained by the at least one associated RDS entry. > > The invention thus provides a database whereby data is isolated from its > definition, thus avoiding the problems associated with the > rows-and-columns > model enumerated above, and permits the underlying schematic form of the > database to be changed based on modifications to the CDS, without > requiring > any actual changes to the schematic structure of the RDS or the underlying > database. By virtue of this same isolation it is also possible to reduce > data redundancy with varying levels of granularity and create an > object-oriented data model. > > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com The information contained in this > transmission is intended only for the person or entity to which it is > addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve > material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. You are notified that any review, retransmission, copying, > disclosure, dissemination, or other use of, or taking of any action in > reliance upon this information by persons or entities other than the > intended recipient is prohibited. > > > -- > 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 > 3:18 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From miscellany at mvps.org Thu Sep 6 22:16:16 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 15:16:16 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E0C280.8000805@mvps.org> Hi Drew, Drew Wutka wrote: > The biggest hole in the 'GUI' data integrity process is the .mdb itself. Yes, I know. Well, I don't call it a "hole". But yes, I know. > You can link tables or import them into another .mdb with a few clicks > of the mouse. Yes, I know. > So, if you have a table that you really don't want people editing data > in, no amount of GUI tricks are going to prevent that if you don't put > security on a table. If someone wants to get at the data, they can just > link the tables in a blank database, and have at the data. Yes, I know they can. But they don't... that's the point. > So, in the case of your customers, who want to have access to write > their own queries and reports, you are simply getting by with having > uninformed or inexperienced customers. No. Some would be uninformed or inexperienced. But that's not as relevant as professional and responsible. > A user of Access, who knows the > just a fraction of how Access works can link to the tables in your > database. I don't think that's true. There are a lot of people who know a fair bit about Access, who wouldn't think of that possibility. Of course, many of my customers have no idea that we are using Access anyway. But again, that's not the main point. You are making the assumption that just because people *can* stuff around with stuff they've got no business with, that they *will*. That's very sad. I have good relationships with my clients. Those that have the skills and knowledge to link to the backend from another Access file would discuss it with me before they went near it. But again, Drew, I am happy for you to take additional precautions if you feel the need to. This is not a "right or wrong" consideration here. Regards Steve From shamil at users.mns.ru Thu Sep 6 22:54:54 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 7 Sep 2007 07:54:54 +0400 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: <005e01c7f102$e4ee4e80$6601a8c0@nant> Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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 Thu Sep 6 23:17:34 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 21:17:34 -0700 Subject: [AccessD] Database Patent In-Reply-To: <005e01c7f102$e4ee4e80$6601a8c0@nant> Message-ID: <00ba01c7f106$04279830$0301a8c0@HAL9005> Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 00:09:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:09:31 -0500 Subject: [AccessD] Database Patent In-Reply-To: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> Message-ID: The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 00:30:20 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:30:20 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E0C280.8000805@mvps.org> Message-ID: True, it's not right or wrong. I am not trying to 'blast' your methods. I had a talk with my bosses boss one day, years ago (ironically, he turned in his notice, after working with Marlow for over 20 years, and tomorrow is his last day). He was asking about certain security aspects of our network. When I started there, our network was in shambles, and Mark (our old network administrator) and I spent years tightening things up to a respectable level. But one of the things I told Robbie was that one of our main security measurements was the ignorance of our users. At the time, what protected much of our stuff was that most people just didn't know where things were, or how to get into them, and that's not talking about passwords, just simply not knowing how to run something. However, our debate here takes a different turn when you change the type of application. If you are building a database for a customer to track some of there information, 'trusting' them with the data isn't an issue, if the data is for their own use. Who cares if they go in and change an a to a b. It's their data. Data Integrity is only used to make sure the processes work. But what if the data IS the process. Case in point, I built a system we call the ISFE. Information Systems Front End. It's our request tracking system (asset management, etc.). We are a public company, we use the ISFE to PROVE that the work we do was authorized. It has an electronic signature capability. We get audited based on the information in that system AND based on the integrity of that system. If I was an auditor, and I was able to just get directly into the tables, with no security stopping me, I would fail the company using that application. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 10:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Hi Drew, Drew Wutka wrote: > The biggest hole in the 'GUI' data integrity process is the .mdb itself. Yes, I know. Well, I don't call it a "hole". But yes, I know. > You can link tables or import them into another .mdb with a few clicks > of the mouse. Yes, I know. > So, if you have a table that you really don't want people editing data > in, no amount of GUI tricks are going to prevent that if you don't put > security on a table. If someone wants to get at the data, they can just > link the tables in a blank database, and have at the data. Yes, I know they can. But they don't... that's the point. > So, in the case of your customers, who want to have access to write > their own queries and reports, you are simply getting by with having > uninformed or inexperienced customers. No. Some would be uninformed or inexperienced. But that's not as relevant as professional and responsible. > A user of Access, who knows the > just a fraction of how Access works can link to the tables in your > database. I don't think that's true. There are a lot of people who know a fair bit about Access, who wouldn't think of that possibility. Of course, many of my customers have no idea that we are using Access anyway. But again, that's not the main point. You are making the assumption that just because people *can* stuff around with stuff they've got no business with, that they *will*. That's very sad. I have good relationships with my clients. Those that have the skills and knowledge to link to the backend from another Access file would discuss it with me before they went near it. But again, Drew, I am happy for you to take additional precautions if you feel the need to. This is not a "right or wrong" consideration here. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 00:40:35 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:40:35 -0500 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From shamil at users.mns.ru Fri Sep 7 01:28:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 7 Sep 2007 10:28:06 +0400 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: <000901c7f118$40ccef30$6601a8c0@nant> Hello Rocky, Yes, I suppose there are no unique ideas/principles in this patent. I suppose that but I'm not stating that. The authors of this patent might investigate many of the open sources to find out did they patented something unique or not. I'd expect they will find they are a kind of "reinvented the wheel". That happens of course. <<< am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? >>> Yes, the data changes can be "mirrored" by using replication, which can be setup by using advanced built-in replication subsystems of the modern DBMSs. Of course when the new version of the database is getting a lot of changes of its data model then only a small representative subset of the live data is used. And only when the new version is in final beta/release candidate then the final massive replication is done and then the new system is becoming a "hot mirror" ready for the switch... All in all - there is "no free cheese in this world" - and trying to get invented and developed "the most flexible database structures" will result in pure overall performance or huge investments and never (?) pay back the investors/sponsors - that would be more like fundamental research that a practical solution... All and every position of the subject patent text can be argued with real references of similar ideas/inventions/real life implementations - the authors of this patent might try to prove the opposite... As a conclusion: I'm not trying to "kill" this patent - you asked about its novelty - and my message is just a warning that this patent is not looking like a novelty and that trying to implement this patent in real life applications could be far less effective than the authors of this patent expect - in fact immediate and even long term economical effect could be negative - bankruptcy... I'd love if I'm not correct with all I have written above... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:18 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Fri Sep 7 03:30:57 2007 From: joeget at vgernet.net (John Eget) Date: Fri, 7 Sep 2007 04:30:57 -0400 Subject: [AccessD] Conditional Formatting with date References: Message-ID: <000601c7f129$6d9c9540$50c2f63f@JELaptop> I have a report that displays a derived date (FollowupDue) which is calculated as (=DateAdd("d",180,[Closed])) that I would like to provide conditional formatting for. What I want to do is - If the date is between 120 to 149 then display the date as Green, if between 150 to 179 then Yellow, and finally if equal to or greater that 180 display the date as Red. Using the Conditional Formatting dropdown if I am doing the greater than (Now(0)) is Red works okay. Any of the other options does not work. Is anyone familiar with this area and can help? Thanks John From Gustav at cactus.dk Fri Sep 7 03:53:05 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 10:53:05 +0200 Subject: [AccessD] Coping a Table. Message-ID: Hi Jim I would suggest you specify exactly - step by step - to the client what to do. Otherwise you have no clue on what's going on, the user may not even know what he/she has done and why, and - don't forget - users lie (one of our mottos). /gustav >>> accessd at shaw.ca 06-09-2007 21:01 >>> Hi Gustav: I am not sure how the client is replicating the table into their MDB. It could be drag and drop or cut and paste. I will suggest export and import if the Make-table query does not work. My question is why the table is appearing locked in the first place. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 06, 2007 9:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 miscellany at mvps.org Fri Sep 7 03:59:26 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 20:59:26 +1200 Subject: [AccessD] Conditional Formatting with date In-Reply-To: <000601c7f129$6d9c9540$50c2f63f@JELaptop> References: <000601c7f129$6d9c9540$50c2f63f@JELaptop> Message-ID: <46E112EE.6000402@mvps.org> John, Hard to know what the problem is without seeing what you have tried so far. But personally, I would find it simplest to do the Conditional Formatting of the FollowupDue control by referring back to the value of the Closed field. In other words, the 3 conditions would be like this: Expression Is: Date()-[Closed] Between 120 And 149 Expression Is: Date()-[Closed] Between 150 and 179 Expression Is: Date()-[Closed]>=180 Otherwise, I have misunderstood your requirement Regards Steve John Eget wrote: > I have a report that displays a derived date (FollowupDue) which is > calculated as (=DateAdd("d",180,[Closed])) that I would like to provide > conditional formatting for. > > What I want to do is - If the date is between 120 to 149 then display the > date as Green, if between 150 to 179 then Yellow, and finally if equal to or > greater that 180 display the date as Red. Using the Conditional Formatting > dropdown if I am doing the greater than (Now(0)) is Red works okay. > Any of the other options does not work. Is anyone familiar with this area > and can help? > > Thanks > > John > > From miscellany at mvps.org Fri Sep 7 04:14:30 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 21:14:30 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E11676.7010906@mvps.org> Drew, In the case of your example, I can certainly see that you have to somehow cover off the possibility of unauthorised access to the data. Sort of like what they say about justice - should be done, and also seen to be done. And I also understand what a blessing the ignorance of the users can sometimes be. :-) I appreciate the interesting discussion. Thank you. Regards Steve Drew Wutka wrote: > Case in point, I built a system we call the ISFE. Information Systems > Front End. It's our request tracking system (asset management, etc.). > We are a public company, we use the ISFE to PROVE that the work we do > was authorized. It has an electronic signature capability. We get > audited based on the information in that system AND based on the > integrity of that system. If I was an auditor, and I was able to just > get directly into the tables, with no security stopping me, I would fail > the company using that application. From fuller.artful at gmail.com Fri Sep 7 04:23:13 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 05:23:13 -0400 Subject: [AccessD] Transactions In-Reply-To: References: <46E0C280.8000805@mvps.org> Message-ID: <29f585dd0709070223sae4bd83qf5fd55500f4970f2@mail.gmail.com> This would appear to be an appropriate thread in which to present my question, rather than beginning a new thread. The app I have just developed is for a very small market niche (in fact, so far as I have determined, said niche contains only one competitor, and my client is so unhappy with said competitor's product that she commissioned me to write a replacement). All that aside, there is the issue of credit cards. It's simple enough to mask the content of the credit card column so that only the last four numbers show, but the data is still there, naked as it were, and subject to the aforementioned "link tables" attack. This app uses an MDB as its back end (so far). I know what to do if the BE is SQL Server (encrypt the column), but I am not sure what to do in the case of an MDB BE. The firm's accountant is concerned with this data being potentially available to leakage (either a disgruntled employee or an internet penetration). Perhaps a code algorithm to scramble and unscramble the numbers will suffice. I'm not sure. Any thoughts from the esteemed readership here? A. From Gustav at cactus.dk Fri Sep 7 04:43:46 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 11:43:46 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From Gustav at cactus.dk Fri Sep 7 05:13:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 12:13:40 +0200 Subject: [AccessD] Transactions Message-ID: Hi Arthur Yes, a simple but extremely efficient method is to encrypt at the field level. Then, even with access to the tables, no information can be read. I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. Here's the header info: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> fuller.artful at gmail.com 07-09-2007 11:23 >>> This would appear to be an appropriate thread in which to present my question, rather than beginning a new thread. The app I have just developed is for a very small market niche (in fact, so far as I have determined, said niche contains only one competitor, and my client is so unhappy with said competitor's product that she commissioned me to write a replacement). All that aside, there is the issue of credit cards. It's simple enough to mask the content of the credit card column so that only the last four numbers show, but the data is still there, naked as it were, and subject to the aforementioned "link tables" attack. This app uses an MDB as its back end (so far). I know what to do if the BE is SQL Server (encrypt the column), but I am not sure what to do in the case of an MDB BE. The firm's accountant is concerned with this data being potentially available to leakage (either a disgruntled employee or an internet penetration). Perhaps a code algorithm to scramble and unscramble the numbers will suffice. I'm not sure. Any thoughts from the esteemed readership here? A. From accessd at shaw.ca Fri Sep 7 05:24:21 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 07 Sep 2007 03:24:21 -0700 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: <29F027B7EFB04A3A9745D2A38606D2F9@creativesystemdesigns.com> Hi Rocky: I think that has already been done before. I would think the method would not be patientable but maybe no one has ever bothered to before. How long can some method be used in common practice before it becomes like 'open-source'? Jim -----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, September 06, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 7 05:34:05 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 06:34:05 -0400 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <29f585dd0709070334h143845bdgdf74917a73b29ae3@mail.gmail.com> Thanks, Gustav! On 9/7/07, Gustav Brock wrote: > > Hi Arthur > > Yes, a simple but extremely efficient method is to encrypt at the field > level. Then, even with access to the tables, no information can be read. > I've used that for mdb files sent over the Internet thus eliminating the > need for VPN or encrypted mail. > > From ewaldt at gdls.com Fri Sep 7 07:52:38 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Fri, 7 Sep 2007 08:52:38 -0400 Subject: [AccessD] Exporting an OLE Object In-Reply-To: Message-ID: I have an Excel workbook with some complicated code; I need to export data to the workbook and run the code. I know how to do that, but this database will be used by several people, and I'd prefer not to have to require them to use an Excel template. I have imported a workbook (blank except for a module containing the needed code) as an OLE object in its own table in my database. I want to export (or open-and-save-as) the workbook, add the appropriate data from Access, and then run the code (in whatever order is best). How do you export an Excel workbook as an OLE object via VBA? Of course, if you have better ideas... TIA. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 Fri Sep 7 08:02:08 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:02:08 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E11676.7010906@mvps.org> Message-ID: Ditto. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, September 07, 2007 4:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, In the case of your example, I can certainly see that you have to somehow cover off the possibility of unauthorised access to the data. Sort of like what they say about justice - should be done, and also seen to be done. And I also understand what a blessing the ignorance of the users can sometimes be. :-) I appreciate the interesting discussion. Thank you. Regards Steve Drew Wutka wrote: > Case in point, I built a system we call the ISFE. Information Systems > Front End. It's our request tracking system (asset management, etc.). > We are a public company, we use the ISFE to PROVE that the work we do > was authorized. It has an electronic signature capability. We get > audited based on the information in that system AND based on the > integrity of that system. If I was an auditor, and I was able to just > get directly into the tables, with no security stopping me, I would fail > the company using that application. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Fri Sep 7 08:03:59 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:03:59 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000601c7f14f$8ea050d0$0301a8c0@HAL9005> Drew: On the Marlow database, can they modify that database without having to take it down? It's an on-the-fly modification? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 08:05:18 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:05:18 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Fri Sep 7 08:07:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:07:39 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000701c7f150$117a3d90$0301a8c0@HAL9005> Drew: In which of these situations, there would be a brief interruption in service? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 08:09:18 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:09:18 -0700 Subject: [AccessD] Database Patent In-Reply-To: <000901c7f118$40ccef30$6601a8c0@nant> Message-ID: <000801c7f150$4ca99b90$0301a8c0@HAL9005> Thanks again. I'll forward your thoughts to the client. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Hello Rocky, Yes, I suppose there are no unique ideas/principles in this patent. I suppose that but I'm not stating that. The authors of this patent might investigate many of the open sources to find out did they patented something unique or not. I'd expect they will find they are a kind of "reinvented the wheel". That happens of course. <<< am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? >>> Yes, the data changes can be "mirrored" by using replication, which can be setup by using advanced built-in replication subsystems of the modern DBMSs. Of course when the new version of the database is getting a lot of changes of its data model then only a small representative subset of the live data is used. And only when the new version is in final beta/release candidate then the final massive replication is done and then the new system is becoming a "hot mirror" ready for the switch... All in all - there is "no free cheese in this world" - and trying to get invented and developed "the most flexible database structures" will result in pure overall performance or huge investments and never (?) pay back the investors/sponsors - that would be more like fundamental research that a practical solution... All and every position of the subject patent text can be argued with real references of similar ideas/inventions/real life implementations - the authors of this patent might try to prove the opposite... As a conclusion: I'm not trying to "kill" this patent - you asked about its novelty - and my message is just a warning that this patent is not looking like a novelty and that trying to implement this patent in real life applications could be far less effective than the authors of this patent expect - in fact immediate and even long term economical effect could be negative - bankruptcy... I'd love if I'm not correct with all I have written above... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:18 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 08:11:22 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:11:22 -0700 Subject: [AccessD] Database Patent In-Reply-To: <29F027B7EFB04A3A9745D2A38606D2F9@creativesystemdesigns.com> Message-ID: <000a01c7f150$96976390$0301a8c0@HAL9005> Good questions. My client is a patent attorney. I'll ask. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, September 07, 2007 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Hi Rocky: I think that has already been done before. I would think the method would not be patientable but maybe no one has ever bothered to before. How long can some method be used in common practice before it becomes like 'open-source'? Jim -----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, September 06, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From Gustav at cactus.dk Fri Sep 7 08:31:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 15:31:22 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From rusty.hammond at cpiqpc.com Fri Sep 7 08:34:25 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 7 Sep 2007 08:34:25 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE10@cpixchng-1.cpiqpc.net> Thanks, I what I ended up doing. -----Original Message----- From: Gmail [mailto:max.wanadoo at gmail.com] Sent: Thursday, September 06, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Returning only numbers from a phone number field Hi Rusty, This should do the trick for you: Function teststripNonNumerics() MsgBox stripNonNumerics("1.2.3.4/5/6/akjfjakfd-789kjjkaf880-087222/.88") End Function Function stripNonNumerics(str As String) As String Dim lngLoop As Long, strTemp As String For lngLoop = 1 To Len(str) If IsNumeric(Mid(str, lngLoop, 1)) Then strTemp = strTemp & Mid(str, lngLoop, 1) End If Next lngLoop stripNonNumerics = strTemp End Function Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, September 06, 2007 6:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Returning only numbers from a phone number field Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 -- 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 rusty.hammond at cpiqpc.com Fri Sep 7 08:36:30 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 7 Sep 2007 08:36:30 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE11@cpixchng-1.cpiqpc.net> Gustav, My solution was much shorter but yours is much more thorough, I'm going to keep this one around. Thanks! Rusty -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, September 06, 2007 12:13 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Returning only numbers from a phone number field Hi Rusty You may use my little function: Public Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function /gustav >>> rusty.hammond at cpiqpc.com 06-09-2007 19:09 >>> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond -- 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 tinanfields at torchlake.com Fri Sep 7 08:37:00 2007 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 07 Sep 2007 09:37:00 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? - AHA! In-Reply-To: <46D5B065.7020200@torchlake.com> References: <46D5B065.7020200@torchlake.com> Message-ID: <46E153FC.6080206@torchlake.com> Hi All, Yesterday I went to see the database. As we sat down the client said that they had tried taking it over to a machine running A2K3 and it had run perfectly, but on the machine using A2K7 the thing seemed to be missing stuff. Okay, launch the database. The startup form has a search combo box and command buttons to allow all kinds of things: add a new record of some kind to the transaction table, edit the profile, stuff like that. Clicking the buttons produced no response. I looked up above the main window, just under the ribbon, and there was a warning statement that Access had disabled something it couldn't be sure was safe. I clicked the options button, which opened the security window, clicked the choice to enable the disabled feature - I think it was macros. Voila, the database works as it was supposed to. Apparently, the command buttons call macros and the macro feature was disabled. That's all that was wrong. I was there three minutes. She thinks I'm a genius because, she said, five IT people had failed to figure it out. I find that a little hard to believe. But, it certainly made me feel good. Tina Tina Norris Fields wrote: > Hi All, > > A client called with this story: We had a functioning database > developed in A2K3. We gave the data to an off-site developer who did > some redesign work. While the database was away being reworked, we > upgraded in the office to A2K7. The database now seems to be missing > some fields and is not really functional. > > My first impression (I have not looked at the database yet) is that the > difficulties probably are associated with the off-site rework rather > than the upgrade. But, I thought I'd check out what to watch out for > when I do go look at the database. > > Thanks for any advice and information on A2K3-A2K7 issues. > > Tina > From tinanfields at torchlake.com Fri Sep 7 08:39:13 2007 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 07 Sep 2007 09:39:13 -0400 Subject: [AccessD] Lose the warnings In-Reply-To: References: <29f585dd0708301427x488fa0fdgf3567511ce58fab3@mail.gmail.com> Message-ID: <46E15481.1020100@torchlake.com> Gary, Doesn't that change the settings for Access itself, rather than for just that particular database? Tina Gary Kjos wrote: > >From the menu go to > > Tools/Macros/Security/Security Level > > and once there select the Low Setting and that fixes that. > > GK > > On 8/30/07, Arthur Fuller wrote: > >> Having converted my 2k app to 2k3, I suffer two warnings upon entry to the >> system, and cannot locate how to kill them. One says something about >> potentially unsafe, the other about open. I want these to go away >> permanently for my particular app, bu I want them to remain for all else. Is >> this possible? >> >> I did look at the Security stuff on the menu, which was no help. In typical >> MS style. >> >> TIA, >> Arthur >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > From DWUTKA at Marlow.com Fri Sep 7 08:54:17 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:54:17 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000601c7f14f$8ea050d0$0301a8c0@HAL9005> Message-ID: They aren't truly modifying the design of the database, the database is designed to allow for modification of the data layout (without changing the database design). Not only does that prevent having to modify a live database, it prevents the need for future development. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:04 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Drew: On the Marlow database, can they modify that database without having to take it down? It's an on-the-fly modification? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From garykjos at gmail.com Fri Sep 7 08:56:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Sep 2007 08:56:24 -0500 Subject: [AccessD] Lose the warnings In-Reply-To: <46E15481.1020100@torchlake.com> References: <29f585dd0708301427x488fa0fdgf3567511ce58fab3@mail.gmail.com> <46E15481.1020100@torchlake.com> Message-ID: Hi Tina, Yes, that is correct. And it is not recommended by Microsoft. You can read about their recommendations here; http://office.microsoft.com/en-us/access/HA011225981033.aspx#150 They tell you to digitally sign your database and add your signature to each users trusted publishers on each users system. It certainly depends on your particular circumstances if it is too risky to set the security setting to low or to much of a pain to deal with the digital signature solution. GK On 9/7/07, Tina Norris Fields wrote: > Gary, > Doesn't that change the settings for Access itself, rather than for just > that particular database? > Tina > > Gary Kjos wrote: > > >From the menu go to > > > > Tools/Macros/Security/Security Level > > > > and once there select the Low Setting and that fixes that. > > > > GK > > > > On 8/30/07, Arthur Fuller wrote: > > > >> Having converted my 2k app to 2k3, I suffer two warnings upon entry to the > >> system, and cannot locate how to kill them. One says something about > >> potentially unsafe, the other about open. I want these to go away > >> permanently for my particular app, bu I want them to remain for all else. Is > >> this possible? > >> > >> I did look at the Security stuff on the menu, which was no help. In typical > >> MS style. > >> > >> TIA, > >> 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 > -- Gary Kjos garykjos at gmail.com From DWUTKA at Marlow.com Fri Sep 7 08:56:24 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:56:24 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000701c7f150$117a3d90$0301a8c0@HAL9005> Message-ID: Depends. The shadow database where the live database is updating the test database would have no down time, it would just be a matter of switching to the new system. In the case of the snapshot type, where the test system is developed and tested with a one time snapshot, the down time is going to be the length of time it takes to import the new data. In the case of a mixed environment, the example I gave had a downtime of about 30 seconds. (The time it took me to swap the linked tables with imported tables.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Drew: In which of these situations, there would be a brief interruption in service? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 08:59:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:59:38 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From garykjos at gmail.com Fri Sep 7 09:03:22 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Sep 2007 09:03:22 -0500 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? - AHA! In-Reply-To: <46E153FC.6080206@torchlake.com> References: <46D5B065.7020200@torchlake.com> <46E153FC.6080206@torchlake.com> Message-ID: Yea Tina! You ARE a hero! And as someone that has been an "IT PERSON" for more years than I care to divulge I can state that 99% of IT People think Access is a toy and not worth their time so I can see how several of them would have not seen what seemed obvious to you or they were scared to break it and then they would be responsible to fix it.Have a look, see it's Access, shrug your shoulders and scratch your head. At my current company I am the only person in our company - outside of the users - that isn't afraid to use Access for real work. So any problem the users have with Access the Computer Support area will contact me to help with even though I am no longer in the IT department. Great job for fixing the problem and thanks for sharing it with us. GK On 9/7/07, Tina Norris Fields wrote: > Hi All, > > Yesterday I went to see the database. As we sat down the client said > that they had tried taking it over to a machine running A2K3 and it had > run perfectly, but on the machine using A2K7 the thing seemed to be > missing stuff. > > Okay, launch the database. The startup form has a search combo box and > command buttons to allow all kinds of things: add a new record of some > kind to the transaction table, edit the profile, stuff like that. > Clicking the buttons produced no response. I looked up above the main > window, just under the ribbon, and there was a warning statement that > Access had disabled something it couldn't be sure was safe. I clicked > the options button, which opened the security window, clicked the choice > to enable the disabled feature - I think it was macros. Voila, the > database works as it was supposed to. > > Apparently, the command buttons call macros and the macro feature was > disabled. That's all that was wrong. I was there three minutes. She > thinks I'm a genius because, she said, five IT people had failed to > figure it out. I find that a little hard to believe. But, it certainly > made me feel good. > > Tina > > > Tina Norris Fields wrote: > > Hi All, > > > > A client called with this story: We had a functioning database > > developed in A2K3. We gave the data to an off-site developer who did > > some redesign work. While the database was away being reworked, we > > upgraded in the office to A2K7. The database now seems to be missing > > some fields and is not really functional. > > > > My first impression (I have not looked at the database yet) is that the > > difficulties probably are associated with the off-site rework rather > > than the upgrade. But, I thought I'd check out what to watch out for > > when I do go look at the database. > > > > Thanks for any advice and information on A2K3-A2K7 issues. > > > > Tina > > -- Gary Kjos garykjos at gmail.com From adtp at airtelbroadband.in Fri Sep 7 09:02:20 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 7 Sep 2007 19:32:20 +0530 Subject: [AccessD] Transactions References: Message-ID: <00ea01c7f158$2925fd00$2757a27a@personalec1122> Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- From Gustav at cactus.dk Fri Sep 7 09:09:05 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 16:09:05 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From DWUTKA at Marlow.com Fri Sep 7 09:40:02 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 09:40:02 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Fri Sep 7 09:55:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 07 Sep 2007 14:55:53 +0000 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709070223sae4bd83qf5fd55500f4970f2@mail.gmail.com> Message-ID: Arthur, I recently wrote and ecryption/decryption module for credit card numbers. I can't give specifics on how I did it...but I can share that the 'reviewing authority'...some group hired to say "Yes, this is suffucient encryption...or NO its not"...did like the fact that the CC# was never stored in any DB unencrypted. The app reads the CC from an unbound field, encrypts it...and stores the encrypted value (also the last four for reference purposes). When they need to view the CC#, it is decrypted and displayed in an unbound field. The 2nd thing liked was that the code to do this was not in the DB...it was saved as a library and referenced... I basically converted the CC# into a 10 digit Alpha-numeric string using an 'algorithm' Hope its helpful. Thanks, Mark A. Matte >From: "Arthur Fuller" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Transactions >Date: Fri, 7 Sep 2007 05:23:13 -0400 > >This would appear to be an appropriate thread in which to present my >question, rather than beginning a new thread. The app I have just developed >is for a very small market niche (in fact, so far as I have determined, >said >niche contains only one competitor, and my client is so unhappy with said >competitor's product that she commissioned me to write a replacement). All >that aside, there is the issue of credit cards. > >It's simple enough to mask the content of the credit card column so that >only the last four numbers show, but the data is still there, naked as it >were, and subject to the aforementioned "link tables" attack. This app uses >an MDB as its back end (so far). I know what to do if the BE is SQL Server >(encrypt the column), but I am not sure what to do in the case of an MDB >BE. >The firm's accountant is concerned with this data being potentially >available to leakage (either a disgruntled employee or an internet >penetration). Perhaps a code algorithm to scramble and unscramble the >numbers will suffice. I'm not sure. Any thoughts from the esteemed >readership here? > >A. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft? Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From DWUTKA at Marlow.com Fri Sep 7 09:59:44 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 09:59:44 -0500 Subject: [AccessD] Transactions In-Reply-To: <00ea01c7f158$2925fd00$2757a27a@personalec1122> Message-ID: It is possible, but not feasible. User level security only goes to table level, so to do what you want you would need to create new tables for the records you want protected with different permissions. You can create tables, and set their permissions on the fly, but honestly, with that level of security, it makes more sense to go with a more robust security system. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 9:02 AM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Transactions Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Fri Sep 7 10:00:00 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:00:00 -0700 Subject: [AccessD] Transactions In-Reply-To: <46E092B0.5060406@mvps.org> References: <46E0859B.4090705@mvps.org> <46E092B0.5060406@mvps.org> Message-ID: Good grief, I don't even recall where it was published ... Access/SQL Advisor I think. Susan, do you remember? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 7 10:07:40 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:07:40 -0700 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> References: <005e01c7f102$e4ee4e80$6601a8c0@nant> <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 7 10:12:03 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:12:03 -0700 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: Have you been cross pollinating your code with .Net, Drew? LOL I use ListViews all the time, but only in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 6:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Sep 7 10:16:28 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 7 Sep 2007 11:16:28 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <005e01c7f102$e4ee4e80$6601a8c0@nant><00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 rockysmolin at bchacc.com Fri Sep 7 10:55:32 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 08:55:32 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <002f01c7f167$85576050$0301a8c0@HAL9005> If true then the fact that the patent was granted says something about the inability of the PTO to keep up with the pace of technological innovation. I wouldn't envy someone the job of trying to discern whether this was a truly unique idea. Searching existing patents wouldn't be enough. You'd have to know, or be able to tap into, a vast experience with database design, wouldn't you? There are, as you say, built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. But can these be done on-the-fly, without taking down the database for an update? That seems to be the thrust of the value and unique patentable innovation. As an aside, I wonder if this 'innovation' wasn't originally conceived or designed a few years ago and only patented in 2006, after subsequent innovation in database technology left this behind or made it obsolete. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 10:56:46 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 08:56:46 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <003001c7f167$b263a9f0$0301a8c0@HAL9005> Julie: Are you surprised because you think that the idea is not unique or innovative enough to deserve a patent? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 8:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 10:58:46 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 10:58:46 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: No, just a typo. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 10:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Have you been cross pollinating your code with .Net, Drew? LOL I use ListViews all the time, but only in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 6:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 10:59:41 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 10:59:41 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000601c7f162$10603ce0$9402a8c0@hpnotebook> Message-ID: You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From comres at rpa.net Fri Sep 7 10:59:47 2007 From: comres at rpa.net (Mark Brown) Date: Fri, 7 Sep 2007 11:59:47 -0400 Subject: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference In-Reply-To: References: <20070619204928.3C0FABF14@smtp-auth.no-ip.com> Message-ID: <000c01c7f168$1de92560$6801a8c0@MarkLaptop> Is there any updated information regarding the weekend? Is it still on? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, June 19, 2007 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference It's on my calendar! However, as a native Californian, I have to tell you, I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 1:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND bi-annual GreatSmokeyMountainsAccessDConference ROTFL. OK, the second biannual conference. Now that that is handled, where are you, square or here? John 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: Tuesday, June 19, 2007 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND annual Great SmokeyMountainsAccessDConference Can't be. It has to be the second biannual conference, unless you're talking about September 2008. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 12:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND annual Great Smokey MountainsAccessDConference Let's get planning started for Sept. There were several people that indicated that Sept would work for a conference. If no one speaks up requesting a different date, I am going to declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD Conference. Same location, same great food, same great host. Be here or be square. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid Sent: Tuesday, June 19, 2007 3:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The first annual Great Smokey MountainsAccessDConference John Any chance of putting in a web camera and I can join you lot from here?? Wish I was going but hope you all have a great time Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 7 11:22:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Sep 2007 12:22:56 -0400 Subject: [AccessD] The SECONDbi-annualGreatSmokeyMountainsAccessDConference In-Reply-To: <000c01c7f168$1de92560$6801a8c0@MarkLaptop> Message-ID: <006e01c7f16b$59f6ce10$6c7aa8c0@M90> I would love to. However I got no response on the last date I threw out so... I think we should set a new data and try again. Maybe even out in the spring. Mark Matte got to choose the last date simply because he suggested 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 Mark Brown Sent: Friday, September 07, 2007 12:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The SECONDbi-annualGreatSmokeyMountainsAccessDConference Is there any updated information regarding the weekend? Is it still on? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, June 19, 2007 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference It's on my calendar! However, as a native Californian, I have to tell you, I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 1:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND bi-annual GreatSmokeyMountainsAccessDConference ROTFL. OK, the second biannual conference. Now that that is handled, where are you, square or here? John 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: Tuesday, June 19, 2007 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND annual Great SmokeyMountainsAccessDConference Can't be. It has to be the second biannual conference, unless you're talking about September 2008. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 12:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND annual Great Smokey MountainsAccessDConference Let's get planning started for Sept. There were several people that indicated that Sept would work for a conference. If no one speaks up requesting a different date, I am going to declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD Conference. Same location, same great food, same great host. Be here or be square. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid Sent: Tuesday, June 19, 2007 3:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The first annual Great Smokey MountainsAccessDConference John Any chance of putting in a web camera and I can join you lot from here?? Wish I was going but hope you all have a great time Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 7 11:29:33 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 7 Sep 2007 11:29:33 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: <000601c7f162$10603ce0$9402a8c0@hpnotebook> Message-ID: <001e01c7f16c$4688c940$0200a8c0@danwaters> Julie, Why did you register your databases with the US Copyright office? What value do you get from that? Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 7 11:35:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 07 Sep 2007 16:35:22 +0000 Subject: [AccessD] TheSECONDbi-annualGreatSmokeyMountainsAccessDConference Message-ID: The dates are almost irrelevant to me...as I am less than 2 hours away. I only suggested the last date because no one else seemed to respond. Almost any date is good for me!!! Just let me know when. Thanks, Mark P.S...Did we ever get the pictures from the last one on the site? >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] >TheSECONDbi-annualGreatSmokeyMountainsAccessDConference >Date: Fri, 7 Sep 2007 12:22:56 -0400 > >I would love to. However I got no response on the last date I threw out >so... I think we should set a new data and try again. Maybe even out in >the spring. > >Mark Matte got to choose the last date simply because he suggested 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 Mark Brown >Sent: Friday, September 07, 2007 12:00 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] The >SECONDbi-annualGreatSmokeyMountainsAccessDConference > >Is there any updated information regarding the weekend? Is it still on? > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Tuesday, June 19, 2007 5:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The SECOND >bi-annualGreatSmokeyMountainsAccessDConference > >It's on my calendar! However, as a native Californian, I have to tell you, >I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Tuesday, June 19, 2007 1:49 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] The SECOND bi-annual >GreatSmokeyMountainsAccessDConference > >ROTFL. OK, the second biannual conference. > >Now that that is handled, where are you, square or here? > >John 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: Tuesday, June 19, 2007 4:37 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The SECOND annual Great >SmokeyMountainsAccessDConference > >Can't be. It has to be the second biannual conference, unless you're >talking about September 2008. LOL > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Tuesday, June 19, 2007 12:27 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] The SECOND annual Great Smokey >MountainsAccessDConference > >Let's get planning started for Sept. > >There were several people that indicated that Sept would work for a >conference. If no one speaks up requesting a different date, I am going to >declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD >Conference. Same location, same great food, same great host. >Be here or be square. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid >Sent: Tuesday, June 19, 2007 3:19 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The first annual Great Smokey >MountainsAccessDConference > >John > >Any chance of putting in a web camera and I can join you lot from here?? > >Wish I was going but hope you all have a great time > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974465 > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ More photos; more messages; more whatever. Windows Live Hotmail - NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 From Jim.Hale at FleetPride.com Fri Sep 7 11:59:27 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 7 Sep 2007 11:59:27 -0500 Subject: [AccessD] Exporting an OLE Object In-Reply-To: References: Message-ID: How about turning it around and using the Excel workbook as the interface? I have workbooks that update data from Excel input forms, run queries in Access, download data from the AS400 into Access and download the required result sets back into the Excel workbook. The advantage of this configuration is that the user doesn't need to know about Access at all since everything is initiated from Excel. BTW what is wrong with using templates? If your worry is having to mess with the default template folder you can store the template in a hidden folder or the same folder as the mda for that matter and use it as needed. Users don't have to know or care about the template's existence. For that matter you don't have to use a template- any Excel workbook can be opened and manipulated from within Access. Since the end result is a populated Excel workbook I see no inherent advantage in using an ole object as opposed to a template or existing workbook. Also, does the code need to reside in the Excel workbook? Anything that can be run from inside Excel can be run from within Access eliminating the need for separate code in Excel. I will admit I have seen a couple of cases where it worked best to run separate code in Excel after the book had been created but generally this is not necessary. Anyway, just some general thoughts. HTH Regards, Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Friday, September 07, 2007 7:53 AM To: accessd at databaseadvisors.com Subject: [AccessD] Exporting an OLE Object I have an Excel workbook with some complicated code; I need to export data to the workbook and run the code. I know how to do that, but this database will be used by several people, and I'd prefer not to have to require them to use an Excel template. I have imported a workbook (blank except for a module containing the needed code) as an OLE object in its own table in my database. I want to export (or open-and-save-as) the workbook, add the appropriate data from Access, and then run the code (in whatever order is best). How do you export an Excel workbook as an OLE object via VBA? Of course, if you have better ideas... TIA. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems *********************************************************************** 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 max.wanadoo at gmail.com Fri Sep 7 12:53:13 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 18:53:13 +0100 Subject: [AccessD] Access to VB.Net Message-ID: <003301c7f177$f690b770$8119fea9@LTVM> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max From cfoust at infostatsystems.com Fri Sep 7 13:01:16 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 11:01:16 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <003301c7f177$f690b770$8119fea9@LTVM> References: <003301c7f177$f690b770$8119fea9@LTVM> Message-ID: VB 2005 is the VB portion of VS 2005. If you don't want to go to the expense of full fledged VS 2005 at this, just use VB 2005. It will have the IDE and all or most of what you need to get going. There are learning versions of VB 2005 included with some books on the topic too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 7 13:12:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Sep 2007 14:12:04 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <003301c7f177$f690b770$8119fea9@LTVM> Message-ID: <007901c7f17a$98fcd8c0$6c7aa8c0@M90> Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 7 13:14:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 20:14:02 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Max > All I want is the VB.Net stuff .. I like that statement. Look for the free Visual Studio 2005 Express editions. One is with "Visual Basic" (sort of). Also, a VS2008 beta is out for free download. And don't forget to sign up to our VB list! /gustav >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max From fuller.artful at gmail.com Fri Sep 7 13:31:54 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 14:31:54 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with "Visual > Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either > Visual Studio 2005 or VB 2005. Which one do I go for? Is there something > other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to convert > my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Sep 7 13:36:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 11:36:06 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: Learning on a beta with no prior experience in the language is doing the hard way IMO. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 webedb.com Fri Sep 7 13:36:17 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 07 Sep 2007 13:36:17 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: <200709071838.l87IcBeT015902@databaseadvisors.com> Wow, let's see. I can make a table with 3 columns. ID DefinitionID RecordText Then I can make a table with 2 columns, DefinitionID DefinitionText And wow, with that, I can store anything any way I want. What a revolutionary idea. (All humor, tongue in cheek!!!!!) Come on Rocky. I know that you have been around long enough to recognize this for the pile of s%#@ it is. Robert At 11:35 AM 9/7/2007, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Friday, September 07, 2007 11:08 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Database Patent > >Rocky, > >I have to chime in on this because it doesn't sound new to me either. I >didn't even think such a concept could be patented, since there are >built-in provisions in most, is not all, database languages for adding >or dropping fields, changing datatypes, etc. I have to wonder what kind >of database experience this gentleman has, based on his stated >assumptions. > >Charlotte Foust From max.wanadoo at gmail.com Fri Sep 7 14:31:51 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 20:31:51 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <004301c7f185$be194520$8119fea9@LTVM> Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 7:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From galeper at gmail.com Fri Sep 7 14:41:32 2007 From: galeper at gmail.com (Gale Perez) Date: Fri, 7 Sep 2007 12:41:32 -0700 Subject: [AccessD] Access 2007: Compact DB & DB creating copies of itself Message-ID: <5b2621db0709071241g495ea17do6e9798c6b43bb0f9@mail.gmail.com> Hi, I have a backend on the server and front ends on clients' machines. Each time the client closes the database, it creates a copy of itself. Both the front and back ends have the "Compact on Close" option unchecked. Does anyone have any ideas as to what else could be causing this behavior? Also, is there a way to just compact an Access 2007 database without closing and having it rename itself (which Compact on Close does)? There is an MS article on this subject, but it doesn't say how to do this in 2007. Thank you, Gale From max.wanadoo at gmail.com Fri Sep 7 15:43:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 21:43:45 +0100 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <000001c7f18f$ca26b460$8119fea9@LTVM> Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Fri Sep 7 16:03:40 2007 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 08 Sep 2007 09:03:40 +1200 Subject: [AccessD] Conditional Formatting with date In-Reply-To: References: <002201c7f134$29f42cd0$50c2f63f@JELaptop> Message-ID: <46E1BCAC.3010303@mvps.org> Happy to help, John. :-) This of course adds a lot of power to Conditional Formatting, because it means you can easily construct more complex or precise conditions involving the testing of multiple values, from fields or returned by functions. Regards Steve Eget, John wrote: > Thanks, I did not even know of capability!!!!! > > > ----- Original Message ----- > From: "Steve Schapel" > To: "John Eget" > Sent: Friday, September 07, 2007 5:29 AM > Subject: Re: [AccessD] Conditional Formatting with date > > >> John, >> >> You just select "Expression Is" in the first combobox in the > Conditional >> Formatting dialog, and then type the entire expression similar to my >> earlier reply, into the textbox. >> >> Regards >> Steve >> >> >> John Eget wrote: >>> Steve >>> >>> You have the need correctly, I was trying to utilize the Conditional >>> Format pulldown so that future changes could be made by other >>> individuals. >>> I am not sure where the expression would go at the moment. Will try > as >>> soon as I get to work within a few hours >>> Thank you so much for the response >>> > > > From miscellany at mvps.org Fri Sep 7 18:08:37 2007 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 08 Sep 2007 11:08:37 +1200 Subject: [AccessD] Transactions In-Reply-To: References: <46E0859B.4090705@mvps.org> <46E092B0.5060406@mvps.org> Message-ID: <46E1D9F5.6070900@mvps.org> Oh well, if it was that unremarkable... ;-) Just in case you do manage to dredge it up, I would still find it interesting. Thanks. Regards Steve Charlotte Foust wrote: > Good grief, I don't even recall where it was published ... Access/SQL > Advisor I think. Susan, do you remember? > From adtp at airtelbroadband.in Fri Sep 7 14:21:19 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 8 Sep 2007 00:51:19 +0530 Subject: [AccessD] Transactions References: Message-ID: <00c501c7f184$9bda2390$0d57a27a@personalec1122> Evidently, for an access application, where all users have to be able to selectively read/write/edit the source table, mere dependence upon user level security can not suffice. It becomes virtually redundant as table level permissions for all users look alike. Dynamic creation of varying number of new tables with different permissions does not afford a practicable alternative. In such a situation (requirements outlined in my previous post, in the context of sample db named NotesHierarchical), the optimum solution involves enforcement of rules at the interface level. Simultaneously, all possible safeguards should be incorporated for preventing direct user access to tables. Though not completely proof against some one with malafide intentions having necessary skill, it should take care of normal users. A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Friday, September 07, 2007 20:29 Subject: Re: [AccessD] Transactions It is possible, but not feasible. User level security only goes to table level, so to do what you want you would need to create new tables for the records you want protected with different permissions. You can create tables, and set their permissions on the fly, but honestly, with that level of security, it makes more sense to go with a more robust security system. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 9:02 AM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Transactions Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- From shamil at users.mns.ru Sat Sep 8 06:39:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 15:39:37 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <000001c7f20d$07906a30$6401a8c0@nant> <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From shamil at users.mns.ru Sat Sep 8 07:29:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 16:29:48 +0400 Subject: [AccessD] Making VB.NET/C# program needs only.NET Framework installed - Was: RE: Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <000401c7f213$f2047fb0$6401a8c0@nant> Max, Making a VB.NET or C# program minimally needs only a .NET Framework installed - here is what you can do if you have .NET Framework 2.0 installed (I assume you MS Windows system directory is C:\Windows): 1. Use notepad.exe or any other text editor to prepare this VB.Net source code: Module Test Sub Main() Console.WriteLine("Hello, World!") Console.WriteLine("Press any key to continue...") Console.ReadKey() End Sub End Module 2. Make a batch file - let's call it test_vb_net.bat, having this line (just one line - watch line wraps, which may happen in this message): C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb HelloWorld.exe 3. Run the batch file and you'll get the following output (I assume you have your source code and the batch file stored in e:\temp\SAMPLE): E:\Temp\SAMPLE>C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb Microsoft (R) Visual Basic Compiler version 8.0.50727.42 for Microsoft (R) .NET Framework version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. E:\Temp\SAMPLE>HelloWorld.exe Hello, World! Press any key to continue... That's it - you have your VB.NET program compiled and run OK. And with .NET Framework installed you have all its power at your hands - no any limitations of functionality - Visual Studio and .NET Framework SDK just give you more development productivity tools but a real professional needs just a text editor and a compiler, right ? :) (Just kidding of course - the more productivity tools a professional have the better of course but sometimes it's needed to work without them...) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From shamil at users.mns.ru Sat Sep 8 07:46:49 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 16:46:49 +0400 Subject: [AccessD] Entering ASP.NET "world" is easy but this is a huge world ... Was: RE: Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <001101c7f216$532d52b0$6401a8c0@nant> <<< will I be able to make my databases available on-line without needing ASP etc. >>> Max, I assume that your question is: "I wanted to use .NET Framework to make my databases available online but I do not want to use ASP.NET?" - if that is your question then the answer is that the quickest way to make your databases available online via Web forms is *to use ASP.NET*, which in turn uses .NET Framework. It's easy to enter ASP.NET "world" (see simple sample below) but to make truly advanced scalable ASP.NET applications will need quite some efforts to master the ASP.NET development skills and to develop these ASP.NET applications.... Another way to make your databases available online is to use Web Services. I will talk about that Web Services subject in another message if you find this one helpful. Below is a simple Asp.NET form, which uses Shippers table from testDb.mdb database. This ASP.Net form is defined in two files: 1. sample3.aspx - web form itself 2. sample3.aspx.vb - web form's so called "code behind", which is almost empty for this sample but which can have as advanced code as one wanted. You can combine both files into one but from many points of view it's much better to keep them separated. Here is how this sample form looks and works: http://shamils-4.hosting.parking.ru/Sample3.aspx - nothing special of course - I just presented the structure of ASP.NET form as it usually looks: === sample3.aspx === <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Sample3.aspx.vb" Inherits="Sample3" %> Untitled Page
============================== ===== sample3.aspx.vb ======== Partial Class Sample3 Inherits System.Web.UI.Page End Class ============================== -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From dwaters at usinternet.com Sat Sep 8 08:07:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 8 Sep 2007 08:07:58 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f20d$07906a30$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000001c7f20d$07906a30$6401a8c0@nant> Message-ID: <000d01c7f219$475119b0$0200a8c0@danwaters> Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:07:27 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:07:27 +0100 Subject: [AccessD] Making VB.NET/C# program needs only.NET Frameworkinstalled - Was: RE: Access to VB.Net In-Reply-To: <000401c7f213$f2047fb0$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000401c7f213$f2047fb0$6401a8c0@nant> Message-ID: <000301c7f23a$bcac4560$8119fea9@LTVM> Hi Shamil, Yes, all that works ok at this end. Max Still reading the other two emails -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 1:30 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Making VB.NET/C# program needs only.NET Frameworkinstalled - Was: RE: Access to VB.Net Max, Making a VB.NET or C# program minimally needs only a .NET Framework installed - here is what you can do if you have .NET Framework 2.0 installed (I assume you MS Windows system directory is C:\Windows): 1. Use notepad.exe or any other text editor to prepare this VB.Net source code: Module Test Sub Main() Console.WriteLine("Hello, World!") Console.WriteLine("Press any key to continue...") Console.ReadKey() End Sub End Module 2. Make a batch file - let's call it test_vb_net.bat, having this line (just one line - watch line wraps, which may happen in this message): C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb HelloWorld.exe 3. Run the batch file and you'll get the following output (I assume you have your source code and the batch file stored in e:\temp\SAMPLE): E:\Temp\SAMPLE>C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb Microsoft (R) Visual Basic Compiler version 8.0.50727.42 for Microsoft (R) .NET Framework version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. E:\Temp\SAMPLE>HelloWorld.exe Hello, World! Press any key to continue... That's it - you have your VB.NET program compiled and run OK. And with .NET Framework installed you have all its power at your hands - no any limitations of functionality - Visual Studio and .NET Framework SDK just give you more development productivity tools but a real professional needs just a text editor and a compiler, right ? :) (Just kidding of course - the more productivity tools a professional have the better of course but sometimes it's needed to work without them...) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:27:00 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:27:00 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <007901c7f17a$98fcd8c0$6c7aa8c0@M90> References: <003301c7f177$f690b770$8119fea9@LTVM> <007901c7f17a$98fcd8c0$6c7aa8c0@M90> Message-ID: <000501c7f23d$77a88c50$8119fea9@LTVM> Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <000601c7f23d$c2193ff0$8119fea9@LTVM> Ok, will do Gustav and I will sign up to VB List too. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 7:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Hi Max > All I want is the VB.Net stuff .. I like that statement. Look for the free Visual Studio 2005 Express editions. One is with "Visual Basic" (sort of). Also, a VS2008 beta is out for free download. And don't forget to sign up to our VB list! /gustav >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:34:27 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:34:27 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f20d$07906a30$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000001c7f20d$07906a30$6401a8c0@nant> Message-ID: <000701c7f23e$81e06750$8119fea9@LTVM> Hi Shamil This link you provided took me into a LONG reading excursion which was very useful. http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Quote from Wikepedia.. Like all .NET languages, programs written in VB.NET require the .NET framework to execute UnQuote Does this mean/infer that .NET framework is present/exists on all hosting platforms for web apps. What if I want to host my own vb.net app on my own server- do I have to have .NET framework running on that Server and if so, presumably I tell the Web Server software to recognise it (I use Abyss X2 which appears to have this facility). If I want it to run on a Hosted Server, can I assume that the ISP will be able to run such an app? Or is it something that I have to expressly ask for (just trying to get a feel for how widely it is implemented; ie. I know that ASP, PERL, etc is widely supported). Reading the other links does seem to indicate that VB will be deprectated (although they don't say so directly) but in the longer term and not the shorter term, so from that point of view, staying with VB/VBA is ok for some time to come. But these (VB) products do not produce web-enabled apps - which is, of course, where .net come in. So, If I were to go with say VB2008 Beta then it would mean that I did not have a suitable platform to rapid/ease of development and would be left struggling a bit. If this is correct then it makes sense to obtain the Visual Studio 2005 with the current vb.net support (I don't think I will be anywhere near to needing the extra enhancements of 2008 beta for some time to come) and Charlottes statement "Learning on a beta with no prior experience in the language is doing the hard way IMO." certainly makes sense to me. I should say that the only reason I want to avoid ASP is purely because it is yet another learning curve and for no other reason. One thing at a time will do for me. As we say "slowly slowly catchee monkey". When I have mastered VB.Net (say a weekend or two ) then I will have another think. Thanks for all the input and advice received and a big thanks Shamil for taking all that time to give me such a good insight. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Sat Sep 8 13:02:32 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Sat, 8 Sep 2007 13:02:32 -0500 Subject: [AccessD] Database Patent References: Message-ID: All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 13:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 19:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <000801c7f246$236b3710$8119fea9@LTVM> Thanks Arthur, I think, given my need of a supporting platform that I will be going the VS2005 route, but it is nice to know that this is available and I will download it "just in case". Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 7:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 13:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 19:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <000901c7f246$24aabbf0$8119fea9@LTVM> Thanks Charlotte, That certainly makes sense to me. I have decided to go the VS2005 route. Thanks for the input. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 7:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net Learning on a beta with no prior experience in the language is doing the hard way IMO. Charlotte Foust isors.com From jwcolby at colbyconsulting.com Sat Sep 8 17:36:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 8 Sep 2007 18:36:36 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000501c7f23d$77a88c50$8119fea9@LTVM> Message-ID: <000601c7f268$b82b8950$6c7aa8c0@M90> You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sat Sep 8 17:54:22 2007 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 8 Sep 2007 15:54:22 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <000601c7f268$b82b8950$6c7aa8c0@M90> References: <000501c7f23d$77a88c50$8119fea9@LTVM> <000601c7f268$b82b8950$6c7aa8c0@M90> Message-ID: <001601c7f26b$34034340$6401a8c0@ACER2G> It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Sep 9 19:46:46 2007 From: darrend at nimble.com.au (dd) Date: Mon, 10 Sep 2007 10:46:46 +1000 Subject: [AccessD] A2K:Reading PDF In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: <200709100046.l8A0kgrV025567@databaseadvisors.com> Many thanks to all who replied I have since been told this was a once off - won't be done each month as anticipated So I edited each of the 70 PDFs by hand - took about half an hour Thanks for the links and the suggestions Darren -----Original Message----- From: Darren D [mailto:darren at activebilling.com.au] Sent: Thursday, 6 September 2007 7:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K:Reading PDF Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 10 02:30:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 00:30:31 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <000701c7f23e$81e06750$8119fea9@LTVM> Message-ID: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim From phpons at gmail.com Mon Sep 10 02:39:45 2007 From: phpons at gmail.com (philippe pons) Date: Mon, 10 Sep 2007 09:39:45 +0200 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> References: <000701c7f23e$81e06750$8119fea9@LTVM> <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: <57144ced0709100039n7345951er47d2a908785ced30@mail.gmail.com> Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for each > day > in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and one > item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Mon Sep 10 03:35:23 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 10 Sep 2007 9:35:23 +0100 Subject: [AccessD] Crosstab query Message-ID: <20070910083526.6B5892CAC94@smtp.nildram.co.uk> Hi Jim What I've done on occasions is have a dummy table with, in your case, just all of the day numbers or dates and Left Join from your data to that. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Crosstab query Date: 10/09/07 07:29 Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- 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 accessd at shaw.ca Mon Sep 10 06:13:54 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 04:13:54 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <20070910083526.6B5892CAC94@smtp.nildram.co.uk> Message-ID: <5BC1C65D9804470685E9449334122669@creativesystemdesigns.com> Thanks Andy; that looks like it will work and now I have 2 excellent methods. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, September 10, 2007 1:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim What I've done on occasions is have a dummy table with, in your case, just all of the day numbers or dates and Left Join from your data to that. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Crosstab query Date: 10/09/07 07:29 Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- 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 accessd at shaw.ca Mon Sep 10 06:12:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 04:12:30 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <57144ced0709100039n7345951er47d2a908785ced30@mail.gmail.com> Message-ID: <2B875ED6350F4226990F22512A6FAA5C@creativesystemdesigns.com> Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for each > day > in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and one > item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 jwcolby at colbyconsulting.com Mon Sep 10 07:40:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 08:40:10 -0400 Subject: [AccessD] Crosstab query In-Reply-To: <2B875ED6350F4226990F22512A6FAA5C@creativesystemdesigns.com> Message-ID: <004701c7f3a7$ba77cd50$6c7aa8c0@M90> This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for > each day in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and > one item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 markamatte at hotmail.com Mon Sep 10 09:07:07 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 10 Sep 2007 14:07:07 +0000 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: You can define what fields you want in the Query Properties "Column Headings". Good luck, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Crosstab query >Date: Mon, 10 Sep 2007 00:30:31 -0700 > >Hi All: > >When creating a crosstab query is there a way to force a column for each >day >in a month even though there is no data for that date? > >I have experimented with adding a dummy record with name of 'zzz' and one >item for each date of the particular month. It is functional but kludgy. >There must be a better way. > >TIA >Jim > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From jimdettman at verizon.net Mon Sep 10 09:50:16 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 10 Sep 2007 10:50:16 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <001601c7f26b$34034340$6401a8c0@ACER2G> References: <000501c7f23d$77a88c50$8119fea9@LTVM> <000601c7f268$b82b8950$6c7aa8c0@M90> <001601c7f26b$34034340$6401a8c0@ACER2G> Message-ID: <003401c7f3b9$e6e1b740$8abea8c0@XPS> Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 10 10:27:11 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 10:27:11 -0500 Subject: [AccessD] Transactions In-Reply-To: <000001c7f18f$ca26b460$8119fea9@LTVM> Message-ID: http://www.marlow.com/AlwaysOnTop2000.zip I'll leave that there for a few days. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Sep 10 10:32:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 10:32:38 -0500 Subject: [AccessD] Transactions In-Reply-To: <00c501c7f184$9bda2390$0d57a27a@personalec1122> Message-ID: Oh, nothing should truly be dependant on user level security. It is not complex enough to handle more then the basics in regards to data within a table. The main point I have been trying to make in this thread is that the GUI only method of protecting data integrity is just far too easily thwarted. I think part of the debate is that I have a different level of 'normal user'. I have several users where I work who are at or beyond the level necessary to link tables from one database into another. User level security isn't impregnable either, no security system is. However, if properly implemented, the data within an .mdb can be protected against normal use (including what I consider the 'power users' here). I know how to defeat User Level Security, but it's not as simple as linking a table. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Evidently, for an access application, where all users have to be able to selectively read/write/edit the source table, mere dependence upon user level security can not suffice. It becomes virtually redundant as table level permissions for all users look alike. Dynamic creation of varying number of new tables with different permissions does not afford a practicable alternative. In such a situation (requirements outlined in my previous post, in the context of sample db named NotesHierarchical), the optimum solution involves enforcement of rules at the interface level. Simultaneously, all possible safeguards should be incorporated for preventing direct user access to tables. Though not completely proof against some one with malafide intentions having necessary skill, it should take care of normal users. A.D.Tejpal -------------- The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Sep 10 10:44:30 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:44:30 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 10:46:04 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:46:04 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <001601c7f26b$34034340$6401a8c0@ACER2G> References: <000501c7f23d$77a88c50$8119fea9@LTVM><000601c7f268$b82b8950$6c7aa8c0@M90> <001601c7f26b$34034340$6401a8c0@ACER2G> Message-ID: You quit too soon, then, Joe. I program full-time in .Net and I have a terrible time going back to VBA because I keep trying to do things I just can't do in that language! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 10:47:38 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:47:38 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> References: <000701c7f23e$81e06750$8119fea9@LTVM> <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: Just set the column headings for the query, i.e., 1,2,3,4 ...31. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 10, 2007 12:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Crosstab query Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 10:50:46 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 10:50:46 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <003401c7f3b9$e6e1b740$8abea8c0@XPS> References: <000501c7f23d$77a88c50$8119fea9@LTVM><000601c7f268$b82b8950$6c7aa8c0@M90><001601c7f26b$34034340$6401a8c0@ACER2G> <003401c7f3b9$e6e1b740$8abea8c0@XPS> Message-ID: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 11:05:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 12:05:48 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM From jwcolby at colbyconsulting.com Mon Sep 10 11:18:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 12:18:13 -0400 Subject: [AccessD] Database Patent In-Reply-To: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <001701c7f3c6$310bf590$6c7aa8c0@M90> >I think a patent is only as good as the lawyers you can afford. Or can't afford as the case may be. See the lawyer's reply. ;-) John 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: Monday, September 10, 2007 12:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 10 11:18:44 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 12:18:44 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> Message-ID: <001801c7f3c6$4302f550$6c7aa8c0@M90> Interesting. Thanks for sharing 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 Dan Waters Sent: Monday, September 10, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 11:24:02 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 12:24:02 -0400 Subject: [AccessD] Database Patent In-Reply-To: <001701c7f3c6$310bf590$6c7aa8c0@M90> References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <001701c7f3c6$310bf590$6c7aa8c0@M90> Message-ID: <002501c7f3c7$00cc50e0$4b3a8343@SusanOne> Exactly. ;) Susan H. >I think a patent is only as good as the lawyers you can afford. Or can't afford as the case may be. See the lawyer's reply. ;-) From dwaters at usinternet.com Mon Sep 10 11:39:59 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 11:39:59 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <001801c7f3c6$4302f550$6c7aa8c0@M90> References: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> <001801c7f3c6$4302f550$6c7aa8c0@M90> Message-ID: <001901c7f3c9$3c29fff0$0200a8c0@danwaters> No problem. It's good to put some Microsoft ammunition in your naysayer gun! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Interesting. Thanks for sharing 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 Dan Waters Sent: Monday, September 10, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 10 12:21:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 10 Sep 2007 21:21:06 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000d01c7f219$475119b0$0200a8c0@danwaters> Message-ID: <000001c7f3ce$f9db4d60$6401a8c0@nant> <<< Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc >>> Dan, I think that it would be incorrect to compare .NET Framework's WinForms or ASP.NET development vs. MS Access development in such context. What I can say from my experience - Visual Studio's .NET Framework-based WinForms/ASP.Net user interface development is as RAD as MS Access user interface development (or even more RAD) although VS and .NET Framework are more stable and powerful and modern and getting new and new RAD development features with every release... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 08, 2007 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 10 13:10:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 11:10:20 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <004701c7f3a7$ba77cd50$6c7aa8c0@M90> Message-ID: Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for > each day in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and > one item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 Sep 10 13:22:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 13:22:50 -0500 Subject: [AccessD] Database Patent In-Reply-To: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Mon Sep 10 13:26:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 14:26:04 -0400 Subject: [AccessD] Crosstab query In-Reply-To: Message-ID: <001b01c7f3d8$0d8d2d70$6c7aa8c0@M90> John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From jwcolby at colbyconsulting.com Mon Sep 10 13:26:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 14:26:04 -0400 Subject: [AccessD] Crosstab query In-Reply-To: Message-ID: <001a01c7f3d8$0d1872a0$6c7aa8c0@M90> No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From DWUTKA at Marlow.com Mon Sep 10 13:25:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 13:25:31 -0500 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: I concur. Drew (Though now we have another Dallas area member, maybe we'll have a conference in Texas yet!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 10:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Mon Sep 10 13:54:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 14:54:52 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. From jack.stone at solidcounsel.com Mon Sep 10 13:39:36 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 10 Sep 2007 13:39:36 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 14:25:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 14:25:58 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f3ce$f9db4d60$6401a8c0@nant> References: <000d01c7f219$475119b0$0200a8c0@danwaters> <000001c7f3ce$f9db4d60$6401a8c0@nant> Message-ID: <002001c7f3e0$6add9980$0200a8c0@danwaters> Well, I am certainly curious to learn something new. Perhaps for the first time I'll take a class to get started! Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, September 10, 2007 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc >>> Dan, I think that it would be incorrect to compare .NET Framework's WinForms or ASP.NET development vs. MS Access development in such context. What I can say from my experience - Visual Studio's .NET Framework-based WinForms/ASP.Net user interface development is as RAD as MS Access user interface development (or even more RAD) although VS and .NET Framework are more stable and powerful and modern and getting new and new RAD development features with every release... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 08, 2007 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 10 14:30:21 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 10 Sep 2007 14:30:21 -0500 Subject: [AccessD] Output to snp file Message-ID: I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 cfoust at infostatsystems.com Mon Sep 10 14:42:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 12:42:23 -0700 Subject: [AccessD] Output to snp file In-Reply-To: References: Message-ID: Unfortunately, I don't think you can do it that way. If I remember correctly, the send to option uses default settings, not whatever you've specified in the report. You would have to create the snapshot from the report and then attach it to an email to get what you want. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 10, 2007 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Output to snp file I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 cfoust at infostatsystems.com Mon Sep 10 14:46:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 12:46:44 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack From prosoft6 at hotmail.com Mon Sep 10 14:58:09 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 10 Sep 2007 15:58:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: As far as patents go, I don't' know a thing. However, copyright is an important part of my business. I actually have a copyright attorney who helped me successfully sue a competitor who took some of my code and used it for their own purposes. Copyright is very important when you are in business for yourself. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Sep 10 15:22:39 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Sep 2007 16:22:39 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> I'll add a tidbit to this thread, which may apply solely to Canadian developers, but anyway: when a freelancer such as myself contracts with a corporation to produce software, unless the contract specifically states that I am comissioned to write software that will be owned by said corporation, the courts deem that the software is the freelancer's. This came up recently, because I just completed an app for stable owners ( i.e. riding lessons etc.). It was by no means a complicated app, but my investigations revealed that there is almost no competition, and the person who hired me already owns the competitive product, and hates it so much that she hired me to replace it. I don't think I can grow wealthy from this one app, but there are quite a few riding stables around, and the fact that I've got a disgruntled user's perspective on the competition, led me to think about the possibilities. So I pointed out to her the existing Canadian law, but I'm not a mean person, so I even volunteered to give her a slice of whatever action ensues. She just said, "Go for it, and give me a free copy of each new version." "Deal," said I. Other than researching the competition, I haven't done anything about scouting new customers. But I do know horses and I worked at a riding stable for eight years when I was a teenager, so I know what is required from the software. To be frank, I don't think the competition did. What they wrote sort of works, but makes many things much more difficult than they ought to be, and reflects no sense of what you would typically do most often. My software does. It's not rocket science, for sure. In fact, it's one of the easiest apps I've ever written. It would be splendidly ironic if it made more money for me than some of the really complex stuff I've written. But at the end of the day, you must remember Fuller's Fifth Law: money never arrives at an inopportune moment. A. From DWUTKA at Marlow.com Mon Sep 10 15:24:45 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 15:24:45 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Mon Sep 10 15:32:34 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 16:32:34 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM From DWUTKA at Marlow.com Mon Sep 10 16:07:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 16:07:56 -0500 Subject: [AccessD] Database Patent In-Reply-To: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Drawbridge.Jack at ic.gc.ca Mon Sep 10 16:23:27 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: SBMS) Date: Mon, 10 Sep 2007 17:23:27 -0400 Subject: [AccessD] Exporting Memo fields to Excel A2003 In-Reply-To: Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A113A70@MSG-MB3.icent.ic.gc.ca> Exporting Access2003 query containing memo fields >255char to excel2003. This worked fine, following the 2003 Help, in late Aug. I am running a slightly modified query (more fields) and the export is acting in the pre2003 way -Truncating memo fields. I have tried very basic query just memo fields where I know the length is >255 and this is being truncated also. Have shutdown, rebooted; tried compact and repair. I tried exporting to rtf -- that is working - the memo fields are exported full length. Has anyone got some ideas/experience on this? jack From robert at webedb.com Mon Sep 10 16:19:05 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 10 Sep 2007 16:19:05 -0500 Subject: [AccessD] Texas Conference In-Reply-To: References: Message-ID: <200709102124.l8ALOn8v027645@databaseadvisors.com> And I am outside of Houston. At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 13:25:31 -0500 >From: "Drew Wutka" >Subject: Re: [AccessD] Database Patent >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I concur. > >Drew (Though now we have another Dallas area member, maybe we'll have a >conference in Texas yet!) From ssharkins at gmail.com Mon Sep 10 16:26:05 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 17:26:05 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: <004c01c7f3f1$3318ce00$4b3a8343@SusanOne> That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. ========All "code" is common -- solutions aren't. Susan H. From fuller.artful at gmail.com Mon Sep 10 16:27:07 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Sep 2007 17:27:07 -0400 Subject: [AccessD] Edmonton users? Message-ID: <29f585dd0709101427j6c147b0h143d098f0f931194@mail.gmail.com> Are there any members in Edmonton? I'm teaching a course there next week at the U of A (Maintaining SQL 2005 Databases), and it would be fun to meet up with any listers from that part of the universe. Arthur From robert at webedb.com Mon Sep 10 16:27:49 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 10 Sep 2007 16:27:49 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709102129.l8ALTkdM029841@databaseadvisors.com> I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the first >time I'll take a class to get started! > >Thanks, >Dan From JHewson at karta.com Mon Sep 10 16:37:45 2007 From: JHewson at karta.com (Jim Hewson) Date: Mon, 10 Sep 2007 16:37:45 -0500 Subject: [AccessD] Texas Conference In-Reply-To: <200709102124.l8ALOn8v027645@databaseadvisors.com> References: <200709102124.l8ALOn8v027645@databaseadvisors.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F019726@karta-exc-int.Karta.com> I am in San Antonio. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Texas Conference And I am outside of Houston. At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 13:25:31 -0500 >From: "Drew Wutka" >Subject: Re: [AccessD] Database Patent >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I concur. > >Drew (Though now we have another Dallas area member, maybe we'll have a >conference in Texas yet!) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 16:41:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 14:41:10 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709102129.l8ALTkdM029841@databaseadvisors.com> References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: Robert, I have to say that tools like Codesmith are very useful, but they're more useful if you understand what they're writing. They can also be very stupid (same like computers, natch) so you need to be able to modify the code intelligently, since one size rarely fits all, regardless of what the code writer thinks. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 2:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the >first time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 17:11:03 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 15:11:03 -0700 Subject: [AccessD] Jet version sql error In-Reply-To: Message-ID: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug From jack.stone at solidcounsel.com Mon Sep 10 17:30:03 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 10 Sep 2007 17:30:03 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: The fair use exception to copyright owner's rights allows for that. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tdd-inc at shaw.ca Mon Sep 10 17:49:57 2007 From: tdd-inc at shaw.ca (Philip Scyner) Date: Mon, 10 Sep 2007 15:49:57 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Sep 10 17:55:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 15:55:45 -0700 Subject: [AccessD] Database Patent In-Reply-To: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Message-ID: If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 18:03:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 18:03:01 -0500 Subject: [AccessD] Jet version sql error In-Reply-To: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Message-ID: <002f01c7f3fe$bcd92a60$0200a8c0@danwaters> >From off the top of my head, I would experiment with: 1) dim rst = Recordset OR dim rst = DAO.Recordset 2) try different recordset types Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 18:03:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 18:03:01 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709102129.l8ALTkdM029841@databaseadvisors.com> References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: <003001c7f3fe$bd5670b0$0200a8c0@danwaters> Thanks Robert, I'll keep this in my vb.net stack. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 4:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the first >time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 18:24:12 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 16:24:12 -0700 Subject: [AccessD] Jet version sql error In-Reply-To: <002f01c7f3fe$bcd92a60$0200a8c0@danwaters> Message-ID: <005a01c7f401$b24cc9f0$0200a8c0@murphy3234aaf1> Hi Dan, The variables are dimensioned, I just didn't copy that far up the routine. ADO is not referenced or used anywhere in this app so I did not define they type of recordset. All other code using recordsets seems to run fine, except for this one line. Thanks for the thoughts. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 10, 2007 4:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error >From off the top of my head, I would experiment with: 1) dim rst = Recordset OR dim rst = DAO.Recordset 2) try different recordset types Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Mon Sep 10 18:57:14 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 10 Sep 2007 16:57:14 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Message-ID: <000001c7f406$4fb17700$6400a8c0@dsunit1> That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 19:04:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 17:04:19 -0700 Subject: [AccessD] OT-Database Patent In-Reply-To: <000001c7f406$4fb17700$6400a8c0@dsunit1> References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> <000001c7f406$4fb17700$6400a8c0@dsunit1> Message-ID: I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 10 19:19:24 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 11 Sep 2007 10:19:24 +1000 Subject: [AccessD] Access to VB.Net References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D3B@ddi-01.DDI.local> I like .netTiers a lot. However it is tied to Codesmith and SQL 2K+, C#. I've found C# pretty easy to get the hang of. VS2005 really makes it pretty easy to write any language IMO. The linking of snippets with intellisense is just great, class diagrams, easy as... I had to whip up a quick UI for an Access BE. Getting the data, data binding working is a snap using the builtin controls and data components. I was surprised just how quick and easy it was. cheers Michael M I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the >first time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Mon Sep 10 19:31:42 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 10 Sep 2007 17:31:42 -0700 Subject: [AccessD] OT-Database Patent In-Reply-To: References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM><000001c7f406$4fb17700$6400a8c0@dsunit1> Message-ID: <000001c7f40b$20cad5d0$6400a8c0@dsunit1> Just a password...so far...officially... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 5:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-Database Patent I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 19:34:37 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 20:34:37 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: <003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. From jwcolby at colbyconsulting.com Mon Sep 10 19:35:14 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 20:35:14 -0400 Subject: [AccessD] OT-Database Patent In-Reply-To: Message-ID: <000301c7f40b$9f3ea950$6c7aa8c0@M90> ROTFL. But is it intelligible? John 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: Monday, September 10, 2007 8:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-Database Patent I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 19:41:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 20:41:11 -0400 Subject: [AccessD] OT-Database Patent In-Reply-To: <000301c7f40b$9f3ea950$6c7aa8c0@M90> References: <000301c7f40b$9f3ea950$6c7aa8c0@M90> Message-ID: <004001c7f40c$74768de0$4b3a8343@SusanOne> And the Colby goes to... ;) Susan H. ROTFL. But is it intelligible? I thought we HAD!! LOL That was tooooooo funny, Charlotte....we could turn Colby into an entire language! From michael at ddisolutions.com.au Mon Sep 10 19:52:33 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 11 Sep 2007 10:52:33 +1000 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> <003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D3D@ddi-01.DDI.local> Indeed. Makes me laugh when I find code made available on the net that has copyright ME written in the header, especially when the code is something like Declare GetWindowHWND blah blah I = GetWindowHWND cheers Michael M But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 23:13:04 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 21:13:04 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Message-ID: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst From darren at activebilling.com.au Mon Sep 10 23:37:39 2007 From: darren at activebilling.com.au (Darren D) Date: Tue, 11 Sep 2007 14:37:39 +1000 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <200709110437.l8B4bVNC028813@databaseadvisors.com> Hi Doug A way out guess here - what happens when you change fldCountry = 'United States';" to fldCountry = ""United States"" ;" Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, 11 September 2007 2:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtejpal at gmail.com Tue Sep 11 00:31:52 2007 From: adtejpal at gmail.com (A.D.TEJPAL) Date: Tue, 11 Sep 2007 11:01:52 +0530 Subject: [AccessD] Crosstab query References: <001a01c7f3d8$0d1872a0$6c7aa8c0@M90> Message-ID: <00d601c7f435$b2dde8c0$c957a27a@personalec1122> Jim, As the number of days for various one month periods are not identical, left join method using a query filtered for the spell in question, as suggested by Andy, should be preferred. My sample db named MotelBooking demonstrates this approach. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. On the main switchboard, second command button captioned "Booking Status (Style 2) - Dates Across Columns", is pertinent to this case. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, September 10, 2007 23:56 Subject: Re: [AccessD] Crosstab query No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From max.wanadoo at gmail.com Tue Sep 11 02:57:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 08:57:22 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <002801c7f449$6344c630$8119fea9@LTVM> Hi Doug, To me this code does not make sense to me, but I understand that is is not the complete code, so my comments below may be meaningless. 1. Presumably GetUserLocaleInfo is a function that returns a string (and not a null) 2. You haven't tested to see if if sCountrySettings has a value before using it. 3. What does tFM.sCountry mean. If it is a field in a table then it really should use the pling (!). If it is a property setting in a Class then where was the class defined? The "." is really for a property. (I do understand that some people use them for both, but the pling makes it clear what the interpretation is to be. 4. You have told the recordset to move to the first record, but you haven't tested to see if the recordset has any content. If it is empty, then that would generate an error. Ie, use "If not rs.eof then...." 5. Are you sure that the returned value is actually what you type in. If there is an embedded single quote in the returned value then you can get this error. 6. Are your Reference correctly installed and/or have you recently installed an update on your system. Does the function work for other values other than the one you quoted? You could try removing references and then putting them back in again - do any show as "missing". Hope some of this may help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 5:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 11 04:57:03 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Sep 2007 05:57:03 -0400 Subject: [AccessD] Redesign tools Message-ID: <000901c7f45a$1b5185f0$6c7aa8c0@M90> I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool to do this. John W. Colby Colby Consulting www.ColbyConsulting.com From adtejpal at gmail.com Tue Sep 11 06:59:08 2007 From: adtejpal at gmail.com (A.D.TEJPAL) Date: Tue, 11 Sep 2007 17:29:08 +0530 Subject: [AccessD] Exporting Memo fields to Excel A2003 References: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A113A70@MSG-MB3.icent.ic.gc.ca> Message-ID: <018101c7f46b$427a5560$4c58a27a@personalec1122> Jack, It is observed that the phenomenon of truncation of memo field content to 255 characters, while exporting from Access to Excel, is not uniform for different methods used for export. The position is summarized below: 1 - Methods permitting successful export of memo field content larger than 255 characters: (a) Manual export of query via File > Export. (b) Programmatic export of query using DoCmd.TransferSpreadsheet 2 - Methods resulting in truncation of exported content of memo field to 255 characters only: (a) Manual export of query via Tools > OfficeLinks > Excel (b) Manual export of form via File > Export (c) Manual export of form via Tools > OfficeLinks > Excel (d) Programmatic export of query using DoCmd.OutputTo (e) Programmatic export of form using DoCmd.OutputTo Conclusions: If memo fields are involved, export from Access to Excel has to be confined to methods listed at 1 (a) & (b) above, in order to prevent truncation to 255 characters. Note - Tests using Excel's CopyFromRecordset method have not yet been conducted. Prima-facie, this method is also expected to be able to handle the memo fields without truncation. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Drawbridge, Jack: SBMS To: Access Developers discussion and problem solving Sent: Tuesday, September 11, 2007 02:53 Subject: Re: [AccessD] Exporting Memo fields to Excel A2003 Exporting Access2003 query containing memo fields >255char to excel2003. This worked fine, following the 2003 Help, in late Aug. I am running a slightly modified query (more fields) and the export is acting in the pre2003 way -Truncating memo fields. I have tried very basic query just memo fields where I know the length is >255 and this is being truncated also. Have shutdown, rebooted; tried compact and repair. I tried exporting to rtf -- that is working - the memo fields are exported full length. Has anyone got some ideas/experience on this? jack From jwelz at hotmail.com Tue Sep 11 07:47:59 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Tue, 11 Sep 2007 06:47:59 -0600 Subject: [AccessD] Edmonton users? In-Reply-To: <29f585dd0709101427j6c147b0h143d098f0f931194@mail.gmail.com> Message-ID: Arthur: I'm in Edmonton this week except Fort McMurray on Friday, various locations in Saskatchewan next week. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Arthur Fuller" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Edmonton users? >Date: Mon, 10 Sep 2007 17:27:07 -0400 >MIME-Version: 1.0 >Received: from databaseadvisors.com ([209.135.140.44]) by >bay0-mc7-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, >10 Sep 2007 14:29:25 -0700 >Received: from databaseadvisors.com >(IDENT:91ot4lCHv1t/TFGQTX96IsekGWVrCaOH at databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.13.8/8.13.8) with ESMTP id >l8ALR6b2028897;Mon, 10 Sep 2007 16:27:13 -0500 >Received: from nf-out-0910.google.com (nf-out-0910.google.com >[64.233.182.187])by databaseadvisors.com (8.13.8/8.13.8) with ESMTP id >l8ALR1V3028458for ; Mon, 10 Sep 2007 16:27:04 >-0500 >Received: by nf-out-0910.google.com with SMTP id g16so903740nfdfor >;Mon, 10 Sep 2007 14:27:08 -0700 (PDT) >Received: by 10.86.57.9 with SMTP id f9mr4028390fga.1189459628013;Mon, 10 >Sep 2007 14:27:08 -0700 (PDT) >Received: by 10.86.84.15 with HTTP; Mon, 10 Sep 2007 14:27:07 -0700 (PDT) >X-Message-Delivery: Vj0zLjQuMDt1cz0wO2k9MDtsPTA7YT0w >X-Message-Info: >uX4bQusXWiLW2dL1AmJQCKKH0TsgC27DDXlje+8e7ZH4n6+ZFUdg4H9flm7v4egnj1kKKOzdhkKRq+Vxccc2bQ== >X-Content-Filtered-By: Mailman/MimeDel 2.1.7-HF >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.7-HF >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Unsubscribe: >, >List-Archive: >List-Post: >List-Help: >List-Subscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 10 Sep 2007 21:29:26.0307 (UTC) >FILETIME=[A9B29730:01C7F3F1] > >Are there any members in Edmonton? I'm teaching a course there next week at >the U of A (Maintaining SQL 2005 Databases), and it would be fun to meet up >with any listers from that part of the universe. > >Arthur >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Put Your Face In Your Space with Windows Live Spaces http://spaces.live.com/?mkt=en-ca From robert at webedb.com Tue Sep 11 08:17:11 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 08:17:11 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111323.l8BDN9ma025900@databaseadvisors.com> Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust From Gustav at cactus.dk Tue Sep 11 08:23:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 15:23:45 +0200 Subject: [AccessD] Jet version sql error Try 2 Message-ID: Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- From jack.stone at solidcounsel.com Tue Sep 11 08:57:05 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Tue, 11 Sep 2007 08:57:05 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <000f01c7f3e4$e973c540$9402a8c0@hpnotebook> Message-ID: Yes, there is a place for copyright, but my only point was that it does not generally provide as broad protection as a patent. And copyright is a lot simpler and less expensive than a patent. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 10, 2007 2:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent As far as patents go, I don't' know a thing. However, copyright is an important part of my business. I actually have a copyright attorney who helped me successfully sue a competitor who took some of my code and used it for their own purposes. Copyright is very important when you are in business for yourself. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 08:58:38 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 15:58:38 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Robert Interesting. But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? http://www.codesmithtools.com/store/pricing.aspx /gustav >>> robert at webedb.com 11-09-2007 15:17 >>> Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust From fuller.artful at gmail.com Tue Sep 11 09:12:32 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Sep 2007 10:12:32 -0400 Subject: [AccessD] Compare BEs Message-ID: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur From dwaters at usinternet.com Tue Sep 11 09:12:40 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 09:12:40 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709111323.l8BDN9ma025900@databaseadvisors.com> References: <200709111323.l8BDN9ma025900@databaseadvisors.com> Message-ID: <000f01c7f47d$d0c26a80$0200a8c0@danwaters> Robert - where are you teaching this class? Is this on-line? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 8:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 11 09:34:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 09:34:55 -0500 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> References: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <001001c7f480$ec780bb0$0200a8c0@danwaters> Yes - FMS has a tool called Total Access Detective. I haven't used it though. http://www.fmsinc.com/products/detective/index.html Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Elizabeth.J.Doering at wellsfargo.com Tue Sep 11 09:39:20 2007 From: Elizabeth.J.Doering at wellsfargo.com (Elizabeth.J.Doering at wellsfargo.com) Date: Tue, 11 Sep 2007 09:39:20 -0500 Subject: [AccessD] Compare BEs References: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: Arthur, I don't have a copy handy, but MDBDiff was a very useful one for just that need. You should be able to google up a link pretty quickly. HTH, Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Sep 11 09:45:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 07:45:13 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <002101c7f482$5c5468b0$0301a8c0@HAL9005> MDBDiff: http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDif f.html I used it in A97 - it's pretty effective. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From rockysmolin at bchacc.com Tue Sep 11 09:48:51 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 07:48:51 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <002201c7f482$de9f34d0$0301a8c0@HAL9005> Arthur: That site I sent you is flagged by McAfee site advisor as a bad site. This one is OK by them: http://www.softhypermarket.com/MDBDiff-download_17792.html Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From jack.stone at solidcounsel.com Tue Sep 11 09:50:21 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Tue, 11 Sep 2007 09:50:21 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne><003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> <59A61174B1F5B54B97FD4ADDE71E7D01289D3D@ddi-01.DDI.local> Message-ID: A downside of being an attorney is that some people may take me seriously and even consider what I say to be legal advice for which I could be held liable. So I am reluctant to say much on a forum like this when I have no idea who may be listening. But having said that, I will make a few general comments (based on US law) that I think are safe, in response to some comments made and questions posed: No matter how highly creative, novel, or distinctive they may be, individual words and "short" phrases, including "snippets of code", are not protected by copyright. Thus, in response to Susan's concerns below, no one owns the copyright to "snippets of code" since they are not copyrightable in the first place, and thus the fair use exception does not apply either. Someone said slogans are copyrightable, but under US law, like the foregoing, slogans, names, and titles are not copyrightable. However, these items may be protectable under trademark laws. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Monday, September 10, 2007 7:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Indeed. Makes me laugh when I find code made available on the net that has copyright ME written in the header, especially when the code is something like Declare GetWindowHWND blah blah I = GetWindowHWND cheers Michael M But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Sep 11 10:00:30 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 08:00:30 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <002201c7f482$de9f34d0$0301a8c0@HAL9005> Message-ID: <002301c7f484$839ddd50$0301a8c0@HAL9005> Arthur: I'm having trouble connecting to a download for mdbdiff. I can send it to you off-line if you want. I have both mdbdiff97.exe and mdbdiff2000.exe and documentation. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 11, 2007 7:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Compare BEs Arthur: That site I sent you is flagged by McAfee site advisor as a bad site. This one is OK by them: http://www.softhypermarket.com/MDBDiff-download_17792.html Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From cfoust at infostatsystems.com Tue Sep 11 10:00:14 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:00:14 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709111323.l8BDN9ma025900@databaseadvisors.com> References: <200709111323.l8BDN9ma025900@databaseadvisors.com> Message-ID: Yes, I know you don't actually modify their code, but we hand code business rules into our data entities. They can't be generated by CodeSmith because The rules differ from entity to entity, so they have to be in the abstraction layer and preserved when the class is regenerated. And I have nothing against time saving tools. I just think users need to understand exactly what that code is doing, and the best way to understand that is to write code yourself, explore the various options for doing things, and try to figure out why the tool might do it differently. I question whether the generated code is written "better", any more than a production line widget is any "better" than a hand crafted widget. It is certainly written more quickly, but my experience suggests that only means cheaper, not necessarily better. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Tue Sep 11 10:03:52 2007 From: developer at ultradnt.com (Steve Conklin) Date: Tue, 11 Sep 2007 11:03:52 -0400 Subject: [AccessD] Database Patent In-Reply-To: <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> Message-ID: <00c201c7f484$fa4b7ca0$0f64a8c0@CONKEY2505> Arthur: USA is reverse - as a contractor, client owns my code and re-sell rights (work-for-hire) unless I specify otherwise in the contract. Some I know include this in all contracts; I do also when I sense a re-sale potential. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, September 10, 2007 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I'll add a tidbit to this thread, which may apply solely to Canadian developers, but anyway: when a freelancer such as myself contracts with a corporation to produce software, unless the contract specifically states that I am comissioned to write software that will be owned by said corporation, the courts deem that the software is the freelancer's. This came up recently, because I just completed an app for stable owners ( i.e. riding lessons etc.). It was by no means a complicated app, but my investigations revealed that there is almost no competition, and the person who hired me already owns the competitive product, and hates it so much that she hired me to replace it. I don't think I can grow wealthy from this one app, but there are quite a few riding stables around, and the fact that I've got a disgruntled user's perspective on the competition, led me to think about the possibilities. So I pointed out to her the existing Canadian law, but I'm not a mean person, so I even volunteered to give her a slice of whatever action ensues. She just said, "Go for it, and give me a free copy of each new version." "Deal," said I. Other than researching the competition, I haven't done anything about scouting new customers. But I do know horses and I worked at a riding stable for eight years when I was a teenager, so I know what is required from the software. To be frank, I don't think the competition did. What they wrote sort of works, but makes many things much more difficult than they ought to be, and reflects no sense of what you would typically do most often. My software does. It's not rocket science, for sure. In fact, it's one of the easiest apps I've ever written. It would be splendidly ironic if it made more money for me than some of the really complex stuff I've written. But at the end of the day, you must remember Fuller's Fifth Law: money never arrives at an inopportune moment. A. -- 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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From cfoust at infostatsystems.com Tue Sep 11 10:03:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:03:05 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Tue Sep 11 10:19:35 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 11 Sep 2007 11:19:35 -0400 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <200709111520.l8BFK9vs032649@databaseadvisors.com> Sorry I missed this earlier, IIRC I had a similar problem and it's with the space in the field. Try putting brackets [ ] in your sql string around the variable. I know for sure it occurred with a field that contained a hyphen. For example my sql string would be select * from tablename where fieldname = 'A-B' and the string would show select * from tablename where fieldname = A, then the error. >>> "Charlotte Foust" 9/11/2007 11:03 AM >>> Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 10:29:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:29:25 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <200709111520.l8BFK9vs032649@databaseadvisors.com> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1><006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> <200709111520.l8BFK9vs032649@databaseadvisors.com> Message-ID: The square brackets are needed when dealing with field *names* with spaces or odd characters in them, but not for specifying a value in a field. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 11, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 Sorry I missed this earlier, IIRC I had a similar problem and it's with the space in the field. Try putting brackets [ ] in your sql string around the variable. I know for sure it occurred with a field that contained a hyphen. For example my sql string would be select * from tablename where fieldname = 'A-B' and the string would show select * from tablename where fieldname = A, then the error. >>> "Charlotte Foust" 9/11/2007 11:03 AM >>> >>> Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 webedb.com Tue Sep 11 10:42:02 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 10:42:02 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111548.l8BFmBii009401@databaseadvisors.com> Gustav, That is why I said in a earlier post that the cheapest version is really all you need, $99 USD. The .netTiers is free. And, to me, that is what makes Codesmith usable. Robert At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is >quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav From robert at webedb.com Tue Sep 11 10:43:54 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 10:43:54 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111548.l8BFmBYF009402@databaseadvisors.com> At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 09:12:40 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000f01c7f47d$d0c26a80$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Robert - where are you teaching this class? Is this on-line? From prosoft6 at hotmail.com Tue Sep 11 10:58:55 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Tue, 11 Sep 2007 11:58:55 -0400 Subject: [AccessD] OT:Adobe Bundled with Office In-Reply-To: References: <000001c7f18f$ca26b460$8119fea9@LTVM> Message-ID: Just to vent a little.........my company is a reseller of Dell computers, and we just ordered three systems for a customer. I cannot get MS-Office without it being coupled with Adobe, and they charge $35 for each system just for the privelage! What a pain............wish they would bundle my software with MS-Office. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions http://www.marlow.com/AlwaysOnTop2000.zip I'll leave that there for a few days. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at webedb.com Tue Sep 11 11:17:57 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 11:17:57 -0500 Subject: [AccessD] Compare BEs In-Reply-To: References: Message-ID: <200709111623.l8BGN7p0021334@databaseadvisors.com> None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDif >f.html > >I used it in A97 - it's pretty effective. > >Rocky From dwaters at usinternet.com Tue Sep 11 11:28:16 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 11:28:16 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <200709111548.l8BFmBYF009402@databaseadvisors.com> References: <200709111548.l8BFmBYF009402@databaseadvisors.com> Message-ID: <001a01c7f490$c4ae8c70$0200a8c0@danwaters> Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 09:12:40 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000f01c7f47d$d0c26a80$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Robert - where are you teaching this class? Is this on-line? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 11 11:51:08 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 09:51:08 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001a01c7f490$c4ae8c70$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com> <001a01c7f490$c4ae8c70$0200a8c0@danwaters> Message-ID: I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. From dw-murphy at cox.net Tue Sep 11 12:00:28 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:00:28 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <002801c7f449$6344c630$8119fea9@LTVM> Message-ID: <002301c7f495$416c75c0$0200a8c0@murphy3234aaf1> Hi Max, Thanks for the thoughts. I should have explained the situation a little better. Did that in my first post. The table is an application table that holds mask settings for diffent country codes which I pre set, so I know it is populated and the recordset returns values. tFM is a user defined type set at the application level that is loaded with the various masks, once we determine the computers country setting, e.g. phone number, date, address etc. The values returned by the country setting api do not contain any punctuation. I have run into this problem before where a user puts a single quote into something a sql statement must use. The application is a runtime which uses a separate install of the Access 2002 runtime and its supporting dlls. The issue I beleive is that for some reason the version of jet that is installed to run on Windows 98 machines interprets my sql string differenetly than that on later operating systems. MS has a jet version for Win 98 machines and one for later versions. They are both jet 4 SP 8. This installation runs correctly on versions of windows later than 98 Second Edition. I try to allow users to run our application on any machine that AccessXP would run on natively. There aren't to many 98 machines left but there are some, especially in other countries. The interesting thing is that other portions of the application that use recordsets work without error. As far as I can tell it is just this one routine. I'll keep researching. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 12:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug, To me this code does not make sense to me, but I understand that is is not the complete code, so my comments below may be meaningless. 1. Presumably GetUserLocaleInfo is a function that returns a string (and not a null) 2. You haven't tested to see if if sCountrySettings has a value before using it. 3. What does tFM.sCountry mean. If it is a field in a table then it really should use the pling (!). If it is a property setting in a Class then where was the class defined? The "." is really for a property. (I do understand that some people use them for both, but the pling makes it clear what the interpretation is to be. 4. You have told the recordset to move to the first record, but you haven't tested to see if the recordset has any content. If it is empty, then that would generate an error. Ie, use "If not rs.eof then...." 5. Are you sure that the returned value is actually what you type in. If there is an embedded single quote in the returned value then you can get this error. 6. Are your Reference correctly installed and/or have you recently installed an update on your system. Does the function work for other values other than the one you quoted? You could try removing references and then putting them back in again - do any show as "missing". Hope some of this may help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 5:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 12:01:11 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 18:01:11 +0100 Subject: [AccessD] Compare BEs In-Reply-To: <200709111623.l8BGN7p0021334@databaseadvisors.com> References: <200709111623.l8BGN7p0021334@databaseadvisors.com> Message-ID: <003701c7f495$5b958ae0$8119fea9@LTVM> Robert, this link works. Watch for line wrap Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 5:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Compare BEs None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDi ff.html > >I used it in A97 - it's pretty effective. > >Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 12:04:37 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:04:37 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <002401c7f495$d5c88060$0200a8c0@murphy3234aaf1> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 12:05:52 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:05:52 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <002501c7f496$0240ee70$0200a8c0@murphy3234aaf1> I tried that. Same result. I also moved the table from the back end to front end. Same error. Very frustrating. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 8:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 12:20:49 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 19:20:49 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Robert OK, missed that, sorry. But I thought integration with the VS2005 IDE would be essential for any serious use? That said, I haven't studied closer what the Codesmith really offers. /gustav >>> robert at webedb.com 11-09-2007 17:42 >>> Gustav, That is why I said in a earlier post that the cheapest version is really all you need, $99 USD. The .netTiers is free. And, to me, that is what makes Codesmith usable. Robert At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is >quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav From Gustav at cactus.dk Tue Sep 11 12:25:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 19:25:53 +0200 Subject: [AccessD] Jet version sql error Try 2 Message-ID: Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- From dwaters at usinternet.com Tue Sep 11 12:29:03 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 12:29:03 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters> Message-ID: <001e01c7f499$3fc77b80$0200a8c0@danwaters> Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 11 12:45:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 10:45:45 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001e01c7f499$3fc77b80$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters> <001e01c7f499$3fc77b80$0200a8c0@danwaters> Message-ID: Yep, I've left them in so you can see. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 13:28:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 13:28:37 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters><001e01c7f499$3fc77b80$0200a8c0@danwaters> Message-ID: <001f01c7f4a1$920f80b0$0200a8c0@danwaters> I can't see them! Alright - I admit they're there! ;-) So they got generated between me and you somehow. And you generated some more. Hmmm. Research time. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yep, I've left them in so you can see. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 14:57:41 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 20:57:41 +0100 Subject: [AccessD] Compare BEs In-Reply-To: <003701c7f495$5b958ae0$8119fea9@LTVM> References: <200709111623.l8BGN7p0021334@databaseadvisors.com> <003701c7f495$5b958ae0$8119fea9@LTVM> Message-ID: <006001c7f4ae$03e95a60$8119fea9@LTVM> Ooops, sorry didn't follow it through to a download. Mea culpa. To make amends, I have found the following which may help:- http://www.ssw.com.au/ssw/DataRenovator/ And this link which definitely downloads (just done it, but not tested the software):- http://pcwin.com/Utilities/Free_Database_Compare/download.htm For John Colby: John, I found this link which may help you in your documenting job. http://pcwin.com/Software_Development/DB_Manual/download.htm Also this one:- http://pcwin.com/Software_Development/dbQwikSyncPro/index.htm Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 6:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Compare BEs Robert, this link works. Watch for line wrap Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 5:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Compare BEs None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/M >DBDi ff.html > >I used it in A97 - it's pretty effective. > >Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Sep 11 15:05:58 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 11 Sep 2007 16:05:58 -0400 Subject: [AccessD] Compare BEs In-Reply-To: <006001c7f4ae$03e95a60$8119fea9@LTVM> Message-ID: Are these changes to an mdb? If so, I do all changes using the BEU. I can then be sure the updates work and then when everything's ready all I have to do is send the updated FE to the user. The BE changes are made for me and I know the BE's match. Reuben Cummings GFC, LLC 812.523.1017 > From max.wanadoo at gmail.com Tue Sep 11 15:08:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 21:08:09 +0100 Subject: [AccessD] Redesign tools In-Reply-To: <000901c7f45a$1b5185f0$6c7aa8c0@M90> References: <000901c7f45a$1b5185f0$6c7aa8c0@M90> Message-ID: <006101c7f4af$79b2bec0$8119fea9@LTVM> John, I found this link which may help you in your documenting job. http://pcwin.com/Software_Development/DB_Manual/download.htm Also this one:- http://pcwin.com/Software_Development/dbQwikSyncPro/index.htm Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 11, 2007 10:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Redesign tools I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool 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 From cfoust at infostatsystems.com Tue Sep 11 15:33:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 13:33:42 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001f01c7f4a1$920f80b0$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters><001e01c7f499$3fc77b80$0200a8c0@danwaters> <001f01c7f4a1$920f80b0$0200a8c0@danwaters> Message-ID: I didn't see any this time. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I can't see them! Alright - I admit they're there! ;-) So they got generated between me and you somehow. And you generated some more. Hmmm. Research time. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yep, I've left them in so you can see. Charlotte From dw-murphy at cox.net Tue Sep 11 16:06:12 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:06:12 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:31:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:31:22 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> Message-ID: <006801c7f4bb$1a0e6080$8119fea9@LTVM> Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 16:40:51 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:40:51 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 16:39:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 14:39:55 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006801c7f4bb$1a0e6080$8119fea9@LTVM> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> <006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:47:28 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:47:28 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: <006901c7f4bd$59a43b00$8119fea9@LTVM> >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:49:07 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:49:07 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> References: <006801c7f4bb$1a0e6080$8119fea9@LTVM> <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> Message-ID: <006a01c7f4bd$950f4270$8119fea9@LTVM> There you go! I learn something new every day. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 16:50:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 14:50:05 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006901c7f4bd$59a43b00$8119fea9@LTVM> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM> <006901c7f4bd$59a43b00$8119fea9@LTVM> Message-ID: The + is actually a mathematical/logical operator and it indeed returns a null if you try to concatenate a null. The Ampersand is a string concatenation operator, so if you concatenate a null to a string using &, you get a string. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 16:58:22 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:58:22 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006a01c7f4bd$950f4270$8119fea9@LTVM> Message-ID: <008101c7f4be$dee34b70$0200a8c0@murphy3234aaf1> I certainly learned more than I wanted. Took way to long to trouble shoot this. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 There you go! I learn something new every day. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 17:00:31 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 23:00:31 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM><006901c7f4bd$59a43b00$8119fea9@LTVM> Message-ID: <006b01c7f4bf$2ca266c0$8119fea9@LTVM> Yes, just tried it and you are correct Charlotte. Thanks - still learning Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 The + is actually a mathematical/logical operator and it indeed returns a null if you try to concatenate a null. The Ampersand is a string concatenation operator, so if you concatenate a null to a string using &, you get a string. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 17:17:20 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 11 Sep 2007 17:17:20 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 Jim.Hale at FleetPride.com Tue Sep 11 17:20:34 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 11 Sep 2007 17:20:34 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: OK, Can Getz sue if someone uses code taken from the ADH (which is copyrighted) for example? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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 john at winhaven.net Tue Sep 11 17:17:05 2007 From: john at winhaven.net (John Bartow) Date: Tue, 11 Sep 2007 17:17:05 -0500 Subject: [AccessD] Unbelievable defense dept. security (does contain Access related info :) Message-ID: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> This is a short slideshow (7 slides) about database security on the web... http://www.eweek.com/slideshow/0,1206,pg=0 &s=25932&a=214818,00.asp From DWUTKA at Marlow.com Tue Sep 11 18:03:19 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Sep 2007 18:03:19 -0500 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: Only if you sell the code as your own. Not in an application, but as just code. For example, I think there is some code in there (never had a copy of that personally...don't have any VB or Access books) for a form based calendar, like my mini calendar. If you used that in an application, that would be fine, because the purpose of the book is to sell copies of the book. (just like code in an article). However, if you were to write a book, and use the code from the ADH, that would be a copyright violation. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent OK, Can Getz sue if someone uses code taken from the ADH (which is copyrighted) for example? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fuller.artful at gmail.com Tue Sep 11 20:27:01 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Sep 2007 21:27:01 -0400 Subject: [AccessD] Unbelievable defense dept. security (does contain Access related info :) In-Reply-To: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> References: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> Message-ID: <29f585dd0709111827l18f3de90g4cb7d29e9e23a8e@mail.gmail.com> In the unbelievable defence department, I would nominate Roger Federer. On 9/11/07, John Bartow wrote: > > This is a short slideshow (7 slides) about database security on the web... > > http://www.eweek.com/slideshow/0,1206,pg=0 > > &s=25932&a=214818,00.asp > > > From pcs at azizaz.com Tue Sep 11 23:11:34 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Wed, 12 Sep 2007 14:11:34 +1000 (EST) Subject: [AccessD] Access to VB.Net Message-ID: <20070912141134.DCV42097@dommail.onthenet.com.au> In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and >GUI Design. We are using the Codesmith/netTiers combination >and most of the people in the group have limited experience >in .Net. What I have found is that it actually does so >much that it is difficult to get your arms around all that >it does do. It uses the Enterprise Library to base itself >on. While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do >you worry about, or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) >...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a >code generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 12 01:13:36 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 12 Sep 2007 16:13:36 +1000 Subject: [AccessD] Access to VB.Net References: <20070912141134.DCV42097@dommail.onthenet.com.au> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D51@ddi-01.DDI.local> Form a cursory examination of the website it looks interesting. It seems to support more then just SQL 2K+ Cheaper then the full CodeSmith/netTiers... Nice GUI Does C# + VB.net Don't have time to test it though. cheers Michael M Subject: Re: [AccessD] Access to VB.Net In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and GUI Design. We are >using the Codesmith/netTiers combination and most of the people in the >group have limited experience in .Net. What I have found is that it >actually does so much that it is difficult to get your arms around all >that it does do. It uses the Enterprise Library to base itself on. >While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do you worry about, >or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) ...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a code >generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Sep 12 06:47:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 07:47:27 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D01289D51@ddi-01.DDI.local> Message-ID: <003f01c7f532$b242a330$6c7aa8c0@M90> And are these license seats for each developer or for each application copy sold - notice that they don't really say.? I assume per developer but would want to be sure before committing. I am leery of having any company's hooks into me for each copy of my 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 Michael Maddison Sent: Wednesday, September 12, 2007 2:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net Form a cursory examination of the website it looks interesting. It seems to support more then just SQL 2K+ Cheaper then the full CodeSmith/netTiers... Nice GUI Does C# + VB.net Don't have time to test it though. cheers Michael M Subject: Re: [AccessD] Access to VB.Net In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and GUI Design. We are >using the Codesmith/netTiers combination and most of the people in the >group have limited experience in .Net. What I have found is that it >actually does so much that it is difficult to get your arms around all >that it does do. It uses the Enterprise Library to base itself on. >While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do you worry about, >or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) ...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a code >generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Wed Sep 12 08:02:29 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Wed, 12 Sep 2007 09:02:29 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 Wed Sep 12 08:32:03 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Sep 2007 08:32:03 -0500 Subject: [AccessD] Unbelievable defense dept. security (does contain Accessrelated info :) In-Reply-To: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> Message-ID: In it, they said Access wasn't an SQL based database.....ummmmm, why isn't it? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 11, 2007 5:17 PM To: _DBA-Access Subject: [AccessD] Unbelievable defense dept. security (does contain Accessrelated info :) This is a short slideshow (7 slides) about database security on the web... http://www.eweek.com/slideshow/0,1206,pg=0 &s=25932&a=214818,00.asp -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jack.stone at solidcounsel.com Wed Sep 12 09:55:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 09:55:52 -0500 Subject: [AccessD] Database Patent References: Message-ID: Thanks Jim, I have heard of that case, but now that you mention it and with my newfound interest, I will take another look at it. BTW, is there a way to just respond to a person that sends an email, as in this case, so I don't have to bother everybody on the list when it is not relevant to everybody? Thanks Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 andy at minstersystems.co.uk Wed Sep 12 10:11:21 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 12 Sep 2007 16:11:21 +0100 Subject: [AccessD] Database Patent Message-ID: <20070912151126.AB4AD87405@smtp.nildram.co.uk> In reply to your question about replying direct, Jack, yes you can. I think the method will differ slightly depending on what you use for email but basically when you open an email up at the top in the From area it will show both AccessD and, probably something like On Behalf Of followed by the individuals email address. You can then copy & paste this into the To of a new email rather than just hitting Reply. Bit bothersome but it works. Having said that you shouldn't be too quick to assume no-one else is interested. I can see from other posts that this thread has been followed by a lot of list members and your response to anyone's posted comment or suggestion may well interest them. OTOH some people have to be positively encouraged to take a thread 'off-list' when it gets too personal (in any sense) or is just not related to the list. Anyway, you're a bright guy and can make that judgement I'm sure. And, as Julie said, thanks for introducing this thread - it's been very different and very interesting to follow. -- 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] Database Patent Date: 12/09/07 15:00 Thanks Jim, I have heard of that case, but now that you mention it and with my newfound interest, I will take another look at it. BTW, is there a way to just respond to a person that sends an email, as in this case, so I don't have to bother everybody on the list when it is not relevant to everybody? Thanks Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- 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 jack.stone at solidcounsel.com Wed Sep 12 10:15:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 10:15:52 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 12 10:19:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Sep 2007 08:19:28 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 webedb.com Wed Sep 12 11:00:15 2007 From: robert at webedb.com (Robert L. Stewart) Date: Wed, 12 Sep 2007 11:00:15 -0500 Subject: [AccessD] Blank Lines in Email In-Reply-To: References: Message-ID: <200709121605.l8CG5pdK019873@databaseadvisors.com> A bad signature that had all that would be my guess. At 12:00 PM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 11:28:16 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) >To: "'Access Developers discussion and problem solving'" > >Message-ID: <001a01c7f490$c4ae8c70$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Please post when you get this ready! > >And thanks for the note about blank lines - I didn't know. (Blank lines >removed from this email). I'm using Outlook 2003 - any ideas on what could >cause this? From jwcolby at colbyconsulting.com Wed Sep 12 11:12:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 12:12:29 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <004d01c7f557$b8974630$6c7aa8c0@M90> LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net From markamatte at hotmail.com Wed Sep 12 11:53:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 12 Sep 2007 16:53:27 +0000 Subject: [AccessD] Crosstab Totals? Message-ID: Hello All, I apparently did this months ago...but just re-discovered it...I'm sure most probably know how to do this...but thought I'd share anyway and ask if anyone can explain why it works? I have a crosstab query for statuses. I needed a count of each status and a total for each user. And I did it in a singly query...I'm just not sure WHY it works...?!?!?!?! Below is the SQL...any thoughts? Thanks, Mark A. Matte *******SQL********* TRANSFORM Count(*) AS Stat SELECT tblData.CCMS_User, Count(*) AS Total FROM tblData WHERE (((tblData.Status)<>"closed")) GROUP BY tblData.CCMS_User PIVOT tblData.Status In ("Pending","New","Follow Up"); *******SQL********* _________________________________________________________________ Share your special parenting moments! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From fuller.artful at gmail.com Wed Sep 12 11:59:58 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 12 Sep 2007 12:59:58 -0400 Subject: [AccessD] GetOpenFilename function Message-ID: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur From max.wanadoo at gmail.com Wed Sep 12 12:12:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 12 Sep 2007 18:12:54 +0100 Subject: [AccessD] GetOpenFilename function In-Reply-To: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> References: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> Message-ID: <001201c7f560$28d03df0$8119fea9@LTVM> Arthur, If you download my EATBloat, it has exactly the functions you need to do this as this is one of the requirements also. http://www.peoplelinks.co.uk/msaccess/downloads/ Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 12, 2007 6:00 PM To: Access Developers discussion and problem solving Subject: [AccessD] GetOpenFilename function I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 12 12:16:08 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 12 Sep 2007 10:16:08 -0700 Subject: [AccessD] GetOpenFilename function In-Reply-To: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> Message-ID: <002e01c7f560$9c7705e0$0301a8c0@HAL9005> Arthur: In the file open dialog box routine that I'm using the default folder is an option which you can pass to the routine. Does your File Open Dialog Box code allow for this option? Unless the folder you want to start in is the same as where the Excel file is stored, you'd have to save the path as a preference - probably in a cell of the spreadsheet. The first time, of course, it would be blank. The second time you could pick up the starting folder from that cell. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 12, 2007 10:00 AM To: Access Developers discussion and problem solving Subject: [AccessD] GetOpenFilename function I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur -- 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.485 / Virus Database: 269.13.15/1002 - Release Date: 9/11/2007 5:46 PM From accessd at shaw.ca Wed Sep 12 12:21:23 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Sep 2007 10:21:23 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <00d601c7f435$b2dde8c0$c957a27a@personalec1122> Message-ID: Hi A.D.Tejal: Thanks for the link. I will review it further and see if there are any revelations and usable techniques. I had the report model completed by either setting a range or padding with dummy fields so it would always line up. The days were in sequence so the report always worked. The client admitted that is what they had asked for but not what they needed. What they have decided on was to only show fields (dates) where there are data hits and have the report extend over a number of months. In addition they want the top header to show the month number and the bottom header row to show the day number. The information can be gathered through a cross tab query but the requirement for 2 top rows, which an Access crosstab can not produce and a series non sequential report columns, there appears to be no eloquent solution... just brute force coding. :-( If anyone has experience with a similar project would be so kind as to share their expertise it would be greatly appreciated. Again thank you A.D.Tejal. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 10, 2007 10:32 PM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Crosstab query Jim, As the number of days for various one month periods are not identical, left join method using a query filtered for the spell in question, as suggested by Andy, should be preferred. My sample db named MotelBooking demonstrates this approach. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. On the main switchboard, second command button captioned "Booking Status (Style 2) - Dates Across Columns", is pertinent to this case. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, September 10, 2007 23:56 Subject: Re: [AccessD] Crosstab query No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 12 12:16:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 12 Sep 2007 19:16:45 +0200 Subject: [AccessD] GetOpenFilename function Message-ID: Hi Arthur You could try to call ChDrive strStartingPath ChDir strStartingPath before you call GetOpenFilename(). /gustav >>> fuller.artful at gmail.com 12-09-2007 18:59 >>> I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur From accessd at shaw.ca Wed Sep 12 12:42:49 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Sep 2007 10:42:49 -0700 Subject: [AccessD] Redesign tools In-Reply-To: <000901c7f45a$1b5185f0$6c7aa8c0@M90> Message-ID: Hi John: Though this is not a complete solution, I have used an open-source product called DB Designer4, from FabForce.net at http://www.fabforce.net/downloads.php It creates a UML graphic schema of a MS Access/ MS SQL database and I have used it to find obvious issues and it can even make some structural changes on the fly. The program has all sorts of features. One will allow you to enter/edit notes about fields and tables as you go. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 11, 2007 2:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Redesign tools I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool 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 From jack.stone at solidcounsel.com Wed Sep 12 13:44:31 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 13:44:31 -0500 Subject: [AccessD] Database Patent References: <004d01c7f557$b8974630$6c7aa8c0@M90> Message-ID: LOL, pretty funny - I am glad I am not old. Do I get any credit for trying to develop a database on the side? Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 12, 2007 11:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 12 15:33:55 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 16:33:55 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000901c7f57c$3e22b400$6c7aa8c0@M90> ROTFL. Hmmm... Lawyer. DB developer. If I remember correctly that is TWO loonie points AGAINST 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 Jack Stone Sent: Wednesday, September 12, 2007 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent LOL, pretty funny - I am glad I am not old. Do I get any credit for trying to develop a database on the side? Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 12, 2007 11:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone From ssharkins at gmail.com Wed Sep 12 16:35:09 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 12 Sep 2007 17:35:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: <008501c7f584$cdd476d0$4b3a8343@SusanOne> Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! From cfoust at infostatsystems.com Wed Sep 12 16:40:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Sep 2007 14:40:32 -0700 Subject: [AccessD] Database Patent In-Reply-To: <008501c7f584$cdd476d0$4b3a8343@SusanOne> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> <008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Wed Sep 12 21:47:40 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 21:47:40 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thewaddles at sbcglobal.net Wed Sep 12 21:51:16 2007 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Wed, 12 Sep 2007 19:51:16 -0700 Subject: [AccessD] Output to snp file In-Reply-To: References: Message-ID: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Chester, I recently found this download and have been using it successfully. It has an OCX and a DLL that need to be placed in the same folder as your mdb file. They do not need to be registered, only in the directory. It allows you to programmatically print (and name the pdf) an Access report to a PDF file, even if you do not have Acrobat on the system. http://www.lebans.com/reporttopdf.htm HTH, Kevin Drawing on my fine command of language, I said nothing -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 10, 2007 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Output to snp file I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 jwcolby at colbyconsulting.com Thu Sep 13 01:15:09 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 02:15:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte From clh at christopherhawkins.com Thu Sep 13 02:26:10 2007 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 13 Sep 2007 01:26:10 -0600 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Message-ID: Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- From Gustav at cactus.dk Thu Sep 13 03:55:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 10:55:45 +0200 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Message-ID: Hi Christoffer Not that I've seen this issue but, first, why the requery? Next, how about using a specific recordset: Dim rst As DAO.Recordset Dim bkm As Bookmark With Forms("frmBlah") ' Skip this? ' .Requery Set rst = .RecordsetClone With rst .FindFirst "[RecID] = " & Me![cboFindRec] If .NoMatch = False Then ' Read Bookmark. bkm = .Bookmark End If .Close End With Set rst = Nothing If Not bmk Is Nothing Then ' Apply Bookmark. .Bookmark = bmk End If End With Finally, with 200 fields you are probably only retrieving those you need? /gustav >>> clh at christopherhawkins.com 13-09-2007 09:26 >>> Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- From jack.stone at solidcounsel.com Thu Sep 13 07:06:37 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 07:06:37 -0500 Subject: [AccessD] Database Patent References: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> Message-ID: I was just kidding, like I wonder if I could get a patent on the wheel, like the patent that started this thread and should not have been granted ... My patent actually has to do with time management, scheduling soft dates with hard dates, and that sort of thing, and just uses a database for a platform. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 13 07:20:49 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 13:20:49 +0100 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search In-Reply-To: References: Message-ID: <004401c7f600$86f981c0$8119fea9@LTVM> Chris, I don't understand why you are requerying the whole form. That is what is probably slowing things down. What I would do is have a combo box with the minimum number of fields for the user (ie, ID + Text Desc of item to be chosed) On the change/exit event (up to you) then this sort of code Dim rst as dao.recordset, strFind as string Set rst = me.recordsetclose Strfind = "ID=" & me!cboName Rst.findfirst strfind If not rst.nomatch then me.bookmark = rst.bookmark Else msgbox ?"afakjhfh" Endif Set rst = nothing HTH Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, September 13, 2007 8:26 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 13 07:29:32 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 08:29:32 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> Message-ID: <000001c7f601$bdbb5700$6c7aa8c0@M90> Cool. We all need to manage our time better. ;-) This forum can help with that, or... It can hinder it immensely. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I was just kidding, like I wonder if I could get a patent on the wheel, like the patent that started this thread and should not have been granted ... My patent actually has to do with time management, scheduling soft dates with hard dates, and that sort of thing, and just uses a database for a platform. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 09:06:19 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 10:06:19 -0400 Subject: [AccessD] First in a group Message-ID: <000801c7f60f$42e86fa0$6c7aa8c0@M90> I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Thu Sep 13 09:23:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 16:23:20 +0200 Subject: [AccessD] First in a group Message-ID: Hi John With a subquery. No smart methods for this as far as I know. /gustav >>> jwcolby at colbyconsulting.com 13-09-2007 16:06 >>> I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. John W. Colby Colby Consulting www.ColbyConsulting.com From markamatte at hotmail.com Thu Sep 13 09:28:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 13 Sep 2007 14:28:38 +0000 Subject: [AccessD] OT: Database Patent Message-ID: So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From mmattys at rochester.rr.com Thu Sep 13 09:38:49 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 13 Sep 2007 10:38:49 -0400 Subject: [AccessD] First in a group References: Message-ID: <01cd01c7f613$cdd6b3c0$0202a8c0@Laptop> A subquery for each address in the Qry.SQL ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, September 13, 2007 10:23 AM Subject: Re: [AccessD] First in a group > Hi John > > With a subquery. No smart methods for this as far as I know. > > /gustav > >>>> jwcolby at colbyconsulting.com 13-09-2007 16:06 >>> > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person > doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip > Mary Colby, Some Street, SomeCity, SomeState, SomeZip > John Doe, Some Other Street, Some Other City, Some Other State, Some Other > Zip > Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other > Zip > > I don't care whether I send to Mary or John, I only care that only a > single > piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 > names. > > I do have an address hash that generates a hash string for just the > address > part. > > So it seems like something like a group by address hash and then a top1 is > the right direction, but of course it has to be the TOP 1 in each GROUP. > > I could (and might have to to get this out) write a little VBA routine to > do > this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 jimdettman at verizon.net Thu Sep 13 09:50:29 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 13 Sep 2007 10:50:29 -0400 Subject: [AccessD] First in a group In-Reply-To: <000801c7f60f$42e86fa0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: <001301c7f615$6e74e850$8abea8c0@XPS> John, Do a group by on the combined Street, City, State, and Zip. Then select FIRST or LAST for all other fields. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 cfoust at infostatsystems.com Thu Sep 13 10:04:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 08:04:42 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 10:07:21 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 08:07:21 -0700 Subject: [AccessD] First in a group In-Reply-To: <000801c7f60f$42e86fa0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 Gustav at cactus.dk Thu Sep 13 10:28:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 17:28:37 +0200 Subject: [AccessD] First in a group Message-ID: Hi Jim and John This sounds like a good idea. /gustav >>> jimdettman at verizon.net 13-09-2007 16:50 >>> John, Do a group by on the combined Street, City, State, and Zip. Then select FIRST or LAST for all other fields. Jim. From jwcolby at colbyconsulting.com Thu Sep 13 11:11:25 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 12:11:25 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: <001101c7f620$bcd2dab0$6c7aa8c0@M90> Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 delam at zyterra.com Thu Sep 13 11:37:40 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 11:37:40 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: <200709131637.l8DGbkp4002441@databaseadvisors.com> I have a table in Access linked from MS SQL. Access has determined that the field length of a text field is 100 characters. This works 98% of the time, but a few fields have values that exceed 100 characters. Does anyone know how to get Access to give me a longer field length? Debbie From Jim.Hale at FleetPride.com Thu Sep 13 11:45:49 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 13 Sep 2007 11:45:49 -0500 Subject: [AccessD] First in a group In-Reply-To: <001101c7f620$bcd2dab0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 delam at zyterra.com Thu Sep 13 11:55:44 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 11:55:44 -0500 Subject: [AccessD] First in a group In-Reply-To: Message-ID: <200709131655.l8DGto1J014351@databaseadvisors.com> Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 13, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 max.wanadoo at gmail.com Thu Sep 13 12:10:57 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 18:10:57 +0100 Subject: [AccessD] OT: Database Patent In-Reply-To: References: Message-ID: <003301c7f629$0e23fcc0$8119fea9@LTVM> Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 From prosoft6 at hotmail.com Thu Sep 13 12:45:03 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Thu, 13 Sep 2007 13:45:03 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net From jwcolby at colbyconsulting.com Thu Sep 13 12:45:33 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 13:45:33 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> The problem here is that with mailing lists, particularly where you have 50 million names in the list, you haven't a clue who is who, just that they share the same last name and live at the same location. In the case I am working on now, they want males, making BIG bucks, who have a boat. I am seeing three males (all different names) all apparently claiming the boat, and all claiming to make big bucks. The client only wants to send one piece of mail to the address. Who do YOU choose? As you can see, there are often criteria (only target the males) etc. We do have age fields, sometimes they are filled in, sometimes the client wants to target an age group. In those cases the age group narrows who gets the mail. Not so in this specific case. In a previous mailing, they wanted women who owned a cat, in specific income groups. Then they wanted Women, who owned a dog, in specific income groups. Neither could be in the other mailing (dog owners could not get the cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. But yea, in general, "we don't care who gets the mail, just get one piece to that address". John 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: Thursday, September 13, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 jwcolby at colbyconsulting.com Thu Sep 13 12:46:22 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 13:46:22 -0400 Subject: [AccessD] First in a group In-Reply-To: <200709131655.l8DGto1J014351@databaseadvisors.com> References: <200709131655.l8DGto1J014351@databaseadvisors.com> Message-ID: <001b01c7f62e$00eb5620$6c7aa8c0@M90> Yea, but there are 50 million names / addresses and no place to determine who is the primary. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 13, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Thu Sep 13 12:58:17 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Thu, 13 Sep 2007 13:58:17 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_patten at embarqmail.com Thu Sep 13 13:05:15 2007 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 13 Sep 2007 11:05:15 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 13 13:12:11 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:12:11 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 ssharkins at gmail.com Thu Sep 13 13:21:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 13 Sep 2007 14:21:48 -0400 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90> <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <00aa01c7f632$f377f070$4b3a8343@SusanOne> Boat Owner Address City, State, ZIP Works for me. ;) Susan H. Who do YOU choose? From ssharkins at gmail.com Thu Sep 13 13:21:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 13 Sep 2007 14:21:48 -0400 Subject: [AccessD] First in a group In-Reply-To: <200709131655.l8DGto1J014351@databaseadvisors.com> References: <200709131655.l8DGto1J014351@databaseadvisors.com> Message-ID: <00ab01c7f632$f4c81720$4b3a8343@SusanOne> Good excuse for a one to one. Susan H. Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. From jack.stone at solidcounsel.com Thu Sep 13 13:24:57 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:24:57 -0500 Subject: [AccessD] OT: Database Patent References: Message-ID: Interesting. Not sure exactly what a Perpetual Motion Simulator is, but I will say that the US Patent Office specifically excludes Perpetual Motion Machines from patentable material for the very reason you give. But if a Perpetual Motion Simulator can dodge that bullet, and assuming it has some real utility, then I would be glad to work on a patent for that. It might break the monotony of all the telecon patents I work on. My contact info is below if you want to discuss it further. Thanks! Regards, Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at solidcounsel.com www.solidcounsel.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 9:29 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From jack.stone at solidcounsel.com Thu Sep 13 13:28:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:28:52 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: Hmmm, not sure how to take that, but I will assume positively :-) Thx Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 13:32:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:32:53 -0700 Subject: [AccessD] OT: Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: ;-> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hmmm, not sure how to take that, but I will assume positively :-) Thx Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Thu Sep 13 13:41:57 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:41:57 -0500 Subject: [AccessD] OT: Database Patent References: <003301c7f629$0e23fcc0$8119fea9@LTVM> Message-ID: So does that mean when you work, it is really just simulated motion? LOL Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 13, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Database Patent Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextli nk2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 13 13:46:35 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 13 Sep 2007 13:46:35 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709131637.l8DGbkp4002441@databaseadvisors.com> References: <001101c7f620$bcd2dab0$6c7aa8c0@M90> <200709131637.l8DGbkp4002441@databaseadvisors.com> Message-ID: Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined that the > field length of a text field is 100 characters. This works 98% of the time, > but a few fields have values that exceed 100 characters. Does anyone know > how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 max.wanadoo at gmail.com Thu Sep 13 13:50:26 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 19:50:26 +0100 Subject: [AccessD] OT: Database Patent In-Reply-To: References: <003301c7f629$0e23fcc0$8119fea9@LTVM> Message-ID: <003701c7f636$f45c6030$8119fea9@LTVM> Oops Sorry, I though it said "Stimulated motion" Oh second thoughts, I won't have to patent myself because nobody can make a copy (unless you discount Dolly the sheep that is) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 7:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Database Patent So does that mean when you work, it is really just simulated motion? LOL Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 13, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Database Patent Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextli nk2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Drawbridge.Jack at ic.gc.ca Thu Sep 13 13:49:17 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: SBMS) Date: Thu, 13 Sep 2007 14:49:17 -0400 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A18B21F@MSG-MB3.icent.ic.gc.ca> John, "we don't care who gets the mail, just get one piece to that address" So how about a query where you Select Distinct on address fields only (don't include any Person name info), then send a letter to Dear Occupant, or Boat Owner or Cat Lover.... as the case may be. We've all received Dear Occupant letters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group The problem here is that with mailing lists, particularly where you have 50 million names in the list, you haven't a clue who is who, just that they share the same last name and live at the same location. In the case I am working on now, they want males, making BIG bucks, who have a boat. I am seeing three males (all different names) all apparently claiming the boat, and all claiming to make big bucks. The client only wants to send one piece of mail to the address. Who do YOU choose? As you can see, there are often criteria (only target the males) etc. We do have age fields, sometimes they are filled in, sometimes the client wants to target an age group. In those cases the age group narrows who gets the mail. Not so in this specific case. In a previous mailing, they wanted women who owned a cat, in specific income groups. Then they wanted Women, who owned a dog, in specific income groups. Neither could be in the other mailing (dog owners could not get the cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. But yea, in general, "we don't care who gets the mail, just get one piece to that address". John 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: Thursday, September 13, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 13 13:51:30 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 13 Sep 2007 13:51:30 -0500 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you have 50 > million names in the list, you haven't a clue who is who, just that they > share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, who have > a boat. I am seeing three males (all different names) all apparently > claiming the boat, and all claiming to make big bucks. The client only > wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. We do > have age fields, sometimes they are filled in, sometimes the client wants to > target an age group. In those cases the age group narrows who gets the > mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific income > groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the cat > mailer, cat owners could not get the dog mailer). What a PITA THAT was. > > But yea, in general, "we don't care who gets the mail, just get one piece to > that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the same > address it is pot luck as to who gets the mailing? The child or grandparent > or inlaw for that matter might get a letter intended for the parent? That > could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID for > each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a document of > how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the person > doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other > City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a single > piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the address > part. > > So it seems like something like a group by address hash and then a top1 is > the right direction, but of course it has to be the TOP 1 in each GROUP. > > > I could (and might have to to get this out) write a little VBA routine to do > this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > *********************************************************************** > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Thu Sep 13 13:52:33 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:52:33 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: References: <001101c7f620$bcd2dab0$6c7aa8c0@M90><200709131637.l8DGbkp4002441@databaseadvisors.com> Message-ID: I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined > that the field length of a text field is 100 characters. This works > 98% of the time, but a few fields have values that exceed 100 > characters. Does anyone know how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 jwcolby at colbyconsulting.com Thu Sep 13 14:05:03 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 15:05:03 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <002601c7f638$fdf371e0$6c7aa8c0@M90> LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 delam at zyterra.com Thu Sep 13 14:05:41 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 14:05:41 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709131905.l8DJ5kfj014113@databaseadvisors.com> I have refreshed the link and re-created it altogether. Every interation has the 100 character field length. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined that the > field length of a text field is 100 characters. This works 98% of the time, > but a few fields have values that exceed 100 characters. Does anyone know > how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 delam at zyterra.com Thu Sep 13 14:23:16 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 14:23:16 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709131923.l8DJNQkx022617@databaseadvisors.com> The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined > that the field length of a text field is 100 characters. This works > 98% of the time, but a few fields have values that exceed 100 > characters. Does anyone know how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 cfoust at infostatsystems.com Thu Sep 13 15:49:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 13:49:25 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709131923.l8DJNQkx022617@databaseadvisors.com> References: <200709131923.l8DJNQkx022617@databaseadvisors.com> Message-ID: It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust From delam at zyterra.com Thu Sep 13 16:54:04 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 16:54:04 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709132154.l8DLs8ud028158@databaseadvisors.com> Access 2000 and SQL 2000 also. I do not think it is the program manufacturer, since I tried linking the view independent of the code that used for re-linking. That was using standard Access tools. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 3:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Sep 13 16:57:49 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Sep 2007 17:57:49 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> Another alternative is to forget about autonumber PKs and instead use a system of offsets, one per tablet. It would something like this: - each tablet is assigned an offset of, say, 100,000 (or a million if you plan on lots of inspections). - initial record on each tablet will be Offset + 1 - each subsequent record will be Max(pk) + 1 The result will be PKs from 100,001 to 199,999 from tablet pc #1, 200,001 to 299,999 from table pc #2, etc. Most of us use a table called sysCompany or somesuch which always contains one record, that we use for system parameters. Add a column called Offset to that table, or just create a new table called Offset and store the offset value on each tablet's copy. Oracle, incidentally, uses a scheme like this, called Sequences. Back in the old days of MS-SQL they did something similar for replication schemes. Now, of course, they use GUIDs for this purpose. Since this was sent to AccessD, I'd guess that GUIDs are not going to work for you. You can create GUIDs in Access, but using them is much more cumbersome than in SQL. hth, Arthur On 9/13/07, Charlotte Foust wrote: > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 cfoust at infostatsystems.com Thu Sep 13 17:25:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 15:25:09 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709132154.l8DLs8ud028158@databaseadvisors.com> References: <200709132154.l8DLs8ud028158@databaseadvisors.com> Message-ID: Good heavens! Who remembers the uglies that lurked in Access 2000? It was more fun than 97 but it had more than its fair share of odd crotchets. Are all the service packs applied? Maybe someone else who's still using A2k can offer suggestions. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 2:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size Access 2000 and SQL 2000 also. I do not think it is the program manufacturer, since I tried linking the view independent of the code that used for re-linking. That was using standard Access tools. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 3:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 13 21:29:49 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Fri, 14 Sep 2007 12:29:49 +1000 (EST) Subject: [AccessD] First in a group Message-ID: <20070914122949.DCY31371@dommail.onthenet.com.au> John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From pcs at azizaz.com Thu Sep 13 21:34:06 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Fri, 14 Sep 2007 12:34:06 +1000 (EST) Subject: [AccessD] Linked Table field Size Message-ID: <20070914123406.DCY31864@dommail.onthenet.com.au> If you can access and change the table in the SQL Db change the field to a nvarchar(255) ... failing this you have to work with the existing field length... borge ---- Original message ---- >Date: Thu, 13 Sep 2007 11:37:40 -0500 >From: "Debbie Elam" >Subject: [AccessD] Linked Table field Size >To: "'Access Developers discussion and problem solving'" > >I have a table in Access linked from MS SQL. Access has determined that the >field length of a text field is 100 characters. This works 98% of the time, >but a few fields have values that exceed 100 characters. Does anyone know >how to get Access to give me a longer field length? > >Debbie > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 13 22:58:00 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 23:58:00 -0400 Subject: [AccessD] First in a group In-Reply-To: <20070914122949.DCY31371@dommail.onthenet.com.au> References: <20070914122949.DCY31371@dommail.onthenet.com.au> Message-ID: <003501c7f683$71e09200$6c7aa8c0@M90> Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 13 23:54:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 13 Sep 2007 21:54:55 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: Message-ID: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Julie: Why not use GUID values as temp values. Their creation and nature almost guarantees self-contained uniqueness. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From anitatiedemann at gmail.com Fri Sep 14 00:24:10 2007 From: anitatiedemann at gmail.com (Anita Smith) Date: Fri, 14 Sep 2007 15:24:10 +1000 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> References: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Message-ID: Julie, I am assuming that you are using SQL Server. If you set the field as follows: * Identity Yes - (NOT FOR REPLICATION ) * Increment (by1) Then SQL Server will automatically assign a new unique number for every record entered. SQL server keeps its own list of ID's and each subscriber has its own range of IDs. It is critical that you set the range sizes when you publish the database as that is what SQL server uses to assign the ranges. As you can imagne, you won't get a neat list of ID's in sequential order, but you will eventually get to know the ranges and you will be able to establish who created the record just by looking at ID. Anita On 9/14/07, Jim Lawrence wrote: > > Julie: Why not use GUID values as temp values. Their creation and nature > almost guarantees self-contained uniqueness. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working great. > > However, when I wrote the software, they were only using one tablet pc and > replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection process, > and then onto the Work Order that is created when there are repairs > needed. > > If I have multiple inspectors with tablet pc's, I can't create the unique > inspection id (automatically increments by one) when the inspection is > created on the tablet pc, because I won't know which id each of the tablet > pc's are using until the users synch with the copy on the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the > record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 paul.hartland at fsmail.net Fri Sep 14 06:51:54 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Sep 2007 13:51:54 +0200 (CEST) Subject: [AccessD] Recordsets - See If Two Match Message-ID: <27771441.30801189770714927.JavaMail.www@wwinf3207> To all, Is there a quick (or what is the best way) to see if two recordsets are identical ? Many thanks for your help in advance. Paul Hartland paul.hartland at fsmail.net 07730 523179 From pharold at proftesting.com Fri Sep 14 08:56:29 2007 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 14 Sep 2007 09:56:29 -0400 Subject: [AccessD] First in a group In-Reply-To: <002601c7f638$fdf371e0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90> <002601c7f638$fdf371e0$6c7aa8c0@M90> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> In direct mail the first job is to get the mailing piece opened. Having a name means it's less likely to be deposited in the round file without even being opened. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 3:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA > THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in > each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 max.wanadoo at gmail.com Fri Sep 14 09:20:07 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 15:20:07 +0100 Subject: [AccessD] First in a group In-Reply-To: <003501c7f683$71e09200$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> Message-ID: <006d01c7f6da$5ad5e860$8119fea9@LTVM> Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 14 09:23:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Sep 2007 10:23:01 -0400 Subject: [AccessD] First in a group In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90><002601c7f638$fdf371e0$6c7aa8c0@M90> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> Message-ID: <003c01c7f6da$c2370e80$6c7aa8c0@M90> Yep. And the reality is that we don't know who is who, or what their relationship is to anyone else in the house. I have first, last and address. Beyond that not a clue about the relationships. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Friday, September 14, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group In direct mail the first job is to get the mailing piece opened. Having a name means it's less likely to be deposited in the round file without even being opened. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 3:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA > THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in > each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 garykjos at gmail.com Fri Sep 14 09:37:36 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 14 Sep 2007 09:37:36 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709132154.l8DLs8ud028158@databaseadvisors.com> References: <200709132154.l8DLs8ud028158@databaseadvisors.com> Message-ID: Can you access the tables directly rather than through the view? I would be curious if it's related to the view verses physical table. GK On 9/13/07, Debbie Elam wrote: > Access 2000 and SQL 2000 also. I do not think it is the program > manufacturer, since I tried linking the view independent of the code that > used for re-linking. That was using standard Access tools. > > Debbie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 3:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table field Size > > It isn't a limitation in Access but it may be some kind of limitation in > the product you're using. I've never run into that. What version of > SQL Server and Access are you using? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam > Sent: Thursday, September 13, 2007 12:23 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table field Size > > The link is actually to a view in SQL. The view returns more than 100 > characters if they are present. There is code to re-link the > tables/views so that each user can log on as themselves. Using the > code, or link external tables, the number of characters is the same. > > This is a commercial product to create reports that I have modified. > > Debbie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Thursday, September 13, 2007 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table field Size > > I'm not sure I understand. A linked table should reflect the field size > of the SQL Server table, not an arbitrary Access limit. Can you explain > in a bit more detail what's going on, what kind of a linked table you > have, etc. > > Charlotte Foust > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Sep 14 09:40:30 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:40:30 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: I'm not an idiot Charlotte. Of course, I am not working directly with the design master. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 09:42:07 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:42:07 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> Message-ID: Thanks Arthur. I'll look into that. This is going to be an application that I sell and will need to come up with an automated system. I won't know how many tablets are being used, and will not have any control over the software, albeit support, after it leaves my office. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 13, 2007 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Another alternative is to forget about autonumber PKs and instead use a system of offsets, one per tablet. It would something like this: - each tablet is assigned an offset of, say, 100,000 (or a million if you plan on lots of inspections). - initial record on each tablet will be Offset + 1 - each subsequent record will be Max(pk) + 1 The result will be PKs from 100,001 to 199,999 from tablet pc #1, 200,001 to 299,999 from table pc #2, etc. Most of us use a table called sysCompany or somesuch which always contains one record, that we use for system parameters. Add a column called Offset to that table, or just create a new table called Offset and store the offset value on each tablet's copy. Oracle, incidentally, uses a scheme like this, called Sequences. Back in the old days of MS-SQL they did something similar for replication schemes. Now, of course, they use GUIDs for this purpose. Since this was sent to AccessD, I'd guess that GUIDs are not going to work for you. You can create GUIDs in Access, but using them is much more cumbersome than in SQL. hth, Arthur On 9/13/07, Charlotte Foust wrote: > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 jimdettman at verizon.net Fri Sep 14 09:41:31 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 14 Sep 2007 10:41:31 -0400 Subject: [AccessD] First in a group In-Reply-To: <006d01c7f6da$5ad5e860$8119fea9@LTVM> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> <006d01c7f6da$5ad5e860$8119fea9@LTVM> Message-ID: <006b01c7f6dd$581d0290$8abea8c0@XPS> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Sep 14 09:44:24 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:44:24 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Message-ID: Hi Anita, Are you talking about on the tablet pc, or on the server? How do I replicate the data on the tablet pc to the copy on the server after the inspections are complete, using this method? I'm not sure that I understand what you are getting at? Could you explain further? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Anita Smith Sent: Friday, September 14, 2007 1:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Julie, I am assuming that you are using SQL Server. If you set the field as follows: * Identity Yes - (NOT FOR REPLICATION ) * Increment (by1) Then SQL Server will automatically assign a new unique number for every record entered. SQL server keeps its own list of ID's and each subscriber has its own range of IDs. It is critical that you set the range sizes when you publish the database as that is what SQL server uses to assign the ranges. As you can imagne, you won't get a neat list of ID's in sequential order, but you will eventually get to know the ranges and you will be able to establish who created the record just by looking at ID. Anita On 9/14/07, Jim Lawrence wrote: > > Julie: Why not use GUID values as temp values. Their creation and nature > almost guarantees self-contained uniqueness. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working great. > > However, when I wrote the software, they were only using one tablet pc and > replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection process, > and then onto the Work Order that is created when there are repairs > needed. > > If I have multiple inspectors with tablet pc's, I can't create the unique > inspection id (automatically increments by one) when the inspection is > created on the tablet pc, because I won't know which id each of the tablet > pc's are using until the users synch with the copy on the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the > record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 10:01:08 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 11:01:08 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 10:01:52 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 11:01:52 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: What type of pda is it? I was thinking of using a pda, but the screen size may be too small. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 14 10:04:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:04:11 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From Gustav at cactus.dk Fri Sep 14 10:13:21 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:13:21 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: OK, that's what I feared: --- Your mail to 'AccessD' with the subject Re: [AccessD] MD5 Hash (was: First in a group) Is being held until the list moderator can review it for approval. The reason it is being held: Message body is too big: 30144 bytes with a limit of 20 KB Either the message will get posted to the list, or you will receive notification of the moderator's decision. .. --- From mmattys at rochester.rr.com Fri Sep 14 10:15:36 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 14 Sep 2007 11:15:36 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: <011801c7f6e2$1b6febf0$0202a8c0@Laptop> I volunteer to be the idiot. Why doesn't anyone ever work with the design master? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 10:40 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database > I'm not an idiot Charlotte. Of course, I am not working directly with the > design master. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 2:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 Gustav at cactus.dk Fri Sep 14 10:09:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:09:52 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Here's the class module. Save as a text file clsMD5.txt and read it in with: LoadFromText acModule, "clsMD5", "clsMD5.txt" /gustav Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database Option Explicit '******************************************************************************* ' MODULE: CMD5 ' FILENAME: C:\My Code\vb\md5\CMD5.cls ' AUTHOR: Phil Fresle ' CREATED: 16-Feb-2001 ' COPYRIGHT: Copyright 2001 Frez Systems Limited. All Rights Reserved. ' ' DESCRIPTION: ' Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm, ' as set out in the memo RFC1321. ' ' This class is used to generate an MD5 'digest' or 'signature' of a string. The ' MD5 algorithm is one of the industry standard methods for generating digital ' signatures. It is generically known as a digest, digital signature, one-way ' encryption, hash or checksum algorithm. A common use for MD5 is for password ' encryption as it is one-way in nature, that does not mean that your passwords ' are not free from a dictionary attack. If you are using the ' routine for passwords, you can make it a little more secure by concatenating ' some known random characters to the password before you generate the signature ' and on subsequent tests, so even if a hacker knows you are using MD5 for ' your passwords, the random characters will make it harder to dictionary attack. ' ' *** CAUTION *** ' See the comment attached to the MD5 method below regarding use on systems ' with different character sets. ' ' This is 'free' software with the following restrictions: ' ' You may not redistribute this code as a 'sample' or 'demo'. However, you are free ' to use the source code in your own code, but you may not claim that you created ' the sample code. It is expressly forbidden to sell or profit from this source code ' other than by the knowledge gained or the enhanced value added by your own code. ' ' Use of this software is also done so at your own risk. The code is supplied as ' is without warranty or guarantee of any kind. ' ' Should you wish to commission some derivative work based on this code provided ' here, or any consultancy work, please do not hesitate to contact us. ' ' Web Site: http://www.frez.co.uk ' E-mail: sales at frez.co.uk ' ' MODIFICATION HISTORY: ' 1.0 16-Feb-2001 ' Phil Fresle ' Initial Version '******************************************************************************* Private Const BITS_TO_A_BYTE As Long = 8 Private Const BYTES_TO_A_WORD As Long = 4 Private Const BITS_TO_A_WORD As Long = BYTES_TO_A_WORD * BITS_TO_A_BYTE Private m_lOnBits(0 To 30) As Long Private m_l2Power(0 To 30) As Long '******************************************************************************* ' Class_Initialize (SUB) ' ' DESCRIPTION: ' We will usually get quicker results by preparing arrays of bit patterns and ' powers of 2 ahead of time instead of calculating them every time, unless of ' course the methods are only ever getting called once per instantiation of the ' class. '******************************************************************************* Private Sub Class_Initialize() ' Could have done this with a loop calculating each value, but simply ' assigning the values is quicker - BITS SET FROM RIGHT m_lOnBits(0) = 1 ' 00000000000000000000000000000001 m_lOnBits(1) = 3 ' 00000000000000000000000000000011 m_lOnBits(2) = 7 ' 00000000000000000000000000000111 m_lOnBits(3) = 15 ' 00000000000000000000000000001111 m_lOnBits(4) = 31 ' 00000000000000000000000000011111 m_lOnBits(5) = 63 ' 00000000000000000000000000111111 m_lOnBits(6) = 127 ' 00000000000000000000000001111111 m_lOnBits(7) = 255 ' 00000000000000000000000011111111 m_lOnBits(8) = 511 ' 00000000000000000000000111111111 m_lOnBits(9) = 1023 ' 00000000000000000000001111111111 m_lOnBits(10) = 2047 ' 00000000000000000000011111111111 m_lOnBits(11) = 4095 ' 00000000000000000000111111111111 m_lOnBits(12) = 8191 ' 00000000000000000001111111111111 m_lOnBits(13) = 16383 ' 00000000000000000011111111111111 m_lOnBits(14) = 32767 ' 00000000000000000111111111111111 m_lOnBits(15) = 65535 ' 00000000000000001111111111111111 m_lOnBits(16) = 131071 ' 00000000000000011111111111111111 m_lOnBits(17) = 262143 ' 00000000000000111111111111111111 m_lOnBits(18) = 524287 ' 00000000000001111111111111111111 m_lOnBits(19) = 1048575 ' 00000000000011111111111111111111 m_lOnBits(20) = 2097151 ' 00000000000111111111111111111111 m_lOnBits(21) = 4194303 ' 00000000001111111111111111111111 m_lOnBits(22) = 8388607 ' 00000000011111111111111111111111 m_lOnBits(23) = 16777215 ' 00000000111111111111111111111111 m_lOnBits(24) = 33554431 ' 00000001111111111111111111111111 m_lOnBits(25) = 67108863 ' 00000011111111111111111111111111 m_lOnBits(26) = 134217727 ' 00000111111111111111111111111111 m_lOnBits(27) = 268435455 ' 00001111111111111111111111111111 m_lOnBits(28) = 536870911 ' 00011111111111111111111111111111 m_lOnBits(29) = 1073741823 ' 00111111111111111111111111111111 m_lOnBits(30) = 2147483647 ' 01111111111111111111111111111111 ' Could have done this with a loop calculating each value, but simply ' assigning the values is quicker - POWERS OF 2 m_l2Power(0) = 1 ' 00000000000000000000000000000001 m_l2Power(1) = 2 ' 00000000000000000000000000000010 m_l2Power(2) = 4 ' 00000000000000000000000000000100 m_l2Power(3) = 8 ' 00000000000000000000000000001000 m_l2Power(4) = 16 ' 00000000000000000000000000010000 m_l2Power(5) = 32 ' 00000000000000000000000000100000 m_l2Power(6) = 64 ' 00000000000000000000000001000000 m_l2Power(7) = 128 ' 00000000000000000000000010000000 m_l2Power(8) = 256 ' 00000000000000000000000100000000 m_l2Power(9) = 512 ' 00000000000000000000001000000000 m_l2Power(10) = 1024 ' 00000000000000000000010000000000 m_l2Power(11) = 2048 ' 00000000000000000000100000000000 m_l2Power(12) = 4096 ' 00000000000000000001000000000000 m_l2Power(13) = 8192 ' 00000000000000000010000000000000 m_l2Power(14) = 16384 ' 00000000000000000100000000000000 m_l2Power(15) = 32768 ' 00000000000000001000000000000000 m_l2Power(16) = 65536 ' 00000000000000010000000000000000 m_l2Power(17) = 131072 ' 00000000000000100000000000000000 m_l2Power(18) = 262144 ' 00000000000001000000000000000000 m_l2Power(19) = 524288 ' 00000000000010000000000000000000 m_l2Power(20) = 1048576 ' 00000000000100000000000000000000 m_l2Power(21) = 2097152 ' 00000000001000000000000000000000 m_l2Power(22) = 4194304 ' 00000000010000000000000000000000 m_l2Power(23) = 8388608 ' 00000000100000000000000000000000 m_l2Power(24) = 16777216 ' 00000001000000000000000000000000 m_l2Power(25) = 33554432 ' 00000010000000000000000000000000 m_l2Power(26) = 67108864 ' 00000100000000000000000000000000 m_l2Power(27) = 134217728 ' 00001000000000000000000000000000 m_l2Power(28) = 268435456 ' 00010000000000000000000000000000 m_l2Power(29) = 536870912 ' 00100000000000000000000000000000 m_l2Power(30) = 1073741824 ' 01000000000000000000000000000000 End Sub '******************************************************************************* ' LShift (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - The value to be shifted ' (In) - iShiftBits - Integer - The number of bits to shift the value by ' ' RETURN VALUE: ' Long - The shifted long integer ' ' DESCRIPTION: ' A left shift takes all the set binary bits and moves them left, in-filling ' with zeros in the vacated bits on the right. This function is equivalent to ' the << operator in Java and C++ '******************************************************************************* Private Function LShift(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all. If iShiftBits = 0 Then LShift = lValue Exit Function ' A shift of 31 will result in the right most bit becoming the left most ' bit and all other bits being cleared ElseIf iShiftBits = 31 Then If lValue And 1 Then LShift = &H80000000 Else LShift = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' If the left most bit that remains will end up in the negative bit ' position (&H80000000) we would end up with an overflow if we took the ' standard route. We need to strip the left most bit and add it back ' afterwards. If (lValue And m_l2Power(31 - iShiftBits)) Then ' (Value And OnBits(31 - (Shift + 1))) chops off the left most bits that ' we are shifting into, but also the left most bit we still want as this ' is going to end up in the negative bit marker position (&H80000000). ' After the multiplication/shift we Or the result with &H80000000 to ' turn the negative bit on. LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * _ m_l2Power(iShiftBits)) Or &H80000000 Else ' (Value And OnBits(31-Shift)) chops off the left most bits that we are ' shifting into so we do not get an overflow error when we do the ' multiplication/shift LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * _ m_l2Power(iShiftBits)) End If End Function '******************************************************************************* ' RShift (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - The value to be shifted ' (In) - iShiftBits - Integer - The number of bits to shift the value by ' ' RETURN VALUE: ' Long - The shifted long integer ' ' DESCRIPTION: ' The right shift of an unsigned long integer involves shifting all the set bits ' to the right and in-filling on the left with zeros. This function is ' equivalent to the >>> operator in Java or the >> operator in C++ when used on ' an unsigned long. '******************************************************************************* Private Function RShift(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all If iShiftBits = 0 Then RShift = lValue Exit Function ' A shift of 31 will clear all bits and move the left most bit to the right ' most bit position ElseIf iShiftBits = 31 Then If lValue And &H80000000 Then RShift = 1 Else RShift = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' We do not care about the top most bit or the final bit, the top most bit ' will be taken into account in the next stage, the final bit (whether it ' is an odd number or not) is being shifted into, so we do not give a jot ' about it RShift = (lValue And &H7FFFFFFE) \ m_l2Power(iShiftBits) ' If the top most bit (&H80000000) was set we need to do things differently ' as in a normal VB signed long integer the top most bit is used to indicate ' the sign of the number, when it is set it is a negative number, so just ' deviding by a factor of 2 as above would not work. ' NOTE: (lValue And &H80000000) is equivalent to (lValue < 0), you could ' get a very marginal speed improvement by changing the test to (lValue < 0) If (lValue And &H80000000) Then ' We take the value computed so far, and then add the left most negative ' bit after it has been shifted to the right the appropriate number of ' places RShift = (RShift Or (&H40000000 \ m_l2Power(iShiftBits - 1))) End If End Function '******************************************************************************* ' RShiftSigned (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - ' (In) - iShiftBits - Integer - ' ' RETURN VALUE: ' Long - ' ' DESCRIPTION: ' The right shift of a signed long integer involves shifting all the set bits to ' the right and in-filling on the left with the sign bit (0 if positive, 1 if ' negative. This function is equivalent to the >> operator in Java or the >> ' operator in C++ when used on a signed long integer. Not used in this class, ' but included for completeness. '******************************************************************************* Private Function RShiftSigned(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all If iShiftBits = 0 Then RShiftSigned = lValue Exit Function ' A shift of 31 will clear all bits if the left most bit was zero, and will ' set all bits if the left most bit was 1 (a negative indicator) ElseIf iShiftBits = 31 Then ' NOTE: (lValue And &H80000000) is equivalent to (lValue < 0), you ' could get a very marginal speed improvement by changing the test to ' (lValue < 0) If (lValue And &H80000000) Then RShiftSigned = -1 Else RShiftSigned = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' We get the same result by dividing by the appropriate power of 2 and ' rounding in the negative direction RShiftSigned = Int(lValue / m_l2Power(iShiftBits)) End Function '******************************************************************************* ' RotateLeft (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - Value to act on ' (In) - iShiftBits - Integer - Bits to move by ' ' RETURN VALUE: ' Long - Result ' ' DESCRIPTION: ' Rotates the bits in a long integer to the left, those bits falling off the ' left edge are put back on the right edge '******************************************************************************* Private Function RotateLeft(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long RotateLeft = LShift(lValue, iShiftBits) Or RShift(lValue, (32 - iShiftBits)) End Function '******************************************************************************* ' AddUnsigned (FUNCTION) ' ' PARAMETERS: ' (In) - lX - Long - First value ' (In) - lY - Long - Second value ' ' RETURN VALUE: ' Long - Result ' ' DESCRIPTION: ' Adds two potentially large unsigned numbers without overflowing '******************************************************************************* Private Function AddUnsigned(ByVal lX As Long, _ ByVal lY As Long) As Long Dim lX4 As Long Dim lY4 As Long Dim lX8 As Long Dim lY8 As Long Dim lResult As Long lX8 = lX And &H80000000 lY8 = lY And &H80000000 lX4 = lX And &H40000000 lY4 = lY And &H40000000 lResult = (lX And &H3FFFFFFF) + (lY And &H3FFFFFFF) If lX4 And lY4 Then lResult = lResult Xor &H80000000 Xor lX8 Xor lY8 ElseIf lX4 Or lY4 Then If lResult And &H40000000 Then lResult = lResult Xor &HC0000000 Xor lX8 Xor lY8 Else lResult = lResult Xor &H40000000 Xor lX8 Xor lY8 End If Else lResult = lResult Xor lX8 Xor lY8 End If AddUnsigned = lResult End Function '******************************************************************************* ' F (FUNCTION) ' ' DESCRIPTION: ' MD5's F function '******************************************************************************* Private Function F(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long F = (x And y) Or ((Not x) And z) End Function '******************************************************************************* ' G (FUNCTION) ' ' DESCRIPTION: ' MD5's G function '******************************************************************************* Private Function G(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long G = (x And z) Or (y And (Not z)) End Function '******************************************************************************* ' H (FUNCTION) ' ' DESCRIPTION: ' MD5's H function '******************************************************************************* Private Function H(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long H = (x Xor y Xor z) End Function '******************************************************************************* ' I (FUNCTION) ' ' DESCRIPTION: ' MD5's I function '******************************************************************************* Private Function I(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long I = (y Xor (x Or (Not z))) End Function '******************************************************************************* ' FF (SUB) ' ' DESCRIPTION: ' MD5's FF procedure '******************************************************************************* Private Sub FF(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' GG (SUB) ' ' DESCRIPTION: ' MD5's GG procedure '******************************************************************************* Private Sub GG(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' HH (SUB) ' ' DESCRIPTION: ' MD5's HH procedure '******************************************************************************* Private Sub HH(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' II (SUB) ' ' DESCRIPTION: ' MD5's II procedure '******************************************************************************* Private Sub II(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' ConvertToWordArray (FUNCTION) ' ' PARAMETERS: ' (In/Out) - sMessage - String - String message ' ' RETURN VALUE: ' Long() - Converted message as long array ' ' DESCRIPTION: ' Takes the string message and puts it in a long array with padding according to ' the MD5 rules. '******************************************************************************* Private Function ConvertToWordArray(sMessage As String) As Long() Dim lMessageLength As Long Dim lNumberOfWords As Long Dim lWordArray() As Long Dim lBytePosition As Long Dim lByteCount As Long Dim lWordCount As Long Const MODULUS_BITS As Long = 512 Const CONGRUENT_BITS As Long = 448 lMessageLength = Len(sMessage) ' Get padded number of words. Message needs to be congruent to 448 bits, ' modulo 512 bits. If it is exactly congruent to 448 bits, modulo 512 bits ' it must still have another 512 bits added. 512 bits = 64 bytes ' (or 16 * 4 byte words), 448 bits = 56 bytes. This means lMessageSize must ' be a multiple of 16 (i.e. 16 * 4 (bytes) * 8 (bits)) lNumberOfWords = (((lMessageLength + _ ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ _ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * _ (MODULUS_BITS \ BITS_TO_A_WORD) ReDim lWordArray(lNumberOfWords - 1) ' Combine each block of 4 bytes (ascii code of character) into one long ' value and store in the message. The high-order (most significant) bit of ' each byte is listed first. However, the low-order (least significant) byte ' is given first in each word. lBytePosition = 0 lByteCount = 0 Do Until lByteCount >= lMessageLength ' Each word is 4 bytes lWordCount = lByteCount \ BYTES_TO_A_WORD ' The bytes are put in the word from the right most edge lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE lWordArray(lWordCount) = lWordArray(lWordCount) Or _ LShift(AscB(Mid(sMessage, lByteCount + 1, 1)), lBytePosition) lByteCount = lByteCount + 1 Loop ' Terminate according to MD5 rules with a 1 bit, zeros and the length in ' bits stored in the last two words lWordCount = lByteCount \ BYTES_TO_A_WORD lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE ' Add a terminating 1 bit, all the rest of the bits to the end of the ' word array will default to zero lWordArray(lWordCount) = lWordArray(lWordCount) Or _ LShift(&H80, lBytePosition) ' We put the length of the message in bits into the last two words, to get ' the length in bits we need to multiply by 8 (or left shift 3). This left ' shifted value is put in the first word. Any bits shifted off the left edge ' need to be put in the second word, we can work out which bits by shifting ' right the length by 29 bits. lWordArray(lNumberOfWords - 2) = LShift(lMessageLength, 3) lWordArray(lNumberOfWords - 1) = RShift(lMessageLength, 29) ConvertToWordArray = lWordArray End Function '******************************************************************************* ' WordToHex (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - Long value to convert ' ' RETURN VALUE: ' String - Hex value to return ' ' DESCRIPTION: ' Takes a long integer and due to the bytes reverse order it extracts the ' individual bytes and converts them to hex appending them for an overall hex ' value '******************************************************************************* Private Function WordToHex(ByVal lValue As Long) As String Dim lByte As Long Dim lCount As Long For lCount = 0 To 3 lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And _ m_lOnBits(BITS_TO_A_BYTE - 1) WordToHex = WordToHex & Right("0" & Hex(lByte), 2) Next End Function '******************************************************************************* ' MD5 (FUNCTION) ' ' PARAMETERS: ' (In/Out) - sMessage - String - String to be digested ' ' RETURN VALUE: ' String - The MD5 digest ' ' DESCRIPTION: ' This function takes a string message and generates an MD5 digest for it. ' sMessage can be up to the VB string length limit of 2^31 (approx. 2 billion) ' characters. ' ' NOTE: Due to the way in which the string is processed the routine assumes a ' single byte character set. VB passes unicode (2-byte) character strings, the ' ConvertToWordArray function uses on the first byte for each character. This ' has been done this way for ease of use, to make the routine truely portable ' you could accept a byte array instead, it would then be up to the calling ' routine to make sure that the byte array is generated from their string in ' a manner consistent with the string type. '******************************************************************************* Public Function MD5(sMessage As String) As String Dim x() As Long Dim k As Long Dim AA As Long Dim BB As Long Dim CC As Long Dim DD As Long Dim a As Long Dim b As Long Dim c As Long Dim d As Long Const S11 As Long = 7 Const S12 As Long = 12 Const S13 As Long = 17 Const S14 As Long = 22 Const S21 As Long = 5 Const S22 As Long = 9 Const S23 As Long = 14 Const S24 As Long = 20 Const S31 As Long = 4 Const S32 As Long = 11 Const S33 As Long = 16 Const S34 As Long = 23 Const S41 As Long = 6 Const S42 As Long = 10 Const S43 As Long = 15 Const S44 As Long = 21 ' Steps 1 and 2. Append padding bits and length and convert to words x = ConvertToWordArray(sMessage) ' Step 3. Initialise a = &H67452301 b = &HEFCDAB89 c = &H98BADCFE d = &H10325476 ' Step 4. Process the message in 16-word blocks For k = 0 To UBound(x) Step 16 AA = a BB = b CC = c DD = d ' The hex number on the end of each of the following procedure calls is ' an element from the 64 element table constructed with ' T(i) = Int(4294967296 * Abs(Sin(i))) where i is 1 to 64. ' ' However, for speed we don't want to calculate the value every time. FF a, b, c, d, x(k + 0), S11, &HD76AA478 FF d, a, b, c, x(k + 1), S12, &HE8C7B756 FF c, d, a, b, x(k + 2), S13, &H242070DB FF b, c, d, a, x(k + 3), S14, &HC1BDCEEE FF a, b, c, d, x(k + 4), S11, &HF57C0FAF FF d, a, b, c, x(k + 5), S12, &H4787C62A FF c, d, a, b, x(k + 6), S13, &HA8304613 FF b, c, d, a, x(k + 7), S14, &HFD469501 FF a, b, c, d, x(k + 8), S11, &H698098D8 FF d, a, b, c, x(k + 9), S12, &H8B44F7AF FF c, d, a, b, x(k + 10), S13, &HFFFF5BB1 FF b, c, d, a, x(k + 11), S14, &H895CD7BE FF a, b, c, d, x(k + 12), S11, &H6B901122 FF d, a, b, c, x(k + 13), S12, &HFD987193 FF c, d, a, b, x(k + 14), S13, &HA679438E FF b, c, d, a, x(k + 15), S14, &H49B40821 GG a, b, c, d, x(k + 1), S21, &HF61E2562 GG d, a, b, c, x(k + 6), S22, &HC040B340 GG c, d, a, b, x(k + 11), S23, &H265E5A51 GG b, c, d, a, x(k + 0), S24, &HE9B6C7AA GG a, b, c, d, x(k + 5), S21, &HD62F105D GG d, a, b, c, x(k + 10), S22, &H2441453 GG c, d, a, b, x(k + 15), S23, &HD8A1E681 GG b, c, d, a, x(k + 4), S24, &HE7D3FBC8 GG a, b, c, d, x(k + 9), S21, &H21E1CDE6 GG d, a, b, c, x(k + 14), S22, &HC33707D6 GG c, d, a, b, x(k + 3), S23, &HF4D50D87 GG b, c, d, a, x(k + 8), S24, &H455A14ED GG a, b, c, d, x(k + 13), S21, &HA9E3E905 GG d, a, b, c, x(k + 2), S22, &HFCEFA3F8 GG c, d, a, b, x(k + 7), S23, &H676F02D9 GG b, c, d, a, x(k + 12), S24, &H8D2A4C8A HH a, b, c, d, x(k + 5), S31, &HFFFA3942 HH d, a, b, c, x(k + 8), S32, &H8771F681 HH c, d, a, b, x(k + 11), S33, &H6D9D6122 HH b, c, d, a, x(k + 14), S34, &HFDE5380C HH a, b, c, d, x(k + 1), S31, &HA4BEEA44 HH d, a, b, c, x(k + 4), S32, &H4BDECFA9 HH c, d, a, b, x(k + 7), S33, &HF6BB4B60 HH b, c, d, a, x(k + 10), S34, &HBEBFBC70 HH a, b, c, d, x(k + 13), S31, &H289B7EC6 HH d, a, b, c, x(k + 0), S32, &HEAA127FA HH c, d, a, b, x(k + 3), S33, &HD4EF3085 HH b, c, d, a, x(k + 6), S34, &H4881D05 HH a, b, c, d, x(k + 9), S31, &HD9D4D039 HH d, a, b, c, x(k + 12), S32, &HE6DB99E5 HH c, d, a, b, x(k + 15), S33, &H1FA27CF8 HH b, c, d, a, x(k + 2), S34, &HC4AC5665 II a, b, c, d, x(k + 0), S41, &HF4292244 II d, a, b, c, x(k + 7), S42, &H432AFF97 II c, d, a, b, x(k + 14), S43, &HAB9423A7 II b, c, d, a, x(k + 5), S44, &HFC93A039 II a, b, c, d, x(k + 12), S41, &H655B59C3 II d, a, b, c, x(k + 3), S42, &H8F0CCC92 II c, d, a, b, x(k + 10), S43, &HFFEFF47D II b, c, d, a, x(k + 1), S44, &H85845DD1 II a, b, c, d, x(k + 8), S41, &H6FA87E4F II d, a, b, c, x(k + 15), S42, &HFE2CE6E0 II c, d, a, b, x(k + 6), S43, &HA3014314 II b, c, d, a, x(k + 13), S44, &H4E0811A1 II a, b, c, d, x(k + 4), S41, &HF7537E82 II d, a, b, c, x(k + 11), S42, &HBD3AF235 II c, d, a, b, x(k + 2), S43, &H2AD7D2BB II b, c, d, a, x(k + 9), S44, &HEB86D391 a = AddUnsigned(a, AA) b = AddUnsigned(b, BB) c = AddUnsigned(c, CC) d = AddUnsigned(d, DD) Next ' Step 5. Output the 128 bit digest MD5 = LCase(WordToHex(a) & WordToHex(b) & WordToHex(c) & WordToHex(d)) End Function From garykjos at gmail.com Fri Sep 14 10:24:17 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 14 Sep 2007 10:24:17 -0500 Subject: [AccessD] MD5 Hash (was: First in a group) In-Reply-To: References: Message-ID: I let it go through. This time ;-) GK On 9/14/07, Gustav Brock wrote: > OK, that's what I feared: > > --- > Your mail to 'AccessD' with the subject > > Re: [AccessD] MD5 Hash (was: First in a group) > > Is being held until the list moderator can review it for approval. > > The reason it is being held: > > Message body is too big: 30144 bytes with a limit of 20 KB > > Either the message will get posted to the list, or you will receive > notification of the moderator's decision. .. > --- > > > -- > 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 bill_patten at embarqmail.com Fri Sep 14 10:43:50 2007 From: bill_patten at embarqmail.com (Bill Patten) Date: Fri, 14 Sep 2007 08:43:50 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: <4AA8A44B737643A5A1C50A49F667A8F8@BPCS> Hi Julie, No, I use merge replication (SQL 2000) and check the CE tab when setting it up. Then set up IIS so that the PDA uses wireless and connects, then sync's. I also have 2 laptops with SQL server in them (standard in one and MSDE in the other) and they sync either wireless or on the lan. They both use triggers to create the ID based on the code I sent you. I only have a few thousand records but have never seen a duplication error. I am using an Dell AXIM X51V, but mostly to look up data, very little inputting. If much inputting was required I'd probably try to find one with a built in keyboard, as the screen keyboards tend to cover up the input screens. Bill ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 8:01 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 cfoust at infostatsystems.com Fri Sep 14 10:53:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 08:53:55 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <003101c7f6dd$32c44f80$9402a8c0@hpnotebook> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <003101c7f6dd$32c44f80$9402a8c0@hpnotebook> Message-ID: I didn't mean to offend you, Julie. And just because you understand the sanctity of design masters doesn't mean that every person who reads this thread does. The comment was simply to emphasize the for anyone who *didn't* already know it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 14, 2007 7:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database I'm not an idiot Charlotte. Of course, I am not working directly with the design master. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 jmhecht at earthlink.net Fri Sep 14 10:56:42 2007 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 14 Sep 2007 08:56:42 -0700 Subject: [AccessD] Thank you and see you Message-ID: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net From cfoust at infostatsystems.com Fri Sep 14 11:03:37 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 09:03:37 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <011801c7f6e2$1b6febf0$0202a8c0@Laptop> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <011801c7f6e2$1b6febf0$0202a8c0@Laptop> Message-ID: The design master is synced to the other replicas, usually through an intermediate replica, with all design changes being made to the design master and then synced to the levels of replicas. You don't change data in a design master because it causes data conflicts with the replicas that have to be hand laundered by the developer. In replication, the design and the data are synced separately, not simultaneously, so changes to design to add a field and changes to data to populate that field would result in the data being synced when the field didn't yet exist in the replicas. The other big reason for not working directly in the design master (I'm not talking design changes, mind you, only data) is that sooner or later the design master rolls over and turns up its toes and you have to recover a replica as the new DM. Mucking around in the DM only increases the chance of it failing. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Friday, September 14, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database I volunteer to be the idiot. Why doesn't anyone ever work with the design master? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 10:40 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database > I'm not an idiot Charlotte. Of course, I am not working directly with the > design master. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 2:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 14 11:05:18 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 09:05:18 -0700 Subject: [AccessD] Thank you and see you In-Reply-To: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> References: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Message-ID: You'll stay signed up for the conference list, right? I think it's safe to say that list alumni are welcome at those get togethers. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, September 14, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Thank you and see you Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net -- 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 Sep 14 11:38:22 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 14 Sep 2007 12:38:22 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant><004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFC0@EXCNYSM0A1AI.nysemail.nyenet> Try Programmer's notepad http://www.pnotepad.org/ I have been using this for awhile. There might be others out there that I don't know of ************************************************** * 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 > Bob Gajewski > Sent: Saturday, September 01, 2007 02:47 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Does anyone have a parenthesis highlighting tool? > > Hi Folks > > I am in need of some rather complex WHERE statements in my > SELECT clauses, and was wondering if anyone knew of a > tool/program that helps keep parentheses properly paired --- > perhaps similar to the way that Excel uses different colors > for highlighting corresponding pairs? > > Thanks, > Bob Gajewski > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.13.1/982 - Release > Date: 08/31/2007 > 17:21 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Fri Sep 14 11:54:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 18:54:02 +0200 Subject: [AccessD] Thank you and see you Message-ID: Hi Joe Nice product range of yours. Good luck! /gustav >>> jmhecht at earthlink.net 14-09-2007 17:56 >>> Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net From tdd-inc at shaw.ca Fri Sep 14 12:18:49 2007 From: tdd-inc at shaw.ca (Philip Scyner) Date: Fri, 14 Sep 2007 10:18:49 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: Message-ID: <036701c7f6f3$58dc0ad0$6500a8c0@CADCAM> I might consider having each tablet a unique no or letter... Ie tablet 1 - 01 or A Tablet 2 - 02 or B and putting an id after/before it id number could be 00001-01 or 01-00001 or A00001 when you import it into the main db you have that one assign its own unique id still being able to reference the tablet id for tracebility. Phil -----Original Message----- From: Julie Reardon [mailto:prosoft6 at hotmail.com] Sent: Friday, September 14, 2007 8:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 max.wanadoo at gmail.com Fri Sep 14 12:53:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 18:53:34 +0100 Subject: [AccessD] MD5 Hash (was: First in a group) In-Reply-To: References: Message-ID: <002901c7f6f8$2c4f3820$8119fea9@LTVM> Thanks very much Gustav, That works a treat! Much obliged Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 14, 2007 4:04 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MD5 Hash (was: First in a group) Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 14 13:08:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 20:08:06 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Hi Max Good to know. Thanks for the feedback. /gustav >>> max.wanadoo at gmail.com 14-09-2007 19:53 >>> Thanks very much Gustav, That works a treat! Much obliged Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 14, 2007 4:04 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MD5 Hash (was: First in a group) Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From max.wanadoo at gmail.com Fri Sep 14 13:15:46 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 19:15:46 +0100 Subject: [AccessD] Access to VB.Net Message-ID: <000001c7f6fb$46692ab0$8119fea9@LTVM> Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max From max.wanadoo at gmail.com Fri Sep 14 13:55:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 19:55:04 +0100 Subject: [AccessD] First in a group In-Reply-To: <006b01c7f6dd$581d0290$8abea8c0@XPS> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90><006d01c7f6da$5ad5e860$8119fea9@LTVM> <006b01c7f6dd$581d0290$8abea8c0@XPS> Message-ID: <000101c7f700$c3a30550$8119fea9@LTVM> No worries, Jim. The code that Gustav posted worked a dream Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 14, 2007 3:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Sep 14 15:02:46 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 15 Sep 2007 00:02:46 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f6fb$46692ab0$8119fea9@LTVM> Message-ID: <000101c7f70a$380d0720$6501a8c0@nant> Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Fri Sep 14 20:20:17 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Sat, 15 Sep 2007 11:20:17 +1000 (EST) Subject: [AccessD] Hash - was: First in a group Message-ID: <20070915112017.DCZ38808@dommail.onthenet.com.au> John, thanks for - as usual - an elaborate response to a qustion - I can put this to good use. Also thanks to Max for asking and Gustav for providing the MD5 hash algoritm for VBA! Regards Borge ---- Original message ---- >Date: Thu, 13 Sep 2007 23:58:00 -0400 >From: "jwcolby" >Subject: Re: [AccessD] First in a group >To: "'Access Developers discussion and problem solving'" > >Borge, > >The hash was done in SQL Server. There is a Hash function inside of SQL >Server that I used. It has various "brands" of hash and I chose one (sha1), >then just ran all of the address fields into the hash function and out pops >a binary (~160 bit?) hash number. > >UPDATE [PSM_DPSI11000].[dbo].[tblData] > SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) > ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) > ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) > >Google HashBytes for more info on that function. > From max.wanadoo at gmail.com Sat Sep 15 02:45:53 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 08:45:53 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000101c7f70a$380d0720$6501a8c0@nant> References: <000001c7f6fb$46692ab0$8119fea9@LTVM> <000101c7f70a$380d0720$6501a8c0@nant> Message-ID: <000a01c7f76c$722933e0$8119fea9@LTVM> Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 15 03:33:03 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 09:33:03 +0100 Subject: [AccessD] HashBytes In-Reply-To: <003501c7f683$71e09200$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> Message-ID: <001001c7f773$0917e890$8119fea9@LTVM> John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Sep 15 06:48:21 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2007 07:48:21 -0400 Subject: [AccessD] HashBytes In-Reply-To: <001001c7f773$0917e890$8119fea9@LTVM> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90> <001001c7f773$0917e890$8119fea9@LTVM> Message-ID: <004c01c7f78e$5185ac00$6c7aa8c0@M90> >However, do you first put all to Ucase()? No I didn't but should have! My addresses are standardized but I do not know whether they standardize the case as well, I suspect not. And yes, it would almost certainly make a difference between the hash codes. The nice thing is that once calculated, you never have to do that again. You would have to remember to do the UCASE against any other address record so that you were comparing apples to oranges. Good catch. I will have to go back and recalc my hashes doing the UCASE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 4:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] HashBytes John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 15 07:11:40 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 13:11:40 +0100 Subject: [AccessD] HashBytes In-Reply-To: <004c01c7f78e$5185ac00$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90><001001c7f773$0917e890$8119fea9@LTVM> <004c01c7f78e$5185ac00$6c7aa8c0@M90> Message-ID: <001901c7f791$93684030$8119fea9@LTVM> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 15, 2007 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] HashBytes >However, do you first put all to Ucase()? No I didn't but should have! My addresses are standardized but I do not know whether they standardize the case as well, I suspect not. And yes, it would almost certainly make a difference between the hash codes. The nice thing is that once calculated, you never have to do that again. You would have to remember to do the UCASE against any other address record so that you were comparing apples to oranges. Good catch. I will have to go back and recalc my hashes doing the UCASE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 4:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] HashBytes John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 15 17:16:02 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 15 Sep 2007 17:16:02 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row Message-ID: <000301c7f7e6$01071a90$0200a8c0@danwaters> I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan From max.wanadoo at gmail.com Sun Sep 16 11:21:33 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sun, 16 Sep 2007 17:21:33 +0100 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f7e6$01071a90$0200a8c0@danwaters> References: <000301c7f7e6$01071a90$0200a8c0@danwaters> Message-ID: <000301c7f87d$a6773860$8119fea9@LTVM> Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Sep 16 12:01:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 16 Sep 2007 10:01:55 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sun Sep 16 12:59:24 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sun, 16 Sep 2007 18:59:24 +0100 Subject: [AccessD] FW: Command Button Bitmap for Delete Row Message-ID: <000a01c7f88b$51fbfd80$8119fea9@LTVM> Hi Jim, I took it straight out of the text file that came with the download (was some time ago though). Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 6:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Sun Sep 16 17:37:50 2007 From: nd500_lo at charter.net (Dian) Date: Sun, 16 Sep 2007 15:37:50 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... From darren at activebilling.com.au Sun Sep 16 17:49:45 2007 From: darren at activebilling.com.au (Darren D) Date: Mon, 17 Sep 2007 08:49:45 +1000 Subject: [AccessD] Thank you and see you In-Reply-To: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Message-ID: <200709162249.l8GMnePi018365@databaseadvisors.com> Hi Joe Sad to see you go - I do hope all goes well with your products Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, 15 September 2007 1:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Thank you and see you Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net -- 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 Sep 16 18:39:16 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 16 Sep 2007 19:39:16 -0400 Subject: [AccessD] Database Patent...sort of....kinda References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> <008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> I haven't any idea about this kind of ridiculous hair-splitting, but to get the ball rolling ... I would propose that only the data was of any proprietary value. The method used at A and, subsequently, used at B was developed by the same person (you) for the same logical business process. One need only apply the following standard: If any logical person working independently with the same kind or type of business process is to succeed in uniformly accounting for these special issues, will they or will they not likely be forced to reach the same conclusions given the accounting standards to which such business is bound? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Dian" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 6:37 PM Subject: Re: [AccessD] Database Patent...sort of....kinda > OK...I give up...I've thought about this all weekend and I'm supposed to > have an answer tomorrow and I don't. This is ethical and moral and legal, > I > think. Years ago, I worked for a title insurance company that dealt with > timeshares. At their request, I created an application to deal with some > of > the special issues that affect timeshares and title insurance. That was my > first Access database. I left the company and the database...it belonged > to > them. No problem. I went to work for another title company and created the > database application they needed to deal with their timeshare issues > (didn't > use the old one....sorta recreated a new one). So far, so good. Not a > moral > or ethical issue involved. That company fell apart and I moved on. Now, > the > unethical part. The company fell apart and I took the the database home > with > me because nobody cared. I "play" with it...have test data, etc., easily > available and I have implemented a number of the ideas I've gleaned from > this group (for which I will always be grateful)...now comes the ethical > question: Owner A couldn't care less (they don't do timeshares now); Owner > B > is out of business entirely. IF I choose to work with C, am I doing > anything > wrong by using the framework I've "played" with over the years. My > apologies...I know this is weird...but, honestly, I have no clue who else > to > ask. Thank you... > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From nd500_lo at charter.net Sun Sep 16 18:55:57 2007 From: nd500_lo at charter.net (Dian) Date: Sun, 16 Sep 2007 16:55:57 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne><000001c7f8b2$36e9fd40$6400a8c0@dsunit1> <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> Message-ID: <000001c7f8bd$20339fb0$6400a8c0@dsunit1> Thank you, Michael...I know it's complicated...and I do appreciate your input. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, September 16, 2007 4:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent...sort of....kinda I haven't any idea about this kind of ridiculous hair-splitting, but to get the ball rolling ... I would propose that only the data was of any proprietary value. The method used at A and, subsequently, used at B was developed by the same person (you) for the same logical business process. One need only apply the following standard: If any logical person working independently with the same kind or type of business process is to succeed in uniformly accounting for these special issues, will they or will they not likely be forced to reach the same conclusions given the accounting standards to which such business is bound? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Dian" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 6:37 PM Subject: Re: [AccessD] Database Patent...sort of....kinda > OK...I give up...I've thought about this all weekend and I'm supposed to > have an answer tomorrow and I don't. This is ethical and moral and legal, > I > think. Years ago, I worked for a title insurance company that dealt with > timeshares. At their request, I created an application to deal with some > of > the special issues that affect timeshares and title insurance. That was my > first Access database. I left the company and the database...it belonged > to > them. No problem. I went to work for another title company and created the > database application they needed to deal with their timeshare issues > (didn't > use the old one....sorta recreated a new one). So far, so good. Not a > moral > or ethical issue involved. That company fell apart and I moved on. Now, > the > unethical part. The company fell apart and I took the the database home > with > me because nobody cared. I "play" with it...have test data, etc., easily > available and I have implemented a number of the ideas I've gleaned from > this group (for which I will always be grateful)...now comes the ethical > question: Owner A couldn't care less (they don't do timeshares now); Owner > B > is out of business entirely. IF I choose to work with C, am I doing > anything > wrong by using the framework I've "played" with over the years. My > apologies...I know this is weird...but, honestly, I have no clue who else > to > ask. Thank you... > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Sep 16 20:30:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 21:30:10 -0400 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <006501c7f8ca$4a721060$6c7aa8c0@M90> Both companies out of business, you developed it for pay for an insolvent business. I would say that you are bringing prior experience to company C, which happens to include code and ideas gleaned from time spent working for companies no longer in business. My first take would be no problem. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 6:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Sep 16 21:12:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 22:12:30 -0400 Subject: [AccessD] Is my site down Message-ID: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com From askolits at nni.com Sun Sep 16 21:37:19 2007 From: askolits at nni.com (John Skolits) Date: Sun, 16 Sep 2007 22:37:19 -0400 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <003201c7f8d3$ab0f6810$6401a8c0@LaptopXP> Received an error John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 askolits at nni.com Sun Sep 16 21:38:28 2007 From: askolits at nni.com (John Skolits) Date: Sun, 16 Sep 2007 22:38:28 -0400 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <087301c7f8d3$d46141c0$0f01a8c0@officexp> Here's the error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 drboz at pacbell.net Sun Sep 16 21:40:59 2007 From: drboz at pacbell.net (Don Bozarth) Date: Sun, 16 Sep 2007 19:40:59 -0700 Subject: [AccessD] Is my site down References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <005001c7f8d4$2ebcf880$6501a8c0@don> John, Received the following error.... Don B. Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 7:12 PM Subject: [AccessD] Is my site down > Would someone please try to browse to my web site - > > www.colbyconsulting.com > > And tell me if the site is down. I can't get at it at all but the hosting > company says they can see it. > > Please cut and paste the HTML error into a return email. > > Thanks, > > 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 thewaddles at sbcglobal.net Sun Sep 16 21:41:02 2007 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Sun, 16 Sep 2007 19:41:02 -0700 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <001b01c7f8d4$30d32e50$6600a8c0@TheWaddles> I get a server error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 Sun Sep 16 21:45:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 22:45:12 -0400 Subject: [AccessD] Is my site down In-Reply-To: <087301c7f8d3$d46141c0$0f01a8c0@officexp> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> <087301c7f8d3$d46141c0$0f01a8c0@officexp> Message-ID: <006d01c7f8d4$c6656f00$6c7aa8c0@M90> Thanks, that is what I needed. John 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 Skolits Sent: Sunday, September 16, 2007 10:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Is my site down Here's the error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 darren at activebilling.com.au Sun Sep 16 22:19:07 2007 From: darren at activebilling.com.au (Darren D) Date: Mon, 17 Sep 2007 13:19:07 +1000 Subject: [AccessD] A2003: Access Data Project Question Message-ID: <200709170319.l8H3IxGY028473@databaseadvisors.com> Hi All Am trying to do an insert from an Access Project form (That connects to an SQL 2000 dB) using a Forms!Control reference and am getting the following error "Run Time Error 128 - The Name Forms! Is not permitted in this context. Only Constants expressions, or variables allowed here. Column Names are not Permitted" Clearly the old fashioned way of referencing a form control is gone in access Data Projects When I click help on the error - I get a white blank screen - Pretty much how I feel :-) Any suggestions, work arounds or is there some proper way to do with with data Acess Projects? Many thanks Darren The code is Dim rs As Object Dim con As Object Dim insSQL As String Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" rs.Open insSQL, con, 1, 3 '<========Fails here ' DoCmd.RunSQL insSQL ' Also tried this and that failed too From newsgrps at dalyn.co.nz Sun Sep 16 22:32:45 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 17 Sep 2007 15:32:45 +1200 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <200709170319.l8H3IxGY028473@databaseadvisors.com> References: <200709170319.l8H3IxGY028473@databaseadvisors.com> Message-ID: <20070917032912.BSU7219.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Darren, Instead of: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" Try: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (" & Forms!frm1_Tariff!txtTariffID & ", " & Forms!frm3_TariffServices!cbo_luTariffServiceID & ")" Regards David At 17/09/2007, you wrote: >Hi All > > > >Am trying to do an insert from an Access Project form (That connects to an SQL >2000 dB) using a Forms!Control reference and am getting the following error > > > > > >"Run Time Error 128 - The Name Forms! Is not permitted in this context. Only >Constants expressions, or variables allowed here. Column Names are not >Permitted" > > > >Clearly the old fashioned way of referencing a form control is gone in access >Data Projects > > > >When I click help on the error - I get a white blank screen - Pretty >much how I >feel :-) > > > >Any suggestions, work arounds or is there some proper way to do with with data >Acess Projects? > > > >Many thanks > > > >Darren > > > >The code is > > Dim rs As Object > > Dim con As Object > > Dim insSQL As String > > > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > > > insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES >(Forms!frm1_Tariff!txtTariffID, >Forms!frm3_TariffServices!cbo_luTariffServiceID)" > > > > > > rs.Open insSQL, con, 1, 3 '<========Fails here > > > > ' DoCmd.RunSQL insSQL ' Also tried this and that failed too > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Sep 17 04:01:12 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Sep 2007 11:01:12 +0200 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max From max.wanadoo at gmail.com Mon Sep 17 07:32:12 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 17 Sep 2007 13:32:12 +0100 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: References: Message-ID: <004801c7f926$c7c5f020$8119fea9@LTVM> Hello Gustav, Thank you very much for this. I will try it out later, but knowing you I am sure it will work just fine. Thanks very much Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 17, 2007 10:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 07:37:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 08:37:30 -0400 Subject: [AccessD] Web site up Message-ID: <000001c7f927$83c40190$6c7aa8c0@M90> My web site is back up. Thanks for your responses in testing my site. John W. Colby Colby Consulting www.ColbyConsulting.com From Chester_Kaup at kindermorgan.com Mon Sep 17 08:10:54 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 08:10:54 -0500 Subject: [AccessD] Query is to complex Message-ID: Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 dwaters at usinternet.com Mon Sep 17 08:56:59 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 08:56:59 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <000a01c7f932$9e155e30$0200a8c0@danwaters> This is a good question! Unless you had a prior written agreement with either company that stated that a condition of your employment was that you would assign all rights to anything you created that was patentable or copyrightable, then those databases are yours. The reason for this is that the US Constitution specifically states that 'discoveries' belong to inventors and authors, and so no federal or state law can state differently and force you to give up your rights in this legal area. I've been a design engineer, and at most places I worked, before I accepted the job, I had to sign an agreement to assign all inventions (related to my job) to the company. I decided up front to do this, no law required me to. At one company I did apply for and receive a patent that was unrelated to my job, and my company had a review process where they released me from my obligation to assign rights to them for that patent. I am completely confident (although not an attorney) that the database you currently have is yours. Hope this helps, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Sep 17 09:05:08 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 17 Sep 2007 10:05:08 -0400 Subject: [AccessD] Query is to complex In-Reply-To: References: Message-ID: Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 dwaters at usinternet.com Mon Sep 17 09:12:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 09:12:58 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <000b01c7f934$d99a1d40$0200a8c0@danwaters> Jim & Max, Thanks! I'll try this and report back! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 17 09:21:15 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 17 Sep 2007 18:21:15 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000a01c7f76c$722933e0$8119fea9@LTVM> Message-ID: <000301c7f936$02180fb0$6401a8c0@nant> <<< Also, Will the SQL installation affect any of my existing or future Access projects? >>> Hello Max, I can't tell anything about future - that's MS's and "Crystal Ball's" responsibility :) What can I tell from my experience: MS SQL 2000 and 2005 installations didn't affect anyhow (badly) MS Office/Access 2003 or MS Office/Access 2007 installations and projects (I have MS Office/Access 2003 and 2007 on different PCs)... I'd suppose that MS SQL 2005 should work well on your system also... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 11:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 17 09:26:24 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 17 Sep 2007 15:26:24 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000301c7f936$02180fb0$6401a8c0@nant> References: <000a01c7f76c$722933e0$8119fea9@LTVM> <000301c7f936$02180fb0$6401a8c0@nant> Message-ID: <005e01c7f936$bd181210$8119fea9@LTVM> Thank you, Shamil Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, September 17, 2007 3:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Also, Will the SQL installation affect any of my existing or future Access projects? >>> Hello Max, I can't tell anything about future - that's MS's and "Crystal Ball's" responsibility :) What can I tell from my experience: MS SQL 2000 and 2005 installations didn't affect anyhow (badly) MS Office/Access 2003 or MS Office/Access 2007 installations and projects (I have MS Office/Access 2003 and 2007 on different PCs)... I'd suppose that MS SQL 2005 should work well on your system also... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 11:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 17 10:17:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 17 Sep 2007 08:17:10 -0700 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <200709170319.l8H3IxGY028473@databaseadvisors.com> References: <200709170319.l8H3IxGY028473@databaseadvisors.com> Message-ID: An ADP works with SQL Server and SQL Server knows zip about the UI forms, so you can't use that construction in an ADP. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren D Sent: Sunday, September 16, 2007 8:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Access Data Project Question Hi All Am trying to do an insert from an Access Project form (That connects to an SQL 2000 dB) using a Forms!Control reference and am getting the following error "Run Time Error 128 - The Name Forms! Is not permitted in this context. Only Constants expressions, or variables allowed here. Column Names are not Permitted" Clearly the old fashioned way of referencing a form control is gone in access Data Projects When I click help on the error - I get a white blank screen - Pretty much how I feel :-) Any suggestions, work arounds or is there some proper way to do with with data Acess Projects? Many thanks Darren The code is Dim rs As Object Dim con As Object Dim insSQL As String Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" rs.Open insSQL, con, 1, 3 '<========Fails here ' DoCmd.RunSQL insSQL ' Also tried this and that failed too -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Sep 17 10:23:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 08:23:39 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <006901c7f93e$b9671e60$0301a8c0@HAL9005> I'm not a lawyer or an ethicist, but I wouldn't think twice about using the code you developed for the first two companies. First of all, in the absence of a written contract to the contrary, everything you developed belongs to you. This is important to all of us developers because we all have libraries of stuff that we drop into our apps for clients, and obviously we don't want ownership of that stuff to pass to one client. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 3:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- 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.487 / Virus Database: 269.13.21/1010 - Release Date: 9/15/2007 7:54 PM From Chester_Kaup at kindermorgan.com Mon Sep 17 10:37:23 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 10:37:23 -0500 Subject: [AccessD] Query is to complex In-Reply-To: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> References: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> Message-ID: I don't know what to think now. Took a snapshot of the SQL server data into local tables to send it to you and it ran. Something else is going on. Broke it into 2 queries against SQL server and it ran. I think I will leave it at that. Thanks for the offer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query is to complex Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 robert at webedb.com Mon Sep 17 11:03:11 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 17 Sep 2007 11:03:11 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: Message-ID: <200709171605.l8HG5S5N014846@databaseadvisors.com> If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... From Chester_Kaup at kindermorgan.com Mon Sep 17 11:06:57 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 11:06:57 -0500 Subject: [AccessD] Query returns data for wrong time period Message-ID: When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR FROM [qry All Manifolds Oil Gas Water] WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; 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 dwaters at usinternet.com Mon Sep 17 11:45:00 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 11:45:00 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <200709171605.l8HG5S5N014846@databaseadvisors.com> References: <200709171605.l8HG5S5N014846@databaseadvisors.com> Message-ID: <001701c7f94a$17105170$0200a8c0@danwaters> All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Sep 17 12:12:49 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 17 Sep 2007 13:12:49 -0400 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <001701c7f94a$17105170$0200a8c0@danwaters> References: <200709171605.l8HG5S5N014846@databaseadvisors.com> <001701c7f94a$17105170$0200a8c0@danwaters> Message-ID: Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Sep 17 12:14:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 17 Sep 2007 12:14:09 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- Gary Kjos garykjos at gmail.com From Chester_Kaup at kindermorgan.com Mon Sep 17 12:47:46 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 12:47:46 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 askolits at nni.com Mon Sep 17 12:55:16 2007 From: askolits at nni.com (John Skolits) Date: Mon, 17 Sep 2007 13:55:16 -0400 Subject: [AccessD] Query is to complex In-Reply-To: References: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> Message-ID: <08fb01c7f953$e7fdcc00$0f01a8c0@officexp> For the heck of it, try making an alias for each table/query object in your query. In the past, I have done that and it fixed a 'Too Complex' message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query is to complex I don't know what to think now. Took a snapshot of the SQL server data into local tables to send it to you and it ran. Something else is going on. Broke it into 2 queries against SQL server and it ran. I think I will leave it at that. Thanks for the offer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query is to complex Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 garykjos at gmail.com Mon Sep 17 13:16:39 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 17 Sep 2007 13:16:39 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 nd500_lo at charter.net Mon Sep 17 14:21:17 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 17 Sep 2007 12:21:17 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters> Message-ID: <000601c7f95f$ebeac730$6400a8c0@dsunit1> Julie, I hope so. I couldn't find anyone that cared a thing about it, except for this little local timeshare development. They contacted me after a former co-worker told them about it and about me...and no one has said it's wrong. If this is a mistake, I'll be sure to let you all know when I get email rights in the friendly neighborhood jail. Wish me luck, folks. I'm technically retired, but what they'll need is basically nothing more than the installation and some training. Thank you so much to all of you. I've just called and committed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an >insolvent business. I would say that you are bringing prior experience >to company C, which happens to include code and ideas gleaned from time >spent working for companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed >to have an answer tomorrow and I don't. This is ethical and moral and >legal, I think. Years ago, I worked for a title insurance company that >dealt with timeshares. At their request, I created an application to >deal with some of the special issues that affect timeshares and title >insurance. That was my first Access database. I left the company and >the database...it belonged to them. No problem. I went to work for >another title company and created the database application they needed >to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a >moral or ethical issue involved. That company fell apart and I moved >on. Now, the unethical part. The company fell apart and I took the the >database home with >me because nobody cared. I "play" with it...have test data, etc., >easily available and I have implemented a number of the ideas I've >gleaned from this group (for which I will always be grateful)...now >comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); >Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who >else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Mon Sep 17 14:38:58 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 17 Sep 2007 14:38:58 -0500 Subject: [AccessD] Database Patent...sort of....kinda References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters> <001501c7f94d$f96544b0$9402a8c0@hpnotebook> Message-ID: I haven't really been following this thread very closely lately, but noticed this one, and will say that those are the general rules loosely worded by Dan, but as in so many things in law, it is not always so simple, and there are always exceptions (that's what keeps us in business). Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 15:13:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 16:13:50 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: References: Message-ID: <001301c7f967$446cd7c0$6c7aa8c0@M90> Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 17 16:45:23 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 16:45:23 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters><001501c7f94d$f96544b0$9402a8c0@hpnotebook> Message-ID: <003501c7f974$0d65dad0$0200a8c0@danwaters> Jack, Can you list some exceptions that might be more frequent and applicable to the folks on this list? Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 17, 2007 2:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent...sort of....kinda I haven't really been following this thread very closely lately, but noticed this one, and will say that those are the general rules loosely worded by Dan, but as in so many things in law, it is not always so simple, and there are always exceptions (that's what keeps us in business). Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Sep 17 18:10:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 16:10:02 -0700 Subject: [AccessD] Combo Box On Open Problem Message-ID: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> Dear List: When a form opens I want to set focus to a combo box on that form and drop it down. But the combo box list does not appear below the combo box as if you had clicked on the combo box after the form was open. It appears offset to the left and below the combo box. I think it's because the combo box is dropping down before the form is completely open even though cboGoTo.DropDown is the last line in the Open event. Is there some way I can fix this so that the list will be properly positioned beneath the combo box when the form opens? MTIA Rocky From darren at activebilling.com.au Mon Sep 17 19:56:30 2007 From: darren at activebilling.com.au (Darren D) Date: Tue, 18 Sep 2007 10:56:30 +1000 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <20070917032912.BSU7219.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <200709180056.l8I0uIVV019594@databaseadvisors.com> Hi David, Charlotte Thanks for the construct David - I ended up using it - it works well Charlotte - Yes I am discovering this about Data Projects - very powerful beast but - another learning curve - not too tricky but the occasional gotcha Thanks for the replies team Excellent Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Monday, 17 September 2007 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Access Data Project Question Darren, Instead of: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" Try: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (" & Forms!frm1_Tariff!txtTariffID & ", " & Forms!frm3_TariffServices!cbo_luTariffServiceID & ")" Regards David At 17/09/2007, you wrote: >Hi All > > > >Am trying to do an insert from an Access Project form (That connects to an SQL >2000 dB) using a Forms!Control reference and am getting the following error > > > > > >"Run Time Error 128 - The Name Forms! Is not permitted in this context. Only >Constants expressions, or variables allowed here. Column Names are not >Permitted" > > > >Clearly the old fashioned way of referencing a form control is gone in access >Data Projects > > > >When I click help on the error - I get a white blank screen - Pretty >much how I >feel :-) > > > >Any suggestions, work arounds or is there some proper way to do with with data >Acess Projects? > > > >Many thanks > > > >Darren > > > >The code is > > Dim rs As Object > > Dim con As Object > > Dim insSQL As String > > > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > > > insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES >(Forms!frm1_Tariff!txtTariffID, >Forms!frm3_TariffServices!cbo_luTariffServiceID)" > > > > > > rs.Open insSQL, con, 1, 3 '<========Fails here > > > > ' DoCmd.RunSQL insSQL ' Also tried this and that failed too > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Sep 17 21:24:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 18 Sep 2007 02:24:18 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Hello All, I tried the suggestion below...using 10k filters instead of 10K SQL statements...it actually took 3 times as long. I need the fastest approach to executing 10K SQL Statements/Sets of Criteria. The 10K are all againts the same 3K row table. Any ideas?> Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From pcs at azizaz.com Mon Sep 17 21:54:24 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 18 Sep 2007 12:54:24 +1000 (EST) Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: <20070918125424.DDD90829@dommail.onthenet.com.au> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From miscellany at mvps.org Mon Sep 17 21:59:56 2007 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 18 Sep 2007 14:59:56 +1200 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> References: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> Message-ID: <46EF3F2C.3090705@mvps.org> Rocky, I suggest trying the Load event rather than Open. Regards Steve Rocky Smolin at Beach Access Software wrote: > Dear List: > > When a form opens I want to set focus to a combo box on that form and drop > it down. But the combo box list does not appear below the combo box as if > you had clicked on the combo box after the form was open. > > It appears offset to the left and below the combo box. I think it's because > the combo box is dropping down before the form is completely open even > though cboGoTo.DropDown is the last line in the Open event. > > Is there some way I can fix this so that the list will be properly > positioned beneath the combo box when the form opens? From pcs at azizaz.com Mon Sep 17 22:00:03 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 18 Sep 2007 13:00:03 +1000 (EST) Subject: [AccessD] Combo Box On Open Problem Message-ID: <20070918130003.DDD91583@dommail.onthenet.com.au> Rocky, I would try and put the code on the Timer event of the Form to be sure that it only runs after the Form has opened .... after you have run the code set the Timer so it doesn't run again ... Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:10:02 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: [AccessD] Combo Box On Open Problem >To: "'Access Developers discussion and problem solving'" > >Dear List: > >When a form opens I want to set focus to a combo box on that form and drop >it down. But the combo box list does not appear below the combo box as if >you had clicked on the combo box after the form was open. > >It appears offset to the left and below the combo box. I think it's because >the combo box is dropping down before the form is completely open even >though cboGoTo.DropDown is the last line in the Open event. > >Is there some way I can fix this so that the list will be properly >positioned beneath the combo box when the form opens? > >MTIA > >Rocky > > > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 22:11:58 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 23:11:58 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <20070918125424.DDD90829@dommail.onthenet.com.au> References: <20070918125424.DDD90829@dommail.onthenet.com.au> Message-ID: <003001c7f9a1$adad86f0$6c7aa8c0@M90> No, but I can do some tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Monday, September 17, 2007 10:54 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Strong encryption (was: HashBytes) John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Mon Sep 17 22:14:48 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 20:14:48 -0700 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <46EF3F2C.3090705@mvps.org> Message-ID: <00f201c7f9a2$1271bb10$0301a8c0@HAL9005> Steve: That worked pretty well. It was lined up under the combo box but a little bit low. You know what worked even better? The Current event. Go figure. T Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Monday, September 17, 2007 8:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box On Open Problem Rocky, I suggest trying the Load event rather than Open. Regards Steve Rocky Smolin at Beach Access Software wrote: > Dear List: > > When a form opens I want to set focus to a combo box on that form and > drop it down. But the combo box list does not appear below the combo > box as if you had clicked on the combo box after the form was open. > > It appears offset to the left and below the combo box. I think it's > because the combo box is dropping down before the form is completely > open even though cboGoTo.DropDown is the last line in the Open event. > > Is there some way I can fix this so that the list will be properly > positioned beneath the combo box when the form opens? -- 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.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From rockysmolin at bchacc.com Mon Sep 17 22:16:17 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 20:16:17 -0700 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <20070918130003.DDD91583@dommail.onthenet.com.au> Message-ID: <00f301c7f9a2$47853980$0301a8c0@HAL9005> Borge: I ended up putting the code in the Current event. Which worked. Who knew? Any downside to that over the Timer approach. This is an inbound for that just allows the user to pick a person from a combo box which is then passed to a bound form that displays all the info about that person. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Monday, September 17, 2007 8:00 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Combo Box On Open Problem Rocky, I would try and put the code on the Timer event of the Form to be sure that it only runs after the Form has opened .... after you have run the code set the Timer so it doesn't run again ... Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:10:02 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: [AccessD] Combo Box On Open Problem >To: "'Access Developers discussion and problem solving'" > >Dear List: > >When a form opens I want to set focus to a combo box on that form and drop >it down. But the combo box list does not appear below the combo box as if >you had clicked on the combo box after the form was open. > >It appears offset to the left and below the combo box. I think it's because >the combo box is dropping down before the form is completely open even >though cboGoTo.DropDown is the last line in the Open event. > >Is there some way I can fix this so that the list will be properly >positioned beneath the combo box when the form opens? > >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.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From Gustav at cactus.dk Tue Sep 18 04:17:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 11:17:53 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Oh, but the recordset, was that retrieved from SQL Server or a (local) Access database? Did you try to open it static and/or as a snapshot? /gustav >>> markamatte at hotmail.com 18-09-2007 04:24 >>> Hello All, I tried the suggestion below...using 10k filters instead of 10K SQL statements...it actually took 3 times as long. I need the fastest approach to executing 10K SQL Statements/Sets of Criteria. The 10K are all againts the same 3K row table. Any ideas?> Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a 3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte From Gustav at cactus.dk Tue Sep 18 04:36:44 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 11:36:44 +0200 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi John and Borge I would expect a linear relation between string length and conversion time. And it is right, speed is not impressive due to the many calculations that have to be done. To gain real speed, an DLL or OCX would be needed like this commercial tool: http://www.chilkatsoft.com/crypt-activex.asp Perhaps someone could try to create an DLL in .Net? As far as I know, .Net contains a class for several types of encrypting, so it should be straight forward to carry out ... /gustav >>> pcs at azizaz.com 18-09-2007 04:54 >>> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From phpons at gmail.com Tue Sep 18 05:48:09 2007 From: phpons at gmail.com (philippe pons) Date: Tue, 18 Sep 2007 12:48:09 +0200 Subject: [AccessD] Using a CommandBarComboBox Message-ID: <57144ced0709180348h5087ab2y7cac6fbde732c449@mail.gmail.com> Hi, I'm using a CommandBarComboBox to select items from a liste. To populate the cbo I use the AddItem method of the control. Then my list is populated with a list of name. When the user select an item, the code reads the selected name. But what I would prefer instead of using the returned name, is to use the corresponding ID, to query the database. But unfortuately, I cant't find a way to store the name and the ID in the cbo. ( like with the "normal" cbo where you can read the text and value propertty). Do you know a way of doing that? TIA, Philippe From ewaldt at gdls.com Tue Sep 18 07:02:33 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 18 Sep 2007 08:02:33 -0400 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 jimdettman at verizon.net Tue Sep 18 07:29:43 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 18 Sep 2007 08:29:43 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <001301c7f967$446cd7c0$6c7aa8c0@M90> References: <001301c7f967$446cd7c0$6c7aa8c0@M90> Message-ID: <000401c7f9ef$98be3250$8abea8c0@XPS> John, <> Yeah, something like that you'd really want to write in a fully compiled language (C++ or VB) and have it living in a .DLL that you could call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 17, 2007 4:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 18 07:46:23 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 14:46:23 +0200 Subject: [AccessD] More Access to Excel Help Needed Message-ID: Hi Thomas First, Sheet is not the same as WorkSheet. Use WorkSheet. Then, as you have the application object, this: xlBook.Application.Run "RunImpacts" could be written as: xlApp.Run "RunImpacts" Also, you must close all open worksheets before you terminate these. Finally, close the app before terminating it: xlApp.Quit Set xlApp = Nothing /gustav >>> ewaldt at gdls.com 18-09-2007 14:02 >>> I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub From dwaters at usinternet.com Tue Sep 18 07:58:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 07:58:01 -0500 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: References: Message-ID: <001501c7f9f3$8c0b7a00$0200a8c0@danwaters> I recently worked on an Access to Excel procedure, and there are three things I can see that might help. First, you will want to know if your user currently has Excel already open: '-- Is Excel already running? If IsAppRunning("Excel") = True Then Set objExcel = GetObject(, "Excel.Application") blnXLRunning = True Else Set objExcel = CreateObject("Excel.Application") blnXLRunning = False End If I used late binding because I don't know which version of Excel a user might have. Also, the procedure IsAppRunning is from Leban's web site. Next, you need to specifically save & close the workbook and instance of Excel if your code opened a new one. '-- Save & Quit objWorkbook.Save objWorkbook.Close If blnXLRunning = False Then objExcel.Quit End If Set objWorkbook = Nothing Set objExcel = Nothing Then, open the excel spreadsheet using ShellExecute: ShellExecute 0, "Open", stgFullPath, vbNullString, CurDir$, vbMaximizedFocus I am NOT experienced with running Excel in Access, but perhaps this will help. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 7:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 From jwcolby at colbyconsulting.com Tue Sep 18 08:23:26 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 09:23:26 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <000401c7f9ef$98be3250$8abea8c0@XPS> References: <001301c7f967$446cd7c0$6c7aa8c0@M90> <000401c7f9ef$98be3250$8abea8c0@XPS> Message-ID: <003a01c7f9f7$19457850$6c7aa8c0@M90> LOL. Something like that I wouldn't want to write at all. But yea, a DLL would be good (for speed). Of course for the "once off" application such as the one that started this thread it seems that the speeds found in this VBA version would be fine, and would not require the DLL and all the DLL hell headaches that go along with 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 Jim Dettman Sent: Tuesday, September 18, 2007 8:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) John, <> Yeah, something like that you'd really want to write in a fully compiled language (C++ or VB) and have it living in a .DLL that you could call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 17, 2007 4:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max From robert at webedb.com Tue Sep 18 08:50:16 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 18 Sep 2007 08:50:16 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: Message-ID: <200709181352.l8IDqgCJ026621@databaseadvisors.com> Dan, My comment about the patent was that it is probably not something that can be patented no matter who "owns" the rights to the source. Robert At 10:16 PM 9/17/2007, you wrote: >Sent: Monday, September 17, 2007 12:45 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >All patents and inventions automatically belong to the inventor or >author, >unless that person agrees to reassign the rights. Typically a company >will >want certain employees to agree to this reassignment before they give >you a >job (and they won't give you the job unless you do agree). > >If a person comes up with an invention or copyright, the company can't >force >a person to reassign the rights, unless there is a prior agreement to do >so. > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. >Stewart >Sent: Monday, September 17, 2007 11:03 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Database Patent...sort of....kinda > >If you were an employee, technically it is theirs. > >If you were paid to develop it specifically, as a >contractor, it depends on the state. If they did not >have you sign a contract stating it was theirs, it >could possibly be yours. > >Patent, I doubt it. From Patricia.O'Connor at otda.state.ny.us Tue Sep 18 08:59:48 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 09:59:48 -0400 Subject: [AccessD] Query is to complex References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> I have had this happen quite a few times. Would have to see more to test out. It actually could be that you are using a field as numeric but it is actually a text field. Is the MAnifoldList a single selection or multiple choice? How do you want to handle the GAS1 if there is no record for GAS? The other could be the number of characters in the sql text but that is iffy. I have a very very strong rule here that NO table, field, query name has spaces or special characters. I also keep the length of the query names down. Makes it easier to read and check SELECT qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM (qryManfldOilProdLst90Days LEFT JOIN qryManfldWaterProdLst90Days ON (qryManfldOilProdLst90Days.Manifold = qryManfldWaterProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qryManfldWaterProdLst90Days.ProductionDate)) LEFT JOIN qryManfldGasProdLst90Days ON ((qryManfldOilProdLst90Days.Manifold = qryManfldGasProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qry ManfldGasProdLst90Days.ProductionDate)) WHERE (qryManfldOilProdLst90Days.Manifold =[Forms]![frmSelManifold]![ManifoldList]) AND (qryManfldOilProdLst90Days.ProductionDate Between [Forms]![frmTimeInterval]![StartDate] And [Forms]![frmTimeInterval]![EndDate]) GROUP BY qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 rockysmolin at bchacc.com Tue Sep 18 09:06:04 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Sep 2007 07:06:04 -0700 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: <002201c7f9fd$0d279b10$0301a8c0@HAL9005> Are you closing all the Excel objects you're setting and then setting them = Nothing? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 5:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From markamatte at hotmail.com Tue Sep 18 09:29:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 18 Sep 2007 14:29:35 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: The Recordset was retrieved from the (local) Access database...and as a snapshot, it was only twice as slow...so far...unless I'm doing something way off here...running 10K SQL statements seems to be fastest...but I'm having a hard time accepting that. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 18 Sep 2007 11:17:53 +0200 > >Hi Mark > >Oh, but the recordset, was that retrieved from SQL Server or a (local) >Access database? >Did you try to open it static and/or as a snapshot? > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> >Hello All, > >I tried the suggestion below...using 10k filters instead of 10K SQL >statements...it actually took 3 times as long. > >I need the fastest approach to executing 10K SQL Statements/Sets of >Criteria. > >The 10K are all againts the same 3K row table. > >Any ideas?> > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a >3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the >data > >into a recordset...and have each SQL statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Share your special parenting moments! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From BillMorrill at Comcast.net Tue Sep 18 09:48:49 2007 From: BillMorrill at Comcast.net (Bill Morrill) Date: Tue, 18 Sep 2007 08:48:49 -0600 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Message-ID: 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill From Jim.Hale at FleetPride.com Tue Sep 18 10:12:13 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 10:12:13 -0500 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: References: Message-ID: Two thoughts: If you are using ActiveCell, ActiveWorkbook, etc in your code and another workbook is open and being used while your code is running the code may grab that as the currently active workbook. This obviously will confuse the code completely since the workbook it has grabbed won't be what it expected. Second, I have found that ALL object references (not just those using excel objects) have to be properly set to nothing or Excel will sometimes hang around. Don't rely on Access to do proper garbage collection. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 7:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 *********************************************************************** 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 Tue Sep 18 10:14:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 11:14:01 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: References: Message-ID: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 Sep 18 10:20:02 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 10:20:02 -0500 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: References: Message-ID: ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 mboyd at deloitte.com Tue Sep 18 10:57:07 2007 From: mboyd at deloitte.com (Boyd, Mark Thomas (US - Philadelphia)) Date: Tue, 18 Sep 2007 11:57:07 -0400 Subject: [AccessD] Email Automation Error Message-ID: I'm using code to loop thru a # of email addresses and send an email to each addr. My code pretty much does the following: Set rst = CurrentDb.OpenRecordset("SELECT [EmailAddr] FROM tblEmailAddrs") rst.MoveFirst Do Until rst.EOF = True ... populate Subject, To, Body, and add attachment objOutlookMsg.Display SendKeys "^{ENTER}", True 'automatically send form rst.MoveNext Loop The code works perfectly on my computer, however not so much on another pc. The 1st email sends fine, but the 2nd one produces the following error when the code hits "objOutlookMsg.Display": "A dialog box is open. Close it and try again." Has anyone experienced this error before? From the screenshot this person sent to me, there doesn't appear to be any dialog boxes blocking the email message from displaying. Any help/direction is greatly appreciated. Thanks, Mark Boyd This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] From accessd at shaw.ca Tue Sep 18 11:17:59 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:17:59 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: Message-ID: Hi Bill: I have been this route a few times and the one outstanding issue I found was the speed or lack of speed when using an ODBC drivers. I have always converted/have had to concert the connection to ADO-OLE... the performance is on a magnitude of difference. The bottle neck comes when attempting to download data (select). Delete, Update and in most cases Add requests are fairly quick. It also helps a lot if most of the SQL processing is done through procedures on the Oracle server... as well as it being much more secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 7:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 18 11:33:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:33:55 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> Message-ID: <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> John: I work with many clients who have networks that extend through out North America. You can use a secure domain with full encrypted secure connections, VPN pipes or private high speed connections. When logged on to one companies Windows servers, as admin, I could see every company, online.... thousands of computers and servers. The provincial government has their own private, protected bandwidth through the local ISP. Then there is a number of VPN options... even Hamachi... on the pay for version you can over 2000 connections on a network. All of these connection types can be very secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 18 11:43:13 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:43:13 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: Message-ID: Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 jwcolby at colbyconsulting.com Tue Sep 18 11:42:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 12:42:02 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> References: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> Message-ID: <006301c7fa12$d771c020$6c7aa8c0@M90> Fascinating! I use Hamachi when I am out of my office (which is rarely). John 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: Tuesday, September 18, 2007 12:34 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries John: I work with many clients who have networks that extend through out North America. You can use a secure domain with full encrypted secure connections, VPN pipes or private high speed connections. When logged on to one companies Windows servers, as admin, I could see every company, online.... thousands of computers and servers. The provincial government has their own private, protected bandwidth through the local ISP. Then there is a number of VPN options... even Hamachi... on the pay for version you can over 2000 connections on a network. All of these connection types can be very secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 18 11:52:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 12:52:53 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: References: Message-ID: <006401c7fa14$5bdc90a0$6c7aa8c0@M90> I think it is Access corruptions that are the issue. Access is finicky when its connections don't answer up in time. John 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: Tuesday, September 18, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill From accessd at shaw.ca Tue Sep 18 12:36:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 10:36:31 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: <006401c7fa14$5bdc90a0$6c7aa8c0@M90> Message-ID: Hi John: You are right; the Bound type applications do not work well in this environment. If you are using an ADO connection the ConnectionTimeout property can be set very high in the event of unstable connections. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 9:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries I think it is Access corruptions that are the issue. Access is finicky when its connections don't answer up in time. John 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: Tuesday, September 18, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Sep 18 13:31:04 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 18 Sep 2007 13:31:04 -0500 Subject: [AccessD] Query is to complex In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: The problem seems to be that Access does not think ProductionDate which is derived from a field named date in a SQL Server view by the formula Cdate(Fix(Date)) is really a date. By changing the source query to a make table query and then running the attached query against the table everything works great. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Tuesday, September 18, 2007 9:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query is to complex I have had this happen quite a few times. Would have to see more to test out. It actually could be that you are using a field as numeric but it is actually a text field. Is the MAnifoldList a single selection or multiple choice? How do you want to handle the GAS1 if there is no record for GAS? The other could be the number of characters in the sql text but that is iffy. I have a very very strong rule here that NO table, field, query name has spaces or special characters. I also keep the length of the query names down. Makes it easier to read and check SELECT qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM (qryManfldOilProdLst90Days LEFT JOIN qryManfldWaterProdLst90Days ON (qryManfldOilProdLst90Days.Manifold = qryManfldWaterProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qryManfldWaterProdLst90Days.ProductionDate)) LEFT JOIN qryManfldGasProdLst90Days ON ((qryManfldOilProdLst90Days.Manifold = qryManfldGasProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qry ManfldGasProdLst90Days.ProductionDate)) WHERE (qryManfldOilProdLst90Days.Manifold =[Forms]![frmSelManifold]![ManifoldList]) AND (qryManfldOilProdLst90Days.ProductionDate Between [Forms]![frmTimeInterval]![StartDate] And [Forms]![frmTimeInterval]![EndDate]) GROUP BY qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 Chester_Kaup at kindermorgan.com Tue Sep 18 13:34:28 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 18 Sep 2007 13:34:28 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: If I take the source query and make it into a make table query and then run the attached query off the created table everything works fine. Apparently access does not think ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) is a date until stored in a table. Thanks for the ideas, comments. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 Jim.Hale at FleetPride.com Tue Sep 18 13:45:51 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 13:45:51 -0500 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: References: Message-ID: Actually I believe you are correct. My pass through queries use the IBM client Access ODBC driver to return the data. The difference(at least in my case) is that instead of sending a million record table down to Access and then running the query to create a record set of 10,000 records, the pass through query runs on the AS400 and sends only the result recordset down the line. This results in significantly fewer problems. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 18, 2007 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim *********************************************************************** 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 accessd at shaw.ca Tue Sep 18 13:57:42 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 11:57:42 -0700 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: Message-ID: Hi Chester: Have you tried putting # signs around the date? #MyDate# That should tell Access that is to be processed. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 18, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period If I take the source query and make it into a make table query and then run the attached query off the created table everything works fine. Apparently access does not think ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) is a date until stored in a table. Thanks for the ideas, comments. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 accessd at shaw.ca Tue Sep 18 15:36:52 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 13:36:52 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: Message-ID: Jim, that is a very good recommendation. I try to run all my queries on the server as that is what it does best, limits the downloads and let your Access do what it does best; present information in a great user interface. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Actually I believe you are correct. My pass through queries use the IBM client Access ODBC driver to return the data. The difference(at least in my case) is that instead of sending a million record table down to Access and then running the query to create a record set of 10,000 records, the pass through query runs on the AS400 and sends only the result recordset down the line. This results in significantly fewer problems. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 18, 2007 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim *********************************************************************** 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 dwaters at usinternet.com Tue Sep 18 17:33:10 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 17:33:10 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 18 18:20:03 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 18 Sep 2007 16:20:03 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Message-ID: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Dan, You can do what you want with Snagit. You have to pay but it is well worth it. I use this application for documenting screens all the time. I copied the delete image out of Access and will send off line. You can also get this image if you use the wizard to create a button to delete a record. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 18, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Tue Sep 18 18:26:51 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 19:26:51 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C150@EXCNYSM0A1AI.nysemail.nyenet> The number one thing is use the ORACLE driver not the ms oracle driver!!! The ms driver does not seem to play with oracle as well. I have been using the ORACLE drivers for the last 7 years. I do both passthru and access queries. I tend to do more passthru because i do more complex and special subqueries. The second thing is under PROPERTIES change the TIMEOUT (? i am not at work right now to check wording) from 60 to 6000 or 600. I tend to use 6000. Otherwise the queries will bomb out after about 4 minutes even if it is simple. change it to a higher number and whallah it runs. HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Jim Lawrence Sent: Tue 09/18/2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Sep 18 18:28:43 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 09:28:43 +1000 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> References: <00f701c7fa43$e4d86c10$0200a8c0@danwaters>, <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Message-ID: <46F05F2B.30953.4C126CD1@stuart.lexacorp.com.pg> On 18 Sep 2007 at 16:20, Doug Murphy wrote: > Dan, > > You can do what you want with Snagit. You have to pay but it is well worth > it. I use this application for documenting screens all the time. I copied > the delete image out of Access and will send off line. You can do the same thing for free using Irfanview. From stuart at lexacorp.com.pg Tue Sep 18 18:07:49 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 09:07:49 +1000 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> References: <000301c7f87d$a6773860$8119fea9@LTVM>, , <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Message-ID: <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> Yep , i use it quite often. On 13 March 07, I used in on MSAccess.exe before posting the following to the list under the subject "Re: [AccessD] A2K - Button Wizard Icons" ... Extract the executable into a directory such as C:\Resthief. Run the program. Navigate to you Office installation directory and locate the file MSACCESS.EXE. Drag and drop MSACCESS.EXE onto the open ResThief window. Now look in the ResThief directory. You will find a new subdirectory called MSACCESS.EXE.res This directory will now contain all the icons, bitmaps, cursors etc from MSAccess.exe as separate files. On 18 Sep 2007 at 17:33, Dan Waters wrote: > Well, I could not make this work for me. Has anyone else tried ResThief > 1.20? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Sunday, September 16, 2007 12:02 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Command Button Bitmap for Delete Row > > Hi Max: > > Could not get anything from the site www.ping.be/liontech but found it on > http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie > f.html > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail > Sent: Sunday, September 16, 2007 9:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Command Button Bitmap for Delete Row > > Try This. It will pull all the Access Resources out for you. > Regards > Max > > > ResThief 1.20 > ResThief extracts all resources from all binary files that get dropped on > its window. > If you drop a directory on its window all the binary files in that directory > and its > sub-directories will be processed. > It creates a directory for each file and stores the resources found in it. > It'll try > to construct a usefull name for the resource. > > STATUS Freeware > > AUTHOR Peter Stuer, email: Peter.Stuer at ping.be > > WEBPAGE Check the web for latest updates: > > www.ping.be/liontech > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Saturday, September 15, 2007 11:16 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Command Button Bitmap for Delete Row > > I have a customer who has asked that I use standard pictures on command > buttons. You can find some in Access through the picture property of a > command button. > > One that I can't find though is the standard 'Delete Row' X that has curved > lines. Does anyone know where a bitmap of that can be downloaded or > retrieved on a PC? > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sep 18 18:39:51 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 18:39:51 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> References: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Message-ID: <00fb01c7fa4d$35a41500$0200a8c0@danwaters> Hi Doug, I do have Snagit - a great tool for quickly creating screenshots for customer meetings and explanations! Thanks for the image! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 18, 2007 6:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Dan, You can do what you want with Snagit. You have to pay but it is well worth it. I use this application for documenting screens all the time. I copied the delete image out of Access and will send off line. You can also get this image if you use the wizard to create a button to delete a record. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 18, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Tue Sep 18 18:48:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 18 Sep 2007 19:48:52 -0400 Subject: [AccessD] Problem with combo box audit Message-ID: <005801c7fa4e$82509260$4b3a8343@SusanOne> I receive an error when I add acCombo Box to the If conditions: If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType = acComboBox Then If .Value <> .OldValue Then Help says the following: "Operation is not supported for this type of object. (Error 3251) You were attempting to execute a method or assign a value to a property that is usually valid for the object, but is not supported in this specific instance. For example, the Edit method is generally valid for Recordset objects, but not for a snapshot-type Recordset. This error could also occur in cases where the operation is not permitted due to the type or status of the object - as when trying to use the MovePrevious method on a forward-only-type Recordset. Some operations are also not supported, depending on if you are accessing a Microsoft Access database engine or an ODBC data source." I have no clue why a combo box can't support Value or OldValue -- anyone run into this before? I'm stumped. If I remove the check for a combo, it works fine everytime. I'm running this from the form's BeforeUpdate event. Susan H. From cfoust at infostatsystems.com Tue Sep 18 19:07:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 18 Sep 2007 17:07:32 -0700 Subject: [AccessD] Problem with combo box audit In-Reply-To: <005801c7fa4e$82509260$4b3a8343@SusanOne> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: Unbound controls don't have an .OldValue property. Could that be what you're running into? Otherwise, it may be because the OldValue of the combo is null, and you can't compare anything to Null. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, September 18, 2007 4:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Problem with combo box audit I receive an error when I add acCombo Box to the If conditions: If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType = acComboBox Then If .Value <> .OldValue Then Help says the following: "Operation is not supported for this type of object. (Error 3251) You were attempting to execute a method or assign a value to a property that is usually valid for the object, but is not supported in this specific instance. For example, the Edit method is generally valid for Recordset objects, but not for a snapshot-type Recordset. This error could also occur in cases where the operation is not permitted due to the type or status of the object - as when trying to use the MovePrevious method on a forward-only-type Recordset. Some operations are also not supported, depending on if you are accessing a Microsoft Access database engine or an ODBC data source." I have no clue why a combo box can't support Value or OldValue -- anyone run into this before? I'm stumped. If I remove the check for a combo, it works fine everytime. I'm running this from the form's BeforeUpdate event. Susan H. -- 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 Tue Sep 18 19:10:07 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 20:10:07 -0400 Subject: [AccessD] Query returns data for wrong time period References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Are you saying if you use a hardcoded date in ProductionDate example ProductionDate: #08/18/2007# the query works fine? When you use ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a table or form? How is it described? Why are you using fix? Just some quick tries. -- I rarely use ! for table fields in queries and I do queries using access tables and oracle tables. If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then Try - ProductionDate: Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) If this query is a regular access gui query you could try setting the format to date in the gui If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you could set a hidden field to a date format and insert the entered data into the hidden field and use that in the query instead of have to do Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. BTW - Date is usually considered a reserved word in most languages and software. It can cause some strange happenings. ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 stuart at lexacorp.com.pg Tue Sep 18 19:17:39 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 10:17:39 +1000 Subject: [AccessD] Problem with combo box audit In-Reply-To: <005801c7fa4e$82509260$4b3a8343@SusanOne> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> Comboboxes do have .Value and .OldValue properties. Looks to me as though the error is being thrown in whatever you are doing AFTER "If .Value <> .OldValue Then" What comes next? On 18 Sep 2007 at 19:48, Susan Harkins wrote: > I receive an error when I add acCombo Box to the If conditions: > > If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType > = acComboBox Then If .Value <> .OldValue Then > > Help says the following: > > "Operation is not supported for this type of object. (Error 3251) > > You were attempting to execute a method or assign a value to a property that > is usually valid for the object, but is not supported in this specific > instance. For example, the Edit method is generally valid for Recordset > objects, but not for a snapshot-type Recordset. This error could also occur > in cases where the operation is not permitted due to the type or status of > the object - as when trying to use the MovePrevious method on a > forward-only-type Recordset. Some operations are also not supported, > depending on if you are accessing a Microsoft Access database engine or an > ODBC data source." > > I have no clue why a combo box can't support Value or OldValue -- anyone run > into this before? I'm stumped. If I remove the check for a combo, it works > fine everytime. I'm running this from the form's BeforeUpdate event. > > Susan H. > > -- > 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 Sep 18 23:44:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 19 Sep 2007 08:44:06 +0400 Subject: [AccessD] OT: The Baker's Dozen: A 13-Step Crash Course for Using LINQ Message-ID: <004701c7fa77$b63446c0$6401a8c0@nant> Hi All, Just thought this article could be interesting to many developers from Access-D because this article is about "bleeding-edge" but simple to use data access technologies for C#3.0/VB9.0, some of which are released already and some of which will come released in not that far future: http://www.devx.com/codemag/Article/35390/1954?pf=true If you know good direct links to articles/topics/tips on ADO.NET Entity Framework please post them here... Thank you. -- Shamil From Gustav at cactus.dk Wed Sep 19 04:42:41 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 19 Sep 2007 11:42:41 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Did you read the post from Shamil: "The Baker's Dozen: A 13-Step Crash Course for Using LINQ": LINQ is a set of extensions to the .NET Framework to query different types of data using a common language. Orcas Beta 1 features the following LINQ capabilities within .NET: Querying Microsoft SQL Server data using a strongly-typed DataContext (LINQ to SQL) Querying in-memory .NET objects (LINQ to Objects) Querying .NET DataSets (LINQ to DataSets) Querying XML Data (LINQ to XML) Using LINQ with a DataSet might be faster than your current solution. /gustav >>> markamatte at hotmail.com 18-09-2007 16:29 >>> The Recordset was retrieved from the (local) Access database...and as a snapshot, it was only twice as slow...so far...unless I'm doing something way off here...running 10K SQL statements seems to be fastest...but I'm having a hard time accepting that. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 18 Sep 2007 11:17:53 +0200 > >Hi Mark > >Oh, but the recordset, was that retrieved from SQL Server or a (local) >Access database? >Did you try to open it static and/or as a snapshot? > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> >Hello All, > >I tried the suggestion below...using 10k filters instead of 10K SQL >statements...it actually took 3 times as long. > >I need the fastest approach to executing 10K SQL Statements/Sets of >Criteria. > >The 10K are all againts the same 3K row table. > >Any ideas?> > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a 3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the data > >into a recordset...and have each SQL statement reference the recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte From ssharkins at gmail.com Wed Sep 19 07:37:40 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 08:37:40 -0400 Subject: [AccessD] Problem with combo box audit In-Reply-To: <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> Message-ID: <00c901c7fab9$eb19f870$4b3a8343@SusanOne> Received this from the reader this morning: "I've been playing with this all evening... found one thing... If I put the validation function on a command button... both seem to work.... trying to run tem together seems to be doing something..... " I don't know why the event would matter with just the combo, but does appear to be the source of the problem. Oh, btw, he's using linked tables, but I don't know why that would matter. Susan H. Comboboxes do have .Value and .OldValue properties. Looks to me as though the error is being thrown in whatever you are doing AFTER "If .Value <> .OldValue Then" What comes next? From ssharkins at gmail.com Wed Sep 19 07:37:41 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 08:37:41 -0400 Subject: [AccessD] Problem with combo box audit In-Reply-To: References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: <00ca01c7faba$0e365010$4b3a8343@SusanOne> Nope, neither is the problem, but thanks for playing. :) Susan H. Unbound controls don't have an .OldValue property. Could that be what you're running into? Otherwise, it may be because the OldValue of the combo is null, and you can't compare anything to Null. From Chester_Kaup at kindermorgan.com Wed Sep 19 07:57:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 07:57:20 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: See responses below: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Tuesday, September 18, 2007 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Are you saying if you use a hardcoded date in ProductionDate example ProductionDate: #08/18/2007# the query works fine? Correct When you use ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? Correct Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a table or form? It is a view in SQL server How is it described? It is a DateTime data type Why are you using fix? To strip of the time part of the SQL server DateTime field Just some quick tries. -- I rarely use ! for table fields in queries and I do queries using access tables and oracle tables. If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then Try - ProductionDate: Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) If this query is a regular access gui query you could try setting the format to date in the gui If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you could set a hidden field to a date format and insert the entered data into the hidden field and use that in the query instead of have to do Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. BTW - Date is usually considered a reserved word in most languages and software. It can cause some strange happenings. Agreed however I did not create nor can I create the SQL server view Thanks for the ideas. ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 ssharkins at gmail.com Wed Sep 19 08:59:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 09:59:11 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) Message-ID: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. From ewaldt at gdls.com Wed Sep 19 09:11:30 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 19 Sep 2007 10:11:30 -0400 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: I've been trying to narrow down the problem, and I believe I've found it. I commented out the line that calls a module that I use to copy a module from my Access database to the Excel workbook. Then I put a breakpoint in right before it, and manually copied the module into the workbook. It worked fine. I tried it more than once with no problem at all. The problem, it would seem, must be in the CopyModule module. Can someone see a problem with the module below? I think I remember adapting it from an Excel-to-Excel puppy, so apparently my adaptation is incorrect. I don't specifically open anything from within this module, so it does not seem that I should close anything. Of course I could be wrong. I send it the name of the workbook (variable = xlBook, so I send it xlBook.Name). "CR_Impacts" is the name of the module within Access that I want to copy. As always, thanks for any and all help. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As VBComponent, NewModule As VBComponent Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") CodeLines = ModuleTocopy.CodeModule.Lines _ (ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 markamatte at hotmail.com Wed Sep 19 09:14:58 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 19 Sep 2007 14:14:58 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks Gustav, I did not see that post. I will definetely take a look at it. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Wed, 19 Sep 2007 11:42:41 +0200 > >Hi Mark > >Did you read the post from Shamil: > >"The Baker's Dozen: A 13-Step Crash Course for Using LINQ": > > > >LINQ is a set of extensions to the .NET Framework to query different types >of data using a common language. Orcas Beta 1 features the following LINQ >capabilities within .NET: > >Querying Microsoft SQL Server data using a strongly-typed DataContext (LINQ >to SQL) >Querying in-memory .NET objects (LINQ to Objects) >Querying .NET DataSets (LINQ to DataSets) >Querying XML Data (LINQ to XML) > > > >Using LINQ with a DataSet might be faster than your current solution. > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 16:29 >>> >The Recordset was retrieved from the (local) Access database...and as a >snapshot, it was only twice as slow...so far...unless I'm doing something >way off here...running 10K SQL statements seems to be fastest...but I'm >having a hard time accepting that. > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 18 Sep 2007 11:17:53 +0200 > > > >Hi Mark > > > >Oh, but the recordset, was that retrieved from SQL Server or a (local) > >Access database? > >Did you try to open it static and/or as a snapshot? > > > >/gustav > > > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> > >Hello All, > > > >I tried the suggestion below...using 10k filters instead of 10K SQL > >statements...it actually took 3 times as long. > > > >I need the fastest approach to executing 10K SQL Statements/Sets of > >Criteria. > > > >The 10K are all againts the same 3K row table. > > > >Any ideas?> > > > >Thanks, > > > >Mark A. Matte > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > > > >Hi Mark > > > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > > >fast, indeed when you have only 3K records. > > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > > >increase or more. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > > >This is the speed thing again. I am running 10K SQL statements against >a 3K > > >row table. I need it to be as fast as possible. Currently my 10K > > >statements are stored in a table. I pull them in as a recordset...loop > > >through...and execute each one. The 10K are all looking at the same > > >table...just different sets of criteria. A friend suggested I pull the >data > > >into a recordset...and have each SQL statement reference the >recorset...as > > >an attempt to save time. Maybe an array? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From Gustav at cactus.dk Wed Sep 19 09:27:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 19 Sep 2007 16:27:07 +0200 Subject: [AccessD] More Access to Excel Help Needed Message-ID: Hi Thomas What I did for a similar scenario, was to open Excel and open a Workbook containing the code, and then add the new WorkSheet to hold the data. Further, to prevent bloat, the very first thing was to create the Workbook with the code as a copy of a master Workbook. /gustav >>> ewaldt at gdls.com 19-09-2007 16:11 >>> I've been trying to narrow down the problem, and I believe I've found it. I commented out the line that calls a module that I use to copy a module from my Access database to the Excel workbook. Then I put a breakpoint in right before it, and manually copied the module into the workbook. It worked fine. I tried it more than once with no problem at all. The problem, it would seem, must be in the CopyModule module. Can someone see a problem with the module below? I think I remember adapting it from an Excel-to-Excel puppy, so apparently my adaptation is incorrect. I don't specifically open anything from within this module, so it does not seem that I should close anything. Of course I could be wrong. I send it the name of the workbook (variable = xlBook, so I send it xlBook.Name). "CR_Impacts" is the name of the module within Access that I want to copy. As always, thanks for any and all help. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As VBComponent, NewModule As VBComponent Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") CodeLines = ModuleTocopy.CodeModule.Lines _ (ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub From max.wanadoo at gmail.com Wed Sep 19 10:17:06 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 16:17:06 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> Message-ID: <001b01c7fad0$25b72690$8119fea9@LTVM> WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 19 10:32:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 10:32:34 -0500 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001b01c7fad0$25b72690$8119fea9@LTVM> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <001b01c7fad0$25b72690$8119fea9@LTVM> Message-ID: <001e01c7fad2$4d903100$0200a8c0@danwaters> Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... 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 john at winhaven.net Wed Sep 19 10:39:14 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 10:39:14 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f87d$a6773860$8119fea9@LTVM> References: <000301c7f7e6$01071a90$0200a8c0@danwaters> <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> Sounds like a really neat solution for this however, I can't get it from the link provided. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail ResThief 1.20 www.ping.be/liontech From john at winhaven.net Wed Sep 19 10:44:16 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 10:44:16 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html From accessd at shaw.ca Wed Sep 19 11:08:14 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:08:14 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> Message-ID: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Hi All: Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 19 11:06:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 11:06:55 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> References: <000301c7f7e6$01071a90$0200a8c0@danwaters><000301c7f87d$a6773860$8119fea9@LTVM> <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> Message-ID: <002501c7fad7$1cb89540$0200a8c0@danwaters> Do a web search for ResThief 1.20. There are many links. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Sounds like a really neat solution for this however, I can't get it from the link provided. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail ResThief 1.20 www.ping.be/liontech -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Sep 19 11:04:09 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 11:04:09 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> References: <000301c7f87d$a6773860$8119fea9@LTVM>, , <00f701c7fa43$e4d86c10$0200a8c0@danwaters> <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> Message-ID: <00fc01c7fad6$b6f2a890$6402a8c0@ScuzzPaq> I found a copy I could download by searching the web: http://www.freewarehome.com/index.html?http%3A//www.freewarehome.com/Program ming/Helper_Apps/Extraction_-_Inclusion_t.html Pest Patrol doesn't like it! had to turn off it's real time scanner or it wouldn't allow it to run and would quarantine it. Once going though its very nice. Has one advantage over Irfanview in that it allows for quickly browsing all embedded resources at once with thumbnail view of Explorer. Thanks, this may come in handy. From Patricia.O'Connor at otda.state.ny.us Wed Sep 19 11:14:19 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 19 Sep 2007 12:14:19 -0400 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Another question - are you using a regular access query or a passthru? Using Access2k3 - I tried the Cdate(fix()) against an oracle db table. I selected the actual field and the modified one. It worked fine. So then I also checked it using Access97 still worked ok. I also wrote one where I had to link two table to get results and that worked ok. Then I pulled in one of our "views" with the create_dt. This one took longer but still worked. SELECT CaseID, CREATE_DT, CrDt: cDATE(fix(CREATE_DT)) FROM Tbl1 I can not run this in passthru because Cdate is not a valid oracle function. I can't get to a Sql Server table at the moment. ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 08:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > See responses below: > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Tuesday, September 18, 2007 7:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > Are you saying if you use a hardcoded date in ProductionDate example > ProductionDate: #08/18/2007# the query works fine? > Correct > > When you use ProductionDate: > CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? > Correct > > Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a > table or form? > It is a view in SQL server > > How is it described? > It is a DateTime data type > > Why are you using fix? > To strip of the time part of the SQL server DateTime field > > Just some quick tries. -- > I rarely use ! for table fields in queries and I do queries > using access tables and oracle tables. > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then > Try - ProductionDate: > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) > or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) > > If this query is a regular access gui query you could try > setting the format to date in the gui > > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you > could set a hidden field to a date format and insert the > entered data into the hidden field and use that in the query > instead of have to do > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. > > BTW - Date is usually considered a reserved word in most > languages and software. It can cause some strange happenings. > Agreed however I did not create nor can I create the SQL server view > > Thanks for the ideas. > > > ************************************************************* > * Patricia E. O'Connor > * Associate Computer Programmer/Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (W) mailto:aa1160 at otda.state.ny.us > *********************************************************** > > From accessd at shaw.ca Wed Sep 19 11:17:46 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:17:46 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> Message-ID: <57886EBB1FCB4AA0BFC5775A70868631@creativesystemdesigns.com> Just a comment... These low budget sites seem to be continually running on very tight margins. That is why it sometimes necessary to drop a few dollars off if you find a downloaded 'free' app is useful. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 8:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 11:21:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:21:22 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <62CB6458D9D3497CA39EDA5422EE5455@creativesystemdesigns.com> The ResThief can be downloaded from: http://www.freewarehome.com/index.html?http%3A//www.freewarehome.com/bx/inde x.php%3Faction%3Dvthread%26forum%3D8%26topic%3D3301 Jim From ssharkins at gmail.com Wed Sep 19 11:24:44 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 12:24:44 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <000901c7fad9$9d448870$4b3a8343@SusanOne> Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. From max.wanadoo at gmail.com Wed Sep 19 11:37:13 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:37:13 +0100 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> References: <000301c7f87d$a6773860$8119fea9@LTVM> <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> Message-ID: <000f01c7fadb$560b4730$8119fea9@LTVM> Probably because everybody hit the site when it was published here. Anyway, I have put a copy onto: http://peoplelinks.co.uk/msaccess/downloads/ResThief.zip In the expectation that the author has no objection. I will remove it tomorrow so get it now if you want it. (5.3Kb) ver small download. Watch for word wrap. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:39:50 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:39:50 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000901c7fad9$9d448870$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> <000901c7fad9$9d448870$4b3a8343@SusanOne> Message-ID: <001001c7fadb$b35f5660$8119fea9@LTVM> Jim, you probably didn't notice the word-wrap on the posting. It is there ok and I have had to do a System Restore on all but one computer at work, plus on my home laptop because of memory errors in Access - Be Warned! Wasted most of the afternoon and I am not a happy Teddy Bear. Also, if you have automatic updates enabled, then it will try to install when you go to turn your PC off - watch for this if you don't want it! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:41:36 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:41:36 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001e01c7fad2$4d903100$0200a8c0@danwaters> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM> <001e01c7fad2$4d903100$0200a8c0@danwaters> Message-ID: <001101c7fadb$f2bad1e0$8119fea9@LTVM> Yes, all of my computers! Made no difference, had to remove the update. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 4:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:50:05 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:50:05 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001e01c7fad2$4d903100$0200a8c0@danwaters> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM> <001e01c7fad2$4d903100$0200a8c0@danwaters> Message-ID: <001d01c7fadd$22360330$8119fea9@LTVM> Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 4:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 12:29:56 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 13:29:56 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001d01c7fadd$22360330$8119fea9@LTVM> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM><001e01c7fad2$4d903100$0200a8c0@danwaters> <001d01c7fadd$22360330$8119fea9@LTVM> Message-ID: <002201c7fae2$b33caf00$4b3a8343@SusanOne> Just a quick comparison, but MS posted most of these issues with its download information. Susan H. Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From accessd at shaw.ca Wed Sep 19 12:40:39 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 10:40:39 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001001c7fadb$b35f5660$8119fea9@LTVM> Message-ID: <62817D8FE77447748E601474B2E1E606@creativesystemdesigns.com> Susan and Max... yes... noticed the wrap... thanks for your concern. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 9:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Jim, you probably didn't notice the word-wrap on the posting. It is there ok and I have had to do a System Restore on all but one computer at work, plus on my home laptop because of memory errors in Access - Be Warned! Wasted most of the afternoon and I am not a happy Teddy Bear. Also, if you have automatic updates enabled, then it will try to install when you go to turn your PC off - watch for this if you don't want it! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 19 12:44:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 10:44:36 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 19, 2007 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hi All: Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... 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 max.wanadoo at gmail.com Wed Sep 19 12:55:02 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 18:55:02 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <002201c7fae2$b33caf00$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM><001e01c7fad2$4d903100$0200a8c0@danwaters><001d01c7fadd$22360330$8119fea9@LTVM> <002201c7fae2$b33caf00$4b3a8343@SusanOne> Message-ID: <002401c7fae6$34dae010$8119fea9@LTVM> I didn't see one that said that my Access progams would run out of memory when they had been operating correctly for some 7 years. Also, many people (like me) just trust MS and download when told to do so. Never again! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Just a quick comparison, but MS posted most of these issues with its download information. Susan H. Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 13:18:58 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 14:18:58 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> Charlotte, now I'm curious -- nothing failed, at least, there was no message, but... apps are still showing SP 2. Wouldn't they show SP 3 if the install had been successful? Susan H. I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From ssharkins at gmail.com Wed Sep 19 13:39:49 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 14:39:49 -0400 Subject: [AccessD] credentials Message-ID: <003a01c7faec$76e34460$4b3a8343@SusanOne> Do any of you ask for credentials during the contract phase? How do you know whether the client you're talking to is legitimate? Do you run a credit check, look to the BBB? Susan H. From Chester_Kaup at kindermorgan.com Wed Sep 19 14:29:31 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 14:29:31 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: This is a regular access query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Wednesday, September 19, 2007 11:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Another question - are you using a regular access query or a passthru? Using Access2k3 - I tried the Cdate(fix()) against an oracle db table. I selected the actual field and the modified one. It worked fine. So then I also checked it using Access97 still worked ok. I also wrote one where I had to link two table to get results and that worked ok. Then I pulled in one of our "views" with the create_dt. This one took longer but still worked. SELECT CaseID, CREATE_DT, CrDt: cDATE(fix(CREATE_DT)) FROM Tbl1 I can not run this in passthru because Cdate is not a valid oracle function. I can't get to a Sql Server table at the moment. ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 08:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > See responses below: > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Tuesday, September 18, 2007 7:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > Are you saying if you use a hardcoded date in ProductionDate example > ProductionDate: #08/18/2007# the query works fine? > Correct > > When you use ProductionDate: > CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? > Correct > > Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a > table or form? > It is a view in SQL server > > How is it described? > It is a DateTime data type > > Why are you using fix? > To strip of the time part of the SQL server DateTime field > > Just some quick tries. -- > I rarely use ! for table fields in queries and I do queries > using access tables and oracle tables. > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then > Try - ProductionDate: > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) > or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) > > If this query is a regular access gui query you could try > setting the format to date in the gui > > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you > could set a hidden field to a date format and insert the > entered data into the hidden field and use that in the query > instead of have to do > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. > > BTW - Date is usually considered a reserved word in most > languages and software. It can cause some strange happenings. > Agreed however I did not create nor can I create the SQL server view > > Thanks for the ideas. > > > ************************************************************* > * Patricia E. O'Connor > * Associate Computer Programmer/Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (W) mailto:aa1160 at otda.state.ny.us > *********************************************************** > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 19 14:49:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 12:49:34 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> Message-ID: Beats me, Susan. Since it didn't install on my machine and gave me a message to that effect, I don't have a means of checking. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Charlotte, now I'm curious -- nothing failed, at least, there was no message, but... apps are still showing SP 2. Wouldn't they show SP 3 if the install had been successful? Susan H. I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed Sep 19 14:53:00 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 14:53:00 -0500 Subject: [AccessD] Text Box Default Value Message-ID: I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Donald.A.McGillivray at sprint.com Wed Sep 19 15:20:13 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Wed, 19 Sep 2007 15:20:13 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: Chester, Try using a domain aggregate function: =DMin("[ProductionDate]","tbl Manifold Production") Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 12:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 15:33:04 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 15:33:04 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: Perfect. Thank You! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Wednesday, September 19, 2007 3:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Box Default Value Chester, Try using a domain aggregate function: =DMin("[ProductionDate]","tbl Manifold Production") Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 12:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 dwaters at usinternet.com Wed Sep 19 15:43:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 15:43:38 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: <003001c7fafd$c22da670$0200a8c0@danwaters> Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 15:59:25 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 15:59:25 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: <003001c7fafd$c22da670$0200a8c0@danwaters> References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: Ok. I am not thinking well today. I put this in the forms on load property and get a message the macro txtTextBox cannot be found. Now another question looking down the road. Can the default value be set with a query. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Box Default Value Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Patricia.O'Connor at otda.state.ny.us Wed Sep 19 16:10:34 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 19 Sep 2007 17:10:34 -0400 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet><01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> Well I have run the adjustment of a full date several different ways and get the following CREATE_DT tDtBrac tDtFixbrac tDtCdfixBrac tDtCFixdot tDtdtfnc tdtapost 08/27/2001 11:32:38 AM 08/27/2001 11:32:38 AM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 11:32:38 AM 08/27/2001 02:03:53 PM 08/27/2001 02:03:53 PM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 02:03:53 PM 08/29/2001 10:51:42 AM 08/29/2001 10:51:42 AM 37132 08/29/2001 08/29/2001 09/19/2007 08/29/2001 10:51:42 AM 11/20/2001 04:55:00 PM 11/20/2001 04:55:00 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:55:00 PM 11/20/2001 04:59:56 PM 11/20/2001 04:59:56 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:59:56 PM 11/27/2001 03:51:16 PM 11/27/2001 03:51:16 PM 37222 11/27/2001 11/27/2001 09/19/2007 11/27/2001 03:51:16 PM 03/15/2002 02:59:11 PM 03/15/2002 02:59:11 PM 37330 03/15/2002 03/15/2002 09/19/2007 03/15/2002 02:59:11 PM 03/18/2002 03:32:46 PM 03/18/2002 03:32:46 PM 37333 03/18/2002 03/18/2002 09/19/2007 03/18/2002 03:32:46 PM 10/17/2002 03:13:46 PM 10/17/2002 03:13:46 PM 37546 10/17/2002 10/17/2002 09/19/2007 10/17/2002 03:13:46 PM 01/12/2004 01:22:06 PM 01/12/2004 01:22:06 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:22:06 PM 01/12/2004 01:23:37 PM 01/12/2004 01:23:37 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:23:37 PM 05/19/2004 01:46:16 PM 05/19/2004 01:46:16 PM 38126 05/19/2004 05/19/2004 09/19/2007 05/19/2004 01:46:16 PM I did run things against a view here and had no problem. It could be the way the view is created that is causing the problem. Can't tell you much more without seeing the table/view desc and the the sql for that. By any chance is the date in a binary index? You could try this and see what comes back and maybe that would help. SELECT dbo_V_S_Oil_Metering_Daily_Volumes.Date as tDtdot, dbo_V_S_Oil_Metering_Daily_Volumes!Date as tDtApost, cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtcdatedot, fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtfixdot, Cdate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date)) as tDtcdatefixdot, cdate(fix([dbo_V_S_Oil_Metering_Daily_Volumes].[date])) as tDtcfixbrac, cdate(fix([date])) as tDtcfixjdt, cdate(fix(date())) as tDtcfixfncdt >From dbo_V_S_Oil_Metering_Daily_Volumes Order by dbo_V_S_Oil_Metering_Daily_Volumes.Date ascending Sorry wish I could be more help ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 03:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > This is a regular access query. > From dwaters at usinternet.com Wed Sep 19 16:14:40 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 16:14:40 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: <003d01c7fb02$17c0b4c0$0200a8c0@danwaters> Substitute txtTextBox with the actual name of your textbox. I don't know if it can be set with a query (just haven't tried). Generally, you would use the Default property if the initial value will always be the same value. Say, a checkbox would always be True, or a Date field will always be today (use Date()). If your initial value could be different each time, then you should use code in the Load event. That way you can trap for errors. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 3:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Box Default Value Ok. I am not thinking well today. I put this in the forms on load property and get a message the macro txtTextBox cannot be found. Now another question looking down the road. Can the default value be set with a query. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Box Default Value Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 16:31:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 16:31:20 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet><01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: Here is a sample of the result of your query. Thanks for all the effort you put into looking at this. I don't like the reserved word Date used in the SQL server view. May be a problem. One again thinks for your efforts. I may get the DBA to change the field name in SQL server. Date tDtdot tDtApost tdtcdatedot tdtfixdot tDtcdatefixdot tDtcfixbrac tDtcfixjdt tDtcfixfncdt 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 37392 5/16/2002 5/16/2002 5/16/2002 9/19/2007 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 37393 5/17/2002 5/17/2002 5/17/2002 9/19/2007 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 37394 5/18/2002 5/18/2002 5/18/2002 9/19/2007 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 37395 5/19/2002 5/19/2002 5/19/2002 9/19/2007 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 37396 5/20/2002 5/20/2002 5/20/2002 9/19/2007 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Wednesday, September 19, 2007 4:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Well I have run the adjustment of a full date several different ways and get the following CREATE_DT tDtBrac tDtFixbrac tDtCdfixBrac tDtCFixdot tDtdtfnc tdtapost 08/27/2001 11:32:38 AM 08/27/2001 11:32:38 AM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 11:32:38 AM 08/27/2001 02:03:53 PM 08/27/2001 02:03:53 PM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 02:03:53 PM 08/29/2001 10:51:42 AM 08/29/2001 10:51:42 AM 37132 08/29/2001 08/29/2001 09/19/2007 08/29/2001 10:51:42 AM 11/20/2001 04:55:00 PM 11/20/2001 04:55:00 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:55:00 PM 11/20/2001 04:59:56 PM 11/20/2001 04:59:56 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:59:56 PM 11/27/2001 03:51:16 PM 11/27/2001 03:51:16 PM 37222 11/27/2001 11/27/2001 09/19/2007 11/27/2001 03:51:16 PM 03/15/2002 02:59:11 PM 03/15/2002 02:59:11 PM 37330 03/15/2002 03/15/2002 09/19/2007 03/15/2002 02:59:11 PM 03/18/2002 03:32:46 PM 03/18/2002 03:32:46 PM 37333 03/18/2002 03/18/2002 09/19/2007 03/18/2002 03:32:46 PM 10/17/2002 03:13:46 PM 10/17/2002 03:13:46 PM 37546 10/17/2002 10/17/2002 09/19/2007 10/17/2002 03:13:46 PM 01/12/2004 01:22:06 PM 01/12/2004 01:22:06 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:22:06 PM 01/12/2004 01:23:37 PM 01/12/2004 01:23:37 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:23:37 PM 05/19/2004 01:46:16 PM 05/19/2004 01:46:16 PM 38126 05/19/2004 05/19/2004 09/19/2007 05/19/2004 01:46:16 PM I did run things against a view here and had no problem. It could be the way the view is created that is causing the problem. Can't tell you much more without seeing the table/view desc and the the sql for that. By any chance is the date in a binary index? You could try this and see what comes back and maybe that would help. SELECT dbo_V_S_Oil_Metering_Daily_Volumes.Date as tDtdot, dbo_V_S_Oil_Metering_Daily_Volumes!Date as tDtApost, cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtcdatedot, fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtfixdot, Cdate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date)) as tDtcdatefixdot, cdate(fix([dbo_V_S_Oil_Metering_Daily_Volumes].[date])) as tDtcfixbrac, cdate(fix([date])) as tDtcfixjdt, cdate(fix(date())) as tDtcfixfncdt >From dbo_V_S_Oil_Metering_Daily_Volumes Order by dbo_V_S_Oil_Metering_Daily_Volumes.Date ascending Sorry wish I could be more help ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 03:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > This is a regular access query. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 17:07:00 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 15:07:00 -0700 Subject: [AccessD] credentials In-Reply-To: <003a01c7faec$76e34460$4b3a8343@SusanOne> Message-ID: Before launching into any contract I spent as much time researching the contact person/ company as I do the contract. Check things like university/college trained, hobbies, locations, any news or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers related to the perspective client. Then there are business contacts, previous work done and if a lot of money is involved I will pay for a credit check. Someone with very little information on them I trust even less as I always wonder what they are hiding. Honest people don't hide. Suspicious people usually have a good reason to be very cautious... and a business venture can go strange very fast if one of the participants is carrying baggage. I have found information acquired from the BBB is not worth anything. Unless the member has not paid their dues there is no negative info on them. Even formal complaints are viewed as confidential until the member has been charged and convicted.... We had this company in court 3 times, for breach of contract before they finally forced to declared bankruptcy and their 'Member in Good Standing' endorsement was removed from the BBB roles. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 11:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] credentials Do any of you ask for credentials during the contract phase? How do you know whether the client you're talking to is legitimate? Do you run a credit check, look to the BBB? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Wed Sep 19 18:34:07 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 19 Sep 2007 17:34:07 -0600 Subject: [AccessD] credentials In-Reply-To: References: <003a01c7faec$76e34460$4b3a8343@SusanOne> Message-ID: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching the > contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any news > or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers > related to the perspective client. Then there are business contacts, > previous work done and if a lot of money is involved I will pay for a > credit > check. > > Someone with very little information on them I trust even less as I always > wonder what they are hiding. Honest people don't hide. Suspicious people > usually have a good reason to be very cautious... and a business venture > can > go strange very fast if one of the participants is carrying baggage. > > From ssharkins at gmail.com Wed Sep 19 19:01:38 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 20:01:38 -0400 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> References: <003a01c7faec$76e34460$4b3a8343@SusanOne> <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: <001301c7fb19$6bc58750$4b3a8343@SusanOne> I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. =======I maintain a blog on MS Office, and I can assure you, I'm not having that much fun. ;) Susan H. From cfoust at infostatsystems.com Wed Sep 19 19:00:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 17:00:10 -0700 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> References: <003a01c7faec$76e34460$4b3a8343@SusanOne> <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: You and I can commiserate, Arthur. I've never visited those sites either, although I have/had a silly blog that was nothing but nonsense, intentionally. Not only that, but I keep my face off the internet! LOL Charlotte (otherwise known as the Shady Lady!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 19, 2007 4:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching > the contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any > news or personal comments, MySpace, FaceBook, pictures, Blogs, local > newspapers related to the perspective client. Then there are business > contacts, previous work done and if a lot of money is involved I will > pay for a credit check. > > Someone with very little information on them I trust even less as I > always wonder what they are hiding. Honest people don't hide. > Suspicious people usually have a good reason to be very cautious... > and a business venture can go strange very fast if one of the > participants is carrying baggage. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 19:19:05 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 17:19:05 -0700 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: <51063B73C1A84C07B031D4F3A8A5DBDD@creativesystemdesigns.com> Oh yes you would pass and with flying colours. I did not mean to suggest that a person has to be in MySpace, FaceBook or even have a Blog. It just some of the places I would look when researching a person. You show up in dozens of other places. There are 2,340,000 hits, on Google, on the name Arthur Fuller and I bet there are a good 100 direct references to you. (I have not been able to find out what you ate for supper to night or what your bank-account number is though) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 19, 2007 4:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching the > contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any news > or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers > related to the perspective client. Then there are business contacts, > previous work done and if a lot of money is involved I will pay for a > credit > check. > > Someone with very little information on them I trust even less as I always > wonder what they are hiding. Honest people don't hide. Suspicious people > usually have a good reason to be very cautious... and a business venture > can > go strange very fast if one of the participants is carrying baggage. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 19:36:26 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 17:36:26 -0700 Subject: [AccessD] credentials In-Reply-To: <001301c7fb19$6bc58750$4b3a8343@SusanOne> Message-ID: <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> Hi Suzan: There are about 100 direct references to you through your books and articles under the name Susan Sales Harkin. Even some in Japanese. Your famous Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. =======I maintain a blog on MS Office, and I can assure you, I'm not having that much fun. ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 19:56:36 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 20:56:36 -0400 Subject: [AccessD] Favor Message-ID: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> My copy of Access 2003 is toast, can someone please tell me the exact name of the objects/commands identified by a preceding _ To launch the label report wizard, choose _Report from the _New Object button's dropdown list and choose _Label Report from the resulting dialog box. I'd appreciate it. I should know them by heart, but I find, I don't. :( Susan H. From ssharkins at gmail.com Wed Sep 19 20:03:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 21:03:52 -0400 Subject: [AccessD] credentials In-Reply-To: <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> References: <001301c7fb19$6bc58750$4b3a8343@SusanOne> <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> Message-ID: <002401c7fb22$1dd66c40$4b3a8343@SusanOne> Your famous ====Nope, just been writing for a long time. :) Susan H. From ssharkins at gmail.com Wed Sep 19 20:14:01 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 21:14:01 -0400 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? Message-ID: <002501c7fb23$89f04300$4b3a8343@SusanOne> My 2007 reports lose their settings. I can't even remember the feature that caused this problem before -- can someone remind me? Is it really still not fixed? Susan H. From garykjos at gmail.com Wed Sep 19 21:10:30 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 19 Sep 2007 21:10:30 -0500 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? In-Reply-To: <002501c7fb23$89f04300$4b3a8343@SusanOne> References: <002501c7fb23$89f04300$4b3a8343@SusanOne> Message-ID: Well I cannot find it in 2007 but it used to be under Options and General or something to that effect. Here let me look at another machine with 2003 or XP on it....In XP it was under Tools/Options/General and was a set of checkboxes the first of which is "Track Name AutoCorrect Info". With that one unchecked the two below it are greyed out but they are "Perform Name Autocorrect" and "Log Name Autocorrect Changes" Oh, I found info on it under Help. Good luck getting your settings to stay set. GK On 9/19/07, Susan Harkins wrote: > My 2007 reports lose their settings. I can't even remember the feature that > caused this problem before -- can someone remind me? Is it really still not > fixed? > > 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 miscellany at mvps.org Wed Sep 19 21:12:25 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 20 Sep 2007 14:12:25 +1200 Subject: [AccessD] Text Box Default Value In-Reply-To: References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: <46F1D709.2030300@mvps.org> Chester, You would appear to be putting the expression directly into the form's On Load event property. Instead, to follow Dan's approach, you need to enter [Event Procedure] into the event property, cick the little ellipsis [...] button to the right to open the VB Editor, and put the code in there instead. But if it was me, I would go with Don's idea, of using the domain function in the Default Value property of the textbox... except that I don't think you would precede it with the = sign. Regards Steve Kaup, Chester wrote: > Ok. I am not thinking well today. I put this in the forms on load > property and get a message the macro txtTextBox cannot be found. > From ssharkins at gmail.com Wed Sep 19 21:24:29 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 22:24:29 -0400 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? In-Reply-To: References: <002501c7fb23$89f04300$4b3a8343@SusanOne> Message-ID: <003e01c7fb2d$633953f0$4b3a8343@SusanOne> Gary, that helped me find the option, but disabling it didn't do the trick. I've created a label report in 2007, but it loses the column setup when I close it. The wizard generates it correctly, but when I reopen it, it's just one long column of labels. Truly odd. Susan H. Well I cannot find it in 2007 but it used to be under Options and General or something to that effect. Here let me look at another machine with 2003 or XP on it....In XP it was under Tools/Options/General and was a set of checkboxes the first of which is "Track Name AutoCorrect Info". With that one unchecked the two below it are greyed out but they are "Perform Name Autocorrect" and "Log Name Autocorrect Changes" Oh, I found info on it under Help. Good luck getting your settings to stay set. From garykjos at gmail.com Wed Sep 19 21:25:43 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 19 Sep 2007 21:25:43 -0500 Subject: [AccessD] Favor In-Reply-To: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> Message-ID: You've lost me. I have 2003 and created a label report but saw nothing anywhere with a preceeding underscore character. Where should I be looking for this again? GK On 9/19/07, Susan Harkins wrote: > My copy of Access 2003 is toast, can someone please tell me the exact name > of the objects/commands identified by a preceding _ > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting dialog > box. > > I'd appreciate it. I should know them by heart, but I find, I don't. :( > > 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 ssharkins at gmail.com Thu Sep 20 07:18:22 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 08:18:22 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> Message-ID: <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> I'm sorry Gary -- the underscore is in the message -- see below -- I need the correct names of those objects/commands. :) See the following statement -- see the underscore before Report, New Object, and Label Report? I guess I wasn't very specific in what I was asking -- I apologize. To launch the label report wizard, choose _Report from the _New Object button's dropdown list and choose _Label Report from the resulting dialog box. Susan H. You've lost me. I have 2003 and created a label report but saw nothing anywhere with a preceeding underscore character. Where should I be looking for this again? > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting > dialog box. > > I'd appreciate it. I should know them by heart, but I find, I don't. > :( > > 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 -- 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From garykjos at gmail.com Thu Sep 20 08:13:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 08:13:09 -0500 Subject: [AccessD] Favor In-Reply-To: <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> Message-ID: You have entirely different Wizards than I do evidently. Or I am completely clueless. Which is entirely possible. I'm at the database window. In an open database. It's Access 2000 format database though as are all my databases. I have a list of object types on the extreem left of the window listing Tables, queries, Forms, Reports, Pages, Macros and Modules. Under that is a Groups section. If I select the Reports Object type I have buttons on the top of that for Preview, Design and New Selecting New gets me into the dialog asking if I want to go to Design View or use the report Wizard, the Chart Wizard, the Label Wizard or the AutoReport in Columnar or Tabular formats. Selecting the Label Wizard and choosing a table to use for that I say OK. It asks me to choose a type of label paper. I choose the first one on the list. It asks me about fonts. I take the default one It wants some data in the label so I choose the one field in my table. Likewise to sort by. It then wants a name for the report so I give it rptSusansLabelTest and click Finish. And it runs my labels. OK, where are these _ Objects you want me to tell you about? I'm really not trying to be dense but I guess I am. GK On 9/20/07, Susan Harkins wrote: > I'm sorry Gary -- the underscore is in the message -- see below -- I need > the correct names of those objects/commands. :) See the following statement > -- see the underscore before Report, New Object, and Label Report? I guess I > wasn't very specific in what I was asking -- I apologize. > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting dialog > box. > > Susan H. > > You've lost me. I have 2003 and created a label report but saw nothing > anywhere with a preceeding underscore character. Where should I be looking > for this again? > > > > > To launch the label report wizard, choose _Report from the _New Object > > button's dropdown list and choose _Label Report from the resulting > > dialog box. > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > :( > > > > Susan H. > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 > 8:59 AM > > > -- > 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 ssharkins at gmail.com Thu Sep 20 08:27:41 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 09:27:41 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne> Message-ID: <007501c7fb8a$07070e30$4b3a8343@SusanOne> You don't have a New Objects button on the Database toolbar? Not in the Database window -- but with the DW current -- choose a wizard from the New Objects button -- wow, I am bad at winging it! ;( Susan H. You have entirely different Wizards than I do evidently. Or I am completely clueless. Which is entirely possible. I'm at the database window. In an open database. It's Access 2000 format database though as are all my databases. I have a list of object types on the extreem left of the window listing Tables, queries, Forms, Reports, Pages, Macros and Modules. Under that is a Groups section. If I select the Reports Object type I have buttons on the top of that for Preview, Design and New Selecting New gets me into the dialog asking if I want to go to Design View or use the report Wizard, the Chart Wizard, the Label Wizard or the AutoReport in Columnar or Tabular formats. Selecting the Label Wizard and choosing a table to use for that I say OK. It asks me to choose a type of label paper. I choose the first one on the list. It asks me about fonts. I take the default one It wants some data in the label so I choose the one field in my table. Likewise to sort by. It then wants a name for the report so I give it rptSusansLabelTest and click Finish. And it runs my labels. OK, where are these _ Objects you want me to tell you about? I'm really not trying to be dense but I guess I am. GK On 9/20/07, Susan Harkins wrote: > I'm sorry Gary -- the underscore is in the message -- see below -- I > need the correct names of those objects/commands. :) See the following > statement > -- see the underscore before Report, New Object, and Label Report? I > guess I wasn't very specific in what I was asking -- I apologize. > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting > dialog box. > > Susan H. > > You've lost me. I have 2003 and created a label report but saw nothing > anywhere with a preceeding underscore character. Where should I be > looking for this again? > > > > > To launch the label report wizard, choose _Report from the _New > > Object button's dropdown list and choose _Label Report from the > > resulting dialog box. > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > :( > > > > Susan H. > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: > 9/14/2007 > 8:59 AM > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From garykjos at gmail.com Thu Sep 20 09:07:05 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 09:07:05 -0500 Subject: [AccessD] Favor In-Reply-To: <007501c7fb8a$07070e30$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> Message-ID: OK, with the table I want open in datasheef view I have a new Object button in the toolbar. It has a little drop down arrow next to it and if I click that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, Module, Page and Class Module. If I choose Report it gets me to what appears to be the exact same New Report dialog I previously described. I use menu functions way more often than toolbar icons as I have trouble understanding what little pictures represent and they are too tiny for me to see well for the most part. Part of why I am so lost in 2007 now as they are no menus, just that !@&?!! ribbon thing where I can'[t find anything. Perhaps it's working differently for me since it's an Access 2000 Format database? It appears to be consistent here on my work system to what it was on my laptop at home last night when I first looked at it. I have Access XP on my second machine here at work I can see if the wizard works differently there. And I can try to create an Access 2003 format database and see if it gives me diffeent wizard options. GK On 9/20/07, Susan Harkins wrote: > You don't have a New Objects button on the Database toolbar? Not in the > Database window -- but with the DW current -- choose a wizard from the New > Objects button -- wow, I am bad at winging it! ;( > > Susan H. > > You have entirely different Wizards than I do evidently. Or I am completely > clueless. Which is entirely possible. > > I'm at the database window. In an open database. It's Access 2000 format > database though as are all my databases. > > I have a list of object types on the extreem left of the window listing > Tables, queries, Forms, Reports, Pages, Macros and Modules. > Under that is a Groups section. > > If I select the Reports Object type I have buttons on the top of that for > Preview, Design and New > > Selecting New gets me into the dialog asking if I want to go to Design View > or use the report Wizard, the Chart Wizard, the Label Wizard or the > AutoReport in Columnar or Tabular formats. > > Selecting the Label Wizard and choosing a table to use for that I say OK. It > asks me to choose a type of label paper. I choose the first one on the list. > > It asks me about fonts. I take the default one > > It wants some data in the label so I choose the one field in my table. > Likewise to sort by. > It then wants a name for the report so I give it rptSusansLabelTest and > click Finish. > > And it runs my labels. > > OK, where are these _ Objects you want me to tell you about? > > I'm really not trying to be dense but I guess I am. > > GK > > On 9/20/07, Susan Harkins wrote: > > I'm sorry Gary -- the underscore is in the message -- see below -- I > > need the correct names of those objects/commands. :) See the following > > statement > > -- see the underscore before Report, New Object, and Label Report? I > > guess I wasn't very specific in what I was asking -- I apologize. > > > > To launch the label report wizard, choose _Report from the _New Object > > button's dropdown list and choose _Label Report from the resulting > > dialog box. > > > > Susan H. > > > > You've lost me. I have 2003 and created a label report but saw nothing > > anywhere with a preceeding underscore character. Where should I be > > looking for this again? > > > > > > > > To launch the label report wizard, choose _Report from the _New > > > Object button's dropdown list and choose _Label Report from the > > > resulting dialog box. > > > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > > :( > > > > > > Susan H. > > > > > > -- > > 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.485 / Virus Database: 269.13.19/1008 - Release Date: > > 9/14/2007 > > 8:59 AM > > > > > > -- > > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 > 8:59 AM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Thu Sep 20 09:37:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 20 Sep 2007 07:37:49 -0700 Subject: [AccessD] Office 2003 SP3 Message-ID: Well it looks like the update was part of Microsoft's weekly putsch (pun intended!) cause my Outlook 2003 is happily sporting an SP3 in Help-->About. Who knew? Charlotte Foust From ssharkins at gmail.com Thu Sep 20 12:11:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 13:11:52 -0400 Subject: [AccessD] Office 2003 SP3 In-Reply-To: References: Message-ID: <00af01c7fba9$57af4ea0$4b3a8343@SusanOne> Well it looks like the update was part of Microsoft's weekly putsch (pun intended!) cause my Outlook 2003 is happily sporting an SP3 in Help-->About. Who knew? =======Mine isn't, and I've rebooted twice. :( Susan H. From ewaldt at gdls.com Thu Sep 20 13:36:24 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Thu, 20 Sep 2007 14:36:24 -0400 Subject: [AccessD] More Access to Excel Help Needed - Solved In-Reply-To: Message-ID: Thank you all for your help. I finally found the solution to the problem. Of all places, it was actually at Microsoft.com! The KnowledgeBase article #319832, on page 4 of 5 (when you print it out, of course) has a section entitled, "Qualifying the Code to Avoid Errors." In speaking of automation errors, it mentions a reference to "Workbooks.Count" in its example code, without referencing the Excel app that had been created. The author states, "When you run the code, it appears to run correctly the first time. However, Excel continues to run, even though you called the Quit method." That is what was happening to me. Apparently, referencing global puppies (in the technical sense) can cause an app to hang. Simply qualifying the code more fully makes the difference. In my case, my Access code had the line, VBProject.VBComponents.Add(vbext_ct_StdModule) This was in a separate module (from Microsoft.com, btw), which my main module called. To avoid confusion, I pulled all of the code from that separate module into my main one and added the reference to the Excel workbook variable I was using: xlBook.VBProject.VBComponents.Add(vbext_ct_StdModule) I also changed some early binding to late binding at the article's suggestion. That might not have helped, since I made that change before I made the one above, and it still didn't work. I've left it in, though, for insurance. ;-) Anyway, it now works. When I close Excel within this code it closes correctly. Thanks, again, for everyone's help. I thought this lesson was worth passing on. It's always good to qualify. ;-) Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 ssharkins at gmail.com Thu Sep 20 13:46:36 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 14:46:36 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne> Message-ID: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Oh dear, oh dear... I am doing such a lousy job of this -- OK, with the table I want open in datasheef view I have a new Object button in the toolbar. It has a little drop down arrow next to it and if I click that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, Module, Page and Class Module. If I choose Report it gets me to what appears to be the exact same New Report dialog I previously described. ==========There should be a Label Report option -- isn't there one? Perhaps it's working differently for me since it's an Access 2000 Format database? It appears to be consistent here on my work system to what it was on my laptop at home last night when I first looked at it. ==========No, I'm just not explaining myself well enough I think. I apologize. Susan H. From dwaters at usinternet.com Thu Sep 20 14:15:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 20 Sep 2007 14:15:38 -0500 Subject: [AccessD] More Access to Excel Help Needed - Solved In-Reply-To: References: Message-ID: <001801c7fbba$a0d37550$0200a8c0@danwaters> Thanks Tom! I always like hearing how things worked out. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 20, 2007 1:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] More Access to Excel Help Needed - Solved Thank you all for your help. I finally found the solution to the problem. Of all places, it was actually at Microsoft.com! The KnowledgeBase article #319832, on page 4 of 5 (when you print it out, of course) has a section entitled, "Qualifying the Code to Avoid Errors." In speaking of automation errors, it mentions a reference to "Workbooks.Count" in its example code, without referencing the Excel app that had been created. The author states, "When you run the code, it appears to run correctly the first time. However, Excel continues to run, even though you called the Quit method." That is what was happening to me. Apparently, referencing global puppies (in the technical sense) can cause an app to hang. Simply qualifying the code more fully makes the difference. In my case, my Access code had the line, VBProject.VBComponents.Add(vbext_ct_StdModule) This was in a separate module (from Microsoft.com, btw), which my main module called. To avoid confusion, I pulled all of the code from that separate module into my main one and added the reference to the Excel workbook variable I was using: xlBook.VBProject.VBComponents.Add(vbext_ct_StdModule) I also changed some early binding to late binding at the article's suggestion. That might not have helped, since I made that change before I made the one above, and it still didn't work. I've left it in, though, for insurance. ;-) Anyway, it now works. When I close Excel within this code it closes correctly. Thanks, again, for everyone's help. I thought this lesson was worth passing on. It's always good to qualify. ;-) Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 From markamatte at hotmail.com Thu Sep 20 14:21:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 20 Sep 2007 19:21:12 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Patricia.O'Connor at otda.state.ny.us Thu Sep 20 14:31:56 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 20 Sep 2007 15:31:56 -0400 Subject: [AccessD] Favor In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> I can send a private email with a small picture of the box that appears The list contains LABEL WIZARD Patti ************************************************** * 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 > Susan Harkins > Sent: Thursday, September 20, 2007 02:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Favor > > Oh dear, oh dear... I am doing such a lousy job of this -- > > > OK, with the table I want open in datasheef view I have a new > Object button in the toolbar. It has a little drop down arrow > next to it and if I click that it gives me choices for > Autoform, AutoReport, Table Query, Form, Macro, Module, Page > and Class Module. If I choose Report it gets me to what > appears to be the exact same New Report dialog I previously > described. > > ==========There should be a Label Report option -- isn't there one? > > Perhaps it's working differently for me since it's an Access > 2000 Format database? It appears to be consistent here on my > work system to what it was on my laptop at home last night > when I first looked at it. > > ==========No, I'm just not explaining myself well enough I > think. I apologize. > > 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 Sep 20 14:42:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Sep 2007 15:42:30 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Mark, AFAIK this won't work. The problem is that when you change a record on the sub form events in the subform will fire. What are you really trying to do, in plain English? John 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, September 20, 2007 3:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From markamatte at hotmail.com Thu Sep 20 14:59:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 20 Sep 2007 19:59:16 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Message-ID: John, I'm ok with the events in the subform firing... Plain English...I just want to change a field in the subform to a certain value when the user exits the subform. I don't want this to happen when they just move to another record in the same subform. Thanks, Mark >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Leave Subform >Date: Thu, 20 Sep 2007 15:42:30 -0400 > >Mark, > >AFAIK this won't work. The problem is that when you change a record on the >sub form events in the subform will fire. > >What are you really trying to do, in plain English? > > >John 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, September 20, 2007 3:21 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Leave Subform > >Hello All, > >Have an A97 db...I have a subform/continuous...when I leave/exit that >subform I want to change a value on the current record of the subform. I >thought I could do this by using the "On Exit" property of the subform. >The >problem is when I click out of the subform...the "on Exit" does fire...but >if I put code in that references the field I want to change...the click >part >is cancelled and the subform maintains focus. > >Any suggestions? > >Thanks, > >Mark > >P.S...I can't use the "Before Update" of the subform itself...because going >to a new record in the form does something different. > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo? 3 with free downloads and an exclusive offer. http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1 From ssharkins at gmail.com Thu Sep 20 15:01:03 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:01:03 -0400 Subject: [AccessD] Favor In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <012c01c7fbc0$fdb81220$4b3a8343@SusanOne> That's it Patti -- don't need a figure, but thank you for offering. Thanks! Susan H. I can send a private email with a small picture of the box that appears The list contains LABEL WIZARD From ssharkins at gmail.com Thu Sep 20 15:03:43 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:03:43 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <013201c7fbc1$59ad7bb0$4b3a8343@SusanOne> Hmmmm... That's a good one -- have you tried fully referencing the subform control -- as if you were changing it from the main form instead of the subform? Susan h. Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. From Chester_Kaup at kindermorgan.com Thu Sep 20 15:17:09 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:17:09 -0500 Subject: [AccessD] Resume command problem Message-ID: I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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 rockysmolin at bchacc.com Thu Sep 20 15:20:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:20:01 -0700 Subject: [AccessD] FW: [dba-OT] OT: Screen Resizing Message-ID: <001701c7fbc3$9fe99b70$0301a8c0@HAL9005> Dear List: I am under contract to write a book for Apress - tentatively titled How to Turn a Program Into a Product. The book is not about Access apps but more general - covering considerations that developers need to think about before bringing a program to market. I'm thinking about adding a section to the chapter I'm writing now about screen resizing, having your form fill the screen regardless of the user's resolution. I can cover this for Access apps, obviously, but what about other platforms? Is this a similar problem and solution in VB? How do web products handle this? MTIA, Rocky _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From jwcolby at colbyconsulting.com Thu Sep 20 15:27:18 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Sep 2007 16:27:18 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Message-ID: <004801c7fbc4$a4c20910$6c7aa8c0@M90> Mark, >I just want to change a field in the subform to a certain value when the user exits the subform. That is not plain English, that is database speak. I am trying to discover what you are doing so that I can suggest a different way of doing it. What is the field? Why does it need to be set when the user leaves the subform? What kind of value will go in the field? Is this a "trail" of what the user was looking at last? A subform tries to save a record being edited when you leave the subform. You are intentionally editing the subform record when you leave the subform. The subform tries to save the record that you just edited. A vicious circle... I would suggest that you will need to store the PK of the subform "current" record, then from up in the main form run code to update that record, some specific field. NOT EDIT A FIELD ON THE SUBFORM, but rather run SQL that edits the record back in that table. You should be able to do that from the OnExit of the subform control because SQL is editing data in a table, not modifying a control on a subform. John 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, September 20, 2007 3:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Leave Subform John, I'm ok with the events in the subform firing... Plain English...I just want to change a field in the subform to a certain value when the user exits the subform. I don't want this to happen when they just move to another record in the same subform. Thanks, Mark >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Leave Subform >Date: Thu, 20 Sep 2007 15:42:30 -0400 > >Mark, > >AFAIK this won't work. The problem is that when you change a record on >the sub form events in the subform will fire. > >What are you really trying to do, in plain English? > > >John 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, September 20, 2007 3:21 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Leave Subform > >Hello All, > >Have an A97 db...I have a subform/continuous...when I leave/exit that >subform I want to change a value on the current record of the subform. >I thought I could do this by using the "On Exit" property of the subform. >The >problem is when I click out of the subform...the "on Exit" does >fire...but if I put code in that references the field I want to >change...the click part is cancelled and the subform maintains focus. > >Any suggestions? > >Thanks, > >Mark > >P.S...I can't use the "Before Update" of the subform itself...because >going to a new record in the form does something different. > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo. 3 with free downloads and an exclusive offer. http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1 From rockysmolin at bchacc.com Thu Sep 20 15:30:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:30:27 -0700 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From ssharkins at gmail.com Thu Sep 20 15:31:24 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:31:24 -0400 Subject: [AccessD] Resume command problem In-Reply-To: References: Message-ID: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From ssharkins at gmail.com Thu Sep 20 15:37:04 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:37:04 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? Message-ID: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. From Chester_Kaup at kindermorgan.com Thu Sep 20 15:38:21 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:38:21 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> References: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> Message-ID: I want to go back and check the value in the text box again. Maybe I am doing all the wrong way? -----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, September 20, 2007 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM -- 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 Sep 20 15:39:59 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:39:59 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <015901c7fbc5$377349e0$4b3a8343@SusanOne> References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Sep 20 15:48:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:48:02 -0700 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <002201c7fbc7$89cfa920$0301a8c0@HAL9005> I might replace the Resume with Forms![frm Manifold Chart]!StartDate.SetFocus That way they can't get past your edit message until Start < End Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I want to go back and check the value in the text box again. Maybe I am doing all the wrong way? -----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, September 20, 2007 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From ssharkins at gmail.com Thu Sep 20 15:58:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:58:11 -0400 Subject: [AccessD] Resume command problem In-Reply-To: References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: <016c01c7fbc8$f9ef50b0$4b3a8343@SusanOne> Go back where? You need a custom even to validate entries -- either in a control's BeforeUpdate or the form's Current or LostFocus -- Resume won't do that for you. Susan H. I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From cfoust at infostatsystems.com Thu Sep 20 16:05:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 20 Sep 2007 14:05:44 -0700 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: If nothing else, you should have a restore point set prior to the update. Check and see whether it's there. If so, you can roll back to it. I don't have any obvious means of uninstalling SP3 either, but there may be an option on the SP3 executable to remove it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 1:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Max -- how do I uninstall SP 3? Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Sep 20 16:18:08 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 17:18:08 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: <017801c7fbcb$c045ef10$4b3a8343@SusanOne> Can't do that -- I've got a virus in my restore file and I can't restore. That's one of the reasons I need to reformat and start over. Susan H. If nothing else, you should have a restore point set prior to the update. Check and see whether it's there. If so, you can roll back to it. I don't have any obvious means of uninstalling SP3 either, but there may be an option on the SP3 executable to remove it. From garykjos at gmail.com Thu Sep 20 16:23:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 16:23:24 -0500 Subject: [AccessD] Favor In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: Yes, I see the label wizard. I select it. It lads me through picking a type of label stock. It leads me through selecting fields to display and then allows me to view the end result. I still am not seeing anything with an underscore character anyplace. GK On 9/20/07, Susan Harkins wrote: > Oh dear, oh dear... I am doing such a lousy job of this -- > > > OK, with the table I want open in datasheef view I have a new Object button > in the toolbar. It has a little drop down arrow next to it and if I click > that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, > Module, Page and Class Module. If I choose Report it gets me to what appears > to be the exact same New Report dialog I > previously described. > > ==========There should be a Label Report option -- isn't there one? > > Perhaps it's working differently for me since it's an Access 2000 Format > database? It appears to be consistent here on my work system to what it was > on my laptop at home last night when I first looked at it. > > ==========No, I'm just not explaining myself well enough I think. I > apologize. > > 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 ssharkins at gmail.com Thu Sep 20 16:41:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 17:41:52 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Gary, the underscores were in the text following the original question -- not in the actual commands. :) I tried to explain that to you once I realized what you were doing, but I guess I didn't do a very good job. I'm sorry. Here's a brief example of what I did.. Blah, blah, blah... _Report, blah, blah, blah... _New Object button's dropdown list... Lbah, blah, .... _Label Report Do you see the underscores in the text? I was using the underscores to identify the commands/menus because I couldn't remember if I was remembering them correctly. Patti helped me out, so just forget it, and I apologize for sending you on a wild goose chase! Susan H. Yes, I see the label wizard. I select it. It lads me through picking a type of label stock. It leads me through selecting fields to display and then allows me to view the end result. I still am not seeing anything with an underscore character anyplace. From ssharkins at gmail.com Thu Sep 20 17:10:32 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 18:10:32 -0400 Subject: [AccessD] contracts Message-ID: <01ae01c7fbd3$10b72de0$4b3a8343@SusanOne> I'd like to see copies of simple consulting contracts -- the list doesn't support attachments, so if you want to share, you'll have to copy into an email message. Thanks! Susan H. From garykjos at gmail.com Thu Sep 20 17:26:02 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 17:26:02 -0500 Subject: [AccessD] Favor In-Reply-To: <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Message-ID: Ack! Underscore just meant MENU???? OK, time for me to go home.I am obviously WAY TO LITERAL as I was still looking for underscore characters just a little bit ago. HA HA HA . I'm such a doofus. Like you didn't know that ;-) Nity nite. GK On 9/20/07, Susan Harkins wrote: > Gary, the underscores were in the text following the original question -- > not in the actual commands. :) I tried to explain that to you once I > realized what you were doing, but I guess I didn't do a very good job. I'm > sorry. > > Here's a brief example of what I did.. > > Blah, blah, blah... _Report, blah, blah, blah... _New Object button's > dropdown list... Lbah, blah, .... _Label Report > > Do you see the underscores in the text? I was using the underscores to > identify the commands/menus because I couldn't remember if I was > remembering them correctly. Patti helped me out, so just forget it, and I > apologize for sending you on a wild goose chase! > > Susan H. > -- Gary Kjos garykjos at gmail.com From darren at activebilling.com.au Thu Sep 20 18:28:55 2007 From: darren at activebilling.com.au (Darren D) Date: Fri, 21 Sep 2007 09:28:55 +1000 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <200709202328.l8KNShYT014597@databaseadvisors.com> Hi Chester How about some thing like this Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm ManifoldChart]!EndDate Then msgBox "Invalid Date. Start date must be before end date" 'Stop the Exit Event occurring Cancel = true 'send the cursor wherever you want Forms![frm Manifold Chart]!StartDate.setfocus Else 'OK to go 'Do some other stuff here end If End Sub Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 21 September 2007 6:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 ssharkins at gmail.com Thu Sep 20 18:58:28 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 19:58:28 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne><018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Message-ID: <01d401c7fbe2$24713c90$4b3a8343@SusanOne> You're not a dufus -- I'm so use to working in editor mode that I just took too much for granted -- but thank you for trying. :) Susan H. Ack! Underscore just meant MENU???? OK, time for me to go home.I am obviously WAY TO LITERAL as I was still looking for underscore characters just a little bit ago. HA HA HA . I'm such a doofus. Like you didn't know that ;-) From accessd at shaw.ca Thu Sep 20 20:10:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 20 Sep 2007 18:10:38 -0700 Subject: [AccessD] Drag and Drop In-Reply-To: Message-ID: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> Has anyone had problems with Access using the drag and drop options? This is not actual application work per say but copying components from one database to another. Scenario is as such: Two different copies of MS Access 2003 open on one computer, each with different databases open. New forms are being dragged and dropped (copied) from one database to the other. The system stops.... pause... The contents of the source forms are gone... There are a few warnings like: Form XXXX no available but nothing else. I am allowed to exit but with similar error messages and when returning the form components are still gone. Database Compact and Repair recovers nothing and the MDB is left empty of forms... I did have a backup earlier in the day so the problem is not too serious but what would stop this from not happening again and most importantly why did this happen in the first place? Any similar experiences? Jim From adtp at airtelbroadband.in Fri Sep 21 00:33:33 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 21 Sep 2007 11:03:33 +0530 Subject: [AccessD] Leave Subform References: Message-ID: <002501c7fc11$0744a010$4457a27a@personalec1122> Mark, This has to do with two complementary features: (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state. (b) Exit from subform control can not take final effect so long as the subform is dirty. Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control. Best wishes, A.D.Tejpal ----------- Exit event of subform control on the main form =================================== Private Sub SF_Sub_Exit(Cancel As Integer) Me.SF_Sub("Price") = 100 Me.SF_Sub.Form.Dirty = False End Sub =================================== ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, September 21, 2007 00:51 Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. From max.wanadoo at gmail.com Fri Sep 21 01:56:23 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 07:56:23 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: <003201c7fc1c$86b06720$8119fea9@LTVM> Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! HTH Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 9:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Max -- how do I uninstall SP 3? Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 02:20:10 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 08:20:10 +0100 Subject: [AccessD] Resume command problem In-Reply-To: References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: <003301c7fc1f$d916bc00$8119fea9@LTVM> I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 9:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 Gustav at cactus.dk Fri Sep 21 07:49:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Sep 2007 14:49:36 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From ssharkins at gmail.com Fri Sep 21 07:56:40 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 08:56:40 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <003201c7fc1c$86b06720$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> <003201c7fc1c$86b06720$8119fea9@LTVM> Message-ID: <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! From max.wanadoo at gmail.com Fri Sep 21 08:11:30 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:11:30 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM> <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> Message-ID: <001d01c7fc50$ee61ab70$8119fea9@LTVM> Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 08:22:35 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 09:22:35 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <001d01c7fc50$ee61ab70$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> <001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: <027201c7fc52$79de0620$4b3a8343@SusanOne> I should've thought of that on my own -- thank you. Susan H. Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From max.wanadoo at gmail.com Fri Sep 21 08:41:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:41:48 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <027201c7fc52$79de0620$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> <027201c7fc52$79de0620$4b3a8343@SusanOne> Message-ID: <001201c7fc55$2c089c50$8119fea9@LTVM> No worries, Susan. I just wonder how many apps are out there which will start to fail because of this. I bet support desks will be busy. I wonder if they will even think of this as being the problem, because it is unlikely that the client will even suspect it themselves and will probably say "no, I haven't made any changes, it was working okey last time I used it!" Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I should've thought of that on my own -- thank you. Susan H. Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 08:41:49 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:41:49 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <001301c7fc55$2d26b680$8119fea9@LTVM> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 21 08:54:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Sep 2007 15:54:17 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From max.wanadoo at gmail.com Fri Sep 21 09:10:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:10:09 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <001d01c7fc59$1f58f140$8119fea9@LTVM> replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /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 Sep 21 09:28:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 10:28:01 -0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <001d01c7fc59$1f58f140$8119fea9@LTVM> References: <001d01c7fc59$1f58f140$8119fea9@LTVM> Message-ID: <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> ROTFL!!! Although I think "masochist" is more appropriate. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 21 09:32:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 21 Sep 2007 14:32:42 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <004801c7fbc4$a4c20910$6c7aa8c0@M90> References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> <004801c7fbc4$a4c20910$6c7aa8c0@M90> Message-ID: John, >> That is not plain English, that is database speak. With this audience...I'm pretty sure my explanation was simple enough. There is a a form...frmView. It has a subform...sfrmView. sfrmView is set to continuous. sfrmView has a textbox called Color. Color is used for conditional formatting.(1 highlights, 0 UNhighlights) The value stored in color is a number(0,1). When the user moves to a different record...the before update changes COLOR to 0.(which UNhighlights my record) The On Current changes COLOR to 1.(Highlights record) When you leave the subform...the before update fires...(UNhighlights my record) I am trying to find a way for COLOR to be set to 0 before moving to another record...but not when leaving the subform...or have it set to 1 when leaving the subform. Thanks, Mark ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Thu, 20 Sep 2007 16:27:18 -0400> Subject: Re: [AccessD] Leave Subform>> Mark,>>>I just want to change a field in the subform to a certain value when the> user exits the subform.>> That is not plain English, that is database speak.>> I am trying to discover what you are doing so that I can suggest a different> way of doing it. What is the field? Why does it need to be set when the> user leaves the subform? What kind of value will go in the field? Is this> a "trail" of what the user was looking at last?>> A subform tries to save a record being edited when you leave the subform.> You are intentionally editing the subform record when you leave the subform.> The subform tries to save the record that you just edited. A vicious> circle...>> I would suggest that you will need to store the PK of the subform "current"> record, then from up in the main form run code to update that record, some> specific field. NOT EDIT A FIELD ON THE SUBFORM, but rather run SQL that> edits the record back in that table. You should be able to do that from the> OnExit of the subform control because SQL is editing data in a table, not> modifying a control on a subform.>> John 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, September 20, 2007 3:59 PM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] Leave Subform>> John,>> I'm ok with the events in the subform firing...>> Plain English...I just want to change a field in the subform to a certain> value when the user exits the subform. I don't want this to happen when> they just move to another record in the same subform.>> Thanks,>> Mark>>>>From: "jwcolby" >>Reply-To: Access Developers discussion and problem>>solving>>To: "'Access Developers discussion and problem>>solving'">>Subject: Re: [AccessD] Leave Subform>>Date: Thu, 20 Sep 2007 15:42:30 -0400>>>>Mark,>>>>AFAIK this won't work. The problem is that when you change a record on>>the sub form events in the subform will fire.>>>>What are you really trying to do, in plain English?>>>>>>John 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, September 20, 2007 3:21 PM>>To: accessd at databaseadvisors.com>>Subject: [AccessD] Leave Subform>>>>Hello All,>>>>Have an A97 db...I have a subform/continuous...when I leave/exit that>>subform I want to change a value on the current record of the subform.>>I thought I could do this by using the "On Exit" property of the subform.>>The>>problem is when I click out of the subform...the "on Exit" does>>fire...but if I put code in that references the field I want to>>change...the click part is cancelled and the subform maintains focus.>>>>Any suggestions?>>>>Thanks,>>>>Mark>>>>P.S...I can't use the "Before Update" of the subform itself...because>>going to a new record in the form does something different.>>>>_________________________________________________________________>>Kick back and relax with hot games and cool activities at the Messenger>>Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1>>>>>>-->>AccessD mailing list>>AccessD at databaseadvisors.com>>http://databaseadvisors.com/mailman/listinfo/accessd>>Website: http://www.databaseadvisors.com>> _________________________________________________________________> Gear up for Halo. 3 with free downloads and an exclusive offer.> http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ More photos; more messages; more whatever ? Get MORE with Windows Live? Hotmail?. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 From max.wanadoo at gmail.com Fri Sep 21 09:37:58 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:37:58 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> References: <001d01c7fc59$1f58f140$8119fea9@LTVM> <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> Message-ID: <002701c7fc5d$0322d140$8119fea9@LTVM> replace(replace("That's where the fun comes in!","fun","sadist"),"sadist","masochist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 21, 2007 3:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions ROTFL!!! Although I think "masochist" is more appropriate. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 21 09:37:57 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 21 Sep 2007 07:37:57 -0700 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <001d01c7fc50$ee61ab70$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> <001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: I wouldn't count too heavily on its accuracy. My Outlook and other Office apps come up showing as SP3 even though the Update history shows two failed attempts to install it, my own and Automatic Updates. Isn't this fun?? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 6:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 09:55:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:55:45 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: <002801c7fc5f$7e099b80$8119fea9@LTVM> ok, Susan, my last shot (if this doesn't work, I'm out of ideas) Try Control Panel, Add or Remove Programs. See what is updated there. OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 21, 2007 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I wouldn't count too heavily on its accuracy. My Outlook and other Office apps come up showing as SP3 even though the Update history shows two failed attempts to install it, my own and Automatic Updates. Isn't this fun?? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 6:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 21 09:59:35 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 10:59:35 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> <004801c7fbc4$a4c20910$6c7aa8c0@M90> Message-ID: <008501c7fc60$070904c0$6c7aa8c0@M90> Well now, that explains the why, which is what I was looking for. You got a response from A.D.Tejpal that indicated you could do what you were trying to do directly through control manipulation back in the subform. Have you tried 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 Mark A Matte Sent: Friday, September 21, 2007 10:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform John, >> That is not plain English, that is database speak. With this audience...I'm pretty sure my explanation was simple enough. There is a a form...frmView. It has a subform...sfrmView. sfrmView is set to continuous. sfrmView has a textbox called Color. Color is used for conditional formatting.(1 highlights, 0 UNhighlights) The value stored in color is a number(0,1). When the user moves to a different record...the before update changes COLOR to 0.(which UNhighlights my record) The On Current changes COLOR to 1.(Highlights record) When you leave the subform...the before update fires...(UNhighlights my record) I am trying to find a way for COLOR to be set to 0 before moving to another record...but not when leaving the subform...or have it set to 1 when leaving the subform. Thanks, Mark ----------------------------------------> From: ----------------------------------------> jwcolby at colbyconsulting.com> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Thu, 20 Sep 2007 ----------------------------------------> 16:27:18 -0400> Subject: Re: ----------------------------------------> [AccessD] Leave Subform>> ----------------------------------------> Mark,>>>I just want to change ----------------------------------------> a field in the subform to a ----------------------------------------> certain value when the> user ----------------------------------------> exits the subform.>> That is ----------------------------------------> not plain English, that is ----------------------------------------> database speak.>> I am trying ----------------------------------------> to discover what you are doing ----------------------------------------> so that I can suggest a ----------------------------------------> different> way of doing it. ----------------------------------------> What is the field? Why does it ----------------------------------------> need to be set when the> user ----------------------------------------> leaves the subform? What kind ----------------------------------------> of value will go in the field? ----------------------------------------> Is this> a "trail" of what the ----------------------------------------> user was looking at last?>> A ----------------------------------------> subform tries to save a record ----------------------------------------> being edited when you leave ----------------------------------------> the subform.> You are ----------------------------------------> intentionally editing the ----------------------------------------> subform record when you leave ----------------------------------------> the subform.> The subform ----------------------------------------> tries to save the record that ----------------------------------------> you just edited. A vicious> ----------------------------------------> circle...>> I would suggest ----------------------------------------> that you will need to store ----------------------------------------> the PK of the subform ----------------------------------------> "current"> record, then from ----------------------------------------> up in the main form run code ----------------------------------------> to update that record, some> ----------------------------------------> specific field. NOT EDIT A ----------------------------------------> FIELD ON THE SUBFORM, but ----------------------------------------> rather run SQL that> edits the ----------------------------------------> record back in that table. You ----------------------------------------> should be able to do that from ----------------------------------------> the> OnExit of the subform ----------------------------------------> control because SQL is editing ----------------------------------------> data in a table, not> ----------------------------------------> modifying a control on a ----------------------------------------> subform.>> John W. Colby> ----------------------------------------> Colby Consulting> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Mark A Matte> Sent: Thursday, ----------------------------------------> September 20, 2007 3:59 PM> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Subject: Re: [AccessD] Leave ----------------------------------------> Subform>> John,>> I'm ok with ----------------------------------------> the events in the subform ----------------------------------------> firing...>> Plain English...I ----------------------------------------> just want to change a field in ----------------------------------------> the subform to a certain> ----------------------------------------> value when the user exits the ----------------------------------------> subform. I don't want this to ----------------------------------------> happen when> they just move to ----------------------------------------> another record in the same ----------------------------------------> subform.>> Thanks,>> ----------------------------------------> Mark>>>>From: "jwcolby" ----------------------------------------> >>Reply-To: Access Developers ----------------------------------------> discussion and ----------------------------------------> problem>>solving>>To: "'Access ----------------------------------------> Developers discussion and ----------------------------------------> problem>>solving'">>Subject: ----------------------------------------> Re: [AccessD] Leave ----------------------------------------> Subform>>Date: Thu, 20 Sep ----------------------------------------> 2007 15:42:30 ----------------------------------------> -0400>>>>Mark,>>>>AFAIK this ----------------------------------------> won't work. The problem is ----------------------------------------> that when you change a record ----------------------------------------> on>>the sub form events in the ----------------------------------------> subform will fire.>>>>What are ----------------------------------------> you really trying to do, in ----------------------------------------> plain English?>>>>>>John W. ----------------------------------------> Colby>>Colby ----------------------------------------> Consulting>>www.ColbyConsultin ----------------------------------------> g.com>>-----Original ----------------------------------------> Message----->>From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com>>[mailto:accessd-bounce ----------------------------------------> s at databaseadvisors.com] On ----------------------------------------> Behalf Of Mark A Matte>>Sent: ----------------------------------------> Thursday, September 20, 2007 ----------------------------------------> 3:21 PM>>To: ----------------------------------------> accessd at databaseadvisors.com>> ----------------------------------------> Subject: [AccessD] Leave ----------------------------------------> Subform>>>>Hello All,>>>>Have ----------------------------------------> an A97 db...I have a ----------------------------------------> subform/continuous...when I ----------------------------------------> leave/exit that>>subform I ----------------------------------------> want to change a value on the ----------------------------------------> current record of the ----------------------------------------> subform.>>I thought I could do ----------------------------------------> this by using the "On Exit" ----------------------------------------> property of the ----------------------------------------> subform.>>The>>problem is when ----------------------------------------> I click out of the ----------------------------------------> subform...the "on Exit" ----------------------------------------> does>>fire...but if I put code ----------------------------------------> in that references the field I ----------------------------------------> want to>>change...the click ----------------------------------------> part is cancelled and the ----------------------------------------> subform maintains ----------------------------------------> focus.>>>>Any ----------------------------------------> suggestions?>>>>Thanks,>>>>Mar ----------------------------------------> k>>>>P.S...I can't use the ----------------------------------------> "Before Update" of the subform ----------------------------------------> itself...because>>going to a ----------------------------------------> new record in the form does ----------------------------------------> something ----------------------------------------> different.>>>>________________ ----------------------------------------> ______________________________ ----------------------------------------> ___________________>>Kick back ----------------------------------------> and relax with hot games and ----------------------------------------> cool activities at the ----------------------------------------> Messenger>>Cafi. ----------------------------------------> http://www.cafemessenger.com?o ----------------------------------------> cid=TXT_TAGHM_SeptHMtagline1>> ----------------------------------------> >>>>-->>AccessD mailing ----------------------------------------> list>>AccessD at databaseadvisors ----------------------------------------> .com>>http://databaseadvisors. ----------------------------------------> com/mailman/listinfo/accessd>> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> ----------------------------------------> ______________________________ ----------------------------------------> ______________________________ ----------------------------------------> _____> Gear up for Halo. 3 ----------------------------------------> with free downloads and an ----------------------------------------> exclusive offer.> ----------------------------------------> http://gethalo3gear.com?ocid=S ----------------------------------------> eptemberWLHalo3_MSNHMTxt_1>>> ----------------------------------------> --> AccessD mailing list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m _________________________________________________________________ More photos; more messages; more whatever - Get MORE with Windows LiveT HotmailR. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migratio n_HM_mini_5G_0907 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 21 10:08:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 21 Sep 2007 15:08:16 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <002501c7fc11$0744a010$4457a27a@personalec1122> References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = False> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From jwcolby at colbyconsulting.com Fri Sep 21 10:31:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 11:31:36 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: <008901c7fc64$7fc9f6e0$6c7aa8c0@M90> Mark, If it were me I would just code in the subform to store the PKID of the current record in OnCurrent. Then in OnExit, reach back in to the subform and retrieve the PKID saved there. Now you know what record the subform was on. Run an SQL statement from the OnCurrent updating the flag field back to 0 (or whatever) in that table for that PKID. That should take just a couple of minutes to get working. John 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: Friday, September 21, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = Fals! e> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 11:44:50 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 12:44:50 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <002801c7fc5f$7e099b80$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> <002801c7fc5f$7e099b80$8119fea9@LTVM> Message-ID: <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! Susan H. From pharold at proftesting.com Fri Sep 21 12:47:48 2007 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 21 Sep 2007 13:47:48 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM><002801c7fc5f$7e099b80$8119fea9@LTVM> <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 13:22:25 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 14:22:25 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM><002801c7fc5f$7e099b80$8119fea9@LTVM><02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> Message-ID: <003201c7fc7c$5c8c20a0$4b3a8343@SusanOne> I've looked everywhere and I really don't think it installed. Now, if I could figure out why Access 2007 reports won't work. :( Susan H. You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. From max.wanadoo at gmail.com Fri Sep 21 13:32:12 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 21 Sep 2007 19:32:12 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> Message-ID: <005801c7fc7d$ba9cfab0$8119fea9@LTVM> Hmmm, not sure Perry, Where is that located? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Friday, September 21, 2007 6:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Max -- how do I uninstall SP 3? You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! 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 max.wanadoo at gmail.com Fri Sep 21 13:33:53 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 21 Sep 2007 19:33:53 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <003201c7fc7c$5c8c20a0$4b3a8343@SusanOne> Message-ID: <005901c7fc7d$f6d2a520$8119fea9@LTVM> Now, I definitely cannot help you with that! I am still trying to figure out 2003. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 7:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I've looked everywhere and I really don't think it installed. Now, if I could figure out why Access 2007 reports won't work. :( Susan H. You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 21 16:09:29 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 22 Sep 2007 01:09:29 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <000301c7fc93$b361ed80$6601a8c0@nant> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Sep 22 00:00:52 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 21 Sep 2007 22:00:52 -0700 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: Gustav; What is it and more importantly why is it? ...Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 5:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 09:01:37 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 10:01:37 -0400 Subject: [AccessD] Current control Message-ID: <46f671a7.0c87460a.3fdb.ffffa12b@mx.google.com> Is there anyway to glean the name of the current control without using Screen? This is one of the spots the case me the most trouble when trying to make a procedure totally dynamic. There really should be a shortcut identifier, like Me, for the current control. ;) Susan H. From shamil at users.mns.ru Sun Sep 23 09:15:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 18:15:28 +0400 Subject: [AccessD] Current control In-Reply-To: <46f671a7.0c87460a.3fdb.ffffa12b@mx.google.com> Message-ID: <000001c7fdec$31a1e070$6401a8c0@nant> Hi Susan, Me.ActiveControl would be good enough? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Current control Is there anyway to glean the name of the current control without using Screen? This is one of the spots the case me the most trouble when trying to make a procedure totally dynamic. There really should be a shortcut identifier, like Me, for the current control. ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 09:27:27 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 10:27:27 -0400 Subject: [AccessD] Current control In-Reply-To: <000001c7fdec$31a1e070$6401a8c0@nant> Message-ID: <46f677b6.0886460a.1e53.ffff977a@mx.google.com> Slapping my head... and you know, it's not like I don't know about it or haven't used it plenty of times. ;( Susan H. Hi Susan, Me.ActiveControl would be good enough? From shamil at users.mns.ru Sun Sep 23 09:35:32 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 18:35:32 +0400 Subject: [AccessD] Current control In-Reply-To: <46f677b6.0886460a.1e53.ffff977a@mx.google.com> Message-ID: <000001c7fdee$ff540a50$6401a8c0@nant> Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 6:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control Slapping my head... and you know, it's not like I don't know about it or haven't used it plenty of times. ;( Susan H. Hi Susan, Me.ActiveControl would be good enough? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 10:50:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 11:50:52 -0400 Subject: [AccessD] Current control In-Reply-To: <000001c7fdee$ff540a50$6401a8c0@nant> Message-ID: <46f68b43.0986460a.5059.ffffa729@mx.google.com> Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... =========Nah, I'm not working so very hard. I have no excuse. :) I did take a break and went to brunch. Susan H. From shamil at users.mns.ru Sun Sep 23 11:10:50 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 20:10:50 +0400 Subject: [AccessD] Current control In-Reply-To: <46f68b43.0986460a.5059.ffffa729@mx.google.com> Message-ID: <000301c7fdfc$4f93f130$6401a8c0@nant> <<< I have no excuse. :) I did take a break and went to brunch. >>> Susan, IMO brunch could be considered as an excuse :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... =========Nah, I'm not working so very hard. I have no excuse. :) I did take a break and went to brunch. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sun Sep 23 11:16:55 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 23 Sep 2007 12:16:55 -0400 Subject: [AccessD] Current control In-Reply-To: <46f68b43.0986460a.5059.ffffa729@mx.google.com> References: <000001c7fdee$ff540a50$6401a8c0@nant> <46f68b43.0986460a.5059.ffffa729@mx.google.com> Message-ID: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> In my experience, Susan and Shamil, I have found it useful to identify the previously active control -- because clicking on a button or other control repositions the ActiveControl. For example, if I have a button the user can click, and she does so, then I have lost track of the control she was previously on. I use a static function for this purpose. But I wish the syntax for this sort of thing were a little more "intelligent". If I open the code window on a control (afterUpdate, say), my natural instincts suggest that "Me" refers to the control, not the form. I have learned to live with this discrepancy between my idea of how self-reference ought to work and MS's idea, but it still irks me. Within the scope of a control, Me ought to refer to the control, not its parent form. Of course, that's merely the opinion of an old man (river). A. On 9/23/07, Susan Harkins wrote: > > > Than happens with everybody Susan - 'blind spot' - is that a correct > English > title for that phenomena? > > Maybe it's time to make a break there? :) - I mean 'blind spots' appear > more > often during hardwork marathons... > > =========Nah, I'm not working so very hard. I have no excuse. :) I did > take > a break and went to brunch. > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Sun Sep 23 11:52:20 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 12:52:20 -0400 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46f699aa.0a86460a.7ddb.ffffc97b@mx.google.com> But I wish the syntax for this sort of thing were a little more "intelligent". If I open the code window on a control (afterUpdate, say), my natural instincts suggest that "Me" refers to the control, not the form. I have learned to live with this discrepancy between my idea of how self-reference ought to work and MS's idea, but it still irks me. Within the scope of a control, Me ought to refer to the control, not its parent form. Of course, that's merely the opinion of an old man (river). ========Arthur, I've often wished for the same thing. Susan H. From stuart at lexacorp.com.pg Sun Sep 23 20:55:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 24 Sep 2007 11:55:26 +1000 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify the > previously active control -- because clicking on a button or other control > repositions the ActiveControl. For example, if I have a button the user can > click, and she does so, then I have lost track of the control she was > previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? From stuart at lexacorp.com.pg Sun Sep 23 20:55:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 24 Sep 2007 11:55:26 +1000 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify the > previously active control -- because clicking on a button or other control > repositions the ActiveControl. For example, if I have a button the user can > click, and she does so, then I have lost track of the control she was > previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? From Gustav at cactus.dk Mon Sep 24 05:20:27 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 24 Sep 2007 12:20:27 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil Thanks! Exactly what I was looking for. Those links will keep me busy for a while ... /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Mon Sep 24 05:28:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 24 Sep 2007 12:28:50 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Jim "Why it is" is a big question and I don't have the answer - but if you browse the nice links provided by Shamil, you should get an idea - I plan to do so. /gustav >>> accessd at shaw.ca 22-09-2007 07:00 >>> Gustav; What is it and more importantly why is it? ...Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 5:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From jimdettman at verizon.net Mon Sep 24 08:04:06 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 24 Sep 2007 09:04:06 -0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <000101c7feab$64bc1920$8abea8c0@XPS> I must be missing something as I don't see what the big deal is. I watched some of the video's on the Beta 2 release and Lambda expressions seemed to be a significant point. To me, it seems they've been added simply to get something else to work (linq). After going through many of the links provided (thanks), I also don't see any great advantage to supply a function in-line. While it does make code more compact, I think it also clouds somewhat what is really going on. There is the potential for more errors as well. For example, with the example that Ken Getz gave, if I had one place where I needed a check for IsSmall for a file based on 50 bytes and in another based on 100 bytes, with the new way my file check code would be in two different places in the app. With the old method, I would do: Function IsSmall(lngUpperLimit as long) as integer and just have a generic function to handle any requirement for checking if a file is too small. To me it seems their use would be limited to things like simple math expressions or checks. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 24, 2007 6:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil Thanks! Exactly what I was looking for. Those links will keep me busy for a while ... /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Mon Sep 24 09:26:27 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Mon, 24 Sep 2007 09:26:27 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> I found this at e-week. I know some were having issues with this sp last week. http://www.eweek.com/article2/0,1895,2184443,00.asp?kc=EWKNLBOE092107STR2 Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 cfoust at infostatsystems.com Mon Sep 24 10:41:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Sep 2007 08:41:24 -0700 Subject: [AccessD] Current control In-Reply-To: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> Message-ID: Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 24 11:20:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 12:20:34 -0400 Subject: [AccessD] Current control In-Reply-To: References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> Message-ID: <004a01c7fec6$d6d5e430$6c7aa8c0@M90> And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 24 11:45:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Sep 2007 09:45:06 -0700 Subject: [AccessD] Current control In-Reply-To: <004a01c7fec6$d6d5e430$6c7aa8c0@M90> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> <004a01c7fec6$d6d5e430$6c7aa8c0@M90> Message-ID: I know, John. My controls are ordinarily bound to a control class that handles this. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 24, 2007 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Sep 24 11:58:23 2007 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 24 Sep 2007 09:58:23 -0700 Subject: [AccessD] Drag and Drop In-Reply-To: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> References: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> Message-ID: <8786a4c00709240958j56e8472fv2bff575027d188cf@mail.gmail.com> Jim, do you have dual monitors by any chance? I was having some weird issues with drag & drop in several programs (Crystal, Ramco, cant remember if Access was too). It ended up either being drivers or physical connection/configuration of the monitors to the ATI dual out connectors. It made no sense to me at the time what was happening. David On 9/20/07, Jim Lawrence wrote: > > Has anyone had problems with Access using the drag and drop options? > > This is not actual application work per say but copying components from > one > database to another. > > Scenario is as such: Two different copies of MS Access 2003 open on one > computer, each with different databases open. New forms are being dragged > and dropped (copied) from one database to the other. The system stops.... > pause... The contents of the source forms are gone... There are a few > warnings like: Form XXXX no available but nothing else. > > I am allowed to exit but with similar error messages and when returning > the > form components are still gone. Database Compact and Repair recovers > nothing > and the MDB is left empty of forms... > > I did have a backup earlier in the day so the problem is not too serious > but > what would stop this from not happening again and most importantly why did > this happen in the first place? > > Any similar experiences? > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Sep 24 12:05:17 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 13:05:17 -0400 Subject: [AccessD] Current control In-Reply-To: References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg><004a01c7fec6$d6d5e430$6c7aa8c0@M90> Message-ID: <004c01c7fecd$15f420e0$6c7aa8c0@M90> Yep, it wasn't you I was addressing, that would be like preaching to the choir. John 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: Monday, September 24, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control I know, John. My controls are ordinarily bound to a control class that handles this. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 24, 2007 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 24 12:05:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 13:05:54 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: <004d01c7fecd$2bea13a0$6c7aa8c0@M90> Did you ever get this handled? John 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: Friday, September 21, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = Fals! e> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Sep 24 12:35:28 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 12:35:28 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> Message-ID: And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 http://news.office-watch.com/t/n.aspx?a=555 GK On 9/24/07, rusty.hammond at cpiqpc.com wrote: > I found this at e-week. I know some were having issues with this sp last > week. > > http://www.eweek.com/article2/0,1895,2184443,00.asp?kc=EWKNLBOE092107STR2 > > > > Rusty Hammond > IT Dept. - B-20 > CPI Qualified Plan Consultants, Inc. > (620) 793-8473 ext. 416 > rusty.hammond at cpiqpc.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 > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Sep 24 12:54:24 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Sep 2007 17:54:24 +0000 Subject: [AccessD] Leave Subform Message-ID: I did thanks... I had to use a number of approaches including setting a variable ON EXIT that was evaluated in the BEFORE UPDATE to determine if the user was moving from record to record...or leaving the subform.. To track down exactly where I need each piece of code: I had a subform(continuous) on an unbound form. I also had a text box and a second subform(more controls but these are enough for the example). I had code in the subform (ON CURRENT and BEFORE UPDATE). I aslo had stuff on the subform(ON ENTER and ON EXIT). In each of these areas I placed a MSGBOX with the name of the area...so I could see in exactly what order everything fired. In the ONCURRENT I requeried the 2nd subform. To my amazement I learned that the BEFORE UPDATE was firing upto 3 times depending on how I was navigating. I finally figured out what I needed...thanks Everyone. It was definetely an education exercise. Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Mon, 24 Sep 2007 13:05:54 -0400> Subject: Re: [AccessD] Leave Subform>> Did you ever get this handled?>>> John 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: Friday, September 21, 2007 11:08 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Leave Subform>>> Thanks A.D.,>> But with using the code below...the Before update still fires.>> Any Ideas?>> Thanks,>> mark>> ----------------------------------------> From: adtp at airtelbroadband.in> To:> accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC:> adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has> to do with two complementary features:>> (a) Prior to final exit from> subform control, current record in the subform gets saved (if the subform is> still dirty) and the subform attains non-dirty state.> (b) Exit from subform> control can not take final effect so long as the subform is dirty.>> Sample> code as given below, should take care of the problem faced by you. SF_Sub is> the name of subform control, while Price is the name of field in the> subform, whose value in current record gets set to 100 whenever exiting the> subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of> subform control on the main form> ===================================>> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100>> Me.SF_Sub.Form.Dirty = Fals!> e> End Sub> ===================================>> ----- Original Message> -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday,> September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>>> Have an A97 db...I have a subform/continuous...when I leave/exit that>> subform I want to change a value on the current record of the subform. I>> thought I could do this by using the "On Exit" property of the subform. The>> problem is when I click out of the subform...the "on Exit" does fire...but>> if I put code in that references the field I want to change...the click> part> is cancelled and the subform maintains focus.>> Any suggestions?>>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform> itself...because going> to a new record in the form does something> different.> --> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> Capture your memories in an online journal!> http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline From ssharkins at gmail.com Mon Sep 24 13:00:28 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 24 Sep 2007 14:00:28 -0400 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: Message-ID: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> Yeah, but Woody would say that even if the SP watched his dishes and folded and put away his laundry. :) Personally, I offer no advice period -- can't, Windows apparently didn't install it, although, it said it did. Susan H. And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 http://news.office-watch.com/t/n.aspx?a=555 From jwcolby at colbyconsulting.com Mon Sep 24 13:04:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 14:04:13 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: Message-ID: <004e01c7fed5$50fa5260$6c7aa8c0@M90> Ahh, love those educational experiences. John 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: Monday, September 24, 2007 1:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform I did thanks... I had to use a number of approaches including setting a variable ON EXIT that was evaluated in the BEFORE UPDATE to determine if the user was moving from record to record...or leaving the subform.. To track down exactly where I need each piece of code: I had a subform(continuous) on an unbound form. I also had a text box and a second subform(more controls but these are enough for the example). I had code in the subform (ON CURRENT and BEFORE UPDATE). I aslo had stuff on the subform(ON ENTER and ON EXIT). In each of these areas I placed a MSGBOX with the name of the area...so I could see in exactly what order everything fired. In the ONCURRENT I requeried the 2nd subform. To my amazement I learned that the BEFORE UPDATE was firing upto 3 times depending on how I was navigating. I finally figured out what I needed...thanks Everyone. It was definetely an education exercise. Mark A. Matte From garykjos at gmail.com Mon Sep 24 13:26:01 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 13:26:01 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> References: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> Message-ID: Yeah, they have never met an update they liked I guess. Since I have my home systems to jsut apply all the updates I suppose it's too late for me anyway. I probably already have it. Hope they get the patch to the patch ready soon. GK On 9/24/07, Susan Harkins wrote: > Yeah, but Woody would say that even if the SP watched his dishes and folded > and put away his laundry. :) Personally, I offer no advice period -- can't, > Windows apparently didn't install it, although, it said it did. > > Susan H. > > And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 > > http://news.office-watch.com/t/n.aspx?a=555 > > > -- > 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 adtp at airtelbroadband.in Mon Sep 24 13:05:26 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Mon, 24 Sep 2007 23:35:26 +0530 Subject: [AccessD] Leave Subform References: <002501c7fc11$0744a 010$4457a27a@personalec1122> Message-ID: <009401c7fed5$b1c55fe0$e057a27a@personalec1122> Mark, From your subsequent posts, it now transpires that your objective is to highlight the current row of a continuous subform, in special color. At the same time, it has to be ensured that even when the user moves out of the subform, to any other control in the parent form, the subform row that was last current, should continue to remain highlighted. The following course of action is suggested. (in complete replacement of whatever you have been attempting so far). This is an interesting solution and does not depend upon any primary key value: (a) Change the name of your bound text box from "Color" to "Rank". This will hold row numbers inserted programmatically via form's Current and BeforeInsert events. Set the locked property of this control to Yes. (b) Place a hidden unbound text box named TxtRef in the header or footer of the subform. It will hold the value of current record inserted programmatically. (c) In form's detail section, for the controls required to be highlighted, use the following expression in conditional formatting dialog box: ([Rank]=[TxtRef]) Or (Fn_NewRec()=True And [Rank] Is Null) (d) Place the code given below, in form's module. Save & compile. (e) Open the form in design view, and make sure that in form's properties dialog box (Event tab), Current and BeforeInsert events carry the entry [Event Procedure]. Save and close the form. With the above measures, current record in the subform will always get highlighted and stay highlighted even when the focus moves away to the parent form. Note: (a) The suggested approach as outlined above, avoids using form's BeforeUpdate event. Moreover, it is not dependent upon any primary key value. (b) This solution has been tested on Access 2K3. You might like to verify whether it works equally well on Access 97. (c) To start with, there is no need to worry even if the Rank field is empty in existing records. The subform will behave correctly as planned, with Rank values getting inserted as & when needed. Best wishes, A.D.Tejpal ----------- Code in form's module ==================================== Private Sub Form_BeforeInsert(Cancel As Integer) ' This event takes care of freshly added record ' Assign row number to Rank (bound control) Me.Rank = Me.CurrentRecord ' Assign current record number to TxtRef Me.TxtRef = Me.CurrentRecord ' This statement is necessary for clean ' display of color highlights (clearing up ' hangover of previous highlights - if any) Me.Recalc End Sub ------------------------------------------------------ Private Sub Form_Current() ' Assign row number to Rank (bound control) ' - if not a new record (This check is meant to ' prevent inadvertant adding of fresh records ' merely by navigating to a new record) If Me.NewRecord = False Then Me.Rank = Me.CurrentRecord End If ' Assign current record number to TxtRef Me.TxtRef = Me.CurrentRecord ' This statement is necessary for clean ' display of color highlights (clearing up ' hangover of previous highlights - if any) Me.Recalc ' Note - TxtRef is an unbond text box in ' form header or footer, while Rank ' is a bound text box holding row number. ' The following expression is used for ' highlighting the current row through ' conditional formatting: ' ([Rank]=[TxtRef]) Or _ ' (Fn_NewRec()=True And [Rank] Is Null) End Sub ------------------------------------------------------ Private Function Fn_NewRec() As Boolean Fn_NewRec = Me.NewRecord End Function ==================================== ----- Original Message ----- From: Mark A Matte To: Access Developers discussion and problem solving Sent: Friday, September 21, 2007 20:38 Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Sent: Friday, September 21, 2007 11:03 Subject: Re: [AccessD] Leave Subform Mark, This has to do with two complementary features: (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state. (b) Exit from subform control can not take final effect so long as the subform is dirty. Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control. Best wishes, A.D.Tejpal ----------- Exit event of subform control on the main form =================================== Private Sub SF_Sub_Exit(Cancel As Integer) Me.SF_Sub("Price") = 100 Me.SF_Sub.Form.Dirty = False End Sub =================================== ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, September 21, 2007 00:51 Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. From ssharkins at gmail.com Mon Sep 24 13:50:46 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 24 Sep 2007 14:50:46 -0400 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: Message-ID: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> Yeah, they have never met an update they liked I guess. Since I have my home systems to jsut apply all the updates I suppose it's too late for me anyway. I probably already have it. Hope they get the patch to the patch ready soon. ========You might check Gary -- in case you haven't followed the entire thread, Charlotte's failed to install and mine said it installed, but didn't. Well, when I say it "said" it installed, I mean that I got no error messages to the contrary. Susan H. From markamatte at hotmail.com Mon Sep 24 14:05:40 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Sep 2007 19:05:40 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <009401c7fed5$b1c55fe0$e057a27a@personalec1122> References: <002501c7fc11$0744a 010$4457a27a@personalec1122> <009401c7fed5$b1c55fe0$e057a27a@personalec1122> Message-ID: Thanks A.D. I understand all except "...conditional formatting dialog box..." I'm not sure what you mean. Sorry, Mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Mon, 24 Sep 2007 23:35:26 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> From your subsequent posts, it now transpires that your objective is to highlight the current row of a continuous subform, in special color. At the same time, it has to be ensured that even when the user moves out of the subform, to any other control in the parent form, the subform row that was last current, should continue to remain highlighted.>> The following course of action is suggested. (in complete replacement of whatever you have been attempting so far). This is an interesting solution and does not depend upon any primary key value:>> (a) Change the name of your bound text box from "Color" to "Rank". This will hold row numbers inserted programmatically via form's Current and BeforeInsert events. Set the locked property of this control to Yes.>> (b) Place a hidden unbound text box named TxtRef in the header or footer of the subform. It will hold the value of current record inserted programmatically.>> (c) In form's detail section, for the controls required to be highlighted, use the following expression in conditional formatting dialog box:>> ([Rank]=[TxtRef]) Or (Fn_NewRec()=True And [Rank] Is Null)>> (d) Place the code given below, in form's module. Save & compile.>> (e) Open the form in design view, and make sure that in form's properties dialog box (Event tab), Current and BeforeInsert events carry the entry [Event Procedure]. Save and close the form.>> With the above measures, current record in the subform will always get highlighted and stay highlighted even when the focus moves away to the parent form.>> Note:> (a) The suggested approach as outlined above, avoids using form's BeforeUpdate event. Moreover, it is not dependent upon any primary key value.> (b) This solution has been tested on Access 2K3. You might like to verify whether it works equally well on Access 97.> (c) To start with, there is no need to worry even if the Rank field is empty in existing records. The subform will behave correctly as planned, with Rank values getting inserted as & when needed.>> Best wishes,> A.D.Tejpal> ----------->> Code in form's module> ====================================> Private Sub Form_BeforeInsert(Cancel As Integer)> ' This event takes care of freshly added record>> ' Assign row number to Rank (bound control)> Me.Rank = Me.CurrentRecord>> ' Assign current record number to TxtRef> Me.TxtRef = Me.CurrentRecord>> ' This statement is necessary for clean> ' display of color highlights (clearing up> ' hangover of previous highlights - if any)> Me.Recalc> End Sub> ------------------------------------------------------>> Private Sub Form_Current()> ' Assign row number to Rank (bound control)> ' - if not a new record (This check is meant to> ' prevent inadvertant adding of fresh records> ' merely by navigating to a new record)> If Me.NewRecord = False Then> Me.Rank = Me.CurrentRecord> End If>> ' Assign current record number to TxtRef> Me.TxtRef = Me.CurrentRecord>> ' This statement is necessary for clean> ' display of color highlights (clearing up> ' hangover of previous highlights - if any)> Me.Recalc>> ' Note - TxtRef is an unbond text box in> ' form header or footer, while Rank> ' is a bound text box holding row number.>> ' The following expression is used for> ' highlighting the current row through> ' conditional formatting:> ' ([Rank]=[TxtRef]) Or _> ' (Fn_NewRec()=True And [Rank] Is Null)> End Sub> ------------------------------------------------------>> Private Function Fn_NewRec() As Boolean> Fn_NewRec = Me.NewRecord> End Function> ====================================>> ----- Original Message -----> From: Mark A Matte> To: Access Developers discussion and problem solving> Sent: Friday, September 21, 2007 20:38> Subject: Re: [AccessD] Leave Subform>> Thanks A.D.,>> But with using the code below...the Before update still fires.>> Any Ideas?>> Thanks,>> mark>> ----- Original Message -----> From: A.D.TEJPAL> To: Access Developers discussion and problem solving> Cc: A.D.TEJPAL> Sent: Friday, September 21, 2007 11:03> Subject: Re: [AccessD] Leave Subform>>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = False> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo? 3 with free downloads and an exclusive offer. It?s our way of saying thanks for using Windows Live?. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 From garykjos at gmail.com Mon Sep 24 14:31:37 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 14:31:37 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> References: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> Message-ID: Yeah, I could at least turn off the autoupdating for a while - switch it back to download but confirm before installing - on my Office 2003 machines. I haven't been doing a lot of office stuff of late thee. GK On 9/24/07, Susan Harkins wrote: > > > Yeah, they have never met an update they liked I guess. Since I have my home > systems to jsut apply all the updates I suppose it's too late for me anyway. > I probably already have it. Hope they get the patch to the patch ready > soon. > > ========You might check Gary -- in case you haven't followed the entire > thread, Charlotte's failed to install and mine said it installed, but > didn't. Well, when I say it "said" it installed, I mean that I got no error > messages to the contrary. > > 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 rockysmolin at bchacc.com Mon Sep 24 16:22:18 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 24 Sep 2007 14:22:18 -0700 Subject: [AccessD] Screen Resizing Problem Message-ID: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? MTIA Rocky From john at winhaven.net Mon Sep 24 22:47:24 2007 From: john at winhaven.net (John Bartow) Date: Mon, 24 Sep 2007 22:47:24 -0500 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007401c7fef0$fca311e0$0301a8c0@HAL9005> References: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Message-ID: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> Tabs controls are supported by that code so it may be that one of the properties to tags is set to make it do that. Can you post the resize code you're using for that form? -----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, September 24, 2007 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? MTIA 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 Tue Sep 25 08:52:38 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 08:52:38 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <003301c7fc1f$d916bc00$8119fea9@LTVM> References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> <003301c7fc1f$d916bc00$8119fea9@LTVM> Message-ID: Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 9:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Sep 25 09:09:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Sep 2007 16:09:20 +0200 Subject: [AccessD] Resume command problem Message-ID: Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max From rockysmolin at bchacc.com Tue Sep 25 08:59:48 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 06:59:48 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> Message-ID: <00de01c7ff7c$562f3370$0301a8c0@HAL9005> John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Monday, September 24, 2007 8:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Tabs controls are supported by that code so it may be that one of the properties to tags is set to make it do that. Can you post the resize code you're using for that form? -----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, September 24, 2007 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From max.wanadoo at gmail.com Tue Sep 25 09:18:47 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Tue, 25 Sep 2007 15:18:47 +0100 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <007101c7ff7e$fe3a1510$8119fea9@LTVM> The code assumed that your control was bound to a DATE Field, not a TEXT Field. REgards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 25, 2007 3:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resume command problem Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Tue Sep 25 09:58:38 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 25 Sep 2007 10:58:38 -0400 Subject: [AccessD] Nz() etc. Message-ID: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur From Chester_Kaup at kindermorgan.com Tue Sep 25 10:02:42 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 10:02:42 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <007101c7ff7e$fe3a1510$8119fea9@LTVM> References: <007101c7ff7e$fe3a1510$8119fea9@LTVM> Message-ID: I thought it was bound to a date field by setting the default value to a date/time field in a table with the following default value statement. Although I have been known to be wrong. =DMin("[ProductionDate]","tbl One Manifold Production for a Time Period") I changed the order of the statements in the if then else block to check for the null condition first. I also added CVDate to the date comparison. Everything seems to work correctly now. Thanks everyone. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Tuesday, September 25, 2007 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem The code assumed that your control was bound to a DATE Field, not a TEXT Field. REgards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 25, 2007 3:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resume command problem Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 25 10:04:01 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Sep 2007 17:04:01 +0200 Subject: [AccessD] Nz() etc. Message-ID: Hi Arthur If parm2 is zero, Nz will return zero if parm1 is Null. So parm2 is something else ...? /gustav >>> fuller.artful at gmail.com 25-09-2007 16:58 >>> I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur From Chester_Kaup at kindermorgan.com Tue Sep 25 10:10:43 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 10:10:43 -0500 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> References: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: If I understand correctly you are using Nz on two variables at the same time. I don't think you can do that. I believe you would have to do Nz(parm1) and Nz(Parm2). Also sometimes I have found you have to force it to zero even though that is the default. Example Nz(parm1,0) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 9:59 AM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 25 10:13:58 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Tue, 25 Sep 2007 16:13:58 +0100 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: <008901c7ff86$b3002460$8119fea9@LTVM> The function is nz(var1,default if null), Ie: dim str as string Str = nz(str,"hello") Or dim var1 as variant, var2 as variant Var2 = 0 Var1=nz(var1,var2) Will result in var1 being zero if it is null It is the same as: If isnull(var1) then var1 = var2 Parm2 will not take on a value, it is the default value that you feed in for when your variable is null. But you propably know that? So what is the varType of parm1,parm2? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 3:59 PM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Sep 25 10:13:45 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 25 Sep 2007 11:13:45 -0400 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> References: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: <000c01c7ff86$abcfc790$8abea8c0@XPS> <> Nothing. Access in some cases does not return a NULL, but an error. To avoid this, use the function below and wrap whatever calculation you are doing with it. Note that you can easily add a null to zero check in it as well. Jim. Function AvoidError(n As Variant) On Error GoTo Trap AvoidError = n Exit Function Trap: AvoidError = 0 Resume Next End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 10:59 AM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Sep 25 11:05:46 2007 From: john at winhaven.net (John Bartow) Date: Tue, 25 Sep 2007 11:05:46 -0500 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <00de01c7ff7c$562f3370$0301a8c0@HAL9005> References: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> <00de01c7ff7c$562f3370$0301a8c0@HAL9005> Message-ID: <012e01c7ff8d$ef9b4330$6402a8c0@ScuzzPaq> Rocky, Sorry for having you post all that (I have the original code) - I only meant "your call to the code module" should have been more specific. And that is standard code so it should be fine (unless of course you've changed you development PCs monitor resolution). That could cause it to act weird. Do you have the following properties listed in your code (or listed as text in the Tag property of the controls that are misbehaving): FloatIt, SizeIt or ScaleIt? You could do a search for the terms throughout your code (not ADH's) or look on the property sheets for the misbehaving controls. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA Rocky From cfoust at infostatsystems.com Tue Sep 25 11:18:02 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 09:18:02 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007401c7fef0$fca311e0$0301a8c0@HAL9005> References: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Message-ID: Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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 Tue Sep 25 11:59:41 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 09:59:41 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <012e01c7ff8d$ef9b4330$6402a8c0@ScuzzPaq> Message-ID: <010801c7ff95$775508e0$0301a8c0@HAL9005> John: What are FloatIt, SizeIt and ScaleIt? Never heard of them. They aren't used in my code anywhere. The forms were developed in 800x600. They resize incorrectly only at the highest resolution ion 1280 x ... Up to that point they resize OK. On one of the forms I tracked the problem down to one subform on one tab, that cause the whole tab control to be repositioned incorrectly - too high on the screen. But al the controls within the tab form still resize correctly. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 25, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Rocky, Sorry for having you post all that (I have the original code) - I only meant "your call to the code module" should have been more specific. And that is standard code so it should be fine (unless of course you've changed you development PCs monitor resolution). That could cause it to act weird. Do you have the following properties listed in your code (or listed as text in the Tag property of the controls that are misbehaving): FloatIt, SizeIt or ScaleIt? You could do a search for the terms throughout your code (not ADH's) or look on the property sheets for the misbehaving controls. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From rockysmolin at bchacc.com Tue Sep 25 12:02:31 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 10:02:31 -0700 Subject: [AccessD] A2007 misnumbering report pages? Message-ID: <010f01c7ff95$dcf2d420$0301a8c0@HAL9005> Dear List: I have a A2003 app running at a client who is using A2007. A couple of reports show "Page x of 1"; always "of 1". But not on all the reports. Only a couple. Runs fine here on my A2003 box. Any ideas? MTIA Rocky From rockysmolin at bchacc.com Tue Sep 25 12:04:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 10:04:02 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <011301c7ff96$130c9f00$0301a8c0@HAL9005> I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From john at winhaven.net Tue Sep 25 12:07:56 2007 From: john at winhaven.net (John Bartow) Date: Tue, 25 Sep 2007 12:07:56 -0500 Subject: [AccessD] Office SP3 purpose, problems, some fixes Message-ID: <017701c7ff96$ae8d6db0$6402a8c0@ScuzzPaq> FYI: http://support.microsoft.com/kb/923618 John B From cfoust at infostatsystems.com Tue Sep 25 12:45:35 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 10:45:35 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <011301c7ff96$130c9f00$0301a8c0@HAL9005> References: <011301c7ff96$130c9f00$0301a8c0@HAL9005> Message-ID: If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Sep 25 13:20:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 11:20:13 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From cfoust at infostatsystems.com Tue Sep 25 13:27:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 11:27:52 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> References: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> Message-ID: How is its binding/positioning any different from the other subforms on the tab? 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: Tuesday, September 25, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Tue Sep 25 13:37:18 2007 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Tue, 25 Sep 2007 14:37:18 -0400 Subject: [AccessD] Help with code Message-ID: I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18%20Tue%2025%20Sep%202007 From dwaters at usinternet.com Tue Sep 25 13:59:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 25 Sep 2007 13:59:37 -0500 Subject: [AccessD] Help with code In-Reply-To: References: Message-ID: <00ab01c7ffa6$389c2640$0200a8c0@danwaters> Susan, Could you write a query that first sorts by grade and then sorts by score? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Tuesday, September 25, 2007 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18%20T ue%2025%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Sep 25 14:00:43 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 25 Sep 2007 15:00:43 -0400 Subject: [AccessD] Help with code In-Reply-To: Message-ID: <46f95ac5.2287460a.2889.394b@mx.google.com> I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. =======Are you doing this in Access or Excel? Susan H. From DWUTKA at Marlow.com Tue Sep 25 14:12:30 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 25 Sep 2007 14:12:30 -0500 Subject: [AccessD] Help with code In-Reply-To: Message-ID: No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Tuesday, September 25, 2007 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18 %20Tue%2025%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Tue Sep 25 15:30:32 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 13:30:32 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? 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: Tuesday, September 25, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From Chester_Kaup at kindermorgan.com Tue Sep 25 16:32:18 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 16:32:18 -0500 Subject: [AccessD] Problem Updating a Textbox Message-ID: I have a form with a text box that displays the last date in a table. I have another text box the display the last value for the field Oil1 from the same table on the same form. It has its default value set with the following command: =DLast("Oil1","tbl One Manifold Production for a Time Period"). This works fine. When the user enter a new value in the text box with the last date it runs a query to rebuild the table. I run the code below on the on exit event of the last date text box. The problem is that the text box Oil1 value does not update. I am not seeing the problem so any suggestions would be welcome. Thanks all. DoCmd.OpenQuery "qry One Manifold Production for a Time Interval" Me.txtbxOil.Requery Me.Repaint 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 cfoust at infostatsystems.com Tue Sep 25 16:33:01 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 14:33:01 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> References: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> Message-ID: Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust From rockysmolin at bchacc.com Tue Sep 25 20:21:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 18:21:06 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> What do you mean by binding? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 2:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust -- 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From Gustav at cactus.dk Wed Sep 26 02:32:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 09:32:06 +0200 Subject: [AccessD] Problem Updating a Textbox Message-ID: Hi Chester Looks like that your problem is, that while you are editing a record, changing the Default Value for a control will not change the displayed value of that control until you move to a new record. /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 23:32 >>> I have a form with a text box that displays the last date in a table. I have another text box the display the last value for the field Oil1 from the same table on the same form. It has its default value set with the following command: =DLast("Oil1","tbl One Manifold Production for a Time Period"). This works fine. When the user enter a new value in the text box with the last date it runs a query to rebuild the table. I run the code below on the on exit event of the last date text box. The problem is that the text box Oil1 value does not update. I am not seeing the problem so any suggestions would be welcome. Thanks all. DoCmd.OpenQuery "qry One Manifold Production for a Time Interval" Me.txtbxOil.Requery Me.Repaint Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 From jwcolby at colbyconsulting.com Wed Sep 26 04:25:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 05:25:42 -0400 Subject: [AccessD] Mucking around Message-ID: <001201c8001f$368ff790$6c7aa8c0@M90> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Wed Sep 26 04:52:27 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 11:52:27 +0200 Subject: [AccessD] Mucking around Message-ID: Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ John W. Colby Colby Consulting www.ColbyConsulting.com From ssharkins at gmail.com Wed Sep 26 07:59:54 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 08:59:54 -0400 Subject: [AccessD] Mucking around In-Reply-To: <001201c8001f$368ff790$6c7aa8c0@M90> Message-ID: <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> It has never occurred to me to store lookup values in one large table - not once. In fact, I am totally surprised that a discussion of this is even necessary. Susan H. I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ From jwcolby at colbyconsulting.com Wed Sep 26 08:26:45 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 09:26:45 -0400 Subject: [AccessD] Mucking around In-Reply-To: <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> References: <001201c8001f$368ff790$6c7aa8c0@M90> <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> Message-ID: <001a01c80040$e2e255d0$6c7aa8c0@M90> LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. John 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, September 26, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around It has never occurred to me to store lookup values in one large table - not once. In fact, I am totally surprised that a discussion of this is even necessary. Susan H. I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 26 08:42:17 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 09:42:17 -0400 Subject: [AccessD] Mucking around In-Reply-To: <001a01c80040$e2e255d0$6c7aa8c0@M90> Message-ID: <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. From jwcolby at colbyconsulting.com Wed Sep 26 08:54:09 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 09:54:09 -0400 Subject: [AccessD] Mucking around In-Reply-To: <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> References: <001a01c80040$e2e255d0$6c7aa8c0@M90> <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> Message-ID: <000301c80044$b6f6e8b0$6c7aa8c0@M90> The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 26 09:05:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:05:14 +0000 Subject: [AccessD] Mucking around In-Reply-To: <000301c80044$b6f6e8b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90> <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400> Subject: Re: [AccessD] Mucking around>> The general argument is that you have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3 Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place all of your single column "type of something" data into> a single table with another column which allows you to find only the cities,> or states, or types of addresses or (place your list data type here).>> It works, but it causes headaches, but people do 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 Susan Harkins> Sent: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers discussion and problem solving'> Subject: Re: [AccessD] Mucking around>> Except that tables are supposed to store like data, not data that simply> looks similar and happens to have the same structure. I would think the> data's purpose matters more in the decision than the data's structure.>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never the less> there are those who argue vociferously for this method.>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From jwcolby at colbyconsulting.com Wed Sep 26 09:12:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:12:42 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: <000001c80047$4e8cd6b0$6c7aa8c0@M90> >If you had an app with 30 drop downs...would you create 30 separate lookup tables? If I have an app with 10 drop downs for state I would create one state lookup table and use that for all 10 drop downs. If I had an app with 5 different address type drop downs (unlikely) I would create one address type lookup table and use that for all 5 drop downs. Does that answer your question? One lookup table for each "type" or "list" (or whatever you might call these) table. John 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, September 26, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400> Subject: Re: [AccessD] Mucking around>> The general argument is that you have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3 Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place all of your single column "type of something" data into> a single table with another column which allows you to find only the cities,> or states, or types of addresses or (place your list data type here).>> It works, but it causes headaches, but people do 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 Susan Harkins> Se! nt: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers discussion and problem solving'> Subject: Re: [AccessD] Mucking around>> Except that tables are supposed to store like data, not data that simply> looks similar and happens to have the same structure. I would think the> data's purpose matters more in the decision than the data's structure.>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never the less> there are those who argue vociferously for this method.>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 09:15:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 16:15:29 +0200 Subject: [AccessD] Mucking around Message-ID: Hi Mark If they hold 30 different set of data, yes. /gustav >>> markamatte at hotmail.com 26-09-2007 16:05 >>> I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte From john at winhaven.net Wed Sep 26 09:19:23 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 09:19:23 -0500 Subject: [AccessD] Mucking around In-Reply-To: <000301c80044$b6f6e8b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Unfortunately, at times one has to work with what has been laid out before hand. This method works fine with views (queries). Its basically a matter hat relies on the of documentation by the original DBA and comprehension by the DBA. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 8:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 26 09:37:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:37:50 -0400 Subject: [AccessD] Mucking around In-Reply-To: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: <000001c8004a$d0f5d1d0$6c7aa8c0@M90> This is definitely a "more work than it is worth to clean up" kind of thing for existing databases. It is also a "don't do that" kind of thing for new databases that you are designing. And having said that, the "I do it that way and this is why" email will now start to flow. John 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: Wednesday, September 26, 2007 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Unfortunately, at times one has to work with what has been laid out before hand. This method works fine with views (queries). Its basically a matter hat relies on the of documentation by the original DBA and comprehension by the DBA. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 8:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Sep 26 09:38:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:38:18 +0000 Subject: [AccessD] Mucking around In-Reply-To: <000001c80047$4e8cd6b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... Thanks, Mark ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:12:42 -0400> Subject: Re: [AccessD] Mucking around>>>If you had an app with 30 drop downs...would you create 30 separate lookup> tables?>> If I have an app with 10 drop downs for state I would create one state> lookup table and use that for all 10 drop downs.> If I had an app with 5 different address type drop downs (unlikely) I would> create one address type lookup table and use that for all 5 drop downs.>> Does that answer your question?>> One lookup table for each "type" or "list" (or whatever you might call> these) table.>> John 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, September 26, 2007 10:05 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> I have seen this before(and used it)...but out of curiosity. If you had an> app with 30 drop downs...would you create 30 seperate lookup tables?>> Thanks,>> Mark A. Matte>> ----------------------------------------> From: jwcolby at colbyconsulting.com>> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400>> Subject: Re: [AccessD] Mucking around>> The general argument is that you> have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might> be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc>> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3> Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place> all of your single column "type of something" data into> a single table with> another column which allows you to find only the cities,> or states, or> types of addresses or (place your list data type here).>> It works, but it> causes headaches, but people do 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 Susan Harkins>> Se!> nt: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers> discussion and problem solving'> Subject: Re: [AccessD] Mucking around>>> Except that tables are supposed to store like data, not data that simply>> looks similar and happens to have the same structure. I would think the>> data's purpose matters more in the decision than the data's structure.>>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never> the less> there are those who argue vociferously for this method.>>> -->> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> --> AccessD mailing list>> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> News, entertainment and everything you care about at Live.com. Get it now!> http://www.live.com/getstarted.aspx> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From markamatte at hotmail.com Wed Sep 26 09:43:45 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:43:45 +0000 Subject: [AccessD] Mucking around In-Reply-To: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. Ho can I set this in VBA? Thanks, Mark A. Matte _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE From jwcolby at colbyconsulting.com Wed Sep 26 09:51:32 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:51:32 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: <000001c8004c$bb32eb10$6c7aa8c0@M90> Yep. And what is with the ----------------------------------------> thing? Your email is the only one I am seeing this on. Is this your attempt to FORCE users to snip old stuff? ;-) John 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, September 26, 2007 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... Thanks, Mark ----------------------------------------> From: ----------------------------------------> jwcolby at colbyconsulting.com> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Wed, 26 Sep 2007 ----------------------------------------> 10:12:42 -0400> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>>If ----------------------------------------> you had an app with 30 drop ----------------------------------------> downs...would you create 30 ----------------------------------------> separate lookup> tables?>> If ----------------------------------------> I have an app with 10 drop ----------------------------------------> downs for state I would create ----------------------------------------> one state> lookup table and ----------------------------------------> use that for all 10 drop ----------------------------------------> downs.> If I had an app with 5 ----------------------------------------> different address type drop ----------------------------------------> downs (unlikely) I would> ----------------------------------------> create one address type lookup ----------------------------------------> table and use that for all 5 ----------------------------------------> drop downs.>> Does that answer ----------------------------------------> your question?>> One lookup ----------------------------------------> table for each "type" or ----------------------------------------> "list" (or whatever you might ----------------------------------------> call> these) table.>> John W. ----------------------------------------> Colby> Colby Consulting> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Mark A Matte> Sent: Wednesday, ----------------------------------------> September 26, 2007 10:05 AM> ----------------------------------------> To: Access Developers ----------------------------------------> discussion and problem ----------------------------------------> solving> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>> I ----------------------------------------> have seen this before(and used ----------------------------------------> it)...but out of curiosity. If ----------------------------------------> you had an> app with 30 drop ----------------------------------------> downs...would you create 30 ----------------------------------------> seperate lookup tables?>> ----------------------------------------> Thanks,>> Mark A. Matte>> ----------------------------------------> ------------------------------ ----------------------------------------> ----------> From: ----------------------------------------> jwcolby at colbyconsulting.com>> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Wed, 26 Sep 2007 ----------------------------------------> 09:54:09 -0400>> Subject: Re: ----------------------------------------> [AccessD] Mucking around>> The ----------------------------------------> general argument is that you> ----------------------------------------> have THREE columns.>> PKID> ----------------------------------------> TypeOfDataID> Data>> The ----------------------------------------> TypeOfDataID might> be:>> 1 ----------------------------------------> Cities> 2 States> 3 Name ----------------------------------------> prefixes (Mr. etc)> 4 Address ----------------------------------------> Types> Etc>> Etc>> So you ----------------------------------------> might have data that looks ----------------------------------------> like:>> 1 2 CA> 2 2 AZ> 3 3 ----------------------------------------> Mr> 4 3> Mrs> 5 4 Home> 6 4 ----------------------------------------> Work> 7 4 Shipping> 8 1 San ----------------------------------------> Diego>> Thus you have place> ----------------------------------------> all of your single column ----------------------------------------> "type of something" data into> ----------------------------------------> a single table with> another ----------------------------------------> column which allows you to ----------------------------------------> find only the cities,> or ----------------------------------------> states, or> types of addresses ----------------------------------------> or (place your list data type ----------------------------------------> here).>> It works, but it> ----------------------------------------> causes headaches, but people ----------------------------------------> do it.>> John W. Colby> Colby ----------------------------------------> Consulting>> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From:> ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com>> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Susan Harkins>> Se!> nt: ----------------------------------------> Wednesday, September 26, 2007 ----------------------------------------> 9:42 AM> To: 'Access ----------------------------------------> Developers> discussion and ----------------------------------------> problem solving'> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>> ----------------------------------------> Except that tables are ----------------------------------------> supposed to store like data, ----------------------------------------> not data that simply>> looks ----------------------------------------> similar and happens to have ----------------------------------------> the same structure. I would ----------------------------------------> think the>> data's purpose ----------------------------------------> matters more in the decision ----------------------------------------> than the data's structure.>>> ----------------------------------------> Susan H.>> LOL. Proper ----------------------------------------> normalization says that it is ----------------------------------------> not necessary. Never> the ----------------------------------------> less> there are those who ----------------------------------------> argue vociferously for this ----------------------------------------> method.>>> -->> AccessD ----------------------------------------> mailing list> ----------------------------------------> AccessD at databaseadvisors.com>> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website:> ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> --> AccessD mailing list>> ----------------------------------------> AccessD at databaseadvisors.com>> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website:> ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> ----------------------------------------> ______________________________ ----------------------------------------> ______________________________ ----------------------------------------> _____> News, entertainment and ----------------------------------------> everything you care about at ----------------------------------------> Live.com. Get it now!> ----------------------------------------> http://www.live.com/getstarted ----------------------------------------> .aspx> --> AccessD mailing ----------------------------------------> list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> --> AccessD mailing list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=w lmailtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 26 09:53:17 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:53:17 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: <000101c8004c$f972bd60$6c7aa8c0@M90> Open any module Click tools / references. Find and check the dao reference. That database will now reference DAO. AFAIK there is no way to force all new databases to reference DAO automatically. John 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, September 26, 2007 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. Ho can I set this in VBA? Thanks, Mark A. Matte _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 26 10:05:04 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:05:04 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: <000101c8004c$f972bd60$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>> Open any module> Click tools / references.> Find and check the dao reference.>> That database will now reference DAO. AFAIK there is no way to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte> _________________________________________________________________> Discover the new Windows Vista> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From rockysmolin at bchacc.com Wed Sep 26 10:13:53 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 08:13:53 -0700 Subject: [AccessD] You Canceled the Previous Operation Message-ID: <001c01c8004f$da727650$0301a8c0@HAL9005> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From john at winhaven.net Wed Sep 26 10:10:38 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 10:10:38 -0500 Subject: [AccessD] Mucking around In-Reply-To: <000001c8004a$d0f5d1d0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000001c8004a$d0f5d1d0$6c7aa8c0@M90> Message-ID: <002601c8004f$65bd2490$6402a8c0@ScuzzPaq> Agree. LOL! - my thoughts too :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around This is definitely a "more work than it is worth to clean up" kind of thing for existing databases. It is also a "don't do that" kind of thing for new databases that you are designing. And having said that, the "I do it that way and this is why" email will now start to flow. From cfoust at infostatsystems.com Wed Sep 26 10:11:30 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:11:30 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> References: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> Message-ID: master/child links, top and left properties, etc. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 6:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem What do you mean by binding? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 2:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust -- 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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 Sep 26 10:16:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:16:03 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte From rockysmolin at bchacc.com Wed Sep 26 10:18:09 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 08:18:09 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <001c01c8004f$da727650$0301a8c0@HAL9005> Message-ID: <002401c80050$72ba3a10$0301a8c0@HAL9005> P.S. When I put in a breakpoint and step through the code with the F8 key, it works! Maybe a clue? Rocky -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM From cfoust at infostatsystems.com Wed Sep 26 10:16:16 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:16:16 -0700 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: You'd be better off doing it manually. You can set references but if your code depends on them, you have to put the reference handling code in a module that runs before anything else and that references the VBEIDE. I've done it for a different reason, but believe me, it's far easier to set it manually. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, September 26, 2007 8:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] DAO References in New DBs Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>> Open any module> Click tools / references.> Find and check the dao reference.>> That database will now reference DAO. AFAIK there is no way to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte> _________________________________________________________________> Discover the new Windows Vista> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour ce=wlmailtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 26 10:18:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:18:44 -0700 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: Remember our long thread discussing IsBroken and setting references? Have you tried this in a database with a broken reference? Not being a skeptic, just curious. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DAO References in New DBs Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 10:22:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:22:50 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From jwcolby at colbyconsulting.com Wed Sep 26 10:24:43 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 11:24:43 -0400 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: <000201c80051$5e007b60$6c7aa8c0@M90> Wow! John 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, September 26, 2007 11:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DAO References in New DBs Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Sep 26 10:20:56 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 10:20:56 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: <002701c80050$d607d3c0$6402a8c0@ScuzzPaq> Simply put -yes. Another question is "how to handle the populating and maintenance of these lookup table's values"? 3 distinct variations come to mind: 1-a entry/edit form for each (typical but often redundant) 2-one entry edit form which is generic and filled via code depending on which lookup table is chosen to have values entered/edited (saves form layout time in the long run) 3-initially filling of tables with existing data - from there using the NotInList event of forms to enter new values (works for simple lookups, often requires DBA intervention depending on user trustworthiness(rare) and/or security levels - often combined with either option 1 or 2) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From cfoust at infostatsystems.com Wed Sep 26 10:29:01 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:29:01 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: References: Message-ID: And to piggyback on Gustav's reply, the second call to me.RecordsetClone creates a new clone, it doesn't use the one you just ran a find on. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 26 10:34:08 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 11:34:08 -0400 Subject: [AccessD] Mucking around In-Reply-To: <002701c80050$d607d3c0$6402a8c0@ScuzzPaq> Message-ID: <46fa7bd4.2486460a.7e7f.0c93@mx.google.com> I would too, but mostly because the dogmatic Sagittarian in me likes it that way. ;) Susan H. Simply put -yes. I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From Gustav at cactus.dk Wed Sep 26 10:35:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:35:53 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Charlotte Certainly. But forgot to tell about it, sorry. Mark, the database code must be compiled in full after tampering with the references. You can do that with a macro which - converted - looks like this: DoCmd.Echo False, "" DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" DoCmd.Echo True, "" where USysReferencesCheck is an empty module created for the purpose. /gustav >>> cfoust at infostatsystems.com 26-09-2007 17:18 >>> Remember our long thread discussing IsBroken and setting references? Have you tried this in a database with a broken reference? Not being a skeptic, just curious. Charlotte Foust From markamatte at hotmail.com Wed Sep 26 10:57:10 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:57:10 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: I don't really have the 'manual' choice in using the updater...since it creates a new MDB... ----------------------------------------> Date: Wed, 26 Sep 2007 08:16:16 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> You'd be better off doing it manually. You can set references but if> your code depends on them, you have to put the reference handling code> in a module that runs before anything else and that references the> VBEIDE. I've done it for a different reason, but believe me, it's far> easier to set it manually.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte> Sent: Wednesday, September 26, 2007 8:05 AM> To: Access Developers discussion and problem solving> Subject: [AccessD] DAO References in New DBs>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte> ----------------------------------------> From:> jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date:> Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>>> Open any module> Click tools / references.> Find and check the dao> reference.>> That database will now reference DAO. AFAIK there is no way> to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers> discussion and problem solving> Subject: Re: [AccessD] Mucking around>>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end> updater. The> problem I am having is the temp db that is created does> not have a DAO> reference...actually any new db I create does not have a> DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte>> _________________________________________________________________>> Discover the new Windows Vista>> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE>> --> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> --> AccessD mailing list>> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> Connect to the next generation of MSN Messenger> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour> ce=wlmailtagline> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From markamatte at hotmail.com Wed Sep 26 10:58:01 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:58:01 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: It actually doesn't chow as broken. ----------------------------------------> Date: Wed, 26 Sep 2007 08:18:44 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Remember our long thread discussing IsBroken and setting references?> Have you tried this in a database with a broken reference? Not being a> skeptic, just curious.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock> Sent: Wednesday, September 26, 2007 8:16 AM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Hi Mark>> You can run a function to do this:>> >> ' Length of GUID string per definition.> Private Const clngGUID As Long = 38>> Type GuidDefinition> Guid As String * clngGUID> Major As Integer> Minor As Integer> End Type>> Public Function RefAddDao() As Boolean>> Dim typGuid As GuidDefinition>> With typGuid> .Guid = "{00025E01-0000-0000-C000-000000000046}"> End With>> RefAddDao = ReferenceAddFromGuid(typGuid)>> End Function>> Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As> Boolean>> ' Add a reference from its GUID and verify it.> '> ' 2001-08-20. Cactus Data ApS, CPH.>>> ' Reference Guid not registered or registered with a lower version.> Const clngErrorGuidNotRegistered As Long = -2147319779>> Dim ref As Reference>> Dim booSuccess As Boolean>> On Error Resume Next>> With typGuid> References.AddFromGuid .Guid, .Major, .Minor> End With>> If Not Err = clngErrorGuidNotRegistered Then> ' The reference is registered but it may have been tampered with.> ' Find it and check that it is not broken.> For Each ref In References> With ref> If .BuiltIn = True Then> ' no need to study built in references.> ElseIf .Guid = typGuid.Guid Then> ' This is the added reference.> booSuccess = Not IsBroken97(ref)> If booSuccess = True Then> ' Return actual GUID version.> typGuid.Major = .Major> typGuid.Minor = .Minor> End If> End If> End With> Next> End If>> Set ref = Nothing>> ReferenceAddFromGuid = booSuccess>> End Function>> Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean>> ' Alternative method to check if a reference is broken ' as the IsBroken> property cannot be used in Access97.> '> ' 2000-03-19. Gustav Brock. Cactus Data ApS.>> ' Refer to this article at Microsoft Technet:> '> ' Article ID: Q186720> '> ' The information in this article applies to:> ' Microsoft Access 97> '> ' SYMPTOMS> ' In Microsoft Access, IsBroken is a property of the References> collection.> ' The Microsoft Access Help topic on the Isbroken property states the> following:> '> ' The IsBroken property returns a Boolean value indicating whether a '> Reference object points to a valid reference in the Windows Registry.> '> ' Although this statement is correct, to receive this Boolean value '> you must trap for errors that are generated by the broken reference.> ' Also, the IsBroken property becomes True only when the file being> referenced ' is deleted and the Microsoft Windows Recycle Bin is> emptied.> ' This article details the steps necessary to receive the Boolean value.>> Dim booRefOK As Boolean> On Error GoTo Err_IsBroken97>> If Len(Dir(ref.FullPath, vbNormal))> 0 Then> booRefOK = Not ref.IsBroken> End If>> Exit_IsBroken97:> IsBroken97 = Not booRefOK> Exit Function>> Err_IsBroken97:> ' Ignore non existing servers, drives, and paths.> Resume Exit_IsBroken97>> End Function>> >> /gustav>>>>> markamatte at hotmail.com 26-09-2007 17:05>>>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte>>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From Gustav at cactus.dk Wed Sep 26 10:58:56 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:58:56 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9-0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9-0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Wed Sep 26 11:05:04 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 18:05:04 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Mark No, but if the database contains a code module it will change status to not compiled. /gustav PS: Couldn't you have a look on how your mailer quotes the mail you reply? >>> markamatte at hotmail.com 26-09-2007 17:58 >>> It actually doesn't chow as broken. ----------------------------------------> Date: Wed, 26 Sep 2007 08:18:44 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Remember our long thread discussing IsBroken and setting references?> Have you tried this in a database with a broken reference? Not being a> skeptic, just curious.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock> Sent: Wednesday, September 26, 2007 8:16 AM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Hi Mark>> You can run a function to do this:>> >> ' Length of GUID string per definition.> Private Const clngGUID As Long = 38>> Type GuidDefinition> Guid As String * clngGUID> Major As Integer> Minor As Integer> End Type>> Public Function RefAddDao() As Boolean>> Dim typGuid As GuidDefinition>> With typGuid> .Guid = "{00025E01-0000-0000-C000-000000000046}"> End With>> RefAddDao = ReferenceAddFromGuid(typGuid)>> End Function>> Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As> Boolean>> ' Add a reference from its GUID and verify it.> '> ' 2001-08-20. Cactus Data ApS, CPH.>>> ' Reference Guid not registered or registered with a lower version.> Const clngErrorGuidNotRegistered As Long = -2147319779>> Dim ref As Reference>> Dim booSuccess As Boolean>> On Error Resume Next>> With typGuid> References.AddFromGuid .Guid, .Major, .Minor> End With>> If Not Err = clngErrorGuidNotRegistered Then> ' The reference is registered but it may have been tampered with.> ' Find it and check that it is not broken.> For Each ref In References> With ref> If .BuiltIn = True Then> ' no need to study built in references.> ElseIf .Guid = typGuid.Guid Then> ' This is the added reference.> booSuccess = Not IsBroken97(ref)> If booSuccess = True Then> ' Return actual GUID version.> typGuid.Major = .Major> typGuid.Minor = .Minor> End If> End If> End With> Next> End If>> Set ref = Nothing>> ReferenceAddFromGuid = booSuccess>> End Function>> Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean>> ' Alternative method to check if a reference is broken ' as the IsBroken> property cannot be used in Access97.> '> ' 2000-03-19. Gustav Brock. Cactus Data ApS.>> ' Refer to this article at Microsoft Technet:> '> ' Article ID: Q186720> '> ' The information in this article applies to:> ' Microsoft Access 97> '> ' SYMPTOMS> ' In Microsoft Access, IsBroken is a property of the References> collection.> ' The Microsoft Access Help topic on the Isbroken property states the> following:> '> ' The IsBroken property returns a Boolean value indicating whether a '> Reference object points to a valid reference in the Windows Registry.> '> ' Although this statement is correct, to receive this Boolean value '> you must trap for errors that are generated by the broken reference.> ' Also, the IsBroken property becomes True only when the file being> referenced ' is deleted and the Microsoft Windows Recycle Bin is> emptied.> ' This article details the steps necessary to receive the Boolean value.>> Dim booRefOK As Boolean> On Error GoTo Err_IsBroken97>> If Len(Dir(ref.FullPath, vbNormal))> 0 Then> booRefOK = Not ref.IsBroken> End If>> Exit_IsBroken97:> IsBroken97 = Not booRefOK> Exit Function>> Err_IsBroken97:> ' Ignore non existing servers, drives, and paths.> Resume Exit_IsBroken97>> End Function>> >> /gustav>>>>> markamatte at hotmail.com 26-09-2007 17:05>>>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte>>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> 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 Wed Sep 26 11:06:43 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 09:06:43 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <002801c80057$3b8cff30$0301a8c0@HAL9005> Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM From cfoust at infostatsystems.com Wed Sep 26 11:25:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 09:25:09 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <002801c80057$3b8cff30$0301a8c0@HAL9005> References: <002801c80057$3b8cff30$0301a8c0@HAL9005> Message-ID: Try checking for NoMatch on a DAO recordset or Not .EOF and Not .BOF on an ADO recordset. Even though the value is there, it might provide enough of a pause to keep Access from falling over its feet. 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, September 26, 2007 9:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 11:44:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 18:44:52 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky Then, I guess, you perform some operation just ahead of looking up the bookmark - like an afterupdate event following the choice in the Listbox. /gustav >>> rockysmolin at bchacc.com 26-09-2007 18:06 >>> Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From max.wanadoo at gmail.com Wed Sep 26 12:38:47 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Wed, 26 Sep 2007 18:38:47 +0100 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <013201c80064$1928e820$8119fea9@LTVM> Rocky, It may just be that your recordset is not bookmarkable. I suggest you test if me.bookmarkable then The sort of code I use (aircode) is: Dim rst as dao.recorset, sqlFind as string If me.bookmarkable then Strfind = "yourteststringhere", ie: strfind = "RecordID=" & lngID set rst = me.recordsetclone Rst.findfirst strfind If not rst.nomatch then Me.bookmark = rst.bookmark Else Msgbox "Not found" Endif Set rst = nothing Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 26, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] You Canceled the Previous Operation Try checking for NoMatch on a DAO recordset or Not .EOF and Not .BOF on an ADO recordset. Even though the value is there, it might provide enough of a pause to keep Access from falling over its feet. 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, September 26, 2007 9:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 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 Susan.Klos at fldoe.org Wed Sep 26 12:52:00 2007 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Wed, 26 Sep 2007 13:52:00 -0400 Subject: [AccessD] Help with code Message-ID: =======Are you doing this in Access or Excel? Susan H. Susan: I am in Accesst. <> No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew Drew, the query would work fine except I need it to rank the lowest score as 1. I tried sorting the score but neither ascending or descending seems to make a difference. <> Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|13:52:00%20Wed%2026%20Sep%202007 From shamil at users.mns.ru Wed Sep 26 13:28:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 26 Sep 2007 22:28:40 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <000301c8006b$117d8ac0$6401a8c0@nant> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 26 13:51:21 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Wed, 26 Sep 2007 19:51:21 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <000301c8006b$117d8ac0$6401a8c0@nant> Message-ID: <019101c8006e$3b906320$8119fea9@LTVM> Hi Shamil, I have to say that I do agree with Gustav. It just (to me) appears to be a more complicated way to achieve the same effect (albeit with less code, but with a full dose of obfuscation). I say this not to generate any flames, but merely to state that this (to me) falls into the same area as APIs. I use them, but don't really understand them, so I will not be moving to use these any time soon. The example that Getz posts on his blog just left me saying "so what". Of course, it is "horses for courses". What suits one doesn't necessarily suit another and may be great for others. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 26, 2007 7:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 13:53:14 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 20:53:14 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil It was just a bad joke. With Lambda Expressions you can create powerful one-liners which - due to their obtuse nature - can be hard to comprehend. Of course, the polite programmer will add sufficient comments in those cases. But again, I found those links very useful, and everyone dealing with dotNet and SQL should really read up the stuff on LINQ - and thus Lambda Expressions and the lovely "yield". Most of the code is in C# which I'm not so familiar with but I feel you just have to learn this language - at least I have decided to use it for future work. I miss the With .. End With constructs but that's it. /gustav >>> shamil at users.mns.ru 26-09-2007 20:28 >>> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9-0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9-0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Wed Sep 26 14:04:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 21:04:06 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Max Quite right - no reason to complicate things. However - for everyone else who might find the time to at least browse the links from Shamil - don't judge the complete concept on the example from Ken Getz; it seems a bit artificial. The series on Functional Programming is much more informative. /gustav >>> max.wanadoo at gmail.com 26-09-2007 20:51 >>> Hi Shamil, I have to say that I do agree with Gustav. It just (to me) appears to be a more complicated way to achieve the same effect (albeit with less code, but with a full dose of obfuscation). I say this not to generate any flames, but merely to state that this (to me) falls into the same area as APIs. I use them, but don't really understand them, so I will not be moving to use these any time soon. The example that Getz posts on his blog just left me saying "so what". Of course, it is "horses for courses". What suits one doesn't necessarily suit another and may be great for others. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 26, 2007 7:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav From DWUTKA at Marlow.com Wed Sep 26 15:26:59 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 26 Sep 2007 15:26:59 -0500 Subject: [AccessD] Help with code In-Reply-To: Message-ID: To reverse the ranking: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA<=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The change is AND GPA<=T1.GPA instead of >= . Just a note, the way this is going to calculate the 'rank', will have some people with the same number: Ie, Student GPA Bob 2.1 Sue 3.8 Drew 3.8 This would return 1 2 2 Just a note. It should have the same number for students with a 'tie' grade. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Wednesday, September 26, 2007 12:52 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code =======Are you doing this in Access or Excel? Susan H. Susan: I am in Accesst. <> No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew Drew, the query would work fine except I need it to rank the lowest score as 1. I tried sorting the score but neither ascending or descending seems to make a difference. <> Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|13:52:00 %20Wed%2026%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From shamil at users.mns.ru Wed Sep 26 16:16:08 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 27 Sep 2007 01:16:08 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <001801c80082$753ba210$6401a8c0@nant> Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 10:53 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil It was just a bad joke. With Lambda Expressions you can create powerful one-liners which - due to their obtuse nature - can be hard to comprehend. Of course, the polite programmer will add sufficient comments in those cases. But again, I found those links very useful, and everyone dealing with dotNet and SQL should really read up the stuff on LINQ - and thus Lambda Expressions and the lovely "yield". Most of the code is in C# which I'm not so familiar with but I feel you just have to learn this language - at least I have decided to use it for future work. I miss the With .. End With constructs but that's it. /gustav >>> shamil at users.mns.ru 26-09-2007 20:28 >>> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 26 19:04:49 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Sep 2007 10:04:49 +1000 Subject: [AccessD] Friday fun: Lambda Expressions References: <001801c80082$753ba210$6401a8c0@nant> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From cfoust at infostatsystems.com Wed Sep 26 19:07:40 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 17:07:40 -0700 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> References: <001801c80082$753ba210$6401a8c0@nant> <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Message-ID: I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 26 21:08:50 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Sep 2007 19:08:50 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <001c01c8004f$da727650$0301a8c0@HAL9005> Message-ID: Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 26 21:48:07 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Sep 2007 12:48:07 +1000 Subject: [AccessD] Friday fun: Lambda Expressions References: <001801c80082$753ba210$6401a8c0@nant><59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289E27@ddi-01.DDI.local> Sorry, should have mentioned I'm using C#. Michael M I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- 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 rockysmolin at bchacc.com Wed Sep 26 22:03:33 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 20:03:33 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <006a01c800b2$fd632110$0301a8c0@HAL9005> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1032 - Release Date: 9/26/2007 8:20 PM From Gustav at cactus.dk Thu Sep 27 02:44:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:44:11 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From Gustav at cactus.dk Thu Sep 27 02:48:24 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:48:24 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil Yes the Intellisense is very helpful as it not only explains the syntax but also gives a brief explanation of the method or property. /gustav >>> shamil at users.mns.ru 26-09-2007 23:16 >>> Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From Gustav at cactus.dk Thu Sep 27 02:55:54 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:55:54 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Charlotte So do I, but in C# a similar construct does not exist and I really don't understand why - if you don't like that construct you could just choose not to use it. /gustav >>> cfoust at infostatsystems.com 27-09-2007 02:07 >>> I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From rockysmolin at bchacc.com Thu Sep 27 09:09:25 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 07:09:25 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <002c01c80110$02ad8590$0301a8c0@HAL9005> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1032 - Release Date: 9/26/2007 8:20 PM From Gustav at cactus.dk Thu Sep 27 09:21:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 16:21:26 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky OK, that makes sense. /gustav >>> rockysmolin at bchacc.com 27-09-2007 16:09 >>> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From cjlabs at worldnet.att.net Thu Sep 27 09:25:47 2007 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 27 Sep 2007 09:25:47 -0500 Subject: [AccessD] Cannot export to RTF from Access2007 References: <002c01c80110$02ad8590$0301a8c0@HAL9005> Message-ID: <003301c80112$4c976b10$6401a8c0@XPcomputer> I have a compiled Access2000 database running on Vista/Access2007. When I try to export any report to RTF, I get an error that Access is shutting down. On a second computer running Vista/Access2007, I get the error "Object variable or With block variable not set". (Not sure why there are different responses.) Non-compiled version of the database exports without an error on Vista/Access2007 machine. Either compiled or non-compiled database on the same computer in Access2003 exports fine. Either compiled or non-compiled database on a WindowsXP/Access2000 machine exports fine. Unfortunately, I don't have Access2007 on a non-Vista computer at the moment. Does anyone have any experience with this? TIA, Carolyn Johnson From robert at webedb.com Thu Sep 27 10:44:16 2007 From: robert at webedb.com (Robert L. Stewart) Date: Thu, 27 Sep 2007 10:44:16 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709271550.l8RFoGPl006078@databaseadvisors.com> Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > From jimdettman at verizon.net Thu Sep 27 11:11:24 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 27 Sep 2007 12:11:24 -0400 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <000d01c80121$0e2abe90$8abea8c0@XPS> Hermaphrodite. Guess you need another table. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Thu Sep 27 11:18:34 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 27 Sep 2007 11:18:34 -0500 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 27 11:36:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 27 Sep 2007 11:36:19 -0500 Subject: [AccessD] Mucking around In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> Message-ID: <002f01c80124$88281dc0$0200a8c0@danwaters> A good name example is Merry. Always thought that was a girl's name until we learned about the names of Hobbits! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Thursday, September 27, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 27 11:47:40 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 27 Sep 2007 12:47:40 -0400 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <005301c80126$1e9f23b0$6c7aa8c0@M90> Robert, >About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) UNK (unknown) which is actually in the data I import regularly. But even in this I use a table for the simple reason that a table provides ONE place to look for the code. If you don't provide a table then the combo selector has to be hard coded. It may be M in one combo and Male in another (and in this day and age MAIL in another). Thus if you want to be able to compare fruits to nuts you pretty much have to have a common denominator. PKID, Code. Every time! John 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 L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it >that way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop >downs...would you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Sep 27 12:16:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 19:16:19 +0200 Subject: [AccessD] Gender (was: Mucking around) Message-ID: Hi Jim et al Further, you may have to handle people who have been through a gender change. For these you may operate with an original or biological gender (for the doctor and the health care) and the legal or official (new or current) gender for anyone else. Now, as you only can change gender from M to F or from F to M (or back in rare cases), all that is needed is a Boolean field, GenderChange, which normally is False but will have to be set to True for those in question. Then, as the biological gender is fixed, you have: GenderLegal = GenderChange Xor GenderBiological which even leaves the subtle choice wether to handle Male as True and Female as False - or vice versa - to you, while Unknown as Null always will return Null. /gustav >>> JHewson at karta.com 27-09-2007 18:18 >>> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From max.wanadoo at gmail.com Thu Sep 27 12:36:33 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 18:36:33 +0100 Subject: [AccessD] Gender (was: Mucking around) In-Reply-To: Message-ID: <00be01c8012c$f31dbba0$8119fea9@LTVM> Hi all, Just to add to the list of Genders. I also have B(oth) and (E)ither. For example, a person comes on with Title of Dr (Doctor). Gender can be E(ither). A list of Mr & Mrs at the same address can be B(oth). Depends on what your database is serving up. SQL can then include (for example) all Males and include those where Gender = "E" or "B" if your circumstances require it. A person marked as U(nknown) would - in some circumstances - not be included. Also, for me a Lookup Table is a discrete list of items which are seldom changed (almost static if you like) referenced for many main records as a PKID. A non-lookup table is user data comprising the main purpose of the mdb. When I clear down user-data, I leave the lookup tables as they are not user-specific. Examples are: Titles, Genders, Prefixes, Suffixes I always have a single maintenace form for these type of lookup tables (simple LupID, DataDesc) which is populated depending on the reason why it is being called. It also has an "Accept" button which is hidden when in maint mode but visible when called from a NonInList function. Does that make sense? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 6:16 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Gender (was: Mucking around) Hi Jim et al Further, you may have to handle people who have been through a gender change. For these you may operate with an original or biological gender (for the doctor and the health care) and the legal or official (new or current) gender for anyone else. Now, as you only can change gender from M to F or from F to M (or back in rare cases), all that is needed is a Boolean field, GenderChange, which normally is False but will have to be set to True for those in question. Then, as the biological gender is fixed, you have: GenderLegal = GenderChange Xor GenderBiological which even leaves the subtle choice wether to handle Male as True and Female as False - or vice versa - to you, while Unknown as Null always will return Null. /gustav >>> JHewson at karta.com 27-09-2007 18:18 >>> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 27 13:10:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 19:10:54 +0100 Subject: [AccessD] Mucking around In-Reply-To: <000d01c80121$0e2abe90$8abea8c0@XPS> Message-ID: <00c001c80131$bf5827b0$8119fea9@LTVM> No, use B(oth) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, September 27, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Hermaphrodite. Guess you need another table. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop >downs...would you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 27 13:33:59 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 27 Sep 2007 13:33:59 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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 jwcolby at colbyconsulting.com Thu Sep 27 13:33:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 27 Sep 2007 14:33:54 -0400 Subject: [AccessD] Use Regex - Create Camel Case Message-ID: <005801c80134$f60b9320$6c7aa8c0@M90> Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. John W. Colby Colby Consulting www.ColbyConsulting.com From max.wanadoo at gmail.com Thu Sep 27 13:46:52 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 19:46:52 +0100 Subject: [AccessD] [dba-VB] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <00c401c80136$c66049c0$8119fea9@LTVM> John, Why not just poke the string into a function - at least it is understandable/readable. (Aircode) Public function pfDropBadChars(str2Parse as string) as string const conBadChars as string = "!"?$%^" Dim lng as long,strTemp as string For lng = 1 to len(str2Parse) If instr(mid(str2Parse,lng,1),conBadChars) = 0 then ' or is this the otherway around - can't remember! strTemp=strTemp & mid(str2Parse,lng,1 Endif Next lng pfDropBadChars=strtemp End function Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 7:34 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [dba-VB] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 27 14:20:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 12:20:42 -0700 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 27 14:29:54 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 12:29:54 -0700 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 max.wanadoo at gmail.com Thu Sep 27 14:39:57 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 20:39:57 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <00d101c8013e$3079fc00$8119fea9@LTVM> John, Or flip it viz: Function dbc() MsgBox pfGetGoodChars("APN SEQUENCE #$%NUMBER") End Function Public Function pfGetGoodChars(str2Parse As String) As String Const conGoodChars As String = "abcdefghijklmnopqrstuvwxyz" ' valid characters Const conQuote As String = """" Dim lng As Long, strTemp As String, bFlipCase As Boolean str2Parse = UCase(Left(str2Parse, 1)) & LCase(Mid(str2Parse, 2)) For lng = 1 To Len(str2Parse) If InStr(conGoodChars, Mid(str2Parse, lng, 1)) > 0 Then If bFlipCase = True Then strTemp = strTemp & UCase(Mid(str2Parse, lng, 1)) bFlipCase = False Else strTemp = strTemp & Mid(str2Parse, lng, 1) End If Else bFlipCase = True End If Next lng pfGetGoodChars = strTemp End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 7:34 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 max.wanadoo at gmail.com Thu Sep 27 14:42:17 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 20:42:17 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: Message-ID: <00d201c8013e$83cd5050$8119fea9@LTVM> Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 Thu Sep 27 15:04:32 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 27 Sep 2007 15:04:32 -0500 Subject: [AccessD] Data Visualization Message-ID: <004801c80141$9eb149a0$0200a8c0@danwaters> Has anyone tried this? Or any thoughts on how it could be used? Very interesting data visualization and analysis. http://www.fmsasg.com/products/SentinelVisualizer/ Dan From cfoust at infostatsystems.com Thu Sep 27 15:03:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 13:03:25 -0700 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <00d201c8013e$83cd5050$8119fea9@LTVM> References: <00d201c8013e$83cd5050$8119fea9@LTVM> Message-ID: The idea was to use RegEx to see if any processing was required on the string. If not, it saves a lot of time, since not every string will have to be stepped through. John was also struggling with Regex. You can do this if you want to process every string and if you don't need the Ucase: Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex("[""'|\\/*?><~]", _ System.Text.RegularExpressions.RegexOptions.None) ' Replace invalid character with empty strings. Dim strOut As String = rex.Replace(strCompany, "") In this situation John might be better off using the approach you suggested in actually handling the replacement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Thursday, September 27, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. From max.wanadoo at gmail.com Thu Sep 27 15:22:06 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 21:22:06 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: Message-ID: <00d301c80144$13f18b60$8119fea9@LTVM> Yes, this is definitely one for my own goodie-bag. Like most things, there will be situation where this RegEx is spot-on. I don't think the code I posted was particularly good (in purist terms) and people on this list will be able to improve on it no end, I am sure. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 9:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case The idea was to use RegEx to see if any processing was required on the string. If not, it saves a lot of time, since not every string will have to be stepped through. John was also struggling with Regex. You can do this if you want to process every string and if you don't need the Ucase: Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex("[""'|\\/*?><~]", _ System.Text.RegularExpressions.RegexOptions.None) ' Replace invalid character with empty strings. Dim strOut As String = rex.Replace(strCompany, "") In this situation John might be better off using the approach you suggested in actually handling the replacement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Thursday, September 27, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. -- 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 Sep 27 15:55:55 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 27 Sep 2007 15:55:55 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: But is it normalized? Seems to me that fldType has the same problems as described in the list box article. As a practical matter I would NOT create separate tables since different rollups are needed all the time and the programmers would poison my coffee if I proposed separate tables. I have already lost too many tasters that way. Along the same vein you COULD add a type field to the general ledger balance file to represent plan, actual or statistics but I would never combine those disimilar types of data. So the line beween correct normalization and practicality often blurs for me. I think there is some grey and judgement in creating truly normalized table schema. After all who can truly say what is Normal? :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Thu Sep 27 16:07:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 14:07:29 -0700 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: Depends on the level of normalization. Star schemas are normalized but make use of dimension tables that contain the possible values for a query/filter on the field to which they're joined, like every date in a period, for instance. You don't bother with a rollup table, since the data can be rolled up quickly and simply by running a query. And you're asking about Normal in THIS list??? ROFTL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 1:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around But is it normalized? Seems to me that fldType has the same problems as described in the list box article. As a practical matter I would NOT create separate tables since different rollups are needed all the time and the programmers would poison my coffee if I proposed separate tables. I have already lost too many tasters that way. Along the same vein you COULD add a type field to the general ledger balance file to represent plan, actual or statistics but I would never combine those disimilar types of data. So the line beween correct normalization and practicality often blurs for me. I think there is some grey and judgement in creating truly normalized table schema. After all who can truly say what is Normal? :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Sep 27 20:11:01 2007 From: john at winhaven.net (John Bartow) Date: Thu, 27 Sep 2007 20:11:01 -0500 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <001b01c8016c$6f45cbc0$6402a8c0@ScuzzPaq> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? From accessd at shaw.ca Thu Sep 27 20:29:06 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 18:29:06 -0700 Subject: [AccessD] sequel question In-Reply-To: Message-ID: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> Can a sequence of numbers be created in a sequel list? Example: Given a list like: George Sally Robert Henry John Mary Can the piece of sequel code be modified to produce/create the following list? George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 TIA Jim From fuller.artful at gmail.com Thu Sep 27 23:38:25 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 00:38:25 -0400 Subject: [AccessD] sequel question In-Reply-To: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> References: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> Message-ID: <29f585dd0709272138l769d08ectcb2afa47a063f35e@mail.gmail.com> I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 27 23:48:57 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 21:48:57 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <009c01c8018a$e13683a0$0301a8c0@HAL9005> That makes sense??!! I don't know what the hell I'm talkin' about! :) Access. Ya gotta love it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 7:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky OK, that makes sense. /gustav >>> rockysmolin at bchacc.com 27-09-2007 16:09 >>> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1033 - Release Date: 9/27/2007 11:06 AM From rockysmolin at bchacc.com Thu Sep 27 23:54:34 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 21:54:34 -0700 Subject: [AccessD] Cannot export to RTF from Access2007 In-Reply-To: <003301c80112$4c976b10$6401a8c0@XPcomputer> Message-ID: <009d01c8018b$aa123120$0301a8c0@HAL9005> I have encountered differences between mdbs and mdes on A2K3 and WXP where the mdb would run and the mde would fail. The only way I was able to trace it down was to put message boxes in the code after every line - MsgBox "Point 1", MsgBox "Point 2", MsgBox "Point 3", etc. Eventually I found a problem in the code that DIDN'T (!) raise an error in the mdb but failed in the mde. Access. Ya gotta love it. Not much help I know but that's my only experience with this. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Thursday, September 27, 2007 7:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot export to RTF from Access2007 I have a compiled Access2000 database running on Vista/Access2007. When I try to export any report to RTF, I get an error that Access is shutting down. On a second computer running Vista/Access2007, I get the error "Object variable or With block variable not set". (Not sure why there are different responses.) Non-compiled version of the database exports without an error on Vista/Access2007 machine. Either compiled or non-compiled database on the same computer in Access2003 exports fine. Either compiled or non-compiled database on a WindowsXP/Access2000 machine exports fine. Unfortunately, I don't have Access2007 on a non-Vista computer at the moment. Does anyone have any experience with this? TIA, Carolyn Johnson -- 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.488 / Virus Database: 269.13.32/1033 - Release Date: 9/27/2007 11:06 AM From fuller.artful at gmail.com Fri Sep 28 00:05:49 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 01:05:49 -0400 Subject: [AccessD] Friday (You Know) Message-ID: <29f585dd0709272205s2a3b0e4ay86f5c3db71a8e5fe@mail.gmail.com> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From accessd at shaw.ca Fri Sep 28 00:26:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 22:26:30 -0700 Subject: [AccessD] sequel question In-Reply-To: <29f585dd0709272138l769d08ectcb2afa47a063f35e@mail.gmail.com> Message-ID: <09BA612BDB304E349EAB6137545B2982@creativesystemdesigns.com> Hi Arthur: I was trying to make a complex problem simple but it does not seem to render down that easily. The problem is that there ended up being some duplicates in a table. They could be grouped out but I needed to be able to delete only the second duplicate. The solution was to select the matched data, put into a temp table sorted in descending order. Using half the record count of the temp table, used 'select top xx...' to create a sub-table in conjunction with In and Delete the records could be easily removed. DELETE * FROM RosterReportTemplate WHERE (RosterReportTemplate.RecNum In (select top " & intRecords & " recnum " from tblRecord ORDER BY recnum desc;));" Thanks for your help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 9:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] sequel question I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > 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 accessd at shaw.ca Fri Sep 28 00:34:45 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 22:34:45 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709272205s2a3b0e4ay86f5c3db71a8e5fe@mail.gmail.com> Message-ID: <7A41EE3974BD4911AF9F3CB97E8DAB4B@creativesystemdesigns.com> Hi Arthur: > If you think there are no bugs in your software, bet against it. Before > > the week is out, a user will prove your bet correct. You are correct Arthur and I will be working all night to make a client happy, I mean happier.... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 10:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday (You Know) Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 00:37:32 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 06:37:32 +0100 Subject: [AccessD] Create a BarGram from data Message-ID: <001b01c80191$ab761f30$8119fea9@LTVM> Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max From Gustav at cactus.dk Fri Sep 28 05:15:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 12:15:40 +0200 Subject: [AccessD] sequel question Message-ID: Hi Jim I read your original post again, and I must admit it did require a level of imagination well beyond mine to guess that this was what you tried to accomplish! /gustav >>> accessd at shaw.ca 28-09-2007 07:26 >>> Hi Arthur: I was trying to make a complex problem simple but it does not seem to render down that easily. The problem is that there ended up being some duplicates in a table. They could be grouped out but I needed to be able to delete only the second duplicate. The solution was to select the matched data, put into a temp table sorted in descending order. Using half the record count of the temp table, used 'select top xx...' to create a sub-table in conjunction with In and Delete the records could be easily removed. DELETE * FROM RosterReportTemplate WHERE (RosterReportTemplate.RecNum In (select top " & intRecords & " recnum " from tblRecord ORDER BY recnum desc;));" Thanks for your help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 9:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] sequel question I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > Jim From Gustav at cactus.dk Fri Sep 28 05:20:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 12:20:48 +0200 Subject: [AccessD] Friday (You Know) Message-ID: Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From max.wanadoo at gmail.com Fri Sep 28 05:35:59 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 11:35:59 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <00c701c801bb$5c82d790$8119fea9@LTVM> Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur -- 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 Sep 28 05:54:55 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 28 Sep 2007 11:54:55 +0100 Subject: [AccessD] Friday (You Know) Message-ID: <20070928105459.0B1594C87D@smtp.nildram.co.uk> Gustav, doesn't this prove Arthur's theory rather than oppose it? You would have bet against the wall coming down, therefore it did. "Whatever you imagine will happen will almost certainly not happen." - and vice-versa. -- 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] Friday (You Know) Date: 28/09/07 10:38 Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. 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 ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Sep 28 06:09:58 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 13:09:58 +0200 Subject: [AccessD] Friday (You Know) Message-ID: Hi Andy Well, if you state that something happens even when nothing happens (= "what happens is that nothing happens"). If so, Null has a value ... /gustav >>> andy at minstersystems.co.uk 28-09-2007 12:54 >>> Gustav, doesn't this prove Arthur's theory rather than oppose it? You would have bet against the wall coming down, therefore it did. "Whatever you imagine will happen will almost certainly not happen." - and vice-versa. -- 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] Friday (You Know) Date: 28/09/07 10:38 Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From cjlabs at worldnet.att.net Fri Sep 28 06:35:38 2007 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Fri, 28 Sep 2007 06:35:38 -0500 Subject: [AccessD] Cannot export to RTF from Access2007 References: <009d01c8018b$aa123120$0301a8c0@HAL9005> Message-ID: <003501c801c3$b2c20790$6401a8c0@XPcomputer> Thanks Rocky. I talked (!) to Microsoft last night and the database seems to be corrupted in some way that's only showing up in the compiled version running in 2007. I converted the 2000 database to 2002-2003 and compiled that (all on the Vista machine), and it now appears to be exporting to Word without crashing. However, when I imported all the 2000 version database objects to a new 2000 database and converted that to 2002-2003 on my XP machine, the compiled version will not work in 2007 on the Vista machine. So, I'm still working trying to understand what's going on and make sure I have a true working version. I was surprised to find out this is a corruption issue. Carolyn Johnson ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 27, 2007 11:54 PM Subject: Re: [AccessD] Cannot export to RTF from Access2007 >I have encountered differences between mdbs and mdes on A2K3 and WXP where > the mdb would run and the mde would fail. > > The only way I was able to trace it down was to put message boxes in the > code after every line - MsgBox "Point 1", MsgBox "Point 2", MsgBox "Point > 3", etc. Eventually I found a problem in the code that DIDN'T (!) raise > an > error in the mdb but failed in the mde. > > Access. Ya gotta love it. > > Not much help I know but that's my only experience with this. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson > Sent: Thursday, September 27, 2007 7:26 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Cannot export to RTF from Access2007 > > I have a compiled Access2000 database running on Vista/Access2007. > > When I try to export any report to RTF, I get an error that Access is > shutting down. On a second computer running Vista/Access2007, I get the > error "Object variable or With block variable not set". (Not sure why > there > are different responses.) > > Non-compiled version of the database exports without an error on > Vista/Access2007 machine. > > Either compiled or non-compiled database on the same computer in > Access2003 > exports fine. > > Either compiled or non-compiled database on a WindowsXP/Access2000 machine > exports fine. > > Unfortunately, I don't have Access2007 on a non-Vista computer at the > moment. > > > Does anyone have any experience with this? > > > TIA, > Carolyn Johnson > > > > > -- > 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.488 / Virus Database: 269.13.32/1033 - Release Date: > 9/27/2007 > 11:06 AM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Fri Sep 28 06:43:28 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 28 Sep 2007 07:43:28 -0400 Subject: [AccessD] Friday (You Know) References: Message-ID: <002801c801c4$caade170$0202a8c0@Laptop> You know, of course, that based upon conclusions from probability and statistics that the universe and life now exist. They 'prove' Arthur's theory :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, September 28, 2007 7:09 AM Subject: Re: [AccessD] Friday (You Know) > Hi Andy > > Well, if you state that something happens even when nothing happens (= > "what happens is that nothing happens"). If so, Null has a value ... > > /gustav From robert at webedb.com Fri Sep 28 07:06:17 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 07:06:17 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281212.l8SCCIJ2001793@databaseadvisors.com> Jim, This is a fact table in a data warehouse.mart. That is exactly what they are designed for. I am glad I got some conversation started on this. I think it has been good for others to hear how we all do things. And, FYI, I generally do use a lookup for gender also, and unknown is one of the choices. It is also updatable by the end users as are all my lookups. I think that using tables for the lookup allows the end user to "customize" the application to how they want to use it. And, not necessarily just use it the way I originally planned. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 13:33:59 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >I agree on lookup tables but how about "rollup" tables? Here is an >example I happen to be working on at the moment. >Assume a table with general ledger amounts. >fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept >fldAmount. > >All the accts for a given month,year and company create the trial >balance. Now suppose you don't want to see every account in your report >but would prefer summary accounts, ie "Sales" is comprised of Accounts >"product sales","labor Sales" ,"Service Sales",etc., "General and >administrative expense" is comprised of "salaries", "travel and >entertainment", "rent", etc. You certainly wouldn't just tack a rollup >field onto the general ledger balance file but would create a file with >fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this >table to the GL balance file on fldAcctnumber, create a groupby query >and voila, you have a summary trial balance. >This works so well you realize that many other rollups exist, ie you >might want to create a "tax books" rollup or "cashflow" rollup all using >the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription >structure to add together different GL accounts together to produce the >desired result. You can create separate tables for each rollup structure >or add a type code to the one rollup table and filter based on the >desired rollup required for a particular report. Which choice is >properly normalized? Which is most practical? > >Jim Hale From robert at webedb.com Fri Sep 28 07:25:12 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 07:25:12 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281227.l8SCRIoR013237@databaseadvisors.com> Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale From max.wanadoo at gmail.com Fri Sep 28 07:41:35 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 13:41:35 +0100 Subject: [AccessD] Mucking around In-Reply-To: <200709281227.l8SCRIoR013237@databaseadvisors.com> Message-ID: <011c01c801cc$e8a717c0$8119fea9@LTVM> Hi Robert, Believe it or not, I can actually understand it the way you described it. So, using your example, the sales would feed into the Fact Table and Reports would be run on the Fact table and pull info from the Customer Table. Is this correct? Am I also correct in saying that this schema is highly inefficient in terms of data storage but highly efficient in terms of speed of reports? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 1:25 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 07:51:00 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 13:51:00 +0100 Subject: [AccessD] FW: Create a BarGram from data Message-ID: <011e01c801ce$392f96d0$8119fea9@LTVM> Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 28 08:00:12 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Sep 2007 09:00:12 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <00c701c801bb$5c82d790$8119fea9@LTVM> Message-ID: <46fcfad1.1387460a.3848.6372@mx.google.com> Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) Susan H. From jwcolby at colbyconsulting.com Fri Sep 28 08:07:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 09:07:10 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <46fcfad1.1387460a.3848.6372@mx.google.com> References: <00c701c801bb$5c82d790$8119fea9@LTVM> <46fcfad1.1387460a.3848.6372@mx.google.com> Message-ID: <001f01c801d0$7ec368a0$6c7aa8c0@M90> And I put that theory into effect many days! John 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: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 28 08:09:12 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:09:12 -0400 Subject: [AccessD] Object variable or With block variable not set Message-ID: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur From carbonnb at gmail.com Fri Sep 28 08:19:04 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 28 Sep 2007 09:19:04 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: On 9/28/07, Arthur Fuller wrote: > I'm getting this message in running some code in Excel. Everything appears > to work fine but I get this message at the end of the run. No idea why. Any > suggestions? Can we see the 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 max.wanadoo at gmail.com Fri Sep 28 08:19:36 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:19:36 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <001f01c801d0$7ec368a0$6c7aa8c0@M90> Message-ID: <012a01c801d2$3866f2d0$8119fea9@LTVM> The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) And I put that theory into effect many days! John 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: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) 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 max.wanadoo at gmail.com Fri Sep 28 08:23:49 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:23:49 +0100 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: <013101c801d2$cea244c0$8119fea9@LTVM> This *normally* means that you are referencing an object which has not been SET or that if it has been SET that it has lost its focus and gone out of existence. When I had this error recently, it was because I had Set Rst = nothing in the code and then in the exit section tried to set it to nothing again. If neither is the case for you, then something else is setting the object to nothing. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Object variable or With block variable not set I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 28 08:27:18 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Sep 2007 09:27:18 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <012a01c801d2$3866f2d0$8119fea9@LTVM> Message-ID: <46fd011b.2887460a.2c91.675a@mx.google.com> I think that qualifies for a government grant, right????? Susan H. The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" From fuller.artful at gmail.com Fri Sep 28 08:28:11 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:28:11 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <012a01c801d2$3866f2d0$8119fea9@LTVM> References: <001f01c801d0$7ec368a0$6c7aa8c0@M90> <012a01c801d2$3866f2d0$8119fea9@LTVM> Message-ID: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > From fuller.artful at gmail.com Fri Sep 28 08:29:45 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:29:45 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <013101c801d2$cea244c0$8119fea9@LTVM> References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> <013101c801d2$cea244c0$8119fea9@LTVM> Message-ID: <29f585dd0709280629v7b6b510cocd03c0968f51fd9c@mail.gmail.com> That's interesting. Thanks, Max. I will check my sweet nothings at the end of the code. Arthur On 9/28/07, max.wanadoo at gmail.com wrote: > > This *normally* means that you are referencing an object which has not > been > SET or that if it has been SET that it has lost its focus and gone out of > existence. When I had this error recently, it was because I had Set Rst = > nothing in the code and then in the exit section tried to set it to > nothing > again. If neither is the case for you, then something else is setting the > object to nothing. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, September 28, 2007 2:09 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Object variable or With block variable not set > > I'm getting this message in running some code in Excel. Everything appears > to work fine but I get this message at the end of the run. No idea why. > Any > suggestions? > > TIA, > 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 max.wanadoo at gmail.com Fri Sep 28 08:40:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:40:54 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <46fd011b.2887460a.2c91.675a@mx.google.com> Message-ID: <013d01c801d5$31f8f440$8119fea9@LTVM> Too true, Susan. Will you be kind enough to sponsor it through for me. When you have successfully recived the dosh, keep half for yourself and send the rest to me. No rush, by the end of next week will be fine. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 28, 2007 2:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) I think that qualifies for a government grant, right????? Susan H. The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 08:43:02 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:43:02 +0100 Subject: [AccessD] Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: <014401c801d5$7e907f80$8119fea9@LTVM> Arthur, That is just so easy to do. My code is riddled with them. All subtle and all designed to pop-up at the least opportune moment. In fact, I am not even going to enter the competition cos I will win hands down! On second thoughs - what prize are you offering? Max Ps. I used to subscribe to that publication and to the Foxpro one and the Access one. No wonder I developed such bad habits (grin). Pps. When you find the reason why your "Object Variable not set" is not working, you are forbidden to submit it as one of the entries. Ok? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known > as "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ConstanceBurke at oasas.state.ny.us Fri Sep 28 08:46:27 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 09:46:27 -0400 Subject: [AccessD] error message when running a subreport Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 From fuller.artful at gmail.com Fri Sep 28 08:49:44 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:49:44 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: <29f585dd0709280649l5e539cc4j7dcb6ebd3b9a65ea@mail.gmail.com> The code is way too long for a message here, Bryan. The up-side is that it runs and does what it's supposed to. It opens about 100 Excel files, grabs information from them and creates a new file with 50-odd pages. All the things the code does are encapsulated in subs; it's the outermost one that breaks. It's weird but it must have to do with the "set x = nothing" statements at the end. Breakpoints are in order, I guess, and single-stepping. Arthur On 9/28/07, Bryan Carbonnell wrote: > > On 9/28/07, Arthur Fuller wrote: > > I'm getting this message in running some code in Excel. Everything > appears > > to work fine but I get this message at the end of the run. No idea why. > Any > > suggestions? > > Can we see the code? > From andy at minstersystems.co.uk Fri Sep 28 08:49:46 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 28 Sep 2007 14:49:46 +0100 Subject: [AccessD] Friday (You Know) Message-ID: <20070928134950.8F3AC308603@smtp.nildram.co.uk> Cliiper Advisor eh. Blimey Arthur, I was one of your readers. -- 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] Friday (You Know) Date: 28/09/07 13:29 Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- 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 reuben at gfconsultants.com Fri Sep 28 08:54:07 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 09:54:07 -0400 Subject: [AccessD] A2K - Locking Problem Message-ID: I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 From max.wanadoo at gmail.com Fri Sep 28 09:02:21 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:02:21 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: Message-ID: <016e01c801d8$3104eff0$8119fea9@LTVM> Hi Reuben, When I get this, it is because my system thinks (or actually has) two versions of the same mdb open running simultaneously, matching each of my keystrokes. It might be a memory leak or similar. If I reboot the PC the problem disappears. Sometimes looking at the Task Manager give a clue. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 2:54 PM To: AccessD Subject: [AccessD] A2K - Locking Problem I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 09:04:26 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:04:26 +0100 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280649l5e539cc4j7dcb6ebd3b9a65ea@mail.gmail.com> Message-ID: <018701c801d8$7b6501c0$8119fea9@LTVM> Given what you have just said, it might be that the first sub down actually uses the SAME object set in the main code, then releases it on exiting, thus the main code no longer has the object. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Object variable or With block variable not set The code is way too long for a message here, Bryan. The up-side is that it runs and does what it's supposed to. It opens about 100 Excel files, grabs information from them and creates a new file with 50-odd pages. All the things the code does are encapsulated in subs; it's the outermost one that breaks. It's weird but it must have to do with the "set x = nothing" statements at the end. Breakpoints are in order, I guess, and single-stepping. Arthur On 9/28/07, Bryan Carbonnell wrote: > > On 9/28/07, Arthur Fuller wrote: > > I'm getting this message in running some code in Excel. Everything > appears > > to work fine but I get this message at the end of the run. No idea why. > Any > > suggestions? > > Can we see the code? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at webedb.com Fri Sep 28 09:05:34 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 09:05:34 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281407.l8SE7JxW015012@databaseadvisors.com> Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and Reports >would be run on the Fact table and pull info from the Customer Table. Is >this correct? >Am I also correct in saying that this schema is highly inefficient in terms >of data storage but highly efficient in terms of speed of reports? > >Ta > >Max From max.wanadoo at gmail.com Fri Sep 28 09:21:10 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:21:10 +0100 Subject: [AccessD] Mucking around In-Reply-To: <200709281407.l8SE7JxW015012@databaseadvisors.com> Message-ID: <019601c801da$d1b69000$8119fea9@LTVM> Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 09:21:22 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:21:22 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <016e01c801d8$3104eff0$8119fea9@LTVM> Message-ID: The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of my > keystrokes. It might be a memory leak or similar. If I reboot the PC the > problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically > trying to say > that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This is > occurring even if only one person is using the app. And even then the ldb > is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From robin at musicalmemories.co.uk Fri Sep 28 09:12:17 2007 From: robin at musicalmemories.co.uk (Robin ) Date: Fri, 28 Sep 2007 15:12:17 +0100 Subject: [AccessD] A2K - Locking Problem Message-ID: <560E2B80EC8F624B93A87B943B7A9CD55307CB@rgiserv.rg.local> Hi Reuben, I've had this caused by a corrupt record - especially when I used to use memofields. Check the underlying table to see if there are any field containing #error Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: 28 September 2007 15:21 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give > a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 09:29:35 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:29:35 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: Message-ID: <01a401c801db$fea45fb0$8119fea9@LTVM> What about rebooting the pc that the problem appears on. In my case, it never affected the backend (server), just the pc. Or are you saying that the user does not have a frontend/backend setup and that each pc uses the same single mdb over the network? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 3:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 09:42:00 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:42:00 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <01a401c801db$fea45fb0$8119fea9@LTVM> Message-ID: There is one data file and they each have a FE. The local PC's reboot every morning (shut down every evening). Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > What about rebooting the pc that the problem appears on. In my case, it > never affected the backend (server), just the pc. > Or are you saying that the user does not have a frontend/backend setup and > that each pc uses the same single mdb over the network? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 3:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > The IT department refuses to reboot the server the mdb resides on. They > want to complain about a problem, but won't do one thing I've > asked them to > do. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > max.wanadoo at gmail.com > > Sent: Friday, September 28, 2007 10:02 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] A2K - Locking Problem > > > > > > Hi Reuben, > > When I get this, it is because my system thinks (or actually has) two > > versions of the same mdb open running simultaneously, matching each of > > my keystrokes. It might be a memory leak or similar. If I reboot the > > PC the problem disappears. Sometimes looking at the Task Manager give a > clue. > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > > Cummings > > Sent: Friday, September 28, 2007 2:54 PM > > To: AccessD > > Subject: [AccessD] A2K - Locking Problem > > > > I have a client that is receiving messages stating "The Microsoft Jet > > Database engine stopped the process because you..." Basically trying > > to say that the record has been edited by someone else. > > > > This has happened several times lately. There is always a .ldb hangin > > around after closing the app (by all users - there are 4 users). This > > is occurring even if only one person is using the app. And even then > > the ldb is still not deleted. > > > > Any ideas? > > > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Fri Sep 28 09:42:00 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:42:00 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD55307CB@rgiserv.rg.local> Message-ID: I am having the db sent to me again right now so that I can look at this very thing, Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robin > Sent: Friday, September 28, 2007 10:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > I've had this caused by a corrupt record - especially when I used to use > memofields. > Check the underlying table to see if there are any field containing > #error > Rgds > Robin Lawrence > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: 28 September 2007 15:21 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > > The IT department refuses to reboot the server the mdb resides on. They > want to complain about a problem, but won't do one thing I've asked them > to do. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > max.wanadoo at gmail.com > > Sent: Friday, September 28, 2007 10:02 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] A2K - Locking Problem > > > > > > Hi Reuben, > > When I get this, it is because my system thinks (or actually has) two > > versions of the same mdb open running simultaneously, matching each of > > > my keystrokes. It might be a memory leak or similar. If I reboot the > > PC the problem disappears. Sometimes looking at the Task Manager give > > > a clue. > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > > Cummings > > Sent: Friday, September 28, 2007 2:54 PM > > To: AccessD > > Subject: [AccessD] A2K - Locking Problem > > > > I have a client that is receiving messages stating "The Microsoft Jet > > Database engine stopped the process because you..." Basically trying > > to say that the record has been edited by someone else. > > > > This has happened several times lately. There is always a .ldb hangin > > > around after closing the app (by all users - there are 4 users). This > > > is occurring even if only one person is using the app. And even then > > the ldb is still not deleted. > > > > Any ideas? > > > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sep 28 09:54:20 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 28 Sep 2007 10:54:20 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: References: <016e01c801d8$3104eff0$8119fea9@LTVM> Message-ID: <000a01c801df$74308210$8abea8c0@XPS> Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of my > keystrokes. It might be a memory leak or similar. If I reboot the PC the > problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically > trying to say > that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This is > occurring even if only one person is using the app. And even then the ldb > is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Sep 28 10:19:58 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 10:19:58 -0500 Subject: [AccessD] error message when running a subreport In-Reply-To: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> References: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> Message-ID: Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ConstanceBurke at oasas.state.ny.us Fri Sep 28 10:28:31 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 11:28:31 -0400 Subject: [AccessD] error message when running a subreport In-Reply-To: Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3421@ALBMX2K3.rt.oasas.state.ny.us> Thanks - I caught that one - I had just written it wrong in the e-mail... in trying to figure this out I realized I had changed a variable name in one of the queries which resulted in Access renaming it as an .mdb file - I ran the auto correct and also updated the default file format to Access 2002-2003. (I am using Access2003 version.) I am now going to see of that makes any difference. Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] error message when running a subreport Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:28:36 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 10:28:36 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: How about one that misses a negative zero? (obviously not an issue in VB or VBA) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 10:33:11 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:33:11 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data Message-ID: <01ce01c801e4$e258f0b0$8119fea9@LTVM> Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 10:33:11 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:33:11 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <000a01c801df$74308210$8abea8c0@XPS> Message-ID: <01cf01c801e4$e35a8230$8119fea9@LTVM> Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:34:42 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 28 Sep 2007 10:34:42 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> References: <001f01c801d0$7ec368a0$6c7aa8c0@M90><012a01c801d2$3866f2d0$8119f ea9@LTVM> <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: Those are more along the lines of dragons than bugs, as in "I be dragon my sorry butt in on Saturday to try and figure out what broke before they fire me" :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- 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 ConstanceBurke at oasas.state.ny.us Fri Sep 28 10:48:26 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 11:48:26 -0400 Subject: [AccessD] error message when running a subreport In-Reply-To: Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD345D@ALBMX2K3.rt.oasas.state.ny.us> Revised question - when I try to run my report, why am I getting an error message that says it can't find the queryname.mdb? The proper query exists in the database. Why is Access looking for the query with the .mdb extension? Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] error message when running a subreport Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:46:18 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 08:46:18 -0700 Subject: [AccessD] Mucking around In-Reply-To: <011c01c801cc$e8a717c0$8119fea9@LTVM> References: <200709281227.l8SCRIoR013237@databaseadvisors.com> <011c01c801cc$e8a717c0$8119fea9@LTVM> Message-ID: It's not inefficient for data STORAGE because that's what a data warehouse does. It would be inefficient to use this schema for data ENTRY. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 5:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Hi Robert, Believe it or not, I can actually understand it the way you described it. So, using your example, the sales would feed into the Fact Table and Reports would be run on the Fact table and pull info from the Customer Table. Is this correct? Am I also correct in saying that this schema is highly inefficient in terms of data storage but highly efficient in terms of speed of reports? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 1:25 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 28 10:51:02 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 11:51:02 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: References: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > From Donald.A.McGillivray at sprint.com Fri Sep 28 10:51:04 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 10:51:04 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01ce01c801e4$e258f0b0$8119fea9@LTVM> References: <01ce01c801e4$e258f0b0$8119fea9@LTVM> Message-ID: Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:51:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 08:51:43 -0700 Subject: [AccessD] Mucking around In-Reply-To: <019601c801da$d1b69000$8119fea9@LTVM> References: <200709281407.l8SE7JxW015012@databaseadvisors.com> <019601c801da$d1b69000$8119fea9@LTVM> Message-ID: Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 10:59:41 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:59:41 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <01e101c801e8$954ea9a0$8119fea9@LTVM> I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:01:50 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:01:50 +0100 Subject: [AccessD] Mucking around In-Reply-To: Message-ID: <01e501c801e8$e2621ba0$8119fea9@LTVM> Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:06:14 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:06:14 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Message-ID: <01eb01c801e9$7f737560$8119fea9@LTVM> Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 28 11:06:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 09:06:49 -0700 Subject: [AccessD] Mucking around In-Reply-To: <01e501c801e8$e2621ba0$8119fea9@LTVM> References: <01e501c801e8$e2621ba0$8119fea9@LTVM> Message-ID: Robert is the person to answer your questions, but a data warehouse is for reporting, nothing else. So it's set up to allow you to slice and dice and examine information in all sorts of ways at top speed. It is NOT designed for you to enter data. In fact, the data doesn't even have to come from the same database, when you get right down to it. So you could build a data warehouse, move data into it from your existing database, and then analyze and report on the data from the data warehouse. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 11:08:15 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 09:08:15 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: <01eb01c801e9$7f737560$8119fea9@LTVM> References: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> <01eb01c801e9$7f737560$8119fea9@LTVM> Message-ID: The problem I've always had with zeroes is when a floating point error nudges zero just a bit waaaaaay over to the right of the decimal point. Thank goodness for current/money types. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew From DWUTKA at Marlow.com Fri Sep 28 11:17:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:17:50 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Message-ID: Well, zero is still zero, but if you work with a signed integer, it is possible to have the sign as negative, and the value as zero. In doing a comparison, the process sees that as unequal, even though the value is technically the same. My boss loves to tell his 'negative zero' story....it would take 3 pages to share, so I'll spare ya'll the boredom! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 28 11:21:47 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:21:47 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <01eb01c801e9$7f737560$8119fea9@LTVM> Message-ID: VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Jim.Hale at FleetPride.com Fri Sep 28 11:28:28 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 28 Sep 2007 11:28:28 -0500 Subject: [AccessD] FW: Create a BarGram from data In-Reply-To: <011e01c801ce$392f96d0$8119fea9@LTVM> References: <011e01c801ce$392f96d0$8119fea9@LTVM> Message-ID: I am sending you an Excel sheet with example progress meters. Maybe the code will give you some hints. HTH Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 max.wanadoo at gmail.com Fri Sep 28 11:31:56 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:31:56 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <01f201c801ed$169c5440$8119fea9@LTVM> Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Sep 28 11:31:35 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 11:31:35 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01e101c801e8$954ea9a0$8119fea9@LTVM> References: <01e101c801e8$954ea9a0$8119fea9@LTVM> Message-ID: Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:36:13 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:36:13 +0100 Subject: [AccessD] FW: Create a BarGram from data In-Reply-To: Message-ID: <01f601c801ed$afea6470$8119fea9@LTVM> Thanks Jim, you're a champ! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, September 28, 2007 5:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Create a BarGram from data I am sending you an Excel sheet with example progress meters. Maybe the code will give you some hints. HTH Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Sep 28 11:39:04 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 11:39:04 -0500 Subject: [AccessD] Continuous Form Issue Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> A2003 I have a bound continuous form that has an Option Group and a Combo Box. What I would like to do is to update the Option Group and change the rowsource of the Combo Box without changing the other records. The purpose of the continuous form is to represent hardware and software line items on a purchase order form. The Option Group has two option buttons labeled HW and SW. I need to change the rowsource using the option group buttons between two different queries without changing the other combo boxes on the continuous form. Is this possible? MTIA Jim From DWUTKA at Marlow.com Fri Sep 28 11:39:55 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:39:55 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <01f201c801ed$169c5440$8119fea9@LTVM> Message-ID: Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 12:02:17 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 18:02:17 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <01fd01c801f1$53b69580$8119fea9@LTVM> It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 12:08:36 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 18:08:36 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <020301c801f2$35c38aa0$8119fea9@LTVM> Sorry Drew, What I meant was: Arthur said: Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Is this going to happy when a Currency Type is used? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Sep 28 12:11:28 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 12:11:28 -0500 Subject: [AccessD] Mucking around In-Reply-To: <01e501c801e8$e2621ba0$8119fea9@LTVM> References: <01e501c801e8$e2621ba0$8119fea9@LTVM> Message-ID: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> Max, I think of it this way (this is not a technical explanation): -Normalized data (in a normalized data structure) is the basis for how one enters, stores and maintains data. -Queries, reports, labels, graphs, web data, data streams, transactional systems, data warehouse/marts, etc. are all products of efficiently entered and stored data. They are _derived_ from the normalized data. In theory, the more efficiently stored (normalized) the more precise. Some of the arguments you will see here are based on efficiency of accessing/maintaining/editing the data more so than efficient storage of the data. There will be compromises made due to the complexity of dealing with normalized data to scenarios that do not allow for full normalization of data and/or those who do not fully understand the ideology (yes, I purposefully stated it that way) of normalization (this means almost all programmers who are not first DBAs ;o) This doesn't infer that anyone is doing anything wrong, just that some things aren't done according to the rules of normalization. As for the technical explanations I will not venture into that realm as we have people much more adept here than I. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max From Donald.A.McGillivray at sprint.com Fri Sep 28 12:34:24 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 12:34:24 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01fd01c801f1$53b69580$8119fea9@LTVM> References: <01fd01c801f1$53b69580$8119fea9@LTVM> Message-ID: Max, Or more simply: MaxRectangleHeight = 4 * 1440 NewRectangleHeight = (Raised / Target) * MaxRectangleHeight Me!rctRaised.Height = NewRectangleHeight That's about the way I've done it. Good luck! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 12:52:37 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 28 Sep 2007 10:52:37 -0700 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: Hi Arthur: Had a similar error some time ago and it was due to an out-of-scope error. Either the variable/object being addressed is not sufficiently global; the snippet/object that spawned the variable/object is closed/being closed or is unreachable. It may be just an error caused by not closing objects in the correct order... an Excel thing. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 6:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Object variable or With block variable not set I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 12:47:08 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 13:47:08 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> Message-ID: Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > Jim > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Fri Sep 28 13:11:04 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:11:04 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <020d01c801fa$f0230da0$8119fea9@LTVM> Thanks Don, that is Ace! I will use that as it looks nice and simple. Jim: Thanks for sending the Excel Code. It is appreciated. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 6:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Or more simply: MaxRectangleHeight = 4 * 1440 NewRectangleHeight = (Raised / Target) * MaxRectangleHeight Me!rctRaised.Height = NewRectangleHeight That's about the way I've done it. Good luck! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 13:23:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 28 Sep 2007 11:23:08 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <2D8FCD192A434711B558560DF9DD8288@creativesystemdesigns.com> ...or times a hundred into an integer and divide by a hundred back into a long. (The old techniques.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 9:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) The problem I've always had with zeroes is when a floating point error nudges zero just a bit waaaaaay over to the right of the decimal point. Thank goodness for current/money types. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Sep 28 13:18:32 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:18:32 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: References: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 max.wanadoo at gmail.com Fri Sep 28 13:21:39 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:21:39 +0100 Subject: [AccessD] Mucking around In-Reply-To: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> Message-ID: <020e01c801fc$6ad269a0$8119fea9@LTVM> Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, September 28, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, I think of it this way (this is not a technical explanation): -Normalized data (in a normalized data structure) is the basis for how one enters, stores and maintains data. -Queries, reports, labels, graphs, web data, data streams, transactional systems, data warehouse/marts, etc. are all products of efficiently entered and stored data. They are _derived_ from the normalized data. In theory, the more efficiently stored (normalized) the more precise. Some of the arguments you will see here are based on efficiency of accessing/maintaining/editing the data more so than efficient storage of the data. There will be compromises made due to the complexity of dealing with normalized data to scenarios that do not allow for full normalization of data and/or those who do not fully understand the ideology (yes, I purposefully stated it that way) of normalization (this means almost all programmers who are not first DBAs ;o) This doesn't infer that anyone is doing anything wrong, just that some things aren't done according to the rules of normalization. As for the technical explanations I will not venture into that realm as we have people much more adept here than I. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 13:29:27 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:29:27 +0100 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: <020f01c801fd$815a46b0$8119fea9@LTVM> Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 reuben at gfconsultants.com Fri Sep 28 13:31:23 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 14:31:23 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: Are these bound combo boxes? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Thanks... I tried it and it didn't work. > I have also tried the following: > 1. after update event of the Option group to refresh the combo box > 2. on enter event of the Combo Box to refresh combo box > 3. put everything into one table with a filter on a field > referencing the Option Group - using either 1 or 2 above > 4. used requery > 5. used repaint > 6. I've tried locking each one if it has a value but that really > doesn't work... it locks the entire form > > What occurs after the refresh/requery/repaint the combo box drop > down changes as required.... however, each combo box on each > continuous form changes to what was clicked in the Option Group > regardless of the Option Group on the form it resides. > > For example: > Three "rows" (continuous forms [CF]) > 1 - HW > 2 - SW > 3 - HW > > If a new record (CF) is added the Option Group is clicked the > previous CFs change to reflect the value. In this case if SW > option is chosen 1 and 3 above changes. > > Does that make sense? > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 12:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Do you mean the combo box recordsource should change based on the Option > Group for that record? > > If so, then just change the recordsource on the On_Current event. > This will > change it everytime someone changes records. > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 12:39 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Continuous Form Issue > > > > > > A2003 > > > > I have a bound continuous form that has an Option Group and a Combo Box. > > What I would like to do is to update the Option Group and change the > > rowsource of the Combo Box without changing the other records. > > The purpose of the continuous form is to represent hardware and software > > line items on a purchase order form. > > The Option Group has two option buttons labeled HW and SW. > > I need to change the rowsource using the option group buttons between > > two different queries without changing the other combo boxes on the > > continuous form. > > Is this possible? > > > > MTIA > > > > 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 jedi at charm.net Fri Sep 28 13:24:46 2007 From: jedi at charm.net (Michael Bahr) Date: Fri, 28 Sep 2007 14:24:46 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking > an expression and creating a camel case (or PascalCase) expression. > > I get CSV files with headers in them. All too often the eejits that > created > the databases they came from used embedded spaces or other special use > characters (!@#$%^&* etc) in their field names. I need to strip these > special characters out completely. I also need to upper case the valid > alpha character that follows any of these special characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today > I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 JHewson at karta.com Fri Sep 28 13:48:56 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:48:56 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: <020f01c801fd$815a46b0$8119fea9@LTVM> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> <020f01c801fd$815a46b0$8119fea9@LTVM> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 JHewson at karta.com Fri Sep 28 13:49:20 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:49:20 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C7@karta-exc-int.Karta.com> Yes. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 1:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Are these bound combo boxes? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Thanks... I tried it and it didn't work. > I have also tried the following: > 1. after update event of the Option group to refresh the combo box > 2. on enter event of the Combo Box to refresh combo box > 3. put everything into one table with a filter on a field > referencing the Option Group - using either 1 or 2 above > 4. used requery > 5. used repaint > 6. I've tried locking each one if it has a value but that really > doesn't work... it locks the entire form > > What occurs after the refresh/requery/repaint the combo box drop > down changes as required.... however, each combo box on each > continuous form changes to what was clicked in the Option Group > regardless of the Option Group on the form it resides. > > For example: > Three "rows" (continuous forms [CF]) > 1 - HW > 2 - SW > 3 - HW > > If a new record (CF) is added the Option Group is clicked the > previous CFs change to reflect the value. In this case if SW > option is chosen 1 and 3 above changes. > > Does that make sense? > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 12:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Do you mean the combo box recordsource should change based on the Option > Group for that record? > > If so, then just change the recordsource on the On_Current event. > This will > change it everytime someone changes records. > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 12:39 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Continuous Form Issue > > > > > > A2003 > > > > I have a bound continuous form that has an Option Group and a Combo Box. > > What I would like to do is to update the Option Group and change the > > rowsource of the Combo Box without changing the other records. > > The purpose of the continuous form is to represent hardware and software > > line items on a purchase order form. > > The Option Group has two option buttons labeled HW and SW. > > I need to change the rowsource using the option group buttons between > > two different queries without changing the other combo boxes on the > > continuous form. > > Is this possible? > > > > MTIA > > > > 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 john at winhaven.net Fri Sep 28 13:48:33 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:48:33 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <003f01c80200$2bf98ed0$6402a8c0@ScuzzPaq> It goes through "transformation" from normalized data into the data warehouse. Basic data elements into product. Think of it as similar to using tables to create a query. In turn the query may be used to create a report. The data is the same but presented in the format needed for the purpose of creating a report and then being observed by people. The query is no way to store data but is a way to combine data into the use it serves at that moment. The report is no way to store data but is a way to present it in a format that is human friendly. Likewise a data warehouse is a specific use (product) of the basic data that presents it - or transforms it - into a different format. Not a format that you would want to store it in but one that allows for the analysis done via data warehousing. I feel like I'm starting to sound like one of Drew's analogies ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com What I don't understand is how we get from that to Data Marts. From john at winhaven.net Fri Sep 28 13:53:38 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:53:38 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004001c80200$e1441490$6402a8c0@ScuzzPaq> Use a normalized data structure. It is the flexible and efficient way of entering/storing/maintaining data. Creating a flat file derived from the data in a normalized data structure can be as easy as creating a select query. Don't use flat file for data storage. That would create redundancy, inefficiency and well, eventually a mess. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. From jwcolby at colbyconsulting.com Fri Sep 28 14:01:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 15:01:50 -0400 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <003901c80202$07724aa0$6c7aa8c0@M90> Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max From john at winhaven.net Fri Sep 28 13:58:46 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:58:46 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004101c80201$98d1faa0$6402a8c0@ScuzzPaq> Not for reports. You can use other products but there is rarely a need for that. For data transformation into a data warehouse - more than likely. I would imagine there are some on this list that have coded transformation into an Access module though. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com When it then comes to pulling the data out into reports are we talking about using software other than Access? From max.wanadoo at gmail.com Fri Sep 28 14:06:30 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:06:30 +0100 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> Message-ID: <021c01c80202$ae9fd680$8119fea9@LTVM> Oh, just re-read your requirement. You are using continuous forms. I recently posted something for Arthur based on datasheets. The same *may* work for continuous forms. You can download it here: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip It will be the second option you require, but have a look at it all. As I say, it was written for a datasheet but may help you. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 john at winhaven.net Fri Sep 28 14:03:50 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 14:03:50 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004201c80202$4e451700$6402a8c0@ScuzzPaq> Terminology happens :o) Conceptually I think the easiest way to understand it is using the Query/Report analogy. You create a Query which makes it possible/easier/more efficient to create a specific Report. Its a means to produce a product. Remember, rarely does any lay person care about HOW data is stored, they generally only care about how it is presented (product). Its up to the DBA to store it correctly so that it can be presented in any one of the myriad of ways it can be used/presented in the future. The granularity of a properly normalized data structure allows for the most flexibility in this regards. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" From jimdettman at verizon.net Fri Sep 28 14:08:52 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 28 Sep 2007 15:08:52 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <01cf01c801e4$e35a8230$8119fea9@LTVM> References: <000a01c801df$74308210$8abea8c0@XPS> <01cf01c801e4$e35a8230$8119fea9@LTVM> Message-ID: <001d01c80203$0315d8e0$8abea8c0@XPS> Works here. Did you cut & paste or click on it directly? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 14:11:24 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:11:24 +0100 Subject: [AccessD] Mucking around In-Reply-To: <003901c80202$07724aa0$6c7aa8c0@M90> Message-ID: <021d01c80203$5d337530$8119fea9@LTVM> Thanks John (and all those who posted). I will go through all of the posts over the weekend. Lots to get my head around. Have a good weekend, all of you great guys. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 14:10:37 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 15:10:37 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C7@karta-exc-int.Karta.com> Message-ID: So the SW and HW options are stored in two different tables? Are the "ID's" in these two tables the same? For example,... HW Item HW ID HW 1 1 HW 2 2 HW 3 3 SW Item SW ID SW 1 1 SW 2 2 SW 3 3 If this is roughly the case then as the combo's change it is seeing the new idea from the wrong table and returns the item from the wrong table. If the ID of HW 1 is stored (1) then when the rowsource is changed to match the SW option the rowsource now runs using 1 as the ID which returns SW 1 because you changed tables, but are still using 1 as the ID to search on. Changing rowsources on a combo on a continuos form is tricky if you are trying to change completely what you are showing. I think you will always have a problem of some sort with this. I think even if you get it to NOT show the "wrong" item it may very well be blank if the current record is the other type. What I mean is if you select SW then the HW combos may be blank at best. Combos on a continous form are tricky. Cany you use a "static" continuous form that only "shows" the selections and allow a double-click (or other) starting option that gets the user to entry portion? This way you could use queries to put the correct description with the correct ID number based on the Type selected. The form would show SW SW2 SW SW3 HW HW1 , for example But these would all be listed in text boxes because you have already set the text correctly. A double click on the type field would pop up a form to edit this record or add a new record. Your combo changing would be eliminated because you are only showing one record at a time on the add/edit form. I'll be back Monday to help out if I can. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Yes. > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 1:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Are these bound combo boxes? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 2:19 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Continuous Form Issue > > > > > > Thanks... I tried it and it didn't work. > > I have also tried the following: > > 1. after update event of the Option group to refresh the combo box > > 2. on enter event of the Combo Box to refresh combo box > > 3. put everything into one table with a filter on a field > > referencing the Option Group - using either 1 or 2 above > > 4. used requery > > 5. used repaint > > 6. I've tried locking each one if it has a value but that really > > doesn't work... it locks the entire form > > > > What occurs after the refresh/requery/repaint the combo box drop > > down changes as required.... however, each combo box on each > > continuous form changes to what was clicked in the Option Group > > regardless of the Option Group on the form it resides. > > > > For example: > > Three "rows" (continuous forms [CF]) > > 1 - HW > > 2 - SW > > 3 - HW > > > > If a new record (CF) is added the Option Group is clicked the > > previous CFs change to reflect the value. In this case if SW > > option is chosen 1 and 3 above changes. > > > > Does that make sense? > > > > Jim > > jhewson at karta.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > > Sent: Friday, September 28, 2007 12:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Continuous Form Issue > > > > Do you mean the combo box recordsource should change based on the Option > > Group for that record? > > > > If so, then just change the recordsource on the On_Current event. > > This will > > change it everytime someone changes records. > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > > Sent: Friday, September 28, 2007 12:39 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Continuous Form Issue > > > > > > > > > A2003 > > > > > > I have a bound continuous form that has an Option Group and a > Combo Box. > > > What I would like to do is to update the Option Group and change the > > > rowsource of the Combo Box without changing the other records. > > > The purpose of the continuous form is to represent hardware > and software > > > line items on a purchase order form. > > > The Option Group has two option buttons labeled HW and SW. > > > I need to change the rowsource using the option group buttons between > > > two different queries without changing the other combo boxes on the > > > continuous form. > > > Is this possible? > > > > > > MTIA > > > > > > 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 jwcolby at colbyconsulting.com Fri Sep 28 14:11:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 15:11:42 -0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Message-ID: <006d01c80203$68689160$6c7aa8c0@M90> Michael, The problem with doing this is that each object has to be examined character by character, EVERY line. In this specific case I could certainly do this however I am under the impression that RegEx is optimized to do this kind of thing. Kind of the difference between a similar function to look at every character and remove it if it matches something and using the replace to remove a character. Replace is written in a highly optimized (perhaps even in assembler) whereas the "loop and search" is not optimized at all. John 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 Bahr Sent: Friday, September 28, 2007 2:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking an expression and creating a camel case (or PascalCase) > expression. > > I get CSV files with headers in them. All too often the eejits that > created the databases they came from used embedded spaces or other > special use characters (!@#$%^&* etc) in their field names. I need to > strip these special characters out completely. I also need to upper > case the valid alpha character that follows any of these special > characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 JHewson at karta.com Fri Sep 28 14:11:50 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 14:11:50 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: <021c01c80202$ae9fd680$8119fea9@LTVM> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> <021c01c80202$ae9fd680$8119fea9@LTVM> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197CA@karta-exc-int.Karta.com> Thanks, Max I'll take a look at it. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Oh, just re-read your requirement. You are using continuous forms. I recently posted something for Arthur based on datasheets. The same *may* work for continuous forms. You can download it here: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip It will be the second option you require, but have a look at it all. As I say, it was written for a datasheet but may help you. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 DWUTKA at Marlow.com Fri Sep 28 14:12:35 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 14:12:35 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <020301c801f2$35c38aa0$8119fea9@LTVM> Message-ID: No. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Sorry Drew, What I meant was: Arthur said: Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Is this going to happy when a Currency Type is used? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 14:25:42 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:25:42 +0100 Subject: [AccessD] Mucking around In-Reply-To: <004201c80202$4e451700$6402a8c0@ScuzzPaq> Message-ID: <021e01c80205$5ce36e80$8119fea9@LTVM> Hi John, >Terminology happens :o) Yes, but sometime what is really simple becomes difficult to understand because the terminogy is not understood. I can remember when I was at school (albeit a long time ago, but I have a good memory), I had great difficulty understanding English Grammar. I just couldn't understand what the teacher was saying Verbs, Adverbs, Adjectives, past participle, etc. This lasted for many years until, in the Army, I was posted to Germany and had to learn German. Then I picked it up in a flash and became quite good in a short time, reading, writing and (accent excepted), speaking German. Much of it gone now, sadly. What I realised was that when I was learning German the teacher was using English to explain German grammar and I was able to differentiate between the German word and what the explanation of what the word meant when spoken in English. I then realised that the reason I couldn't understand English Grammar at school was because the teacher was using English words to explain English words and I couldn't differentiate between the word and the explanations all mixed in with his general speech, whereas when I was learning German, the difference was obvious. I actually learnt English Grammar by learning to speak German! All because of terminology. I learnt that "To boldly go where no man has gone before" is a split infinite and I (now) know why. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, September 28, 2007 8:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Terminology happens :o) Conceptually I think the easiest way to understand it is using the Query/Report analogy. You create a Query which makes it possible/easier/more efficient to create a specific Report. Its a means to produce a product. Remember, rarely does any lay person care about HOW data is stored, they generally only care about how it is presented (product). Its up to the DBA to store it correctly so that it can be presented in any one of the myriad of ways it can be used/presented in the future. The granularity of a properly normalized data structure allows for the most flexibility in this regards. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 14:29:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:29:54 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <001d01c80203$0315d8e0$8abea8c0@XPS> Message-ID: <021f01c80205$f30df790$8119fea9@LTVM> Clicked directly, but hey! Just tried again and now it works! (are you sure you didn't give MS a quick csll and tell them to put it up there again!) Thanks Jim Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 8:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Works here. Did you cut & paste or click on it directly? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give > a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 14:45:04 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 14:45:04 -0500 Subject: [AccessD] Mucking around In-Reply-To: <021e01c80205$5ce36e80$8119fea9@LTVM> References: <004201c80202$4e451700$6402a8c0@ScuzzPaq> <021e01c80205$5ce36e80$8119fea9@LTVM> Message-ID: <005801c80208$1123ec60$6402a8c0@ScuzzPaq> Ah! I think you have relation data theory and data warehousing theory down now ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com I learnt that "To boldly go where no man has gone before" is a split infinite and I (now) know why. From cfoust at infostatsystems.com Fri Sep 28 15:56:58 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 13:56:58 -0700 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: The problem is that there is really only one set of controls on the form, no matter how many rows you see. You can fake the combobox stuff with a textbox bound to the same form behind the combobox and the combox's backstyle set to transparent. That lets you see the actual value in the field even when that value isn't in the combobox's list. Option Groups aren't really appropriate controls for a continuous form. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 cfoust at infostatsystems.com Fri Sep 28 16:02:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 14:02:05 -0700 Subject: [AccessD] Mucking around In-Reply-To: <021d01c80203$5d337530$8119fea9@LTVM> References: <003901c80202$07724aa0$6c7aa8c0@M90> <021d01c80203$5d337530$8119fea9@LTVM> Message-ID: If you want a good book on Data Warehousing concepts, Ralph Kimball has "The Data Warehous Toolkit", which does a pretty good job of explaining the concepts. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John (and all those who posted). I will go through all of the posts over the weekend. Lots to get my head around. Have a good weekend, all of you great guys. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Sep 28 16:55:44 2007 From: robert at servicexp.com (Robert) Date: Fri, 28 Sep 2007 17:55:44 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: References: Message-ID: <002301c8021a$52a5c520$0801a8c0@roberts> Reuben, I struggled for a looooooong time with what sounds like the same error. I just happened across a MS KB about the problem. Had my users install the patches and problem solved. http://support.microsoft.com/kb/895751 If you need the patch's (Win 2003 & XP) I believe I still have them.. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 9:54 AM To: AccessD Subject: [AccessD] A2K - Locking Problem I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jedi at charm.net Fri Sep 28 16:55:12 2007 From: jedi at charm.net (Michael Bahr) Date: Fri, 28 Sep 2007 17:55:12 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <006d01c80203$68689160$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <006d01c80203$68689160$6c7aa8c0@M90> Message-ID: <4544.24.35.45.228.1191016512.squirrel@mail.expedient.net> John, you are correct that a regex would be a good choice however you did make the requirement that the first letter of each word had to be capitalized. Right?? So a regex really could not do this particular job very well if at all. Regular expressions are great for finding and manipulating patterns of characters in one felled swoop, for example if you only wanted to remove those pesky "extra" characters then something like the following would do the trick: Perl: my $line =~ s/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\.//g; means to substitute all matching delimiters (g switch) with a nothing on the contents of $line. The s/pattern/replace/ expression is the construct. TCL: regsub -all {:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\.} $line "" line this may be a little more clear to that replace all matches found (-all switch) in $line with "" and put the new value in line. VB.net I believe: line = Regex.Replace(line, delimiters, "") The old way would be to let VB loop through each delimiter one at a time for each line whereas the regex engine does all the dirty work when you specify all the delimiters at one time. Make sense?? Mike... > Michael, > > The problem with doing this is that each object has to be examined > character > by character, EVERY line. In this specific case I could certainly do this > however I am under the impression that RegEx is optimized to do this kind > of > thing. Kind of the difference between a similar function to look at every > character and remove it if it matches something and using the replace to > remove a character. Replace is written in a highly optimized (perhaps even > in assembler) whereas the "loop and search" is not optimized at all. > > > > > John 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 Bahr > Sent: Friday, September 28, 2007 2:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough > to get you going. You will need to create the main loop within your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the > line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten > at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} > {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 fuller.artful at gmail.com Fri Sep 28 17:07:02 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 18:07:02 -0400 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <020d01c801fa$f0230da0$8119fea9@LTVM> References: <020d01c801fa$f0230da0$8119fea9@LTVM> Message-ID: <29f585dd0709281507i4b997035n1a84a7a39849a6fe@mail.gmail.com> If it were me, I would do it in Excel not Access. It's simple to export the data to Excel. hth, Arthur On 9/28/07, max.wanadoo at gmail.com wrote: > > Thanks Don, that is Ace! > I will use that as it looks nice and simple. > > Jim: Thanks for sending the Excel Code. It is appreciated. > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 6:34 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > Or more simply: > > MaxRectangleHeight = 4 * 1440 > NewRectangleHeight = (Raised / Target) * MaxRectangleHeight > Me!rctRaised.Height = NewRectangleHeight > > That's about the way I've done it. > > Good luck! > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > It does Don, > Thanks very much. You see, what I can do is use an Access report/form or > whatever, which is scaled correctley for the actual v target and the use > the > PntScrn button on the keyboard, past it into Paint and save as a > jpeg. This > I can then drop onto the web page on, say, a weekly basis. > > I just need the code to generate the correct "picture" in Access so that > it > is accurate. > > So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 > twips) > > and > > we have raised ?20,000 to date then the corresponding bar is: > > Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) > 5760*(20/100)=1152 Twips > > Excel give me: =(4*1440)*((Raised/Target)*100)/100 > > Have I got this right or is there a better way of scaling it? > > > Ta very much > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 5:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > The way I did it was to establish a position on the page, bar width, and a > maximum bar height for the rectangles. If you have only two values to > compare (walked v target) just make the rectangle representing the target > the maximum size and whatever color you want it. Then you can superimpose > a > rectangle of a different color over the target, and set its height value > according to the ratio of walked to target. Just apply the same ratio to > the max height, set that as the height value, and redraw. Note that the > properties sheet expresses the rectangle's dimensions in inches, but your > code must use twips. 1 inch = 1440 twips, if my memory serves. I've also > done this by positioning different sized rectangles next to each other > when > I had more than two metrics to compare to the whole. > > Hope this helps . . . > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 9:00 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > I have never done this Don, > Can you Scale a range so that it, say, fits a given size and then, say, > colour the increasing element, say blue, and the bit still to go, say red? > > It would be a start. > Thanks > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 4:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > Well, you probably already have this part figured out, but it's the only > part I have an idea about. I've created "bar charts" on Access reports > and > forms using retrieved values to describe the dimensions of rectangle > controls. But I suspect that your question is aimed more at creating the > graphic externally using Access data and moving it into your website, > presumably in an automated way. That's beyond my ken, for sure. I've > never > used Access pages, but maybe there's some potential there? > > Good luck . . . > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 8:33 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: FW: Create a BarGram from data > > Sorry for the repeat posting, but I have to try one more time to see if > anybody can help me with this. > Thanks > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 1:51 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Create a BarGram from data > > Hi folks, just re-posting this hoping that somebody will be able to help > me > out here. > Ta > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 6:38 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Create a BarGram from data > > Hi Folks, > I have to do something which I have never done before and would really > appreciate your help and feedback. > The charity I support is doing a charity walk and we need to have a guage > generated showing progress (something like you see on the side of a church > to show how the restoration fund for the new church roof is progressing). > > My Access tables will capture the MilesWalked v MilesTarget and > FundsRaised > v FundsTarget. > > Somehow I have to generate a "picture" of each from these values which I > can > then drop onto the web site as two graphics. > > I will need to "scale" the MilesWalked to the MilesTarget and create the > "picture" from that. > > And then do the same with the funds. A sort of Progress Bar thingie but > for > the web site. > > All input is captured into an MDB, but how on earth do I do the rest? > > Any help would be most appreciated. Evan a start point. > > Thanks > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From erbachs at gmail.com Fri Sep 28 18:39:43 2007 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 28 Sep 2007 18:39:43 -0500 Subject: [AccessD] SQL Server 2005 and Access 2003 interaction Message-ID: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> Dear Group, Is what I've heard correct: that the very nice Access-to-SQL Server connectivity ain't quite the same any more with SQL Server 2005? That is, coding stored procedures or creating tables from the Access interface, things like that? I'm hoping to be able to use Access 2003 to convert the queries contained in an Access application to views and sp's in SQL Server 2005. Am I going to be out of luck? Regards, Steve Erbach Neenah, WI From dwaters at usinternet.com Fri Sep 28 19:54:31 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 28 Sep 2007 19:54:31 -0500 Subject: [AccessD] SQL Server 2005 and Access 2003 interaction In-Reply-To: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> References: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> Message-ID: <003b01c80233$4c529f90$0200a8c0@danwaters> Steve, SQL Server 2005 (Express) has a very nice separate application called SQL Server Management Studio (Express) for managing tables, view, sp's, etc. The Express version is a free download. To convert queries to view and sp's, can you use an upsizing wizard? MS has a new one called SQL Server Migration Assistant (SSMA) for Access. I think someone on this list has already used it. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Friday, September 28, 2007 6:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] SQL Server 2005 and Access 2003 interaction Dear Group, Is what I've heard correct: that the very nice Access-to-SQL Server connectivity ain't quite the same any more with SQL Server 2005? That is, coding stored procedures or creating tables from the Access interface, things like that? I'm hoping to be able to use Access 2003 to convert the queries contained in an Access application to views and sp's in SQL Server 2005. Am I going to be out of luck? Regards, Steve Erbach Neenah, WI -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 28 16:49:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 29 Sep 2007 01:49:40 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Message-ID: <004001c80219$794df810$6501a8c0@nant> Hi All, I wanted to note: I have seen somewhere an article about RegEx being considerably slower than a mere strings comparison etc. I cannot find this article now, can you? Here is a similar article on ColdFusion and Java (watch line wraps) - http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht m The info above should be also true for C#/VB.NET (just remember there are no miracles in this world)... John, this could be critical information for you because of your computers processing zillion gigabytes of data - if that slowness of RegEx vs. string comparison operation proves to be true then mere chars/strings comparison and simple iteration over source string's char array could be the most effective solution, which will save you hours and hours of computing time: - define a 256 bytes long table (I guess you use extended ASCII (256 chars max) only John - right?) with to be stripped out chars marked by 1; - define upperCase flag; - allocate destination string, which is as long as the source one - use StringBuilder; - iterate source string and use current char's ASCII code as an index of a cell of array mentioned above: a) if the array's cell has value > 0 then the source char should be stripped out/skipped; set uppercase flag = true; b) if the array's cell has zero value and uppercase flag = true then uppercase current source char and copy it to the destination StringBuilder's; set uppercase flag = false; c) if the array's cell has zero value and uppercase flag = false then lower case current source char and copy it to the destination StringBuilder's string; Here is C# code: private static string[] delimiters = " |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); private static byte[] sieve = new byte[255]; private static bool initialized = false; static void JamOutBadChars() { if (!initialized) { sieve.Initialize(); foreach (string delimiter in delimiters) { sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; } initialized = true; } string[] test = {"John colby ", "%idiotic_Field*name&!@", " # hey#hey#Hey,hello_world$%#", "@#$this#is_a_test_of_the-emergency-broadcast-system "}; foreach (string source in test) { StringBuilder result = new StringBuilder(source.Length); bool upperCase = true; foreach (char c in source.ToCharArray()) { if (sieve[(int)c] > 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } Console.WriteLine(source + " => {" + result + "}"); } } -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Friday, September 28, 2007 10:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking > an expression and creating a camel case (or PascalCase) expression. > > I get CSV files with headers in them. All too often the eejits that > created > the databases they came from used embedded spaces or other special use > characters (!@#$%^&* etc) in their field names. I need to strip these > special characters out completely. I also need to upper case the valid > alpha character that follows any of these special characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today > I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 fuller.artful at gmail.com Fri Sep 28 21:30:19 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 19:30:19 -0700 (PDT) Subject: [AccessD] Invitation to connect on LinkedIn Message-ID: <928531235.1191033019322.JavaMail.app@com03.prod> Access, I'd like to add you to my professional network on LinkedIn. -Arthur Learn more: https://www.linkedin.com/e/isd/145190009/aKZxC6jd/ ------------------------------------------ "Increasingly, if you're not LinkedIn, you're left out." --Business 2.0 ------ (c) 2007, LinkedIn Corporation From shamil at users.mns.ru Sat Sep 29 02:50:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 29 Sep 2007 11:50:59 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <4544.24.35.45.228.1191016512.squirrel@mail.expedient.net> Message-ID: <000601c8026d$79cb5a40$6501a8c0@nant> Hi All, Here is some more weekend coding for the subject task: two different not-RegEx based strategies, which result in about 3 times execution time difference: Project -> Build -> Allow Unsafe Code Project -> Build -> Optimize Code // 1st case - not optimized by C# compiler code + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 11:26:21 - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 11:26:50 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 11:26:50 - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 11:26:59 // 2nd case - optimized by C# compiler code + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 11:29:47 - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 11:30:15 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 11:30:15 - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 11:30:22 And here is the code (watch line wraps for string constants! All the rest wrapped code lines should be OK because of semicolon and curved brackets used in C# - another advantage of posting C# code): To run it from VS IDE set: Project -> Build -> Allow Unsafe Code Project -> Build -> Optimize Code If anybody has time to write and test run RegEx equivalent or any other variants of "strings jamming/camel casing" code that would be very interesting to see here - I'd not get surprised if there could be even more speedy ways to jam strings without switching to C++ and assembler. And my current hypothesis based on the article I referenced here yesterday is that RegEx should run (considerably) slower: it would be great if this hypothesis will fail. Thanks. ------ cut here ---- using System; using System.Collections.Generic; using System.Text; namespace StringJammerTestConsoleApplication { /// /// StringJammer abstract class /// public abstract class StringJammer { protected static byte[] sieve = new byte[255]; protected void Init() { sieve.Initialize(); for (int i = (int)'A'; i <= (int)'Z'; i++) sieve[i] = 1; for (int i = (int)'a'; i <= (int)'z'; i++) sieve[i] = 1; } public abstract void Jam(ref string stringToJam); } /// /// StringJammer1 class - first string jamming strategy /// public class StringJammer1 : StringJammer { public StringJammer1() { Init(); } public override void Jam(ref string stringToJam) { StringBuilder result = new StringBuilder(stringToJam.Length); bool upperCase = true; foreach (char c in stringToJam.ToCharArray()) { if (sieve[(int)c] == 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } stringToJam = result.ToString().Trim(); } } /// /// StringJammer2 class - second string jamming strategy /// public class StringJammer2 : StringJammer { public StringJammer2() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { if (sieve[c[i]] == 0) { c[i++] = ' '; upperCase = true; } else if (upperCase) { c[j++] = Char.ToUpper(c[i++]); upperCase = false; } else { c[j++] = Char.ToLower(c[i++]); } } while (j < stringToJam.Length) c[j++] = ' '; } stringToJam = stringToJam.Trim(); } } } /// /// Test /// class Program { static void Main(string[] args) { const long MAX_CYCLES = 1000000; string[] test = {"John colby ", "%idiotic_Field*name&!@", " # hey#hey#Hey,hello_world$%#", "@#$this#is_a_test_of_the-emergency-broadcast-system $()# "}; StringJammer[] jummers = { new StringJammer1(), new StringJammer2() }; for (int k = 0; k < jummers.Length; k++) { long cyclesQty = MAX_CYCLES; Console.WriteLine("+ {0} {1:D} cycles started at {2}", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); while (cyclesQty > 0) { for (int i = 0; i < test.Length; i++) { string result = new StringBuilder(test[i]).ToString(); jummers[k].Jam(ref result); if (cyclesQty == MAX_CYCLES) { Console.WriteLine(test[i] + " => {" + result + "}"); } } --cyclesQty; } Console.WriteLine("- {0} {1:D} cycles finished at {2}\n", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); } } } } ------ cut here ---- -- Shamil >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> From jedi at charm.net Sat Sep 29 21:33:54 2007 From: jedi at charm.net (Michael Bahr) Date: Sat, 29 Sep 2007 22:33:54 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <006d01c80203$68689160$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <006d01c80203$68689160$6c7aa8c0@M90> Message-ID: <1393.24.35.45.228.1191119634.squirrel@mail.expedient.net> > Michael, > > The problem with doing this is that each object has to be examined > character > by character, EVERY line. In this specific case I could certainly do this > however I am under the impression that RegEx is optimized to do this kind > of > thing. Kind of the difference between a similar function to look at every > character and remove it if it matches something and using the replace to > remove a character. Replace is written in a highly optimized (perhaps even > in assembler) whereas the "loop and search" is not optimized at all. > > > > > John 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 Bahr > Sent: Friday, September 28, 2007 2:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough > to get you going. You will need to create the main loop within your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the > line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten > at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} > {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 jedi at charm.net Sat Sep 29 21:41:50 2007 From: jedi at charm.net (Michael Bahr) Date: Sat, 29 Sep 2007 22:41:50 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <004001c80219$794df810$6501a8c0@nant> References: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <004001c80219$794df810$6501a8c0@nant> Message-ID: <1402.24.35.45.228.1191120110.squirrel@mail.expedient.net> Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find this > article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there are > no > miracles in this world)... > > John, this could be critical information for you because of your computers > processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings comparison > and simple iteration over source string's char array could be the most > effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - use > StringBuilder; > - iterate source string and use current char's ASCII code as an index of a > cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should be > stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true then > uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false then > lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; > private static bool initialized = false; > static void JamOutBadChars() > { > if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); > } > } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough to get you going. You will need to create the main loop within > your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the line into an array > thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word > newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) > Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten at > http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} > set test [list {John colby} {%idiotic_Field*name} > {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking >> an expression and creating a camel case (or PascalCase) expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created >> the databases they came from used embedded spaces or other special use >> characters (!@#$%^&* etc) in their field names. I need to strip these >> special characters out completely. I also need to upper case the valid >> alpha character that follows any of these special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today >> I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 shamil at users.mns.ru Sun Sep 30 03:01:03 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 30 Sep 2007 12:01:03 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <1402.24.35.45.228.1191120110.squirrel@mail.expedient.net> Message-ID: <003901c80338$0c3f5c30$6501a8c0@nant> <<< However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. >>> Hi Mike, That's clear, and the John's task is to get the speediest solution. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Sunday, September 30, 2007 6:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find this > article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there are > no > miracles in this world)... > > John, this could be critical information for you because of your computers > processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings comparison > and simple iteration over source string's char array could be the most > effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - use > StringBuilder; > - iterate source string and use current char's ASCII code as an index of a > cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should be > stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true then > uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false then > lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; > private static bool initialized = false; > static void JamOutBadChars() > { > if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); > } > } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough to get you going. You will need to create the main loop within > your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the line into an array > thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word > newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) > Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten at > http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} > set test [list {John colby} {%idiotic_Field*name} > {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking >> an expression and creating a camel case (or PascalCase) expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created >> the databases they came from used embedded spaces or other special use >> characters (!@#$%^&* etc) in their field names. I need to strip these >> special characters out completely. I also need to upper case the valid >> alpha character that follows any of these special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today >> I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 max.wanadoo at gmail.com Sun Sep 30 03:52:58 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Sun, 30 Sep 2007 09:52:58 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <003901c80338$0c3f5c30$6501a8c0@nant> Message-ID: <000301c8033f$4db48bc0$8119fea9@LTVM> Hi Shamil, Clearly your compiled solution is by way and far the quickest solution. I have tried all sorts of VBA solutions including looking at XOR, IMP, EQV, bitwise solutions, but there overheads were considerable. The best I can come up with in VBA is below. One million iterations on my Dell Inspiron comes in at 3 min 52 secs. If John didn't want to Hump it, then RegExpr appears to be the answer within pure VBA Max Function dbc2() Const conGoodChars As String = "abcdefghijklmnopqrstuvwxyz" ' valid characters Const conBadChars As String = "?$%^&*()_-+@'#~?><|\, " ' space also in this string Const conLoops As Long = 1000000 Dim tStartTime As Date, tEndTime As Date, tLapsedTime As Date, iLoop As Long, iVars As Integer, iVarLoop As Integer Dim iLen As Integer, strTemp As String, bFlipCase As Boolean, str2Parse As String, strResult As String, strBit As String Dim varStr(5) varStr(1) = "John colby " varStr(2) = "%idiotic_Field*name&!@" varStr(3) = " # hey#hey#Hey,hello_world$%#" varStr(4) = "@#$this#is_a_test_of_the-emerGency-broadcast-system" varStr(5) = "thisisastringwithnobadchars" iVars = 5 tStartTime = Now For iLoop = 1 To conLoops For iVarLoop = 1 To iVars strResult = "" str2Parse = LCase(varStr(iVarLoop)) str2Parse = UCase(Left(str2Parse, 1)) & Mid(str2Parse, 2) For iLen = 1 To Len(str2Parse) strBit = Mid(str2Parse, iLen, 1) If InStr(conBadChars, strBit) = 0 Then If bFlipCase = True Then strBit = UCase(strBit): bFlipCase = False strResult = strResult & strBit Else bFlipCase = True End If Next iLen 'Debug.Print strResult Next iVarLoop Next iLoop tEndTime = Now tLapsedTime = tEndTime - tStartTime MsgBox tLapsedTime: Debug.Print tLapsedTime End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, September 30, 2007 9:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case <<< However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. >>> Hi Mike, That's clear, and the John's task is to get the speediest solution. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Sunday, September 30, 2007 6:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find > this article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there > are no miracles in this world)... > > John, this could be critical information for you because of your > computers processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings > comparison and simple iteration over source string's char array could > be the most effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 > chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - > use StringBuilder; > - iterate source string and use current char's ASCII code as an index > of a cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should > be stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true > then uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false > then lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; private static bool > initialized = false; static void JamOutBadChars() { if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); } } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get > the same end result). Mind you this is air code but hopefully should > be enough to get you going. You will need to create the main loop > within your code. > > Create a list of all delimiters that are used in your CSV files such > as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line > saving the line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of > each word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the > other is TCL. Both of these languages are open source and free and > can be gotten at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need >> to strip these special characters out completely. I also need to >> upper case the valid alpha character that follows any of these >> special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but >> until today I have never really tried to use RegEx and it ain't >> pretty! >> >> Any help in this would be much appreciated. >> >> 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 shamil at users.mns.ru Sun Sep 30 08:43:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 30 Sep 2007 17:43:01 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <000301c8033f$4db48bc0$8119fea9@LTVM> Message-ID: <001801c80367$d1ceb980$6501a8c0@nant> Hi Max, I have programmed some more string jamming strategies, code is below. It?s interesting to note that the most obvious programming (StringJammer4), which assumes that only alphabetic chars should be left and all the other should be stripped out, is running as quick as the most generic one (StringJammer3), which can use whatever set will be defined as the set of the chars to be left in the result string. It?s also interesting to note that when millions iterations are ?at stake? then very subtle code differences can result in clearly visible/countable time execution gains, e.g. checking that a char is in uppercase and NOT calling ToUpper function works about 1 second faster on one million iterations than the code, which just always calls ToUpper function. I expect that the most generic solution (StringJammer3) can be made even faster without going to C++ or Assmebler if somehow implement it using inline coding instead of delegate function calls ? of course this generic solution has to be considerably refactored to achieve this goal: the gain I?d expect could be about 2 sec for one million iterations (it?s about 4 sec now). From practical point of view this gain looks very small(?) to take into account but such kind of ?manual coding optimization exercises? are rather valuable to polish programming skills. Your VBA code runs here 3 min 24 seconds under MS Access VBA IDE for the same set of the test strings, which is used in the below C# code: - 4 sec vs. 204 sec. (3 min. 24 sec.) => 51 times quicker Shamil P.S. the code: using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace StringJammerTestConsoleApplication { /// /// StringJammer abstract class /// public unsafe abstract class StringJammer { protected static byte[] sieve = new byte[256]; protected void Init() { sieve.Initialize(); for (uint i = (int)'A'; i <= (int)'Z'; i++) sieve[i] = 1; for (uint i = (int)'a'; i <= (int)'z'; i++) sieve[i] = 1; copyProcs.Initialize(); for (int i = 0; i < copyProcs.Length; i++) { if ((i >= (int)'A') && (i <= (int)'Z') || (i >= (int)'a') && (i <= (int)'z')) copyProcs[i] = copyChar; else copyProcs[i] = dummyCopyChar; } } public abstract void Jam(ref string stringToJam); protected static copyCharDelegate[] copyProcs = new copyCharDelegate[256]; protected delegate void copyCharDelegate(char* c, ref int i, ref int j, ref bool upperCase); protected static void copyChar(char* c, ref int i, ref int j, ref bool upperCase) { Char cc = c[i++]; if (upperCase) { if (Char.IsUpper(cc)) c[j++] = cc; else c[j++] = Char.ToUpper(cc); upperCase = false; } else { if (char.IsLower(cc)) c[j++] = cc; else c[j++] = Char.ToLower(cc); } } protected static void dummyCopyChar(char* c, ref int i, ref int j, ref bool upperCase) { c[i++] = Char.MinValue; if (!upperCase ) upperCase = true; } } /// /// StringJammer1 class - first string jamming strategy /// public class StringJammer1 : StringJammer { public StringJammer1() { Init(); } public override void Jam(ref string stringToJam) { StringBuilder result = new StringBuilder(stringToJam.Length); bool upperCase = true; foreach (char c in stringToJam.ToCharArray()) { if (sieve[(int)c] == 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } stringToJam = result.ToString().Trim(); } } /// /// StringJammer2 class - second string jamming strategy /// public class StringJammer2 : StringJammer { public StringJammer2() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { if (sieve[c[i]] == 0) { c[i++] = ' '; upperCase = true; } else if (upperCase) { c[j++] = Char.ToUpper(c[i++]); upperCase = false; } else { c[j++] = Char.ToLower(c[i++]); } } while (j < stringToJam.Length) c[j++] = ' '; } stringToJam = stringToJam.Trim(); } } } /// /// StringJammer3 class - third string jamming strategy /// public class StringJammer3 : StringJammer { public StringJammer3() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) copyProcs[c[i]](c, ref i, ref j, ref upperCase); while (j < stringToJam.Length) c[j++] = Char.MinValue; } stringToJam = stringToJam.Trim(Char.MinValue); } } } /// /// StringJammer4 class - fourth string jamming strategy /// public class StringJammer4 : StringJammer { public StringJammer4() { Init(); } private bool isNotJammable(char c) { return Char.IsLetter(c); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { char cc = c[i++]; //if (Char.IsLetter(cc)) if (isNotJammable(cc)) { if (upperCase) { if (Char.IsUpper(cc)) c[j++] = cc; else c[j++] = Char.ToUpper(cc); upperCase = false; } else { if (Char.IsLower(cc)) c[j++] = cc; else c[j++] = Char.ToLower(cc); } } else upperCase = true; } while (j < stringToJam.Length) c[j++] = Char.MinValue; } stringToJam = stringToJam.Trim(Char.MinValue); } } } /// /// Test /// class Program { static void Main(string[] args) { const long MAX_CYCLES = 1000000; string[] test = { " # hey#hey#Hey,hello_world$%#=======", "@#$this#is_a_test_of_the-emer=======", "gency-broadcast-system $()# " }; StringJammer[] jummers = { new StringJammer1(), new StringJammer2(), new StringJammer3(), new StringJammer4() }; for (int k = 0; k < jummers.Length; k++) { long cyclesQty = MAX_CYCLES; Console.WriteLine("+ {0}\n {1:D} cycles started at {2}", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); while (cyclesQty > 0) { for (int i = 0; i < test.Length; i++) { string result = new StringBuilder(test[i]).ToString(); jummers[k].Jam(ref result); if (cyclesQty == MAX_CYCLES) { Console.WriteLine(test[i] + " => {" + result + "}"); } } --cyclesQty; } Console.WriteLine("- {0}\n {1:D} cycles finished at {2}\n", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); } Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } } + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 13:09:56 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 13:10:15 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 13:10:15 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 13:10:21 + StringJammerTestConsoleApplication.StringJammer3 1000000 cycles started at 13:10:21 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer3 1000000 cycles finished at 13:10:25 + StringJammerTestConsoleApplication.StringJammer4 1000000 cycles started at 13:10:25 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer4 1000000 cycles finished at 13:10:29 -- Shamil -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Sunday, September 30, 2007 12:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, Clearly your compiled solution is by way and far the quickest solution. I have tried all sorts of VBA solutions including looking at XOR, IMP, EQV, bitwise solutions, but there overheads were considerable. The best I can come up with in VBA is below. One million iterations on my Dell Inspiron comes in at 3 min 52 secs. If John didn't want to Hump it, then RegExpr appears to be the answer within pure VBA Max <<>> From fuller.artful at gmail.com Sun Sep 30 09:08:18 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 30 Sep 2007 10:08:18 -0400 Subject: [AccessD] Totals on a crosstab query Message-ID: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.com> The xtab in question lists horses on the rows and lesson types on the columns (i.e. private, semi-private, group), then populates the columns with counts for the number of lessons per horse per lesson type. No problem so far. But the specs call for vertical totals of the columns, and I cannot figure out how to do them with the xtab wizard. What I need is a sum of each of the columns to be presented as the bottom row (i.e sum of private, semi-private and group columns, including all horses). Any suggestions gratefully accepted. Arthur From dajomigo at dgsolutions.net.au Sun Sep 30 18:13:02 2007 From: dajomigo at dgsolutions.net.au (David and Joanne Gould) Date: Mon, 01 Oct 2007 09:13:02 +1000 Subject: [AccessD] Access runtime In-Reply-To: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.co m> References: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.com> Message-ID: <7.0.0.16.2.20071001091010.02392bb0@dgsolutions.net.au> I have a client who has staff that may not be able to run Access on their computers or install any programs to their computers. Does a runtime version need to be installed or can it run off a memory stick? The database is being created in Access 2003. TIA David From shamil at users.mns.ru Sat Sep 1 00:53:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 1 Sep 2007 09:53:48 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: Message-ID: <000001c7ec5c$77386740$6401a8c0@nant> Charlotte, I think that MS is both market- and software-usability-features- driven. And ribbon is also probably a "baby of these two parents" and which of these parents has more chromosomes in this baby is an open question for me :) I'm just telling from my recent experience: I was also skeptical/hesitant (http://www.m-w.com/dictionary/hesitant) with MS Access 2007 - then as I've written here recently I was a kind of forced to use MS Access 2007 to solve very urgent and rather advanced task - that was database model design for the system to be in production 24x7x365 in a few days (and non-stop in the future when inevitable design changes will have to be introduced IOW I needed to "foresee" these future changes to minimize future upgrade troubles), design of queries etc. and all that has had to be checked against MS SQL 2005, upsized, polished and put into production - there was no VBA programming, which I usually do without that much efforts and which we I think will agree didn't change that much in MS Access 2007. And what is more all that happened with me in another country, when I was out of my usual working and living environment etc. etc. You have got the picture how one could feel them in the context as I described briefly above - a context in which I was put tete-a-tete with MS Access 2007, which I was so skeptical, hesitant and untrained to use? And, as I have written recently here, in a few hours I started to see that MS Access is really more useful/effective for advanced design work than MS Access 2003 IOW MS Access 2007 is not a power-toy for power-users but a real development tool... VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... Have nice weekend! -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, August 31, 2007 9:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? Shamil, You have much more faith in market-driven (as opposed to MARKETING!-driven) design that I have. I seriously doubt that the ribbon, which didn't exist before, was market-driven. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, August 31, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? John, I will try to check at the end of the next week when urgent work will hopefully be finished here: - I'd think that MS Access 2007 built-in MDI tabbing feature should be very suitable for your multi-tab designs - you will have to "just" disintegrate your multi-tab forms... - I'd also think (and Martin can approve./disapprove) that ribbon can be made hidden/substituted with custom "thin" ribbons a la' good old commandbars... - and I suppose that MS Access 2007 free runtime, which (I expect) should be not a big issue to install on fresh PCs can help you to smoothly solve the third part of your "puzzle" - I mean supply your customers/users with an interface you develop for them and nothing else "extra" on top of that... Access 2007 is what is called progress comparing with MS Access 2003, isn't it? :) I'd suppose MS staff spent countless (and usually well paid hours) before they made and implemented new MS Office 2007 interface solution... And AFAIK MS has a lot of corporate customers and they (MS stuff) do communicate closely with these customers and they do react on their demands - so my simple guess is that ribbon was requested by their customers first of all because it's very useful in there everyday work... Not arguing, just supposing/proposing that "fighting/neglecting" MS-driven progress "bulldozer" could be an expensive endeavor... :) -- Shamil -- 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 Sep 1 01:00:44 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 1 Sep 2007 10:00:44 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <00e101c7ebfd$4364c800$048e01c7@SusanOne> Message-ID: <000001c7ec5d$6f7bb380$6401a8c0@nant> OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =========I only require warm sands and shade trees. :) -- Shamil From ssharkins at gmail.com Sat Sep 1 08:51:01 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 1 Sep 2007 09:51:01 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <000001c7ec5d$6f7bb380$6401a8c0@nant> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> Message-ID: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =======You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) Susan H. From ssharkins at gmail.com Sat Sep 1 08:51:02 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 1 Sep 2007 09:51:02 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <000001c7ec5c$77386740$6401a8c0@nant> References: <000001c7ec5c$77386740$6401a8c0@nant> Message-ID: <004f01c7ec9f$29532ae0$048e01c7@SusanOne> VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... =====Crap! Are you serious? Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... =====You probably should come up with an outline and sell this as an article Shamil -- you'd be MS's new best friend and I think, any help you could give serious developers would be well appreciated. If I could do it, I would. Susan H. From rbgajewski at adelphia.net Sat Sep 1 13:46:48 2007 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sat, 1 Sep 2007 14:46:48 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> Message-ID: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Hi Folks I am in need of some rather complex WHERE statements in my SELECT clauses, and was wondering if anyone knew of a tool/program that helps keep parentheses properly paired --- perhaps similar to the way that Excel uses different colors for highlighting corresponding pairs? Thanks, Bob Gajewski No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 17:21 PM From dwaters at usinternet.com Sat Sep 1 14:11:03 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 1 Sep 2007 14:11:03 -0500 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant><004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <000601c7eccb$d7980950$0200a8c0@danwaters> What I do is to create and test a query using the query designer. Then go to SQL view in the query window. Then copy the Select statement into a code window, and do a little adjusting so it works in VBA. The parentheses are all there. And believe me, they are ALL there! BOL! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, September 01, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Does anyone have a parenthesis highlighting tool? Hi Folks I am in need of some rather complex WHERE statements in my SELECT clauses, and was wondering if anyone knew of a tool/program that helps keep parentheses properly paired --- perhaps similar to the way that Excel uses different colors for highlighting corresponding pairs? Thanks, Bob Gajewski No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 17:21 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sat Sep 1 14:25:25 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 1 Sep 2007 15:25:25 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <29f585dd0709011225m328a4326u1c5018243467e96a@mail.gmail.com> You could download an eval copy of Red Gate's SQL Prompt, which will do what you want, and a lot more. And if you like it, buy it. Arthur On 9/1/07, Bob Gajewski wrote: > > Hi Folks > > I am in need of some rather complex WHERE statements in my SELECT clauses, > and was wondering if anyone knew of a tool/program that helps keep > parentheses properly paired --- perhaps similar to the way that Excel uses > different colors for highlighting corresponding pairs? > > Thanks, > Bob Gajewski > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 08/31/2007 > 17:21 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at gmail.com Sun Sep 2 11:40:38 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sun, 2 Sep 2007 12:40:38 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne> <000001c7ec5d$6f7bb380$6401a8c0@nant> <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: On 9/1/07, Bob Gajewski wrote: > I am in need of some rather complex WHERE statements in my SELECT clauses, > and was wondering if anyone knew of a tool/program that helps keep > parentheses properly paired --- perhaps similar to the way that Excel uses > different colors for highlighting corresponding pairs? you can look at PSPad http://www.pspad.com/en/ It is a freeware text editor that will highlight parentheses pair. -- 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 Mon Sep 3 06:45:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 04:45:34 -0700 Subject: [AccessD] Force a new page in code In-Reply-To: <00cd01c7ebde$b050f070$7b57a27a@personalec1122> Message-ID: Hi A.D.Tejal: Thanks for that information... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, August 31, 2007 7:53 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Force a new page in code Jim, For conditional page break, ForceNewPage property can be manipulated in format event of the section concerned. Sample code in detail section's format event, as given below, will force a page break after every two records in the group. TxtCountGrp is a count tracking text box for the group. Note: (a) Use of Else clause is always necessary, otherwise after the condition is once met, the break will keep get applied for each record. (b) Different values that can be assigned to ForceNewPage property, and implications thereof, are explained in HELP. If no conditions are involved, ForceNewPage property can be set permanently in design view (Format tab of properties dialog box for the pertinent section). Best wishes, A.D.Tejpal -------------- ================================ Private Sub Detail_Format(Cancel As Integer, _ FormatCount As Integer) If Me.TxtCountGrp Mod 2 = 0 Then Me.Detail.ForceNewPage = 2 ' Pg break after section Else Me.Detail.ForceNewPage = 0 ' No pg break End If End Sub ================================ ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Tuesday, August 28, 2007 11:49 Subject: [AccessD] Force a new page in code Hi all: Is there a way to force a new page in Access reports under program control? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 06:57:12 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 04:57:12 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <002701c7ebe3$82709bb0$8119fea9@LTVM> Message-ID: <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 07:26:52 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 13:26:52 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> References: <002701c7ebe3$82709bb0$8119fea9@LTVM> <047EB56C55E84331A66AB2D53319155C@creativesystemdesigns.com> Message-ID: <007501c7ee25$b657b370$8119fea9@LTVM> Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 3 09:45:21 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 07:45:21 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <007501c7ee25$b657b370$8119fea9@LTVM> Message-ID: <004e01c7ee39$0e12ad00$0301a8c0@HAL9005> Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From RRANTHON at sentara.com Mon Sep 3 11:30:28 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 12:30:28 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel Message-ID: <200709031630.l83GUmZU028702@databaseadvisors.com> Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If From askolits at nni.com Mon Sep 3 11:44:16 2007 From: askolits at nni.com (John Skolits) Date: Mon, 3 Sep 2007 12:44:16 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031630.l83GUmZU028702@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> Message-ID: <008b01c7ee49$aaad83f0$0f01a8c0@officexp> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 12:04:09 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 13:04:09 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <008b01c7ee49$aaad83f0$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> Message-ID: <200709031704.l83H4XLw010193@databaseadvisors.com> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 12:36:00 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 13:36:00 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031704.l83H4XLw010193@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> <200709031704.l83H4XLw010193@databaseadvisors.com> Message-ID: <200709031736.l83HaBmp020845@databaseadvisors.com> Okay, got some code from the KB and I guess I'm getting froggy. ReDim TempArray(1 To rs.RecordCount, 1 To rs.Fields.Count) For r = 1 To rs.RecordCount For c = 1 To rs.Fields.Count If IsNull(rs(c - 1)) Then TempArray(r, c) = Empty Else TempArray(r, c) = rs(c - 1) End If Next rs.MoveNext Next The column segment gets the first record and the columns, but then immediately bugs out and writes the first record n times to the spreadsheet. Why isn't it looping through (in this case) 500 records? >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Mon Sep 3 13:38:55 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 14:38:55 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031704.l83H4XLw010193@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com> <008b01c7ee49$aaad83f0$0f01a8c0@officexp> <200709031704.l83H4XLw010193@databaseadvisors.com> Message-ID: <200709031839.l83Id7Wt011463@databaseadvisors.com> Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 13:53:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 11:53:38 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <007501c7ee25$b657b370$8119fea9@LTVM> Message-ID: <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> Hi Max: I just finished checking on the site and get no more than a counter value at the top left of the screen in large black letters. Something like 000048. I have tried to access this site with both IE7 and FF both with the same result. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 3 13:54:59 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 03 Sep 2007 11:54:59 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <004e01c7ee39$0e12ad00$0301a8c0@HAL9005> Message-ID: <2AE8A61D783C4227956941889230DADC@creativesystemdesigns.com> Hi Rocky: Please send a copy to me as I can not get to the site from this location... maybe it is blocked in some way from our ISP??? TIA Jim -----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, September 03, 2007 7:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 13:54:21 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 19:54:21 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031839.l83Id7Wt011463@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> Message-ID: <002201c7ee5b$d76825f0$8119fea9@LTVM> Hi, You could try this code. Regards Max Function xv() Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBE_SystemForms")' your table name rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 7:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 14:00:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 20:00:45 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> Message-ID: <002901c7ee5c$bc74ed90$8119fea9@LTVM> Hi Jim, I think there is something at your end stopping you getting through. You do need to have javascript allowed/enabled as it is a Flash site. Thinking about it, that is probably why nothing happens but you are seeing the counter. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: I just finished checking on the site and get no more than a counter value at the top left of the screen in large black letters. Something like 000048. I have tried to access this site with both IE7 and FF both with the same result. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Sep 3 14:30:59 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Sep 2007 15:30:59 -0400 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <002901c7ee5c$bc74ed90$8119fea9@LTVM> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> Message-ID: <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> I got through with no problem. Must be something on Jim's end. On 9/3/07, Gmail wrote: > > Hi Jim, > I think there is something at your end stopping you getting through. You > do > need to have javascript allowed/enabled as it is a Flash site. > Thinking about it, that is probably why nothing happens but you are seeing > the counter. > Regards > Max > From RRANTHON at sentara.com Mon Sep 3 14:37:03 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Mon, 03 Sep 2007 15:37:03 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <002201c7ee5b$d76825f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> <002201c7ee5b$d76825f0$8119fea9@LTVM> Message-ID: <200709031937.l83JbLMu032689@databaseadvisors.com> Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range("a1").Resize(lngRecCt, _ lngFldCt).Value = TempArray End With End With >>> "Gmail" 9/3/2007 2:54 PM >>> Hi, You could try this code. Regards Max Function xv() Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBE_SystemForms")' your table name rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 7:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ( http://www.databaseadvisors.com/ ) From spike at tenbus.co.uk Mon Sep 3 15:18:35 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 03 Sep 2007 21:18:35 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> Message-ID: <46DC6C1B.9080507@tenbus.co.uk> It's one of things designed in (cough)Flash. You'll need the appropriate plug-in to view it. It seems that accessibility is not high in the list of priorities of the designer. Regards Chris Foote Arthur Fuller wrote: > I got through with no problem. Must be something on Jim's end. > > On 9/3/07, Gmail wrote: > >> Hi Jim, >> I think there is something at your end stopping you getting through. You >> do >> need to have javascript allowed/enabled as it is a Flash site. >> Thinking about it, that is probably why nothing happens but you are seeing >> the counter. >> Regards >> Max >> >> From askolits at nni.com Mon Sep 3 15:21:30 2007 From: askolits at nni.com (John Skolits) Date: Mon, 3 Sep 2007 16:21:30 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031839.l83Id7Wt011463@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com> <200709031839.l83Id7Wt011463@databaseadvisors.com> Message-ID: <00c401c7ee68$03a8c4b0$0f01a8c0@officexp> Actually, try to break the memo filed into 255 character chunks. I know it's not the cleanest approach but it might work. Create a query against the table. Use that query instead of the table to create the recordset. Include all the fields except the memo field. For the memo field try. Expr1: Mid([FieldName],1,255) & Mid([FieldName],256,255) & mid([FiledName],510,255) ..... Etc. The only problem is at some point you have to decide how far you're going to go repeating the 'Mid' function. I bet there is another way. But try this and see if you cam make progress with it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 2:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Some progress, as I see that if I delete the two memo fields in the source table, the code I first presented works great. So, how do I get those memo fields in there? Thanks again. >>> "RANDALL R ANTHONY" 9/3/2007 1:04 PM >>> John, I just got a hit googling (natch, after coming up empty for two hours) and this one is using a temp array to strip out null values? I'll pursue this course and see what comes up. >>> "John Skolits" 9/3/2007 12:44 PM >>> You're in luck (I think). I spent a good day trying to figure out a similar problem. Check your data types. I think I had problems with date/time fields that were blank. Also remove any null values in a numeric fields. Change then to zeros. You can do that using the NZ function. Let me know if it fixes the problem. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 12:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automation Error Exporting A97 table to Excel Greetings all, I'm trying to do something fairly simple here, export a table to an excel spreadsheet. Tried one method, didn't work. Copied Dev's export function below. It works perfectly fine until the CopyFromRecordset hits the fourth record, and gives me an 'Automation Error, Method 'CopyFromRecordset' of object 'Range' failed.' Any ideas? M$'s KB and googling have been fruitless. Thanks! 'copyright - dev ashish Dim objXL As Excel.Application Dim objWkb As Workbook Dim objSht As Worksheet Set rs = CurrentDb.OpenRecordset(sSQL, _ dbOpenSnapshot) iMaxCol = rs.Fields.Count If rs.RecordCount > 0 Then rs.MoveLast: rs.MoveFirst iMaxRow = rs.RecordCount Set objXL = New Excel.Application With objXL .Visible = True Set objWkb = .Workbooks.ADD Set objSht = objWkb.Worksheets(1) With objSht .Cells.Columns.AutoFit .Range(.Cells(1, 1), .Cells(iMaxRow, _ iMaxCol)).CopyFromRecordset rs End With End With End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spike at tenbus.co.uk Mon Sep 3 15:27:41 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 03 Sep 2007 21:27:41 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <46DC6C1B.9080507@tenbus.co.uk> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com> <46DC6C1B.9080507@tenbus.co.uk> Message-ID: <46DC6E3D.5020501@tenbus.co.uk> Sorry Max - I did not mean to sound so rude! I've been struggling against flash only websites all day. Regards Chris Foote Webadmin - Tenbus wrote: > It's one of things designed in (cough)Flash. > > You'll need the appropriate plug-in to view it. It seems that > accessibility is not high in the list of priorities of the designer. > > Regards > Chris Foote > > Arthur Fuller wrote: > >> I got through with no problem. Must be something on Jim's end. >> >> On 9/3/07, Gmail wrote: >> >> >>> Hi Jim, >>> I think there is something at your end stopping you getting through. You >>> do >>> need to have javascript allowed/enabled as it is a Flash site. >>> Thinking about it, that is probably why nothing happens but you are seeing >>> the counter. >>> Regards >>> Max >>> >>> >>> > > > From max.wanadoo at gmail.com Mon Sep 3 16:27:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 22:27:34 +0100 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <46DC6E3D.5020501@tenbus.co.uk> References: <007501c7ee25$b657b370$8119fea9@LTVM> <26514A6A664545E78A32FCC6322C761B@creativesystemdesigns.com> <002901c7ee5c$bc74ed90$8119fea9@LTVM> <29f585dd0709031230o3773b10bq5b6d8cc25d1d8912@mail.gmail.com><46DC6C1B.9080507@tenbus.co.uk> <46DC6E3D.5020501@tenbus.co.uk> Message-ID: <000301c7ee71$3f480c70$8119fea9@LTVM> No worries Chris, I thought it was quite good actually as I read it as a pun on "Access"ability. But actually you are quite right - It just didn't occur to me, but I want to stay with Flash for my site, so what I will do is post a URL to bypass the Flash Bit for those who can't (or probably, don't want to) view Flash. The URL is: http://www.peoplelinks.co.uk/msaccess/downloads/ But (sob!) you will miss out on my lovely Flash site... Thanks for the interest Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Webadmin - Tenbus Sent: Monday, September 03, 2007 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] EATBloat V3.0 Sorry Max - I did not mean to sound so rude! I've been struggling against flash only websites all day. Regards Chris Foote Webadmin - Tenbus wrote: > It's one of things designed in (cough)Flash. > > You'll need the appropriate plug-in to view it. It seems that > accessibility is not high in the list of priorities of the designer. > > Regards > Chris Foote > > Arthur Fuller wrote: > >> I got through with no problem. Must be something on Jim's end. >> >> On 9/3/07, Gmail wrote: >> >> >>> Hi Jim, >>> I think there is something at your end stopping you getting through. >>> You do need to have javascript allowed/enabled as it is a Flash >>> site. >>> Thinking about it, that is probably why nothing happens but you are >>> seeing the counter. >>> Regards >>> Max >>> >>> >>> > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 3 16:53:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 3 Sep 2007 22:53:48 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709031937.l83JbLMu032689@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM> <200709031937.l83JbLMu032689@databaseadvisors.com> Message-ID: <000a01c7ee74$e934ff10$8119fea9@LTVM> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' From rockysmolin at bchacc.com Mon Sep 3 19:46:53 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 17:46:53 -0700 Subject: [AccessD] EATBloat V3.0 In-Reply-To: <2AE8A61D783C4227956941889230DADC@creativesystemdesigns.com> Message-ID: <011601c7ee8d$170e48c0$0301a8c0@HAL9005> Done. Attached as a zip file. Hopefully that won't get blocked. Let me know. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Rocky: Please send a copy to me as I can not get to the site from this location... maybe it is blocked in some way from our ISP??? TIA Jim -----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, September 03, 2007 7:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Jim: I got a copy the other day. I can send it to you off line if you can't get it from the site. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Monday, September 03, 2007 5:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Jim, I have just clicked on the link below and it is working ok. Did you click on the previous link which was missing the colon after the http bit. It should be http://www.peoplelinks.co.uk/msaccess/index.html Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 03, 2007 12:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi Max: The site appears to be down. I will try again as it may just be down for repair. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 8:28 AM To: 'John Bartow' Cc: 'Jim Lawrence'; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] EATBloat V3.0 Hi John, Sorry, missed the colon off. It should be http://www.peoplelinks.co.uk/msaccess/index.html I should have noticed that it didn't turn blue when I typed it in. Apologies for any confusion. Jim: Can you post to DBA site please. Regards Max -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, August 31, 2007 4:01 PM To: 'Gmail' Cc: 'Jim Lawrence' Subject: RE: [AccessD] EATBloat V3.0 Hi Max, The link didn't work for me. If you wish - send this to Jim and he can post it on the DBA site for you. Jim Lawrence: accessd at shaw.ca John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, August 31, 2007 9:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] EATBloat V3.0 Just to let you know that EATBloat V3.0 is available for anybody that wants it. You can get it from: http//www.peoplelinks.co.uk/msaccess Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From markamatte at hotmail.com Mon Sep 3 20:26:28 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 01:26:28 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From rockysmolin at bchacc.com Mon Sep 3 22:23:05 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Sep 2007 20:23:05 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: <011d01c7eea2$e8e2f890$0301a8c0@HAL9005> Why do you want to do this. Or, what are you trying to accomplish? Why not just open a second recordset? The criteria are the same, yes? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, September 03, 2007 6:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] SQL against recordset Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- 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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 4:32 PM From markamatte at hotmail.com Tue Sep 4 09:12:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 14:12:53 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: <011d01c7eea2$e8e2f890$0301a8c0@HAL9005> Message-ID: This is the speed thing again. I am running 10K SQL statements against a 3K row table. I need it to be as fast as possible. Currently my 10K statements are stored in a table. I pull them in as a recordset...loop through...and execute each one. The 10K are all looking at the same table...just different sets of criteria. A friend suggested I pull the data into a recordset...and have each SQL statement reference the recorset...as an attempt to save time. Maybe an array? Any thoughts? Thanks, Mark A. Matte P.S...Searching for 'stuff' like this...found an articly by Susan H. about arrays...but not quite what I needed. >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] SQL against recordset >Date: Mon, 3 Sep 2007 20:23:05 -0700 > >Why do you want to do this. Or, what are you trying to accomplish? Why >not >just open a second recordset? The criteria are the same, yes? > >Rocky > > > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Monday, September 03, 2007 6:26 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] SQL against recordset > >Hello All, > >This might sound odd...but I want to use VBA to open a recordset... > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > >then I want to open a new recordset by running an SQL statement against the >first recordset. I don't know if this is possible...and if so...what >syntax >would I use to reference the recordset? > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > >Any thoughts? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >A place for moms to take a break! >http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us > >-- >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.484 / Virus Database: 269.13.2/985 - Release Date: 9/2/2007 >4:32 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get the device you want, with the Hotmail? you love. http://www.windowsmobile.com/hotmailmobile?ocid=MobileHMTagline_1 From Gustav at cactus.dk Tue Sep 4 09:30:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 16:30:10 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark To initiate an SQL Execute is slow. Running DAO on a recordset is very fast, indeed when you have only 3K records. So open a recordset and apply the 10K filters - my guess is a 10 fold speed increase or more. /gustav >>> markamatte at hotmail.com 04-09-2007 16:12 >>> This is the speed thing again. I am running 10K SQL statements against a 3K row table. I need it to be as fast as possible. Currently my 10K statements are stored in a table. I pull them in as a recordset...loop through...and execute each one. The 10K are all looking at the same table...just different sets of criteria. A friend suggested I pull the data into a recordset...and have each SQL statement reference the recorset...as an attempt to save time. Maybe an array? Any thoughts? Thanks, Mark A. Matte P.S...Searching for 'stuff' like this...found an articly by Susan H. about arrays...but not quite what I needed. >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] SQL against recordset >Date: Mon, 3 Sep 2007 20:23:05 -0700 > >Why do you want to do this. Or, what are you trying to accomplish? Why >not >just open a second recordset? The criteria are the same, yes? > >Rocky > > > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Monday, September 03, 2007 6:26 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] SQL against recordset > >Hello All, > >This might sound odd...but I want to use VBA to open a recordset... > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > >then I want to open a new recordset by running an SQL statement against the >first recordset. I don't know if this is possible...and if so...what >syntax >would I use to reference the recordset? > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > >Any thoughts? > >Thanks, > >Mark A. Matte From fuller.artful at gmail.com Tue Sep 4 09:35:30 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 10:35:30 -0400 Subject: [AccessD] Related combos in a datasheet Message-ID: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. TIA, Arthur From RRANTHON at sentara.com Tue Sep 4 09:36:11 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 10:36:11 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000a01c7ee74$e934ff10$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM> <200709031937.l83JbLMu032689@databaseadvisors.com> <000a01c7ee74$e934ff10$8119fea9@LTVM> Message-ID: <200709041436.l84EaS76005625@databaseadvisors.com> Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 4 09:47:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 14:47:43 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft? Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From max.wanadoo at gmail.com Tue Sep 4 09:54:47 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 15:54:47 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041436.l84EaS76005625@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM> <200709041436.l84EaS76005625@databaseadvisors.com> Message-ID: <007701c7ef03$8aa3cf00$8119fea9@LTVM> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:09:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 17:09:48 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark The on-line help has an example: Set dbs = CurrentDb Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) ' First filter. strFilter = "Country = 'France'" rstOrders.Filter = strFilter Set rstFiltered = rstOrders.OpenRecordset ' Do something ... ' ' Next filter. strFilter = "Country = 'Italy'" rstOrders.Filter = strFilter Set rstFiltered = rstOrders.OpenRecordset ' Do something ... ' ' Clean up. rstFiltered.Close rstOrders.Close Set dbs = Nothing /gustav >>> markamatte at hotmail.com 04-09-2007 16:47 >>> Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte From RRANTHON at sentara.com Tue Sep 4 10:11:36 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 11:11:36 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <007701c7ef03$8aa3cf00$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM> <200709041436.l84EaS76005625@databaseadvisors.com> <007701c7ef03$8aa3cf00$8119fea9@LTVM> Message-ID: <200709041512.l84FC1M2023466@databaseadvisors.com> Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Tue Sep 4 10:14:57 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 4 Sep 2007 11:14:57 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Message-ID: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Arthur, I don't think you can -- it kind of goes against the form's nature. I've worked with this problem off in on in one of my own apps -- where I want to disable a control based on the contents of another -- but I've never gotten it to work in continuous form. Susan H. Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. From cfoust at infostatsystems.com Tue Sep 4 10:27:26 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:27:26 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: Instead of dbs.OpenRecordset, use a filter on rst1 like this: Rst1.Filter = "X = ??" ' set a filter on rst1 Set rst2 = rst1.OpenRecordset(dbOpenSnapshot) ' Set rst2 as a filtered recordset of rst1 Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, September 03, 2007 6:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] SQL against recordset Hello All, This might sound odd...but I want to use VBA to open a recordset... "Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." then I want to open a new recordset by running an SQL statement against the first recordset. I don't know if this is possible...and if so...what syntax would I use to reference the recordset? "Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Sep 4 10:31:50 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 15:31:50 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 17:09:48 +0200 > >Hi Mark > >The on-line help has an example: > > Set dbs = CurrentDb > Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) > ' First filter. > strFilter = "Country = 'France'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Next filter. > strFilter = "Country = 'Italy'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Clean up. > rstFiltered.Close > rstOrders.Close > Set dbs = Nothing > >/gustav > > > >>> markamatte at hotmail.com 04-09-2007 16:47 >>> >Thanks Gustav, > >...but that is where I am confused">So open a recordset and apply the 10K >filters "\ > >After I open the recordset...how do I "apply" the 10K filters? > >When I pull in the 3K records...an example of the 10K SQL...all records >where (FieldX between 1 and 25) and FieldY >.15 > >How do I get this criteria to reference the recordset? > >Thanks, > >Mark > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a > >3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the > >data > >into a recordset...and have each SQL statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > > >P.S...Searching for 'stuff' like this...found an articly by Susan H. >about > >arrays...but not quite what I needed. > > > > > > >From: "Rocky Smolin at Beach Access Software" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "'Access Developers discussion and problem > > >solving'" > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > > > >Why do you want to do this. Or, what are you trying to accomplish? >Why > > >not > > >just open a second recordset? The criteria are the same, yes? > > > > > >Rocky > > > > > > > > > > > > > > > > > > > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > >Sent: Monday, September 03, 2007 6:26 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] SQL against recordset > > > > > >Hello All, > > > > > >This might sound odd...but I want to use VBA to open a recordset... > > > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > > > >then I want to open a new recordset by running an SQL statement against > >the > > >first recordset. I don't know if this is possible...and if so...what > > >syntax > > >would I use to reference the recordset? > > > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From cfoust at infostatsystems.com Tue Sep 4 10:30:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:30:25 -0700 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: Are we talking continuous form or datasheet here? In a continuous form you can use a textbox bound to the same field to display the actual contents of the field, even when the combobox doesn't contain a match. Not possible in a datasheet, as far as I know. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, September 04, 2007 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Related combos in a datasheet Arthur, I don't think you can -- it kind of goes against the form's nature. I've worked with this problem off in on in one of my own apps -- where I want to disable a control based on the contents of another -- but I've never gotten it to work in continuous form. Susan H. Has anyone figured out how to make related combos work in a datasheet form? They work fine in a single form, but in a datasheet they have a problem, in that redefining the second combo's row source screws up the display of the other visible records. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 10:36:38 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 16:36:38 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041512.l84FC1M2023466@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> Message-ID: <000d01c7ef09$62e4bb90$8119fea9@LTVM> Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:37:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Sep 2007 08:37:43 -0700 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: Same as you would in any criteria string: "Country = 'France' Or Country = 'England'" Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 8:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL against recordset Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 17:09:48 +0200 > >Hi Mark > >The on-line help has an example: > > Set dbs = CurrentDb > Set rstOrders = dbs.OpenRecordset("Orders", dbOpenDynaset) > ' First filter. > strFilter = "Country = 'France'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Next filter. > strFilter = "Country = 'Italy'" > rstOrders.Filter = strFilter > Set rstFiltered = rstOrders.OpenRecordset > ' Do something ... > ' > ' Clean up. > rstFiltered.Close > rstOrders.Close > Set dbs = Nothing > >/gustav > > > >>> markamatte at hotmail.com 04-09-2007 16:47 >>> >Thanks Gustav, > >...but that is where I am confused">So open a recordset and apply the >10K filters "\ > >After I open the recordset...how do I "apply" the 10K filters? > >When I pull in the 3K records...an example of the 10K SQL...all records >where (FieldX between 1 and 25) and FieldY >.15 > >How do I get this criteria to reference the recordset? > >Thanks, > >Mark > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is > >very fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements > >against a 3K row table. I need it to be as fast as possible. > >Currently my 10K statements are stored in a table. I pull them in as > >a recordset...loop through...and execute each one. The 10K are all > >looking at the same table...just different sets of criteria. A > >friend suggested I pull the data into a recordset...and have each SQL > >statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > > >P.S...Searching for 'stuff' like this...found an articly by Susan H. >about > >arrays...but not quite what I needed. > > > > > > >From: "Rocky Smolin at Beach Access Software" > > > > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "'Access Developers discussion and problem > > >solving'" > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > > > >Why do you want to do this. Or, what are you trying to accomplish? >Why > > >not > > >just open a second recordset? The criteria are the same, yes? > > > > > >Rocky > > > > > > > > > > > > > > > > > > > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > >Matte > > >Sent: Monday, September 03, 2007 6:26 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] SQL against recordset > > > > > >Hello All, > > > > > >This might sound odd...but I want to use VBA to open a recordset... > > > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > > > >then I want to open a new recordset by running an SQL statement > > >against > >the > > >first recordset. I don't know if this is possible...and if > > >so...what syntax would I use to reference the recordset? > > > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Gustav at cactus.dk Tue Sep 4 10:44:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 04 Sep 2007 17:44:10 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Yes, that's the normal "where" syntax like: strFilter = "Country = 'France' And ProductID = 34" /gustav >>> markamatte at hotmail.com 04-09-2007 17:31 >>> Thanks again, With: > strFilter = "Country = 'France'" is there syntax to add multiple fields and criteria to this property? Thanks, Mark From askolits at nni.com Tue Sep 4 10:44:56 2007 From: askolits at nni.com (John Skolits) Date: Tue, 4 Sep 2007 11:44:56 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000d01c7ef09$62e4bb90$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com> <000d01c7ef09$62e4bb90$8119fea9@LTVM> Message-ID: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 4 10:52:28 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 10:52:28 -0500 Subject: [AccessD] SQL against recordset In-Reply-To: References: Message-ID: <002a01c7ef0b$987f8080$0200a8c0@danwaters> Mark - something like this might work . . . Dim stg1 as String Dim rst1 as DAO.Recordset Dim rstCriteria as DAO.Recordset Dim rstDuplicate as DAO.Recordset '-- Set original recordset Stg1 = "SELECT * FROM tbl3K" Set rst1 = dbengine(0)(0).Openrecordset(stg1,dbopensnapshot) Set rstDuplicate = rst1 Do while rst1.eof = false '-- Now start working your 10K criteria list rstDuplicate.filter = rst1("Criteria") set rstCriteria = rstDuplicate.OpenRecordset Do while rstCriteria.eof = false '-- take actions rstCriteria.movenext Loop Rst1.movenext Loop '-- Close recordsets -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 9:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL against recordset Thanks Gustav, ...but that is where I am confused">So open a recordset and apply the 10K filters "\ After I open the recordset...how do I "apply" the 10K filters? When I pull in the 3K records...an example of the 10K SQL...all records where (FieldX between 1 and 25) and FieldY >.15 How do I get this criteria to reference the recordset? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft. Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From markamatte at hotmail.com Tue Sep 4 11:34:34 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 04 Sep 2007 16:34:34 +0000 Subject: [AccessD] FTP Problem In-Reply-To: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreateanftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From ssharkins at gmail.com Tue Sep 4 11:37:18 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 4 Sep 2007 12:37:18 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <001301c7ef11$df6acf30$048e01c7@SusanOne> Are we talking continuous form or datasheet here? In a continuous form you can use a textbox bound to the same field to display the actual contents of the field, even when the combobox doesn't contain a match. Not possible in a datasheet, as far as I know. =========Maybe I misunderstood the problem. I thought he was saying that when he chooses an item from a combo box to update the contents of another field in the same record, that the form updates all the records, not just the current one. I have a similar problem -- if I try to disable a control based on the contents of another field in the same record, Access disables the control for all the records, if I use continuous form. Susan H. From RRANTHON at sentara.com Tue Sep 4 12:01:09 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 04 Sep 2007 13:01:09 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com> <000d01c7ef09$62e4bb90$8119fea9@LTVM> <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Message-ID: <200709041701.l84H1S2s004737@databaseadvisors.com> As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 12:09:32 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 18:09:32 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <004201c7ef0a$8b5a2280$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM> <004201c7ef0a$8b5a2280$0f01a8c0@officexp> Message-ID: <002401c7ef16$5d713e10$8119fea9@LTVM> Ooops, sorry. I didn't mean it to read that way. Merely that, generally speaking, we work quite long hours in the UK and that I will probably be able to respond even if you are 5 hrs behind in time zones! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, September 04, 2007 4:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 nni.com Tue Sep 4 12:11:04 2007 From: askolits at nni.com (John Skolits) Date: Tue, 4 Sep 2007 13:11:04 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041701.l84H1S2s004737@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM><004201c7ef0a$8b5a2280$0f01a8c0@officexp> <200709041701.l84H1S2s004737@databaseadvisors.com> Message-ID: <008801c7ef16$93e58500$0f01a8c0@officexp> Actually, I was referring to the implication that the UK starts early and finishes late, while maybe other countries do not? Either way, I was stretching a bit to make that conclusion. It was only in fun :) Hope Max doesn't take it personally. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 1:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 12:22:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 18:22:22 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <008801c7ef16$93e58500$0f01a8c0@officexp> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM><200709041512.l84FC1M2023466@databaseadvisors.com><000d01c7ef09$62e4bb90$8119fea9@LTVM><004201c7ef0a$8b5a2280$0f01a8c0@officexp><200709041701.l84H1S2s004737@databaseadvisors.com> <008801c7ef16$93e58500$0f01a8c0@officexp> Message-ID: <002801c7ef18$28506740$8119fea9@LTVM> Not at all, John. No worries. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, September 04, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Actually, I was referring to the implication that the UK starts early and finishes late, while maybe other countries do not? Either way, I was stretching a bit to make that conclusion. It was only in fun :) Hope Max doesn't take it personally. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 1:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel As long as he can fix this for me he can write whatever he wants! :) >>> "John Skolits" 9/4/2007 11:44 AM >>> Oh Boy! That P.S. may open a can of worms. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Can you send the table? Don't need it all, just some sample rows which included the ones that the program chocked on. Max Ps. I always start early and finish late. We do that in the UK. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 14:47:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 20:47:34 +0100 Subject: [AccessD] FTP Problem In-Reply-To: References: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <003601c7ef2c$71313c00$8119fea9@LTVM> Mark, I downloaded the code, but it keeps falling over when compiling on the line "Me.SetDir m_RemoteDir" The error message is "Method or data member not found" and highlights the ".SetDir", it obviously doesn't like the "ME" bit. I presume you have code that compiles ok. Can you email me a copy please (max.wanadoo at gmail.com) Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 5:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] FTP Problem Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 16:32 From Chester_Kaup at kindermorgan.com Tue Sep 4 16:32:42 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 4 Sep 2007 16:32:42 -0500 Subject: [AccessD] Cannot run query in code. Message-ID: I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 max.wanadoo at gmail.com Tue Sep 4 16:46:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 22:46:54 +0100 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <200709041512.l84FC1M2023466@databaseadvisors.com> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> Message-ID: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 4 16:46:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 4 Sep 2007 22:46:54 +0100 Subject: [AccessD] Cannot run query in code. In-Reply-To: References: Message-ID: <000701c7ef3d$1e2456d0$8119fea9@LTVM> Hi, The error is caused because you have a SELECT Statement as your sql. This is not an Action Statement You need an Action Statement (eg "insert into tmp_Hold_Source (fld1) values (2)") Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 10:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 miscellany at mvps.org Tue Sep 4 16:46:55 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 09:46:55 +1200 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> Message-ID: <46DDD24F.5050002@mvps.org> Arthur, I am not sure about datasheet, I don't have any experience with that. But in a contunuous form you can do code like this, on the Enter event of the second combobox: Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE YourField = " & Me.FirstCombo ... and then on its Exit event: Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" This will not work if you use the traditional Requery of the second combobox on the After Update of the first. Regards Steve Arthur Fuller wrote: > Has anyone figured out how to make related combos work in a datasheet form? > They work fine in a single form, but in a datasheet they have a problem, in > that redefining the second combo's row source screws up the display of the > other visible records. > > TIA, > Arthur From Chester_Kaup at kindermorgan.com Tue Sep 4 16:56:15 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 4 Sep 2007 16:56:15 -0500 Subject: [AccessD] Cannot run query in code. In-Reply-To: <000701c7ef3d$1e2456d0$8119fea9@LTVM> References: <000701c7ef3d$1e2456d0$8119fea9@LTVM> Message-ID: Silly me. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 04, 2007 4:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cannot run query in code. Hi, The error is caused because you have a SELECT Statement as your sql. This is not an Action Statement You need an Action Statement (eg "insert into tmp_Hold_Source (fld1) values (2)") Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 10:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 dwaters at usinternet.com Tue Sep 4 16:58:10 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 16:58:10 -0500 Subject: [AccessD] Cannot run query in code. In-Reply-To: References: Message-ID: <001401c7ef3e$af3e1240$0200a8c0@danwaters> I've never used a SELECT statement and the DoCmd.RunSQL method together. Use DoCmd.RunSQL with an INSERT INTO or an UPDATE or a DELETE. Or, Set rst = CurrentDB.OpenRecordset(strSQL,dbOpenSnapshot). Now you have a recordset to work with. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 04, 2007 4:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot run query in code. I have a module in which I compose several queries and run them. They all work fine. I added one more and now get a message of "A RunSQL action requires an argument consisting of an SQL statement". Below is the problem code. I have run out of ideas as to what the problem is. A compact and repair did nothing. Thanks. strSQL = "Select * from Monthly_Appended " DoCmd.RunSQL strSQL 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 rusty.hammond at cpiqpc.com Tue Sep 4 16:59:00 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 4 Sep 2007 16:59:00 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> I have a form that when I close it either from a close button on the form or from the built in close button, I want to test if the current record has changed. If it has changed, I want to prompt the user to either Save the record and go ahead and close the form, not save the record and close the form, or not save the record and not close the form via a YesNoCancel message box. If I use the close event of the form testing for me.dirty doesn't work because the record is already saved. Is there any way to do this? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 dwaters at usinternet.com Tue Sep 4 17:13:32 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 17:13:32 -0500 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> Message-ID: <001501c7ef40$d472d7b0$0200a8c0@danwaters> Once the changes have been saved to the table, the only way to undo the changes is to change the record again back to the condition it was in to begin with. Instead, I'd use an unbound form. Then keep track of the original values in duplicate controls that are hidden. Then you can do a comparison when the Close button is pushed and the button's click event runs. Based on the comparison, you can offer your user the choices you want. If you want to use the X in the upper right corner, you'll need to do the comparison in the form's close event, and cancel that event if needed. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, September 04, 2007 4:59 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cancel the closing of a form I have a form that when I close it either from a close button on the form or from the built in close button, I want to test if the current record has changed. If it has changed, I want to prompt the user to either Save the record and go ahead and close the form, not save the record and close the form, or not save the record and not close the form via a YesNoCancel message box. If I use the close event of the form testing for me.dirty doesn't work because the record is already saved. Is there any way to do this? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 fuller.artful at gmail.com Tue Sep 4 17:19:22 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 18:19:22 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <46DDD24F.5050002@mvps.org> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <46DDD24F.5050002@mvps.org> Message-ID: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Interesting. i will try that on a little test program. A. On 9/4/07, Steve Schapel wrote: > > Arthur, > > I am not sure about datasheet, I don't have any experience with that. > But in a contunuous form you can do code like this, on the Enter event > of the second combobox: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE > YourField = " & Me.FirstCombo > ... and then on its Exit event: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" > > This will not work if you use the traditional Requery of the second > combobox on the After Update of the first. > > Regards > Steve > From fuller.artful at gmail.com Tue Sep 4 20:56:48 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Sep 2007 21:56:48 -0400 Subject: [AccessD] Access Toolbar Question Message-ID: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur From accessd at shaw.ca Tue Sep 4 21:07:09 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 04 Sep 2007 19:07:09 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002a01c7ef0b$987f8080$0200a8c0@danwaters> Message-ID: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim From rockysmolin at bchacc.com Tue Sep 4 21:33:12 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 4 Sep 2007 19:33:12 -0700 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <010301c7ef65$1aec5620$0301a8c0@HAL9005> Make the query into a Make Table, run it from code, create the table and then export the table using TrasnferSpreadsheet? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 6:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- 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.485 / Virus Database: 269.13.5/990 - Release Date: 9/4/2007 10:36 PM From dwaters at usinternet.com Tue Sep 4 22:02:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 22:02:34 -0500 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <001f01c7ef69$35b16050$0200a8c0@danwaters> To restore all the default toolbar buttons and menu items: Tools | Customize | Options tab | push Reset menu and toolbar usage data Then with the query in datasheet view select: Tools | Office Links | Analyze it With Microsoft Excel BOL! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 8:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 4 22:02:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 4 Sep 2007 22:02:34 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> References: <002a01c7ef0b$987f8080$0200a8c0@danwaters> <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Message-ID: <002001c7ef69$362271a0$0200a8c0@danwaters> Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 4 22:42:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 04 Sep 2007 20:42:34 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002001c7ef69$362271a0$0200a8c0@danwaters> Message-ID: <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> Now that sounds bloody easy. You're a genius Dan. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 04, 2007 8:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 miscellany at mvps.org Wed Sep 5 00:21:12 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 17:21:12 +1200 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE02@cpixchng-1.cpiqpc.net> Message-ID: <46DE3CC8.7010201@mvps.org> Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the form or > from the built in close button, I want to test if the current record has > changed. If it has changed, I want to prompt the user to either Save the > record and go ahead and close the form, not save the record and close the > form, or not save the record and not close the form via a YesNoCancel > message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? From miscellany at mvps.org Wed Sep 5 00:28:32 2007 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 05 Sep 2007 17:28:32 +1200 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <46DE3E80.7030509@mvps.org> Arthur, You can use code to dynamically control the number of columns in a report based on a crosstab query. I think I could dig out some sample code if you're interested. Otherwise, couldn't you use either DoCmd.OutputTo or DoCmd.TransferSpreadsheet to get the crosstab query data into an Excel file? Regards Steve Arthur Fuller wrote: > Version: A2k3, classic FE/BE arrangement. > No Customization of Toolbars. Central UI is the classic switchboard, > customized by me. > Problem: When running an MDB crosstab report, that is date-scoped, one > cannot predict the number of columns (let's say it's scoped by day), but the > user may choose something larger or smaller than the default "this week" > date range. So one cannot predict the number of columns, and therefore a > report as such is out of the question, since it's a crosstab. The obvious > alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), > which works a treat. However, the "Export to Excel" button has disappeared > from the toolbar. I want to provide a one-click "export to Excel" of the > resultant xtab and in Excel the user can format and customize to suit. > > I am aware that this is a tad the "lazy man's approach" but I'm doing this > for a friend and I've already spent way more time satisfying petty > requirements than the pay deserves, but that's what you get for hiring me. > The friend in question is perfectly willing to accept an Excel spreadsheet > as the output. Given that I'm in a query, however, rather than a form, I > can't exactly plonk on a button. Said "Export to Excel" button used to be > there, but I don't know where it's gone. > > Any suggestions? (I've never had joy with custom toolbars; perhaps because I > never understood them fully, but that's beside the point.) I just want to > locate and reveal those "Export" buttons, most importantly Excel but perhaps > also including the Word button. > > What to do? > > TIA, > Arthur From max.wanadoo at gmail.com Wed Sep 5 02:31:40 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 08:31:40 +0100 Subject: [AccessD] Access Toolbar Question In-Reply-To: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> Message-ID: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Hi Arthur, This will output a Table or Query into Excel DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. HTH Max Ps. I am using V11.0 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 2:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Toolbar Question Version: A2k3, classic FE/BE arrangement. No Customization of Toolbars. Central UI is the classic switchboard, customized by me. Problem: When running an MDB crosstab report, that is date-scoped, one cannot predict the number of columns (let's say it's scoped by day), but the user may choose something larger or smaller than the default "this week" date range. So one cannot predict the number of columns, and therefore a report as such is out of the question, since it's a crosstab. The obvious alternative (already in place) is to DoCmd.RunCommand.OpenQuery(blablabla), which works a treat. However, the "Export to Excel" button has disappeared from the toolbar. I want to provide a one-click "export to Excel" of the resultant xtab and in Excel the user can format and customize to suit. I am aware that this is a tad the "lazy man's approach" but I'm doing this for a friend and I've already spent way more time satisfying petty requirements than the pay deserves, but that's what you get for hiring me. The friend in question is perfectly willing to accept an Excel spreadsheet as the output. Given that I'm in a query, however, rather than a form, I can't exactly plonk on a button. Said "Export to Excel" button used to be there, but I don't know where it's gone. Any suggestions? (I've never had joy with custom toolbars; perhaps because I never understood them fully, but that's beside the point.) I just want to locate and reveal those "Export" buttons, most importantly Excel but perhaps also including the Word button. What to do? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 5 02:35:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 08:35:09 +0100 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Message-ID: <001401c7ef8f$4a7e4720$8119fea9@LTVM> Hi Arthur, I *think* I have a solution, but I have to go out now. Will post it when I check it later. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 04, 2007 11:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Related combos in a datasheet Interesting. i will try that on a little test program. A. On 9/4/07, Steve Schapel wrote: > > Arthur, > > I am not sure about datasheet, I don't have any experience with that. > But in a contunuous form you can do code like this, on the Enter event > of the second combobox: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery WHERE > YourField = " & Me.FirstCombo ... and then on its Exit event: > Me.SecondCombo.RowSource = "SELECT whatever FROM YourQuery" > > This will not work if you use the traditional Requery of the second > combobox on the After Update of the first. > > Regards > Steve > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Wed Sep 5 07:40:27 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Wed, 05 Sep 2007 08:40:27 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel (Solved) In-Reply-To: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Message-ID: <200709051240.l85CeorW012130@databaseadvisors.com> Max, An excellent example of great minds think alike. One of my colleague's suggested I was in a desperate search for a problem, when the answer was quite obvious. I used the transfer method to export it to a .csv, which by default opens in Excel. The transferspreadsheet works even better. Thanks for all your help, and thanks, John for chiming in. Now I should be able to make an afternoon tee time no problem.. >>> "Gmail" 9/4/2007 5:46 PM >>> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 5 07:43:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 08:43:04 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> Message-ID: <20070905124305.D5636C06B@smtp-auth.no-ip.com> You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Wed Sep 5 07:49:12 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Wed, 05 Sep 2007 08:49:12 -0400 Subject: [AccessD] Automation Error Exporting A97 table to Excel In-Reply-To: <000601c7ef3d$1c7e47f0$8119fea9@LTVM> References: <200709031630.l83GUmZU028702@databaseadvisors.com><008b01c7ee49$aaad83f0$0f01a8c0@officexp><200709031704.l83H4XLw010193@databaseadvisors.com><200709031839.l83Id7Wt011463@databaseadvisors.com><002201c7ee5b$d76825f0$8119fea9@LTVM><200709031937.l83JbLMu032689@databaseadvisors.com><000a01c7ee74$e934ff10$8119fea9@LTVM><200709041436.l84EaS76005625@databaseadvisors.com><007701c7ef03$8aa3cf00$8119fea9@LTVM> <200709041512.l84FC1M2023466@databaseadvisors.com> <000601c7ef3d$1c7e47f0$8119fea9@LTVM> Message-ID: <200709051249.l85CnTIO018285@databaseadvisors.com> Oops I spoke too soon. Guess what? The transferspreadsheet method still cuts off at 255 characters. The transfer method to a .csv is the way to go. Thanks again!! >>> "Gmail" 9/4/2007 5:46 PM >>> Hi, Well after wasting some time with this I laid down, put a towel on my head and instead of thinking what the detailed answer was to the error that kept coming up, I starting to think laterally and asked myself "What are we trying to achieve?". The answer, was of course "Output a Table into Excel" The answer is so simple. Here is the single line of code that solves the problem. DoCmd.TransferSpreadsheet acExport, , "tmp_Hold_Source", "C:\tmp_Hold_Source", True ' change output path to suit. Regards Max Ps. Works for Access V11.0, not sure about 97. Pps. Does not need a reference to Excel any longer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Sorry, Max, that's the whole gist of the situation. My table contains 13 fields with dates, general data, and 2 memo fields. Some of the fields, including the memo fields can have null values. You must have been working late yesterday, I'm East Coast USA. >>> "Gmail" 9/4/2007 10:54 AM >>> What memo fields? Sorry, I must have come into this a bit late. I take it that there are meno fields in your table. Do they all contain data or are some of them null? Is it possible to send me the table off-line? (change any sensitive bits if you want, but not the essential nature of the table). Max.wanadoo at gmail.com Regards Max Ps. My time zone is UK. Where is yours? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 04, 2007 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, Did as directed, changed 8.0 to 11, compiled, etc. Still receive the object defined error noted below. It errors on this line: .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray I also removed the memo fields from the table and your code works. So, back to the problem of memo fields... >>> "Gmail" 9/3/2007 5:53 PM >>> Hi, I changed it as follows and this worked ok for me. Cut-n-past the full code below into a new module. And then set a Reference to Microsoft Excel 11.0 Object Library and then compile it. It should compile with no errors. You will notice that I also changed the order and values somewhat. It posted the correct values and all the objects into the s/sheet with no errors. Regards Max Ps. I have never done this before, so it is a learning curve for me too. Option Compare Database Option Explicit Function xv() ' set Reference to Microsoft Excel 11.0 Object Library Dim dbs As DAO.Database, rst As DAO.Recordset, fld As Field, varValue As Variant Dim lngRecCt As Long, lngFldCt As Long Dim TempArray() Dim objXL As Object Dim objWkb As Workbook Dim objSht As Worksheet Set objXL = New Excel.Application Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * from tBELnk_MenuWindowModes") rst.MoveLast lngRecCt = rst.RecordCount lngFldCt = rst.Fields.Count ReDim TempArray(lngRecCt, lngFldCt) lngRecCt = 0 rst.MoveFirst Do While Not rst.EOF lngRecCt = lngRecCt + 1: lngFldCt = 0 For Each fld In rst.Fields lngFldCt = lngFldCt + 1 If IsNull(fld.Value) Then varValue = "" ' or 0 (zero) if that is what you want) Else varValue = fld.Value End If TempArray(lngRecCt, lngFldCt) = varValue Debug.Print lngRecCt, lngFldCt, TempArray(lngRecCt, lngFldCt) Next fld rst.MoveNext Loop With objXL .Visible = True Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Range("a1").Resize(lngRecCt + 1, lngFldCt + 1).Value = TempArray .Cells.Columns.AutoFit End With End With Set dbs = Nothing: Set rst = Nothing: Set fld = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Monday, September 03, 2007 8:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Error Exporting A97 table to Excel Max, This seems to create the array nicely, however when I try to load it to the spreadsheet I get the below. The code is below. 'Application-defined or object defined error.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Sep 5 08:40:41 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 5 Sep 2007 08:40:41 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Steve, When I put that code in the BeforeUpdate the form still closes. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 12:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the form or > from the built in close button, I want to test if the current record has > changed. If it has changed, I want to prompt the user to either Save the > record and go ahead and close the form, not save the record and close the > form, or not save the record and not close the form via a YesNoCancel > message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? -- 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 markamatte at hotmail.com Wed Sep 5 09:12:09 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 05 Sep 2007 14:12:09 +0000 Subject: [AccessD] FTP Problem In-Reply-To: <003601c7ef2c$71313c00$8119fea9@LTVM> Message-ID: Sent a copy offline...probably a reference issue. Good luck, Mark A. Matte >From: "Gmail" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] FTP Problem >Date: Tue, 4 Sep 2007 20:47:34 +0100 > >Mark, >I downloaded the code, but it keeps falling over when compiling on the line >"Me.SetDir m_RemoteDir" >The error message is "Method or data member not found" and highlights the >".SetDir", it obviously doesn't like the "ME" bit. >I presume you have code that compiles ok. Can you email me a copy please >(max.wanadoo at gmail.com) >Thanks >Max > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, September 04, 2007 5:35 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] FTP Problem > >Hello All, > >I finally found where I got my ftp code... > >http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate >anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp > >"By William Hindman,Darren Dick, and Jim Lawrence " > >This code has been running 24/7 for the last few years...no problem. Last >week something changed with my ISP...and of course they are telling me the >problem is with whatever program I am using to FTP(after I explain what FTP >is)...anyway...here is the problem: > >I can use IE to navigate to the site...I can see the files...I can download >them...the problem is when I do it via code. I can connect and open the >FTP >directory. When the code brings back the first file found...it is mostly >"empty rectangles" with some of the file name mixed in...and it can't parse >out the name. I'm pretty sure it has something to do with them changing >servers. > >Anyone have any ideas as why the file name would be returned 'garbled'...or >what I need to find out from them? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >No virus found in this incoming message. >Checked by AVG. >Version: 7.5.485 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007 >16:32 > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From fuller.artful at gmail.com Wed Sep 5 10:12:15 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Sep 2007 11:12:15 -0400 Subject: [AccessD] Access Toolbar Question In-Reply-To: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Message-ID: <29f585dd0709050812o54ad7f8dm61c7f90b23d1abfb@mail.gmail.com> Thanks! On 9/5/07, Gmail wrote: > > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > > HTH > Max > Ps. I am using V11.0 > From cfoust at infostatsystems.com Wed Sep 5 10:21:48 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:21:48 -0700 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Message-ID: All you're doing is cancelling the update, not cancelling the close of the form. Use the Unload event of the form to cancel a close. Set a flag in BeforeUpdate and then test that flag in Unload to see whether the form should be allowed to close. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, September 05, 2007 6:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cancel the closing of a form Steve, When I put that code in the BeforeUpdate the form still closes. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 12:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, Simply use the Before Update event of the form. If the current record has not changed, the Before Update event will not occur. If the current record has changed, the code that fires could be along these lines: Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If Regards Steve rusty.hammond at cpiqpc.com wrote: > I have a form that when I close it either from a close button on the > form or > from the built in close button, I want to test if the current record > has changed. If it has changed, I want to prompt the user to either > Save the record and go ahead and close the form, not save the record > and close the form, or not save the record and not close the form via > a YesNoCancel message box. > > If I use the close event of the form testing for me.dirty doesn't work > because the record is already saved. > > Is there any way to do this? -- 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 dwaters at usinternet.com Wed Sep 5 10:30:52 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 10:30:52 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> References: <002001c7ef69$362271a0$0200a8c0@danwaters> <9A469FE717A240F188142BA2DDBBD71A@creativesystemdesigns.com> Message-ID: <001601c7efd1$bf105370$0200a8c0@danwaters> Thanks - I'll save this email for all the unbelievers! ;-) Actually, John's method is a good one because it can handle all the events in a subform from the main form. Now, if John can just teach us how to do it . . . Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 10:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Now that sounds bloody easy. You're a genius Dan. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 04, 2007 8:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Jim, First create a Public procedure in the Main form - call it MonitoringProcedure. Then in the control's click event, Call Me.Parent.MonitoringProcedure That's it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 04, 2007 9:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 10:30:52 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 10:30:52 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <20070905124305.D5636C06B@smtp-auth.no-ip.com> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com> <20070905124305.D5636C06B@smtp-auth.no-ip.com> Message-ID: <001701c7efd1$bf6f1540$0200a8c0@danwaters> John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 10:45:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:45:36 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <001701c7efd1$bf6f1540$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com> <001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 10:58:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 08:58:52 -0700 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: Oops, sorry. I was thinking of a popup form there. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 11:13:36 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 11:13:36 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> Message-ID: <002101c7efd7$b743cef0$0200a8c0@danwaters> Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 11:28:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 09:28:05 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002101c7efd7$b743cef0$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters> <002101c7efd7$b743cef0$0200a8c0@danwaters> Message-ID: No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 11:50:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 11:50:19 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters> Message-ID: <002501c7efdc$d826bf10$0200a8c0@danwaters> Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 galeper at gmail.com Wed Sep 5 11:59:47 2007 From: galeper at gmail.com (Gale Perez) Date: Wed, 5 Sep 2007 09:59:47 -0700 Subject: [AccessD] Access 2007 Reports: Only Three Margin Options? Message-ID: <5b2621db0709050959k5a9b788alc89f1190169fd150@mail.gmail.com> Hi! I'm doing a report in Access 2007 and feel silly asking this question, but am I stuck with the three margin options on the Page Setup tab? I need a .5" top/bottom and 1" sides, but the only options are Normal (top/bottom .75", sides .35"), Wide (top/bottom 1", sides .75"), and Narrow (all .25"). I've tried moving my Detail controls to the right to simulate 1" side margins, but the alternate row coloring shows up all the way to the real margin and looks funny since there is no data that far to the left. I didn't see a property setting to change it. Is there a way around this? Thank you, Gale From cfoust at infostatsystems.com Wed Sep 5 11:58:11 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 09:58:11 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002501c7efdc$d826bf10$0200a8c0@danwaters> References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters> <002501c7efdc$d826bf10$0200a8c0@danwaters> Message-ID: I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 5 12:10:14 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 18:10:14 +0100 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com><46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> Message-ID: <001501c7efdf$a1a26b30$8119fea9@LTVM> Hi Arthur, I have uploaded a demo of Combo Boxes populated within a Data Sheet to: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip There are two Forms, each has 4 Records/Rows in the Form. Form 1 and Form 2 do NOT operate the same Each Record/Row has 6 Combo Boxes. The first three are BOUND to the Record (I will call them Group 1). The second group of three are UNBOUND (I will call them Group 2) so that you can see the difference between the two groups. I make use of the Persistent Static Function that was posted on this site (of which you were one of the contributors - so what goes around, comes around). These are the Gotchas: Form 1: Within each Group, selecting an item in Combo1, will populate Combo2 and selecting an item in Combo2 will populate Combo3. Group 1. Because they are Bound, they will correctly hold the values selected BUT when you move to a new Record/Row the combo boxes of the previous record may no long be visible/viewable on screen until you move back to that record. This is because the combo boxes will now hold/display the values of the current record. This may be disconcerting to some users. Group 2. Because they are UNBound, they will show the same info on each record/row regardless of what was selected. I hope this helps a bit, but I don't think it is a perfect solution and because of the nature of multi-records being display, it cannot (I believe) be overcome directly. It may however be possible to have the Bound Combo Boxes hidden behind a Label/Text box which shows the values within the Record. On clicking the Label/Text you can swap over the visibilie. I have shown an example of this in Form 2. Form 2: This does not show any combo boxes (but they are there). Instead it shows the current values of the selection. when a user clicks on the value, a popup shows and displays the combo boxes for selection. On exit from the popup, the values are written back to the main form2 and then displayed. I really dont know if this is what you want, but it was a difficult exercise for me! I hope it helps somewhate. Regards Max From dwaters at usinternet.com Wed Sep 5 12:20:57 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 12:20:57 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <1040A93729DF462A887D0CDBADFF0264@creativesystemdesigns.com><20070905124305.D5636C06B@smtp-auth.no-ip.com><001701c7efd1$bf6f1540$0200a8c0@danwaters><002101c7efd7$b743cef0$0200a8c0@danwaters><002501c7efdc$d826bf10$0200a8c0@danwaters> Message-ID: <002601c7efe1$1fa055f0$0200a8c0@danwaters> Thanks - I'll look for that! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 5 12:32:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 13:32:02 -0400 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: <20070905173204.A2DE2BBFB@smtp-auth.no-ip.com> The biggest thing to understand is that because the subform loads first, its events fire first BEFORE the class for the main form is even loaded. Thus the main form is incapable of responding to the OnOpen (for example) of the subform simply because the main form class is not yet loaded. This is NOT true if you use JIT subforms, since in that case the click on the tab causes the subform to load (and its class) and of course the main form class is already loaded by then so it can sink the subform events, even the load events. By and large though it is not the OnOpen or OnLoad of the subform that you are trying to sink in the main form but rather things like the AfterUpdate and control events in the subform. John 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: Wednesday, September 05, 2007 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I wasn't talking about the sequence when the subform loads, which happens before the load of the parent form. I'm talking about the code behind the event you're monitoring, like a button click event on the subform. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thanks Charlotte - that's just what I need. And I've always seen the subform's code run first - and it always runs twice for some reason. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form No, what I posted was for an independent popup form. A subform is a little different. The difference would be that you would declare your variable as a subform and set it to Me.mysubform.Form to give you access to the events of the subform itself, not just the subform control. Then, in the IDE dropdown where you see the controls of the parent form, you will also see your "withevents" subform object, i.e., mySubform. Dim WithEvents mySubForm As Form In the Open or Load event of the parent form, do this: Set mySubForm = Me.mysubform.Form The easiest way to create the shell is to select the mySubForm object in the controls dropdown and then select the event you want to intercept. VBA will create the shell with the proper signature and all you need do it add the code you want to run for that event. Please note that is you also have code in the subform for that event, both sets of code will run, although I don't recall which set runs first. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Charlotte, I know I'm dense on this. The form you're setting - is that being done in the Main form's module and myForm is a subform in that main form? How do I create the 'shell' routines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Wed Sep 5 13:03:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 05 Sep 2007 11:03:08 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <20070905124305.D5636C06B@smtp-auth.no-ip.com> Message-ID: <2C3A49E64FF242C09E77BB96B6D11D63@creativesystemdesigns.com> Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 miscellany at mvps.org Wed Sep 5 13:02:17 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 06:02:17 +1200 Subject: [AccessD] Access Toolbar Question In-Reply-To: <001201c7ef8e$cdc78cf0$8119fea9@LTVM> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com> <001201c7ef8e$cdc78cf0$8119fea9@LTVM> Message-ID: <46DEEF29.2070801@mvps.org> Max, I have sometimes found that OutputTo method can be preferable to TransferSpreadsheet in cases like this, as data typing and formatting seem to be better retained. Regards Steve Gmail wrote: > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > From accessd at shaw.ca Wed Sep 5 13:06:46 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 05 Sep 2007 11:06:46 -0700 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 13:09:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 11:09:23 -0700 Subject: [AccessD] SubForm and form In-Reply-To: References: Message-ID: I'll rummage around and see if I can find something that would help. Since I work almost exclusively in .Net now, it may take a while. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 max.wanadoo at gmail.com Wed Sep 5 13:24:12 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 5 Sep 2007 19:24:12 +0100 Subject: [AccessD] Access Toolbar Question In-Reply-To: <46DEEF29.2070801@mvps.org> References: <29f585dd0709041856ue182825t2240746ad37d3082@mail.gmail.com><001201c7ef8e$cdc78cf0$8119fea9@LTVM> <46DEEF29.2070801@mvps.org> Message-ID: <000001c7efe9$f61b4830$8119fea9@LTVM> Hi Steve, Yes, I think you may be right, and there is another issue here which has just been brought to my attention. Apparently (I haven't checked) but the TransferSpreadsheeet method truncates at 255 characters (in a Memo field for example) whereas, I am told, the CSV method does not. This will impact on my EATBloat program which defaults to the Transferspreadsheet method (there is the CSV option there, but commented out and with no Form interface). Once I have tested these assertions, then I will have to make some changes. Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Wednesday, September 05, 2007 7:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Toolbar Question Max, I have sometimes found that OutputTo method can be preferable to TransferSpreadsheet in cases like this, as data typing and formatting seem to be better retained. Regards Steve Gmail wrote: > Hi Arthur, > This will output a Table or Query into Excel > > DoCmd.TransferSpreadsheet acExport, , "qBELnk_MenuGroupsSub", > "C:\qBELnk_MenuGroupsSub", True ' change output path to suit. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Wed Sep 5 13:40:18 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 06:40:18 +1200 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE03@cpixchng-1.cpiqpc.net> Message-ID: <46DEF812.1040709@mvps.org> Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > From jwcolby at colbyconsulting.com Wed Sep 5 13:48:00 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Sep 2007 14:48:00 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <2C3A49E64FF242C09E77BB96B6D11D63@creativesystemdesigns.com> Message-ID: <000001c7efed$4911f630$6c7aa8c0@M90> I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 rusty.hammond at cpiqpc.com Wed Sep 5 14:46:11 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 5 Sep 2007 14:46:11 -0500 Subject: [AccessD] Cancel the closing of a form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> I was afraid of that. I was hoping to be able to leave the native close button. Thanks for the help. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > -- 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 cfoust at infostatsystems.com Wed Sep 5 14:56:20 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 12:56:20 -0700 Subject: [AccessD] Cancel the closing of a form In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE07@cpixchng-1.cpiqpc.net> Message-ID: You should be able to leave the close button. The Unload event has a cancel argument. If fires when you try to close the form, so you can cancel the close in the Unload event. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, September 05, 2007 12:46 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cancel the closing of a form I was afraid of that. I was hoping to be able to leave the native close button. Thanks for the help. -----Original Message----- From: Steve Schapel [mailto:miscellany at mvps.org] Sent: Wednesday, September 05, 2007 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cancel the closing of a form Rusty, I would expect the form to still close if you click either 'Yes' or 'No' on the message box. I thought that would be the desired behaviour. In the case of 'Cancel', you don't want the form to close, right? Ok, I now see that the idea I suggested before was over-simplistic. Sorry. If you remove the native [X] Close button, and close the form via a command button on the form, I think this will work: Private Sub YourCommandButton_Click() On Error GoTo abandon DoCmd.RunCommand acCmdSaveRecord DoCmd.Close acForm, Me.Name abandon: If Err.Number = 2501 Then Exit Sub End Sub ... and then the Before Update code as I suggested before: Private Sub Form_BeforeUpdate(Cancel As Integer) Dim answer As Integer answer = MsgBox("Save changes?", vbYesNoCancel) If answer = vbNo Then Me.Undo ElseIf answer = vbCancel Then Cancel = True End If End Sub Regards Steve rusty.hammond at cpiqpc.com wrote: > Steve, > > When I put that code in the BeforeUpdate the form still closes. > -- 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 shamil at users.mns.ru Wed Sep 5 05:38:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 14:38:31 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> Message-ID: <001501c7efa8$f2029c30$6601a8c0@nant> <<< You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) >>> OK :) I have found (in Russian) collected on one web site portal/information about all Island-State territories (http://www.homegalerie.net/ ) - it's a list of ninety(?) such State-Islands - which one should we start with? Still I'd need my PC to make some good money at least to travel between these Islands by air (for speed) until we find the best one to settle with plenty of fish to fish and enough woods for fire :) Or you prefer raw fish? - no problem with that here but some vinegar and salt will be needed for some time until my stomach will manage to digest unprepared raw fish :) - honestly I'd prefer cooked fish... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, September 01, 2007 5:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? OK, and no electricity, computers and as a consequences no MS Access 2007 development? Just warm sands and trees' shadows? And fish and see-foods for breakfast, lunch and dinner? No wine? No whiskey? No vodka with Martini?!... =======You catch the fish, I'll build a still... I could go the rest of my life without a computer -- seriously. ;) Susan H. -- 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 Sep 5 05:38:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 14:38:31 +0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? In-Reply-To: <004f01c7ec9f$29532ae0$048e01c7@SusanOne> Message-ID: <001401c7efa8$f1acb400$6601a8c0@nant> =====Crap! Are you serious? Yes, Susan, VBA IMO is getting depreciated and is becoming "Latin of software programming languages"... AFAIS with VB.Net 2005/C# one can program "quickly and easily" many things which for a VBA programmer will forever stay a "never come true science fiction dream"... Just my opinion of course with all the other opinions welcomed, no flame, no "soap-box" stubbornness/snobbism... To start with VB.NET 2005 is easy and this programming language power and flexibility is very impressive... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, September 01, 2007 5:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What problems converting A2K3 mdb to A2K7? VBA is getting depreciated, hopefully MS will introduce VB.NET/C# programming from within/integrated with MS Access IDE in the coming versions of MS Access... =====Crap! Are you serious? Until then... Happy VB.NET 2005(2008)/C# 2.0(3.0) programming and happy using MS Access 2007 as a real powerful database design/querying/database-driven prototyping tool and MS Access 2007/VBA as an advanced tool to develop small-/middle-businesses advanced applications, which do not need to be largely scaled in the future. And MS Access 20007(+Office 2007) + SharePoint +... to develop distributed applications for any kind/size of businesses... =====You probably should come up with an outline and sell this as an article Shamil -- you'd be MS's new best friend and I think, any help you could give serious developers would be well appreciated. If I could do it, I would. Susan H. -- 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 Sep 5 11:34:31 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 5 Sep 2007 20:34:31 +0400 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: <000301c7efda$a353b6f0$6601a8c0@nant> <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 dwaters at usinternet.com Wed Sep 5 18:07:11 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 18:07:11 -0500 Subject: [AccessD] SubForm and form In-Reply-To: <000301c7efda$a353b6f0$6601a8c0@nant> References: <000301c7efda$a353b6f0$6601a8c0@nant> Message-ID: <000b01c7f011$7df02970$0200a8c0@danwaters> Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 cfoust at infostatsystems.com Wed Sep 5 18:22:20 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Sep 2007 16:22:20 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000b01c7f011$7df02970$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant> <000b01c7f011$7df02970$0200a8c0@danwaters> Message-ID: Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 5 19:59:46 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Sep 2007 19:59:46 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters> Message-ID: <000601c7f021$387e3250$0200a8c0@danwaters> Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Sep 5 16:43:38 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 6 Sep 2007 01:43:38 +0400 Subject: [AccessD] SubForm and form In-Reply-To: <000001c7efed$4911f630$6c7aa8c0@M90> Message-ID: <003301c7f005$d20d2cd0$6601a8c0@nant> John, Do not waste your time - just use (lately bound) callbacks from subform to the mainform - it really doesn't worth to waste time with VBA tricks now when we have VB.NET in which you have as an "easy going game" the things which needed "dirty and unreliable" tricks in VB6 and VBA - please read this story: "The End of Hardcore Visual Basic" http://vb.mvps.org/hardweb/ As you can find from visiting this site the word "HardCore" is stroked through there and the title is looking as: "The end of Visual Basic" (and VBA) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" But before you take one of those paths, let's take a moment to celebrate one of the most remarkable and influential languages in programming history. It was the best. It was the worst. It gave us instant gratification. It drove us crazy. Against all odds, we pushed it far beyond its logical limits. Visual Basic. 1991-2002. It's time to pay our respects, throw some dirt on the coffin, and move on. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim <<<< tail skipped >>> From fuller.artful at gmail.com Wed Sep 5 22:45:12 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Sep 2007 23:45:12 -0400 Subject: [AccessD] Transactions Message-ID: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. From miscellany at mvps.org Wed Sep 5 23:24:07 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 16:24:07 +1200 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <46DF80E7.70209@mvps.org> Arthur, Yes. :-) Regards Steve Arthur Fuller wrote: > I've developed this software and I totally agree with the accountant's > analysis, which reduces to: recorded transactions are history and cannot be > edited. All you are allowed to do is add an adjustment that refers to some > previous transaction and supplies a positive or negative number as the > adjustment. > > My question is this: given a continuous form or datasheet presentation of > the data, how do I prevent editing of the existing rows while also allowing > new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / > Allow Inserts properties on the property sheet? I've never experimented with > these, but suddenly I need to know. I need to prevent editing of any > existing transaction but allow addition of new transactions. Is this as > simple as those aforementioned flags on the properties sheet? > > A. From miscellany at mvps.org Wed Sep 5 23:36:31 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 06 Sep 2007 16:36:31 +1200 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <46DF83CF.40400@mvps.org> Arthur, A possibly more sophisticated approach could be achieved by having the records displayed on a form which is totally disabled, and with the Allow Additions property set to No. And then, new records can be added either via a) a separate popup single view form that does not allow access to existing records, or... b) via unbound controls in the form header, and submitted to the transactions table via an Append Query You might also consider this, which is what I have done in one of my applications recently... Use a separate form or subform for the "adjustment" records, in which case you can display additional fields for a reference to the original transaction that is being adjusted, and a note field for an explanation for the adjustment. Regards Steve Arthur Fuller wrote: > I've developed this software and I totally agree with the accountant's > analysis, which reduces to: recorded transactions are history and cannot be > edited. All you are allowed to do is add an adjustment that refers to some > previous transaction and supplies a positive or negative number as the > adjustment. > > My question is this: given a continuous form or datasheet presentation of > the data, how do I prevent editing of the existing rows while also allowing > new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / > Allow Inserts properties on the property sheet? I've never experimented with > these, but suddenly I need to know. I need to prevent editing of any > existing transaction but allow addition of new transactions. Is this as > simple as those aforementioned flags on the properties sheet? > > A. From adtp at airtelbroadband.in Thu Sep 6 00:03:18 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Thu, 6 Sep 2007 10:33:18 +0530 Subject: [AccessD] Transactions References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: <008101c7f043$66e335b0$1f57a27a@personalec1122> Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Arthur Fuller To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 09:15 Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. From fuller.artful at gmail.com Thu Sep 6 00:08:37 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:08:37 -0400 Subject: [AccessD] Transactions In-Reply-To: <46DF83CF.40400@mvps.org> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> <46DF83CF.40400@mvps.org> Message-ID: <29f585dd0709052208p7e19ff67r6dfc8f0b640029b9@mail.gmail.com> Good idea, Steve. Thanks. Not difficult to implement, and presents a nice audit trail. A. On 9/6/07, Steve Schapel wrote: > > Arthur, > > A possibly more sophisticated approach could be achieved by having the > records displayed on a form which is totally disabled, and with the > Allow Additions property set to No. And then, new records can be added > either via > a) a separate popup single view form that does not allow access to > existing records, or... > b) via unbound controls in the form header, and submitted to the > transactions table via an Append Query > > You might also consider this, which is what I have done in one of my > applications recently... Use a separate form or subform for the > "adjustment" records, in which case you can display additional fields > for a reference to the original transaction that is being adjusted, and > a note field for an explanation for the adjustment. > > Regards > Steve > From jwcolby at colbyconsulting.com Thu Sep 6 00:15:31 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 01:15:31 -0400 Subject: [AccessD] SubForm and form In-Reply-To: <003301c7f005$d20d2cd0$6601a8c0@nant> Message-ID: <000401c7f044$f2ce30b0$6c7aa8c0@M90> LOL. I agree completely. However I have done this a million times before. And unfortunately we still live with VBA every day in Access. Our projects live on and so we continue to use the language that directly supports them. John 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, September 05, 2007 5:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Do not waste your time - just use (lately bound) callbacks from subform to the mainform - it really doesn't worth to waste time with VBA tricks now when we have VB.NET in which you have as an "easy going game" the things which needed "dirty and unreliable" tricks in VB6 and VBA - please read this story: "The End of Hardcore Visual Basic" http://vb.mvps.org/hardweb/ As you can find from visiting this site the word "HardCore" is stroked through there and the title is looking as: "The end of Visual Basic" (and VBA) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""" But before you take one of those paths, let's take a moment to celebrate one of the most remarkable and influential languages in programming history. It was the best. It was the worst. It gave us instant gratification. It drove us crazy. Against all odds, we pushed it far beyond its logical limits. Visual Basic. 1991-2002. It's time to pay our respects, throw some dirt on the coffin, and move on. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim <<<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Sep 6 00:19:19 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:19:19 -0400 Subject: [AccessD] Related combos in a datasheet In-Reply-To: <001501c7efdf$a1a26b30$8119fea9@LTVM> References: <29f585dd0709040735g4fc12890q2a531fb05b7f6a84@mail.gmail.com> <46DDD24F.5050002@mvps.org> <29f585dd0709041519x456ad85fuac0c6180ffc9319d@mail.gmail.com> <001501c7efdf$a1a26b30$8119fea9@LTVM> Message-ID: <29f585dd0709052219p633a496fo6e3523513c1c6d32@mail.gmail.com> Thanks a ton for your effort, which I hope was not entirely directed to my problem, but profited you in some way. I was vaguely thinking something similar but didn't work out the details. Thanks for your assistance. A. On 9/5/07, Gmail wrote: > > Hi Arthur, > > I have uploaded a demo of Combo Boxes populated within a Data Sheet to: > > http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip > > There are two Forms, each has 4 Records/Rows in the Form. > > Form 1 and Form 2 do NOT operate the same > > Each Record/Row has 6 Combo Boxes. The first three are BOUND to the > Record > (I will call them Group 1). > The second group of three are UNBOUND (I will call them Group 2) so that > you > can see the difference between the two groups. > > I make use of the Persistent Static Function that was posted on this site > (of which you were one of the contributors - so what goes around, comes > around). > > These are the Gotchas: > > Form 1: > Within each Group, selecting an item in Combo1, will populate Combo2 and > selecting an item in Combo2 will populate Combo3. > > Group 1. Because they are Bound, they will correctly hold the values > selected BUT when you move to a new Record/Row the combo boxes of the > previous record may no long be visible/viewable on screen until you move > back to that record. This is because the combo boxes will now > hold/display > the values of the current record. This may be disconcerting to some > users. > > Group 2. Because they are UNBound, they will show the same info on each > record/row regardless of what was selected. > > I hope this helps a bit, but I don't think it is a perfect solution and > because of the nature of multi-records being display, it cannot (I > believe) > be overcome directly. It may however be possible to have the Bound Combo > Boxes hidden behind a Label/Text box which shows the values within the > Record. On clicking the Label/Text you can swap over the visibilie. I > have > shown an example of this in Form 2. > > Form 2: > This does not show any combo boxes (but they are there). Instead it shows > the current values of the selection. when a user clicks on the value, a > popup shows and displays the combo boxes for selection. On exit from the > popup, the values are written back to the main form2 and then displayed. > > I really dont know if this is what you want, but it was a difficult > exercise > for me! I hope it helps somewhate. > > Regards > Max > From fuller.artful at gmail.com Thu Sep 6 00:21:52 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 01:21:52 -0400 Subject: [AccessD] Transactions In-Reply-To: <008101c7f043$66e335b0$1f57a27a@personalec1122> References: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> <008101c7f043$66e335b0$1f57a27a@personalec1122> Message-ID: <29f585dd0709052221j67272f85wfab13089002154ae@mail.gmail.com> Thanks, A.D., I will check it out forthwith. It sound like just what the customer ordered. A. On 9/6/07, A.D.TEJPAL wrote: > > Arthur, > > My sample db named NotesHierarchical might be of interest to you. It > is available at Rogers Access Library (other developers library). Link - > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. > > In this db, meant for recording employee's performance notes, the > notes table, has a Yes/No field named Sent. Once Sent is set to true, the > note in question can no longer be edited, even by the person who recorded it > originally. More-over, once set to True, it can no longer be re-set to False > and no back dated note can be created. > > The sample is in Access 2K file format. Reference: DAO 3.6 > > Best wishes, > A.D.Tejpal > From accessd at shaw.ca Thu Sep 6 02:04:23 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 00:04:23 -0700 Subject: [AccessD] SubForm and form In-Reply-To: Message-ID: Thanks Charlotte. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form I'll rummage around and see if I can find something that would help. Since I work almost exclusively in .Net now, it may take a while. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Thank you Charlotte... I will now have to get up to speed in this. A small sample would definitely help gelling this. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 8:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form All you need to do is declare a form variable at the module level WithEvents, like this Dim WithEvents myForm as Form That will give you a myForm object in the list of objects in your form and if you select myForm from the dropdown list, you'll be able to create shell routines to handle any of the exposed events of a Form. So you can have a myForm_Load event, for example, which would contain code you want to run when myForm is loaded. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form John, Believe it or not, I initially figured that this could be done because I do try to learn from your postings! :-) I gave my suggestion simply because that's what I know how to do. Could you post a short example code of how you would set up the main form's monitoring of the subform's events? I sure would like to manage a subform's load and open events. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 7:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 accessd at shaw.ca Thu Sep 6 02:05:09 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 00:05:09 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000001c7efed$4911f630$6c7aa8c0@M90> Message-ID: <8A438AA2BD1E40928FE38A2CCA5A769B@creativesystemdesigns.com> Thanks John... looking forward to see what comes up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 11:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I have been trying to build one but kept getting page faults when I tried to have access build the event sinks in the main form class. Sigh. I did the "office update" thing and am trying again. John 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, September 05, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi John: You would not have a simple example of this implementation would you? Withevent/Subform/Form TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 05, 2007 5:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form You can also declare a pointer to the form WithEvents and then sink any of the form's events in the main form. Doing that allows you to see the subforms events from up in the main form and select them. When you select one of the events, VBA creates an event handler up in the main form. Click events and enter/exit events usually do not have a problem but you should remember that subforms load before the main form's class module so events like OnOpen and such cannot reference code up in the main form until the main form's class has finished loading. John 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: Tuesday, September 04, 2007 10:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SubForm and form Hi All: I just can not remember... too tied... too old. But how can a 'click' on a field within a subform be monitored and can subsequently produce a result on the main form? TIA 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 darren at activebilling.com.au Thu Sep 6 04:49:15 2007 From: darren at activebilling.com.au (Darren D) Date: Thu, 6 Sep 2007 19:49:15 +1000 Subject: [AccessD] A2K:Reading PDF Message-ID: <200709060949.l869nPUt008553@databaseadvisors.com> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren From max.wanadoo at gmail.com Thu Sep 6 05:13:17 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 11:13:17 +0100 Subject: [AccessD] A2K:Reading PDF In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> References: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: <001501c7f06e$8daa8560$8119fea9@LTVM> Daren, Thinking of the top of my head, would it be possible to set a Macro Recording ON, do the steps manually, turn the Macro OFF and then look at the code? HTH Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren D Sent: Thursday, September 06, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K:Reading PDF Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Sep 6 07:42:18 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 06 Sep 2007 08:42:18 -0400 Subject: [AccessD] FTP Problem In-Reply-To: References: <001501c7ef06$5ff1c1b0$048e01c7@SusanOne> Message-ID: <000f01c7f083$5ce7ddf0$8abea8c0@XPS> Mark, Use the standard Windows FTP client to attempt a transfer. Your ISP can't argue with that if it doesn't work. The first thing that would come to mind is that the transfer type is set incorrectly. Drop to a command line prompt, then type "FTP". The type "OPEN " Provide username/pswd Use "dir" or "ls" to see the files available. "CD" to change directories if need be. Use "lcd" to change directory on your PC. Depending on the file type, either do "SET ASCII" or "SET BINARY" Do a "GET " to get the file. Then "QUIT" Now look at the file. Is it correct? If it is, then it's something being done in the code. If not, well then you've got some ammo to go back to the ISP with. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, September 04, 2007 12:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] FTP Problem Hello All, I finally found where I got my ftp code... http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.asp "By William Hindman,Darren Dick, and Jim Lawrence " This code has been running 24/7 for the last few years...no problem. Last week something changed with my ISP...and of course they are telling me the problem is with whatever program I am using to FTP(after I explain what FTP is)...anyway...here is the problem: I can use IE to navigate to the site...I can see the files...I can download them...the problem is when I do it via code. I can connect and open the FTP directory. When the code brings back the first file found...it is mostly "empty rectangles" with some of the file name mixed in...and it can't parse out the name. I'm pretty sure it has something to do with them changing servers. Anyone have any ideas as why the file name would be returned 'garbled'...or what I need to find out from them? Thanks, Mark A. Matte _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Gustav at cactus.dk Thu Sep 6 09:50:00 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 16:50:00 +0200 Subject: [AccessD] A2K:Reading PDF Message-ID: Hi Darren I think you can use Ghostscript for this - but I'm no expert. Call a series of command line commands ... /gustav >>> darren at activebilling.com.au 06-09-2007 11:49 >>> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren From DWUTKA at Marlow.com Thu Sep 6 10:05:05 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:05:05 -0500 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709052045n4e8afc14u715492082a4cae2@mail.gmail.com> Message-ID: Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 10:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Sep 6 10:08:46 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 08:08:46 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <000601c7f021$387e3250$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters> <000601c7f021$387e3250$0200a8c0@danwaters> Message-ID: The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 6 10:18:11 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:18:11 -0500 Subject: [AccessD] Transactions In-Reply-To: <008101c7f043$66e335b0$1f57a27a@personalec1122> Message-ID: A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Thu Sep 6 10:24:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 11:24:56 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003001c7f09a$159dc740$6c7aa8c0@M90> I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 05, 2007 10:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Transactions I've developed this software and I totally agree with the accountant's analysis, which reduces to: recorded transactions are history and cannot be edited. All you are allowed to do is add an adjustment that refers to some previous transaction and supplies a positive or negative number as the adjustment. My question is this: given a continuous form or datasheet presentation of the data, how do I prevent editing of the existing rows while also allowing new rows to be added? Is this as simple as the Allow Edits / Allow Deletes / Allow Inserts properties on the property sheet? I've never experimented with these, but suddenly I need to know. I need to prevent editing of any existing transaction but allow addition of new transactions. Is this as simple as those aforementioned flags on the properties sheet? A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Sep 6 10:46:48 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 10:46:48 -0500 Subject: [AccessD] Transactions In-Reply-To: <003001c7f09a$159dc740$6c7aa8c0@M90> Message-ID: Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From actebs at actebs.com.au Thu Sep 6 11:13:15 2007 From: actebs at actebs.com.au (ACTEBS) Date: Fri, 7 Sep 2007 02:13:15 +1000 Subject: [AccessD] A2K:Reading PDF In-Reply-To: Message-ID: <005601c7f0a0$d46a7a50$0d08a8c0@carltonone.local> Darren, Try the open source PDF Creator. It has heaps of programming examples and methods of interacting with PDF files. You'll find it here: http://www.pdfforge.org/ HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, 7 September 2007 12:50 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2K:Reading PDF Hi Darren I think you can use Ghostscript for this - but I'm no expert. Call a series of command line commands ... /gustav >>> darren at activebilling.com.au 06-09-2007 11:49 >>> Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 6 11:22:06 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:22:06 -0400 Subject: [AccessD] Whatamess Message-ID: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> OK, so the "method" provided by access of getting rid of the s_GUID fields created by the replication process is to use make table queries to "copy" the tables. I did so. What is NOT mentioned (and I STUPIDLY failed to think about) is that a make table query is pure sql and as such does not copy such things as default values and format properties for the fields in the table. WHATAMESS!!! So, does anyone have code already written that will step through a "from/to" table pair and set the properties of the fields in the to table to match the from table? IOW, if a field in the old table had a default value of zero for a number, the field in the new table does not have a default value, so set the default value to 0 in that field of the new table. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Sep 6 11:22:57 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:22:57 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003601c7f0a2$2fdba340$6c7aa8c0@M90> OK, I see what you are doing. John 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, September 06, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 11:25:54 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 09:25:54 -0700 Subject: [AccessD] Transactions In-Reply-To: References: <003001c7f09a$159dc740$6c7aa8c0@M90> Message-ID: But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 11:36:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 09:36:48 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim From jwcolby at colbyconsulting.com Thu Sep 6 11:37:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 12:37:54 -0400 Subject: [AccessD] Transactions In-Reply-To: Message-ID: <003701c7f0a4$48944d90$6c7aa8c0@M90> Uhhh... Don't use 2007? ;-) John 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, September 06, 2007 12:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 6 11:45:54 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 18:45:54 +0200 Subject: [AccessD] Coping a Table. Message-ID: Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim From dwaters at usinternet.com Thu Sep 6 11:56:12 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 6 Sep 2007 11:56:12 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters> Message-ID: <002101c7f0a6$d49ec200$0200a8c0@danwaters> I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Thu Sep 6 12:09:15 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 6 Sep 2007 12:09:15 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 Sep 6 12:13:23 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 06 Sep 2007 19:13:23 +0200 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: Hi Rusty You may use my little function: Public Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function /gustav >>> rusty.hammond at cpiqpc.com 06-09-2007 19:09 >>> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond From DWUTKA at Marlow.com Thu Sep 6 12:15:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 12:15:50 -0500 Subject: [AccessD] Access User Level Security. Message-ID: This is how to setup a database so that some tables can only be read, some can only be written to, but not updated. First, Open Access, but don't create a database. (I'm doing this in Access 2003, this should be the same back to 2000, in 97, you need to hit StartyRunRwrkgadm to open the work group administrator for Access 97). Click ToolsCSecuritySWorkGroup Administrator Click the Create Button. Fill in your name, Organization and put in a WorkGroup ID (1234 will work just fine). Select a path and name your .mdw (workgroup) file. I'm going to create C:\AccessD.mdw You'll get some prompts telling you it created it, click ok or yes until all the dialog boxes are gone. Access is now using the AccessD.mdw for it's workgroup (instead of the default system32\system.mdw). What we need to do now is create an admin account for this work group, and sign into it. So first: Click ToolsCSecuritySUser and Group Accounts The first tab is the User tab, and we want to click the New button. This asks us for a Name and a Personal ID. The name is the account name we will use to log into the database with, and the Personal ID is a number we supply it. I typically use birthdays, if I am setting up accounts for specific people (though I rarely do that for people other then me). So, in this case, I put in Drew for the Name, and 9161972 as my PersonalID. Once you create this user, it should be the users selected in the dropdown box. (If not, select it). Below the user and add, delete, clearpassword buttons are two listboxes. The one on the left shows all of the groups (right now, just Admins and Users), and the one on the right shows the groups the 'selected' user belongs too. Click Admins in the left box, and then click the Add box. Now 'Drew' is a member of both Admins and Users. By default, Access logs into EVERY database using Admin as the user name, and a blank password. We need to log in as Drew, so we need to put a password on the Admin account. Click the Change Logon password tab.? It should show Admin as the 'User Name'.? Skip the Old Password box (since the password is blank), and put in 'test' (without quotes) in the New Password and Verify boxes, click Ok. ? Now close Access and start Access again.? Click create a new file, and then select Blank Database.? I created one on my c drive called AccessDSecured.? We now are prompted for a name and password (because we set a password on the admin account).? Put in Drew as the username and leave the password blank (we haven't set one yet). ? We now have a blank database.? Let's go set a password: ? Click ToolsCSecuritySUser and Group Accounts Click the Change Logon Password tab. Again, skip the Old Password, and put AccessD in the New Password and Verify fields, and click OK. ? Now we need to setup the defaults for this blank database: ? Click Tools-->Security-->User and Group Permissions Under the permissions tab, there is a combo box in the middle right of the window. Select Database from that list. Select the user Drew, and make sure that the three check boxes available are all checked. (after each change, we need to click apply. If you don't, you'll be prompted to apply the changes) Select the Admin user, it should have nothing checked.We want Open/Run to be the only checked item ,click apply. Switch the 'List:' option to Groups. Admins has all three checked. Uncheck everything, click apply. Users has all three checked. Uncheck everything, click apply. Switch object type to 'Table'. The rightside listbox has . We want that. We should still have Users as the User/group name selected. Uncheck everything, click apply. Select the Admins group (in the left listbox). Uncheck everything (just an FYI, unchecking Read Design clears all the checks), click apply Switch 'List:' option back to Users. Admin should have nothing checked Check Read Design and Read Data, click apply.? Drew should have everything checked. Check Object Type to Form (Queries are already set with what we did with Table). Drew should have all checked, Admins and Users should have nothing checked. Admin should have Open/Run checked. Switch Object Type to Report. Same thing.? Drew should have all checked, Admins and Users should have nothing checked and Admin should have only Open/Run checked. (in the last two steps, Admins and Users will have everything checked, so you will be changing those as I instructed.) Switch Object Type to Macro, and again, set it up the same way. Drew has everything checked, Admin has 'Open/Run' checked, Admins and Users have nothing checked. ? Click OK. ? Create a new table in design view. Let's add a few fields (whatever you want).? Name it tblDefaultReadOnly.? Create another table, add whatever fields you want, and name it tblAddDataOnly. ? Click Tools-->Security-->User and Group Permissions. Set Object Type to Table. Select tblAddDataOnly (in the right listbox) Switch 'List:' to Users. Select Admin from the Left listbox. Note, it has Read Design and Read Data checked (and nothing else). That is because we set the defaults for New tables and queries in the steps above.? We want to allow data to be entered in this table, so check the Insert Data box, and click apply.? (If you uncheck Read design and Read data first, then check Insert Data, you'll note that read design and read data check themselves again, can't put data in if you can't see the design of the table, and can't read the data in the table) ? Click Ok. ? We are still logged in as Drew, so let's go into both the tables we created, and add some test data. ? Click Tools-->Security-->WorkGroup Administrator Click Join. Select the original system.mdw (should be in your system32 folder) ? Our database is now setup so that anyone can open it, without a prompt (using their default .mdw). To create a shortcut to specifically use our 'secured' .mdw, it should be "C:\Program Files\Microsoft Office\Office11\msaccess.exe" "C:\AccessDSecured.mdb" /wrkgrp "C:\AccessD.mdw" /user "Drew" /pwd "AccessD" All one line, and the first part should be the path to MSAccess.exe on that machine. (Leaving the /user and /pwd tags off, will prompt the user for a username and password (leaving the /user tag in will put that user name in automatically, but will require the user to enter a password)). Notice now, that when you open the database (as a normal user), you can't enter, change, or delete any data in tblDefaultReadOnly. We can't change or delete data in tblAddDataOnly, but we can enter a new record (but can't change it once it's saved.). I have put the demo I wrote doing this at http://www.marlow.com/AccessD.zip Drew? ? ? ? ? The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 12:16:48 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 12:16:48 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Don't know, don't use the 2007 format, heck, I still enforce the 2000 format when in Access 2003 (and prefer to use Access 97 as backends anyway! ;)) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 11:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions But user level security is history in the 2007 format. So then what? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Access User Level security. It all depends on how you want to do things. I have several .mdb's on our network that are setup somewhat like this. One example is our NCR database (small database to track our vendors). There are two types of people that use this database. People that only need to view the data, and people that need to edit/update the data. For this database, I went in and set it so that the default account 'Admin' and the default groups have read only access to the data. Anyone opening that .mdb can view everything, but if they try to edit anything (data or forms), they are simply denied. I then created an admin account (actually, have to do this first...), which does have full rights to the database. The users that need that access have the appropriate .mdw on their machine, and a shortcut that opens the database with the appropriate account and that specific .mdw. I have several 'test data' databases (getting real data from test systems) where the default accounts can view and INSERT data, but nothing else (no edit or delete). Again, I have an admin account that can do everything. I'll post step by step instructions in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 06, 2007 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions I'll bite, how do you do this 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 Drew Wutka Sent: Thursday, September 06, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Why not do it at the table level? Denying Update and Delete, allowing Insert. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Sep 6 12:22:13 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 10:22:13 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: References: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 12:23:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 10:23:24 -0700 Subject: [AccessD] SubForm and form In-Reply-To: <002101c7f0a6$d49ec200$0200a8c0@danwaters> References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters> <002101c7f0a6$d49ec200$0200a8c0@danwaters> Message-ID: Then it would still be easier to manage elsewhere than in current. What is it the code does that you want to manage? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 06, 2007 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 6 12:56:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 6 Sep 2007 12:56:38 -0500 Subject: [AccessD] SubForm and form In-Reply-To: References: <000301c7efda$a353b6f0$6601a8c0@nant><000b01c7f011$7df02970$0200a8c0@danwaters><000601c7f021$387e3250$0200a8c0@danwaters><002101c7f0a6$d49ec200$0200a8c0@danwaters> Message-ID: <000001c7f0af$45f314d0$0200a8c0@danwaters> This changes the screen display characteristics. Enable/disable, lock/unlock, and label colors depending on a user's authorities, the state of the process, and data content. This is the only thing I use the Current event for, and I know all the reasons the current event gets triggered, so I can manage this effectively. Putting this into a separate sub would work fine, this is just what I've evolved into doing. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Then it would still be easier to manage elsewhere than in current. What is it the code does that you want to manage? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, September 06, 2007 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form I do use a flag to allow it to run or not run. Gotta manage it! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form The current event is a bad place for that kind of code unless you use flags to keep it from running repeatedly. You'd be better off putting the code in a separate routine and calling it when appropriate based on module level flags. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 6:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Charlotte, My current events tend to be quite long because they manage the screen display in many ways. No point in running it twice before the user can even see the screen! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 05, 2007 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SubForm and form Sorry, Dan, but it sounds like you're trying to do something may not need to be done ... Or at least not as you're doing it. WHY are you trying to manage the subform's Current event. It's called by Load, but it fires much more frequently than that. Maybe you're trying to solve the wrong problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 05, 2007 4:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form Hi Shamil, What I've used in the past is a public Modular Boolean variable set in the main form's module. It's default value is false, of course. When the subform's load and open events are running before the main form is opened, the parent's Boolean variable is false, and the code is written to exit out of the subform load and/or open events. Only when that variable is explicitly set to True will the code not exit out. It can be set to true in either the parent form or the subform. What I'm actually managing is the subform's Current event, which is called by the Load event. I was just looking for an alternative. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 05, 2007 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SubForm and form <<< I sure would like to manage a subform's load and open events. >>> Dan, That needs tricky programming if possible at all to manage these events using WithEvents because subform's Load and Open events fire *before* form's Load and Open events... IOW you'll need to use Me.Parent.SomeCallbackName callback procs from subform's module to "inform" parent form about subform's Load and Open events... -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 6 13:55:01 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 19:55:01 +0100 Subject: [AccessD] Returning only numbers from a phone number field In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE0D@cpixchng-1.cpiqpc.net> Message-ID: <003401c7f0b7$6e9c0ab0$8119fea9@LTVM> Hi Rusty, This should do the trick for you: Function teststripNonNumerics() MsgBox stripNonNumerics("1.2.3.4/5/6/akjfjakfd-789kjjkaf880-087222/.88") End Function Function stripNonNumerics(str As String) As String Dim lngLoop As Long, strTemp As String For lngLoop = 1 To Len(str) If IsNumeric(Mid(str, lngLoop, 1)) Then strTemp = strTemp & Mid(str, lngLoop, 1) End If Next lngLoop stripNonNumerics = strTemp End Function Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, September 06, 2007 6:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Returning only numbers from a phone number field Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 Sep 6 14:01:37 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 12:01:37 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <7AFEACEF6BFA4F5785382AD1F760F56A@creativesystemdesigns.com> Hi Gustav: I am not sure how the client is replicating the table into their MDB. It could be drag and drop or cut and paste. I will suggest export and import if the Make-table query does not work. My question is why the table is appearing locked in the first place. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 06, 2007 9:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 14:09:32 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 12:09:32 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 miscellany at mvps.org Thu Sep 6 14:41:54 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 07:41:54 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E05802.9070508@mvps.org> Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > From fuller.artful at gmail.com Thu Sep 6 14:43:16 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 15:43:16 -0400 Subject: [AccessD] Whatamess In-Reply-To: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> References: <003501c7f0a2$11c6adf0$6c7aa8c0@M90> Message-ID: <29f585dd0709061243w3720f87clcee3de581da24b7c@mail.gmail.com> Visit Trigeminal Software, JC, and grab their un-replicator tool. http://www.trigeminal.com/utility.asp?1033 Arthur On 9/6/07, jwcolby wrote: > > OK, so the "method" provided by access of getting rid of the s_GUID fields > created by the replication process is to use make table queries to "copy" > the tables. I did so. What is NOT mentioned (and I STUPIDLY failed to > think about) is that a make table query is pure sql and as such does not > copy such things as default values and format properties for the fields in > the table. > > WHATAMESS!!! > > So, does anyone have code already written that will step through a > "from/to" > table pair and set the properties of the fields in the to table to match > the > from table? > > IOW, if a field in the old table had a default value of zero for a number, > the field in the new table does not have a default value, so set the > default > value to 0 in that field of the new table. > > 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 Thu Sep 6 14:45:55 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Sep 2007 15:45:55 -0400 Subject: [AccessD] Whatamess In-Reply-To: <29f585dd0709061243w3720f87clcee3de581da24b7c@mail.gmail.com> Message-ID: <005001c7f0be$8ad1b480$6c7aa8c0@M90> Been there, tried that (last month). It doesn't 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 Arthur Fuller Sent: Thursday, September 06, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Whatamess Visit Trigeminal Software, JC, and grab their un-replicator tool. http://www.trigeminal.com/utility.asp?1033 Arthur On 9/6/07, jwcolby wrote: > > OK, so the "method" provided by access of getting rid of the s_GUID > fields created by the replication process is to use make table queries to "copy" > the tables. I did so. What is NOT mentioned (and I STUPIDLY failed > to think about) is that a make table query is pure sql and as such > does not copy such things as default values and format properties for > the fields in the table. > > WHATAMESS!!! > > So, does anyone have code already written that will step through a > "from/to" > table pair and set the properties of the fields in the to table to > match the from table? > > IOW, if a field in the old table had a default value of zero for a > number, the field in the new table does not have a default value, so > set the default value to 0 in that field of the new table. > > 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 cfoust at infostatsystems.com Thu Sep 6 14:44:31 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 12:44:31 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> References: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Message-ID: Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 markamatte at hotmail.com Thu Sep 6 14:51:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 06 Sep 2007 19:51:22 +0000 Subject: [AccessD] Coping a Table. In-Reply-To: <6DDAD32A30AF4D92BD4446A1FABA328C@creativesystemdesigns.com> Message-ID: Did you zip it while it was in use? Long shot guess???? >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Coping a Table. >Date: Thu, 06 Sep 2007 12:09:32 -0700 > >Hi Charlotte: > >I am just sending a zip as an attachment to an email. It should be as >simple >as to open the destination MDB, save the attachment to a directory, unzip >it, open the source MDB and drag and drop. > >...but for some reason the new table appears to arrive 'locked'??? > >Of course you never know what is really happening at the other end. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, September 06, 2007 10:22 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Coping a Table. > >How are you sending it? If you put it on a CD, it will be normally >readonly by default and they have to copy it to their hard drive and set >the read-only file attribute to false. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >Sent: Thursday, September 06, 2007 9:37 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Coping a Table. > >Hi All: > >I have been sending a single table, in a new MDB, to a client so they >can copy it into their MDB. They report that the table is locked and >they can not copy it. We have gone through this process a couple of >times and I am not sure what is going on. > >I have just suggested a Make-Table query and hopefully that will solve >the problem. > >Has anyone else ran across this problem before and found a solution or a >reason. > >TIA >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 _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From DWUTKA at Marlow.com Thu Sep 6 14:55:49 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 14:55:49 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E05802.9070508@mvps.org> Message-ID: Show me a way to truly prevent it. It's there whether you like it or not. Disable the Access Keys such as F11, and you just have to go through the Window Menu. Even hiding the Access Window itself doesn't guarantee a curious user can't get to the database window. Heck, the code to unhide every Access window on your machine is just a few lines. User level security isn't hack proof (nothing is), but it is a lot stronger then 'hiding' the database window. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 2:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Thu Sep 6 15:19:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 21:19:48 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <46E05802.9070508@mvps.org> Message-ID: <005701c7f0c3$46f55280$8119fea9@LTVM> Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max Option Compare Database Option Explicit ' API: Manipulate Access Window ' Author (s) 'Dev Ashish ' ' '(Q) How do I maximize or minimize the main Access Window from code? ' '(A) Pass one of the declared constants to the function fSetAccessWindow. ' 'This same function can also be used to completely hide Access window and just show your form on the desktop. 'Make the form popup and from it's Open Event, call the fSetAccessWindow function with SW_HIDE as the argument. ' 'Warning: If you're hiding the main Access window, make sure your error handlers are good. 'Because with the window hidden, if an error is raised, pressing "End" on the Error window will NOT make Access window 'visible and you will be left with just the form open. 'A recommended method is to make a call to fSetAccessWindow with SW_SHOWNORMAL from your error handlers. ' If, for some reason, the Access window does not show itself, then you can always close the mdb from the Task List, available in Win 95 with Control-Alt-Delete (once) and under NT, by right clicking on the Taskbar and selecting Task Manager, by selecting the mdb and clicking End Task. '************ Code Start ********** ' This code was originally written by Dev Ashish. ' It is not to be altered or distributed, ' except as part of an application. ' You are free to use it in any application, ' provided the copyright notice is left unchanged. ' ' Code Courtesy of ' Dev Ashish ' Global Const SW_HIDE = 0 Global Const SW_SHOWNORMAL = 1 Global Const SW_SHOWMINIMIZED = 2 Global Const SW_SHOWMAXIMIZED = 3 Private Declare Function apiShowWindow Lib "user32" _ Alias "ShowWindow" (ByVal hWnd As Long, _ ByVal nCmdShow As Long) As Long Function fSetAccessWindow(nCmdShow As Long) 'Usage Examples 'Maximize window: ' ?fSetAccessWindow(SW_SHOWMAXIMIZED) 'Minimize window: ' ?fSetAccessWindow(SW_SHOWMINIMIZED) 'Hide window: ' ?fSetAccessWindow(SW_HIDE) 'Normal window: ' ?fSetAccessWindow(SW_SHOWNORMAL) ' Dim loX As Long Dim loForm As Form On Error Resume Next Set loForm = Screen.ActiveForm If Err <> 0 Then 'no Activeform If nCmdShow = SW_HIDE Then MsgBox "Cannot hide Access unless " _ & "a form is on screen" Else loX = apiShowWindow(hWndAccessApp, nCmdShow) Err.Clear End If Else If nCmdShow = SW_SHOWMINIMIZED And loForm.Modal = True Then MsgBox "Cannot minimize Access with " _ & (loForm.Caption + " ") _ & "form on screen" ElseIf nCmdShow = SW_HIDE And loForm.PopUp <> True Then MsgBox "Cannot hide Access with " _ & (loForm.Caption + " ") _ & "form on screen" Else loX = apiShowWindow(hWndAccessApp, nCmdShow) End If End If fSetAccessWindow = (loX <> 0) End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 8:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Show me a way to truly prevent it. It's there whether you like it or not. Disable the Access Keys such as F11, and you just have to go through the Window Menu. Even hiding the Access Window itself doesn't guarantee a curious user can't get to the database window. Heck, the code to unhide every Access window on your machine is just a few lines. User level security isn't hack proof (nothing is), but it is a lot stronger then 'hiding' the database window. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 2:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Do you really allow users access to the Database Window? Regards Steve Drew Wutka wrote: > Access User Level security. > > It all depends on how you want to do things. > > I have several .mdb's on our network that are setup somewhat like this. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 6 15:35:15 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 13:35:15 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> Thanks Charlotte... will try that next but I hesitate to assume they are too unknowledgeable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 Thu Sep 6 15:36:24 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Sep 2007 13:36:24 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: Message-ID: No Mark, but a thought. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 06, 2007 12:51 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Did you zip it while it was in use? Long shot guess???? >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Coping a Table. >Date: Thu, 06 Sep 2007 12:09:32 -0700 > >Hi Charlotte: > >I am just sending a zip as an attachment to an email. It should be as >simple >as to open the destination MDB, save the attachment to a directory, unzip >it, open the source MDB and drag and drop. > >...but for some reason the new table appears to arrive 'locked'??? > >Of course you never know what is really happening at the other end. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, September 06, 2007 10:22 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Coping a Table. > >How are you sending it? If you put it on a CD, it will be normally >readonly by default and they have to copy it to their hard drive and set >the read-only file attribute to false. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >Sent: Thursday, September 06, 2007 9:37 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Coping a Table. > >Hi All: > >I have been sending a single table, in a new MDB, to a client so they >can copy it into their MDB. They report that the table is locked and >they can not copy it. We have gone through this process a couple of >times and I am not sure what is going on. > >I have just suggested a Make-Table query and hopefully that will solve >the problem. > >Has anyone else ran across this problem before and found a solution or a >reason. > >TIA >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 _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From miscellany at mvps.org Thu Sep 6 15:40:57 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 08:40:57 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E065D9.5070505@mvps.org> Thanks, Drew. Well, I guess it depends on what sort of users you are dealing with. At the risk of re-hashing a discussion that has probably been done before, I think there is a distinction between functionality in the application when it is being used in the intended way, and deliberate unauthiorised attempts to circumvent the intended functionality. In terms of the original question asked by Arthur, where he wants the users to be able to add new records but not delete or edit existing records, I can open a form in design view, set the Allow Deletions and Allow Edits properties to No, and close and save the form, in less than 10 seconds. My time is valuable, so this is an important factor. If that form is the only way (apart from unauthorised hacking) for the data to be accessed, then that would be perfectly adequate in the case of all the clients who I have ever worked for. Regards Steve Drew Wutka wrote: > Show me a way to truly prevent it. It's there whether you like it or > not. Disable the Access Keys such as F11, and you just have to go > through the Window Menu. Even hiding the Access Window itself doesn't > guarantee a curious user can't get to the database window. Heck, the > code to unhide every Access window on your machine is just a few lines. > > User level security isn't hack proof (nothing is), but it is a lot > stronger then 'hiding' the database window. > From cfoust at infostatsystems.com Thu Sep 6 15:39:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 13:39:36 -0700 Subject: [AccessD] Coping a Table. In-Reply-To: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> References: <790B695B3AEC464D8E08C7F16ACEF243@creativesystemdesigns.com> Message-ID: Hey, I've done that myself a few times. It's more a case of paying attention. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Thanks Charlotte... will try that next but I hesitate to assume they are too unknowledgeable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. Hmmn. Are they actually extracting the file or just trying to use it from within the zip? The latter can tell them it's read only. If that's the case, extracting the mdb before trying to import it should work. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Coping a Table. Hi Charlotte: I am just sending a zip as an attachment to an email. It should be as simple as to open the destination MDB, save the attachment to a directory, unzip it, open the source MDB and drag and drop. ...but for some reason the new table appears to arrive 'locked'??? Of course you never know what is really happening at the other end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 06, 2007 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Coping a Table. How are you sending it? If you put it on a CD, it will be normally readonly by default and they have to copy it to their hard drive and set the read-only file attribute to false. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, September 06, 2007 9:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Coping a Table. Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 Thu Sep 6 16:15:17 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 16:15:17 -0500 Subject: [AccessD] Transactions In-Reply-To: <005701c7f0c3$46f55280$8119fea9@LTVM> Message-ID: Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 16:18:04 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 16:18:04 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E065D9.5070505@mvps.org> Message-ID: One of the many reasons I use .asp and VB front ends, no direct .mdb access. IMHO, though, data integrity done only through the GUI is to easy to get around. F11 or Window --> unhide will always let someone at the database window. So if a user shouldn't be able to change data in a table, that table should be secured at the table level, not the form. (Not too mention, securing it at the table level once, makes EVERY form created have the same limitations, since the forms are going through the table. (And queries....) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thanks, Drew. Well, I guess it depends on what sort of users you are dealing with. At the risk of re-hashing a discussion that has probably been done before, I think there is a distinction between functionality in the application when it is being used in the intended way, and deliberate unauthiorised attempts to circumvent the intended functionality. In terms of the original question asked by Arthur, where he wants the users to be able to add new records but not delete or edit existing records, I can open a form in design view, set the Allow Deletions and Allow Edits properties to No, and close and save the form, in less than 10 seconds. My time is valuable, so this is an important factor. If that form is the only way (apart from unauthorised hacking) for the data to be accessed, then that would be perfectly adequate in the case of all the clients who I have ever worked for. Regards Steve Drew Wutka wrote: > Show me a way to truly prevent it. It's there whether you like it or > not. Disable the Access Keys such as F11, and you just have to go > through the Window Menu. Even hiding the Access Window itself doesn't > guarantee a curious user can't get to the database window. Heck, the > code to unhide every Access window on your machine is just a few lines. > > User level security isn't hack proof (nothing is), but it is a lot > stronger then 'hiding' the database window. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fuller.artful at gmail.com Thu Sep 6 16:23:22 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 17:23:22 -0400 Subject: [AccessD] Transactions In-Reply-To: References: <46E065D9.5070505@mvps.org> Message-ID: <29f585dd0709061423yb7e6718x762c7a392d9ff923@mail.gmail.com> I definitely like that concept, Drew. Not quite as clean as Roles+Permissions in SQL, but it will suffice for the problem at hand. A. On 9/6/07, Drew Wutka wrote: > > One of the many reasons I use .asp and VB front ends, no direct .mdb > access. > > IMHO, though, data integrity done only through the GUI is to easy to get > around. F11 or Window --> unhide will always let someone at the > database window. So if a user shouldn't be able to change data in a > table, that table should be secured at the table level, not the form. > (Not too mention, securing it at the table level once, makes EVERY form > created have the same limitations, since the forms are going through the > table. (And queries....) > > Drew > From miscellany at mvps.org Thu Sep 6 16:36:13 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 09:36:13 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E072CD.8010608@mvps.org> Drew, Drew Wutka wrote: > ... data integrity done only through the GUI is to easy to get > around. In 12 years as a full-time Access freelance developer, I have never had anyone get around it. Yes, it can be got around. Fair enough. In theory. > F11 or Window --> unhide will always let someone at the > database window. Agreed that it is unthinkable that a user should have access to the Database Window. I never allow this. Regards Steve From max.wanadoo at gmail.com Thu Sep 6 16:39:39 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 6 Sep 2007 22:39:39 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <005701c7f0c3$46f55280$8119fea9@LTVM> Message-ID: <005f01c7f0ce$6e055180$8119fea9@LTVM> Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Sep 6 17:25:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:25:56 -0500 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709061423yb7e6718x762c7a392d9ff923@mail.gmail.com> Message-ID: Oh sure, the bigger the system, the more bells and whistles you have. But Access User Level security (no comments yet on the posted example I put up) does it's job just fine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 06, 2007 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions I definitely like that concept, Drew. Not quite as clean as Roles+Permissions in SQL, but it will suffice for the problem at hand. A. On 9/6/07, Drew Wutka wrote: > > One of the many reasons I use .asp and VB front ends, no direct .mdb > access. > > IMHO, though, data integrity done only through the GUI is to easy to get > around. F11 or Window --> unhide will always let someone at the > database window. So if a user shouldn't be able to change data in a > table, that table should be secured at the table level, not the form. > (Not too mention, securing it at the table level once, makes EVERY form > created have the same limitations, since the forms are going through the > table. (And queries....) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 17:31:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:31:38 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E072CD.8010608@mvps.org> Message-ID: Ummm, I think we are talking past each other. You CAN'T prevent someone from getting to the database window. It's just not possible. Not if they are allowed in the database. 'Hiding' the database window, and then disabling the Access Keys (which includes F11), only requires that the user Clicks Window and then UnHide. Hiding the Access Window is also a work around, and is only going to be viable if your application never needs to run a report (since reports only show within the Access Window). The work involved in trying to maintain a process that prevents the user from getting to a table is much more then simply setting up the appropriate security in the tables from the get go. In my example post, I went through and blocked everything, but as long as Administrative rights are removed from the database and tables, the data is safe. Takes a few minutes at most. Locking down forms, reports, macros and queries is only if you want to protect your design. Another thing to keep in mind, is that if a future developer wants to look at your system, by putting constraints in the tables themselves, that future developer isn't going to have to dig through the interface to find your data integrity rules. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, Drew Wutka wrote: > ... data integrity done only through the GUI is to easy to get > around. In 12 years as a full-time Access freelance developer, I have never had anyone get around it. Yes, it can be got around. Fair enough. In theory. > F11 or Window --> unhide will always let someone at the > database window. Agreed that it is unthinkable that a user should have access to the Database Window. I never allow this. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 17:33:15 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 17:33:15 -0500 Subject: [AccessD] Transactions In-Reply-To: <005f01c7f0ce$6e055180$8119fea9@LTVM> Message-ID: Be my guest. I never post code in here that I wouldn't want someone else to use! This, by the way, is something Susan and I co-wrote an article about. (Microsoft still hasn't noticed, their knowledge base still uses a timer to 'mimic' the always on top affect.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 4:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From miscellany at mvps.org Thu Sep 6 17:56:27 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 10:56:27 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E0859B.4090705@mvps.org> Hi Drew, Drew Wutka wrote: > 'Hiding' the database window, and then disabling the Access Keys (which > includes F11), only requires that the user Clicks Window and then > UnHide. Assuming you leave a Window menu in your application. Which I never do. Hey, don't get me wrong... I am not arguing against the approach you are promoting. Not at all. All I am saying is that a simpler (to me) approach has always served my purposes, and I have never myself felt the necessity to go beyond that. Regards Steve From max.wanadoo at gmail.com Thu Sep 6 18:03:58 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 00:03:58 +0100 Subject: [AccessD] Transactions In-Reply-To: References: <005f01c7f0ce$6e055180$8119fea9@LTVM> Message-ID: <006101c7f0da$35ec3dc0$8119fea9@LTVM> Many thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 11:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Be my guest. I never post code in here that I wouldn't want someone else to use! This, by the way, is something Susan and I co-wrote an article about. (Microsoft still hasn't noticed, their knowledge base still uses a timer to 'mimic' the always on top affect.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 4:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Can I have your permission to use this in place of my current code? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 06, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Hi Drew, Some code from Dev Ashish (below) might do the trick. Regards Max The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 6 18:03:51 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Sep 2007 16:03:51 -0700 Subject: [AccessD] Transactions In-Reply-To: <46E0859B.4090705@mvps.org> References: <46E0859B.4090705@mvps.org> Message-ID: Steve, Susan and I wrote an article one time about hiding the database window. We did a pretty good job but there were still ways around it if your users had more than just the runtime version of Access and knew what they were doing. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Hi Drew, Drew Wutka wrote: > 'Hiding' the database window, and then disabling the Access Keys > (which includes F11), only requires that the user Clicks Window and > then UnHide. Assuming you leave a Window menu in your application. Which I never do. Hey, don't get me wrong... I am not arguing against the approach you are promoting. Not at all. All I am saying is that a simpler (to me) approach has always served my purposes, and I have never myself felt the necessity to go beyond that. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Sep 6 18:48:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 16:48:01 -0700 Subject: [AccessD] Database Patent Message-ID: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky From miscellany at mvps.org Thu Sep 6 18:52:16 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 11:52:16 +1200 Subject: [AccessD] Transactions In-Reply-To: References: <46E0859B.4090705@mvps.org> Message-ID: <46E092B0.5060406@mvps.org> Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. From DWUTKA at Marlow.com Thu Sep 6 21:22:53 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 21:22:53 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E092B0.5060406@mvps.org> Message-ID: The biggest hole in the 'GUI' data integrity process is the .mdb itself. You can link tables or import them into another .mdb with a few clicks of the mouse. So, if you have a table that you really don't want people editing data in, no amount of GUI tricks are going to prevent that if you don't put security on a table. If someone wants to get at the data, they can just link the tables in a blank database, and have at the data. So, in the case of your customers, who want to have access to write their own queries and reports, you are simply getting by with having uninformed or inexperienced customers. A user of Access, who knows the just a fraction of how Access works can link to the tables in your database. No protection on the tables, no protection on the linked tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Sep 6 21:23:46 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Sep 2007 21:23:46 -0500 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Thu Sep 6 21:57:10 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 19:57:10 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From fuller.artful at gmail.com Thu Sep 6 22:06:46 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Sep 2007 23:06:46 -0400 Subject: [AccessD] Database Patent In-Reply-To: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> References: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> Message-ID: <29f585dd0709062006g3129096au9900a63340c7db2c@mail.gmail.com> This is a really old idea, and if it slides through the patent office, so much the worse for its ability to judge technology. There is not one single shred of novelty in this concept. It's been done since the days of DOS. Arthur On 9/6/07, Rocky Smolin at Beach Access Software wrote: > > This is an existing patent. The patent is date Feb. 21, 2007. Does your > work predate the patent? Does it use this two-part scheme of the records > data set and the categories data set? Or is yours a different technique > which would duplicate one of the salient advantages of this patent which > is > the ability to alter the design of a database without interruption in the > service? > > Part of what I'm trying to find out here, is knowing if this is a more or > less common or existing technique or is truly unique. That would > determine > what value, if anything, the patent would have in a sale of the rights. > > How much of what you did can you share or want to share? > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Thursday, September 06, 2007 7:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Patent > > Is this an existing patent, or one that is applying for a patent? I ask, > because I have actually built databases that pretty much use this > principle. > > Drew > > -----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, September 06, 2007 6:48 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Database Patent > > Dear List: > > A client who is a patent and trademark attorney is interested in opinions > on > a patent - basically it's a way to update databases on-the-fly by > disconnecting the data from the data definition. > > You can download the patent by going to this web page: > > http://www.pat2pdf.org/ > > > and entering the patent number 7003524. > > I guess I'm looking for opinions on whether this is a solution to a > problem > that exists and whether there is something of value in this approach. > > I know there's some deep database design talent on this list so I'm > thinking > this is the best place to start the research. > > Here's a teaser. From the patent: > > TECHNICAL FIELD > > The invention relates generally to databases and, more particularly, to > the > underlying schematic structure of databases. > > BACKGROUND > > Large databases running in publicly accessible environments are notorious > for their inability to accommodate change. In today's world of massive > access to large databases via the Internet, it is increasingly common to > encounter messages to the effect of "database is down for maintenance" > instead of the actual data requested. > > In a conventional database environment, when a change needs to be made to > the schematic structure of a database, the data in the database must be > extracted from the database in the old structure and re-written to the > database in the new structure. If new data were to be inserted into the > database while said changes were being effected, it could cause > unpredictable effects to the database. Such effects could include > corruption > of pre-existing data, misapplication of database changes, misalignment of > data relative to internal data boundaries, or any number of problems that > could render the database effectively incoherent. Such results are > untenable > in most live database deployments. > > Conventionally, the most common solution to the problem of updating during > changes to the schematic structure is to simply disallow it. > > Conventional databases also require a tight bind between the data type and > the data storage. Users require that the data they request be presented in > a > manner consistent with the expected usage of the data. For example, a date > may be stored in the database as a string of decimal digits (e.g., > 20010303), but to present the data to the user in its raw form would be > unacceptable. A conventional computer user requires that it be presented > in > a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order > for the date to be presented in a manner consistent with its usage, the > database must carry type-related information along with each unit of data. > > Binding between data and type is conventionally accomplished by organizing > the data into metaphorical rows and columns. Rows of data are divided into > pre-defined columns, where each column represents a particular data type > and/or use of the data. Such data/type binding allows a computer program > to > make assumptions and inferences about the data appropriate to its type. > Additional rows of data may be readily added to a database. However, if a > new column is desired in a database, then the database must typically be > made unavailable for a period of time so that data can be converted into > the > new format. Modifications to pre-existing programs would have to be made, > along with the requisite testing and debugging necessary to validate any > new > code. > > It is also worth noting that in conventional databases there tends to be > redundancy in the storage of data. For example, cities, states, zip codes, > and telephone area codes may be repeated among a number of rows of data. > Such redundancy results in inefficient use of memory. > > In light of the foregoing, it is apparent that there is a need for a > system > and method for modifying the schematic structure of a database without > making the database unavailable for the entry of new data. Preferably, > such > a system and method would, among other things, also minimize redundancy of > data in a database. > > SUMMARY > > The present invention, accordingly, provides a database in which an > application program accesses data stored in a records data set (RDS) and a > categories data set (CDS). The RDS contains at least one RDS entry having > a > data field configured for representing data. The CDS contains at least one > CDS entry configured for being associated with at least one RDS entry and > having at least one data type field sufficient to describe the type of > data > contained by the at least one associated RDS entry. > > The invention thus provides a database whereby data is isolated from its > definition, thus avoiding the problems associated with the > rows-and-columns > model enumerated above, and permits the underlying schematic form of the > database to be changed based on modifications to the CDS, without > requiring > any actual changes to the schematic structure of the RDS or the underlying > database. By virtue of this same isolation it is also possible to reduce > data redundancy with varying levels of granularity and create an > object-oriented data model. > > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com The information contained in this > transmission is intended only for the person or entity to which it is > addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve > material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. You are notified that any review, retransmission, copying, > disclosure, dissemination, or other use of, or taking of any action in > reliance upon this information by persons or entities other than the > intended recipient is prohibited. > > > -- > 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 > 3:18 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From miscellany at mvps.org Thu Sep 6 22:16:16 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 15:16:16 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E0C280.8000805@mvps.org> Hi Drew, Drew Wutka wrote: > The biggest hole in the 'GUI' data integrity process is the .mdb itself. Yes, I know. Well, I don't call it a "hole". But yes, I know. > You can link tables or import them into another .mdb with a few clicks > of the mouse. Yes, I know. > So, if you have a table that you really don't want people editing data > in, no amount of GUI tricks are going to prevent that if you don't put > security on a table. If someone wants to get at the data, they can just > link the tables in a blank database, and have at the data. Yes, I know they can. But they don't... that's the point. > So, in the case of your customers, who want to have access to write > their own queries and reports, you are simply getting by with having > uninformed or inexperienced customers. No. Some would be uninformed or inexperienced. But that's not as relevant as professional and responsible. > A user of Access, who knows the > just a fraction of how Access works can link to the tables in your > database. I don't think that's true. There are a lot of people who know a fair bit about Access, who wouldn't think of that possibility. Of course, many of my customers have no idea that we are using Access anyway. But again, that's not the main point. You are making the assumption that just because people *can* stuff around with stuff they've got no business with, that they *will*. That's very sad. I have good relationships with my clients. Those that have the skills and knowledge to link to the backend from another Access file would discuss it with me before they went near it. But again, Drew, I am happy for you to take additional precautions if you feel the need to. This is not a "right or wrong" consideration here. Regards Steve From shamil at users.mns.ru Thu Sep 6 22:54:54 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 7 Sep 2007 07:54:54 +0400 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: <005e01c7f102$e4ee4e80$6601a8c0@nant> Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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 Thu Sep 6 23:17:34 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 6 Sep 2007 21:17:34 -0700 Subject: [AccessD] Database Patent In-Reply-To: <005e01c7f102$e4ee4e80$6601a8c0@nant> Message-ID: <00ba01c7f106$04279830$0301a8c0@HAL9005> Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 00:09:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:09:31 -0500 Subject: [AccessD] Database Patent In-Reply-To: <00a001c7f0fa$c8eddaf0$0301a8c0@HAL9005> Message-ID: The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 00:30:20 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:30:20 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E0C280.8000805@mvps.org> Message-ID: True, it's not right or wrong. I am not trying to 'blast' your methods. I had a talk with my bosses boss one day, years ago (ironically, he turned in his notice, after working with Marlow for over 20 years, and tomorrow is his last day). He was asking about certain security aspects of our network. When I started there, our network was in shambles, and Mark (our old network administrator) and I spent years tightening things up to a respectable level. But one of the things I told Robbie was that one of our main security measurements was the ignorance of our users. At the time, what protected much of our stuff was that most people just didn't know where things were, or how to get into them, and that's not talking about passwords, just simply not knowing how to run something. However, our debate here takes a different turn when you change the type of application. If you are building a database for a customer to track some of there information, 'trusting' them with the data isn't an issue, if the data is for their own use. Who cares if they go in and change an a to a b. It's their data. Data Integrity is only used to make sure the processes work. But what if the data IS the process. Case in point, I built a system we call the ISFE. Information Systems Front End. It's our request tracking system (asset management, etc.). We are a public company, we use the ISFE to PROVE that the work we do was authorized. It has an electronic signature capability. We get audited based on the information in that system AND based on the integrity of that system. If I was an auditor, and I was able to just get directly into the tables, with no security stopping me, I would fail the company using that application. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 10:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Hi Drew, Drew Wutka wrote: > The biggest hole in the 'GUI' data integrity process is the .mdb itself. Yes, I know. Well, I don't call it a "hole". But yes, I know. > You can link tables or import them into another .mdb with a few clicks > of the mouse. Yes, I know. > So, if you have a table that you really don't want people editing data > in, no amount of GUI tricks are going to prevent that if you don't put > security on a table. If someone wants to get at the data, they can just > link the tables in a blank database, and have at the data. Yes, I know they can. But they don't... that's the point. > So, in the case of your customers, who want to have access to write > their own queries and reports, you are simply getting by with having > uninformed or inexperienced customers. No. Some would be uninformed or inexperienced. But that's not as relevant as professional and responsible. > A user of Access, who knows the > just a fraction of how Access works can link to the tables in your > database. I don't think that's true. There are a lot of people who know a fair bit about Access, who wouldn't think of that possibility. Of course, many of my customers have no idea that we are using Access anyway. But again, that's not the main point. You are making the assumption that just because people *can* stuff around with stuff they've got no business with, that they *will*. That's very sad. I have good relationships with my clients. Those that have the skills and knowledge to link to the backend from another Access file would discuss it with me before they went near it. But again, Drew, I am happy for you to take additional precautions if you feel the need to. This is not a "right or wrong" consideration here. Regards Steve -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 00:40:35 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 00:40:35 -0500 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From shamil at users.mns.ru Fri Sep 7 01:28:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 7 Sep 2007 10:28:06 +0400 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: <000901c7f118$40ccef30$6601a8c0@nant> Hello Rocky, Yes, I suppose there are no unique ideas/principles in this patent. I suppose that but I'm not stating that. The authors of this patent might investigate many of the open sources to find out did they patented something unique or not. I'd expect they will find they are a kind of "reinvented the wheel". That happens of course. <<< am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? >>> Yes, the data changes can be "mirrored" by using replication, which can be setup by using advanced built-in replication subsystems of the modern DBMSs. Of course when the new version of the database is getting a lot of changes of its data model then only a small representative subset of the live data is used. And only when the new version is in final beta/release candidate then the final massive replication is done and then the new system is becoming a "hot mirror" ready for the switch... All in all - there is "no free cheese in this world" - and trying to get invented and developed "the most flexible database structures" will result in pure overall performance or huge investments and never (?) pay back the investors/sponsors - that would be more like fundamental research that a practical solution... All and every position of the subject patent text can be argued with real references of similar ideas/inventions/real life implementations - the authors of this patent might try to prove the opposite... As a conclusion: I'm not trying to "kill" this patent - you asked about its novelty - and my message is just a warning that this patent is not looking like a novelty and that trying to implement this patent in real life applications could be far less effective than the authors of this patent expect - in fact immediate and even long term economical effect could be negative - bankruptcy... I'd love if I'm not correct with all I have written above... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:18 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Fri Sep 7 03:30:57 2007 From: joeget at vgernet.net (John Eget) Date: Fri, 7 Sep 2007 04:30:57 -0400 Subject: [AccessD] Conditional Formatting with date References: Message-ID: <000601c7f129$6d9c9540$50c2f63f@JELaptop> I have a report that displays a derived date (FollowupDue) which is calculated as (=DateAdd("d",180,[Closed])) that I would like to provide conditional formatting for. What I want to do is - If the date is between 120 to 149 then display the date as Green, if between 150 to 179 then Yellow, and finally if equal to or greater that 180 display the date as Red. Using the Conditional Formatting dropdown if I am doing the greater than (Now(0)) is Red works okay. Any of the other options does not work. Is anyone familiar with this area and can help? Thanks John From Gustav at cactus.dk Fri Sep 7 03:53:05 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 10:53:05 +0200 Subject: [AccessD] Coping a Table. Message-ID: Hi Jim I would suggest you specify exactly - step by step - to the client what to do. Otherwise you have no clue on what's going on, the user may not even know what he/she has done and why, and - don't forget - users lie (one of our mottos). /gustav >>> accessd at shaw.ca 06-09-2007 21:01 >>> Hi Gustav: I am not sure how the client is replicating the table into their MDB. It could be drag and drop or cut and paste. I will suggest export and import if the Make-table query does not work. My question is why the table is appearing locked in the first place. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 06, 2007 9:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Coping a Table. Hi Jim If it is locked, it is normally opened somehow. What does copy mean? I would suggest to either import it or export it. /gustav >>> accessd at shaw.ca 06-09-2007 18:36 >>> Hi All: I have been sending a single table, in a new MDB, to a client so they can copy it into their MDB. They report that the table is locked and they can not copy it. We have gone through this process a couple of times and I am not sure what is going on. I have just suggested a Make-Table query and hopefully that will solve the problem. Has anyone else ran across this problem before and found a solution or a reason. TIA 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 miscellany at mvps.org Fri Sep 7 03:59:26 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 20:59:26 +1200 Subject: [AccessD] Conditional Formatting with date In-Reply-To: <000601c7f129$6d9c9540$50c2f63f@JELaptop> References: <000601c7f129$6d9c9540$50c2f63f@JELaptop> Message-ID: <46E112EE.6000402@mvps.org> John, Hard to know what the problem is without seeing what you have tried so far. But personally, I would find it simplest to do the Conditional Formatting of the FollowupDue control by referring back to the value of the Closed field. In other words, the 3 conditions would be like this: Expression Is: Date()-[Closed] Between 120 And 149 Expression Is: Date()-[Closed] Between 150 and 179 Expression Is: Date()-[Closed]>=180 Otherwise, I have misunderstood your requirement Regards Steve John Eget wrote: > I have a report that displays a derived date (FollowupDue) which is > calculated as (=DateAdd("d",180,[Closed])) that I would like to provide > conditional formatting for. > > What I want to do is - If the date is between 120 to 149 then display the > date as Green, if between 150 to 179 then Yellow, and finally if equal to or > greater that 180 display the date as Red. Using the Conditional Formatting > dropdown if I am doing the greater than (Now(0)) is Red works okay. > Any of the other options does not work. Is anyone familiar with this area > and can help? > > Thanks > > John > > From miscellany at mvps.org Fri Sep 7 04:14:30 2007 From: miscellany at mvps.org (Steve Schapel) Date: Fri, 07 Sep 2007 21:14:30 +1200 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <46E11676.7010906@mvps.org> Drew, In the case of your example, I can certainly see that you have to somehow cover off the possibility of unauthorised access to the data. Sort of like what they say about justice - should be done, and also seen to be done. And I also understand what a blessing the ignorance of the users can sometimes be. :-) I appreciate the interesting discussion. Thank you. Regards Steve Drew Wutka wrote: > Case in point, I built a system we call the ISFE. Information Systems > Front End. It's our request tracking system (asset management, etc.). > We are a public company, we use the ISFE to PROVE that the work we do > was authorized. It has an electronic signature capability. We get > audited based on the information in that system AND based on the > integrity of that system. If I was an auditor, and I was able to just > get directly into the tables, with no security stopping me, I would fail > the company using that application. From fuller.artful at gmail.com Fri Sep 7 04:23:13 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 05:23:13 -0400 Subject: [AccessD] Transactions In-Reply-To: References: <46E0C280.8000805@mvps.org> Message-ID: <29f585dd0709070223sae4bd83qf5fd55500f4970f2@mail.gmail.com> This would appear to be an appropriate thread in which to present my question, rather than beginning a new thread. The app I have just developed is for a very small market niche (in fact, so far as I have determined, said niche contains only one competitor, and my client is so unhappy with said competitor's product that she commissioned me to write a replacement). All that aside, there is the issue of credit cards. It's simple enough to mask the content of the credit card column so that only the last four numbers show, but the data is still there, naked as it were, and subject to the aforementioned "link tables" attack. This app uses an MDB as its back end (so far). I know what to do if the BE is SQL Server (encrypt the column), but I am not sure what to do in the case of an MDB BE. The firm's accountant is concerned with this data being potentially available to leakage (either a disgruntled employee or an internet penetration). Perhaps a code algorithm to scramble and unscramble the numbers will suffice. I'm not sure. Any thoughts from the esteemed readership here? A. From Gustav at cactus.dk Fri Sep 7 04:43:46 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 11:43:46 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From Gustav at cactus.dk Fri Sep 7 05:13:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 12:13:40 +0200 Subject: [AccessD] Transactions Message-ID: Hi Arthur Yes, a simple but extremely efficient method is to encrypt at the field level. Then, even with access to the tables, no information can be read. I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. Here's the header info: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> fuller.artful at gmail.com 07-09-2007 11:23 >>> This would appear to be an appropriate thread in which to present my question, rather than beginning a new thread. The app I have just developed is for a very small market niche (in fact, so far as I have determined, said niche contains only one competitor, and my client is so unhappy with said competitor's product that she commissioned me to write a replacement). All that aside, there is the issue of credit cards. It's simple enough to mask the content of the credit card column so that only the last four numbers show, but the data is still there, naked as it were, and subject to the aforementioned "link tables" attack. This app uses an MDB as its back end (so far). I know what to do if the BE is SQL Server (encrypt the column), but I am not sure what to do in the case of an MDB BE. The firm's accountant is concerned with this data being potentially available to leakage (either a disgruntled employee or an internet penetration). Perhaps a code algorithm to scramble and unscramble the numbers will suffice. I'm not sure. Any thoughts from the esteemed readership here? A. From accessd at shaw.ca Fri Sep 7 05:24:21 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 07 Sep 2007 03:24:21 -0700 Subject: [AccessD] Database Patent In-Reply-To: <008901c7f0e0$5c505ea0$0301a8c0@HAL9005> Message-ID: <29F027B7EFB04A3A9745D2A38606D2F9@creativesystemdesigns.com> Hi Rocky: I think that has already been done before. I would think the method would not be patientable but maybe no one has ever bothered to before. How long can some method be used in common practice before it becomes like 'open-source'? Jim -----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, September 06, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 7 05:34:05 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 06:34:05 -0400 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <29f585dd0709070334h143845bdgdf74917a73b29ae3@mail.gmail.com> Thanks, Gustav! On 9/7/07, Gustav Brock wrote: > > Hi Arthur > > Yes, a simple but extremely efficient method is to encrypt at the field > level. Then, even with access to the tables, no information can be read. > I've used that for mdb files sent over the Internet thus eliminating the > need for VPN or encrypted mail. > > From ewaldt at gdls.com Fri Sep 7 07:52:38 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Fri, 7 Sep 2007 08:52:38 -0400 Subject: [AccessD] Exporting an OLE Object In-Reply-To: Message-ID: I have an Excel workbook with some complicated code; I need to export data to the workbook and run the code. I know how to do that, but this database will be used by several people, and I'd prefer not to have to require them to use an Excel template. I have imported a workbook (blank except for a module containing the needed code) as an OLE object in its own table in my database. I want to export (or open-and-save-as) the workbook, add the appropriate data from Access, and then run the code (in whatever order is best). How do you export an Excel workbook as an OLE object via VBA? Of course, if you have better ideas... TIA. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 Fri Sep 7 08:02:08 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:02:08 -0500 Subject: [AccessD] Transactions In-Reply-To: <46E11676.7010906@mvps.org> Message-ID: Ditto. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, September 07, 2007 4:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Drew, In the case of your example, I can certainly see that you have to somehow cover off the possibility of unauthorised access to the data. Sort of like what they say about justice - should be done, and also seen to be done. And I also understand what a blessing the ignorance of the users can sometimes be. :-) I appreciate the interesting discussion. Thank you. Regards Steve Drew Wutka wrote: > Case in point, I built a system we call the ISFE. Information Systems > Front End. It's our request tracking system (asset management, etc.). > We are a public company, we use the ISFE to PROVE that the work we do > was authorized. It has an electronic signature capability. We get > audited based on the information in that system AND based on the > integrity of that system. If I was an auditor, and I was able to just > get directly into the tables, with no security stopping me, I would fail > the company using that application. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Fri Sep 7 08:03:59 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:03:59 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000601c7f14f$8ea050d0$0301a8c0@HAL9005> Drew: On the Marlow database, can they modify that database without having to take it down? It's an on-the-fly modification? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 08:05:18 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:05:18 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Fri Sep 7 08:07:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:07:39 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000701c7f150$117a3d90$0301a8c0@HAL9005> Drew: In which of these situations, there would be a brief interruption in service? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 08:09:18 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:09:18 -0700 Subject: [AccessD] Database Patent In-Reply-To: <000901c7f118$40ccef30$6601a8c0@nant> Message-ID: <000801c7f150$4ca99b90$0301a8c0@HAL9005> Thanks again. I'll forward your thoughts to the client. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 11:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Hello Rocky, Yes, I suppose there are no unique ideas/principles in this patent. I suppose that but I'm not stating that. The authors of this patent might investigate many of the open sources to find out did they patented something unique or not. I'd expect they will find they are a kind of "reinvented the wheel". That happens of course. <<< am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? >>> Yes, the data changes can be "mirrored" by using replication, which can be setup by using advanced built-in replication subsystems of the modern DBMSs. Of course when the new version of the database is getting a lot of changes of its data model then only a small representative subset of the live data is used. And only when the new version is in final beta/release candidate then the final massive replication is done and then the new system is becoming a "hot mirror" ready for the switch... All in all - there is "no free cheese in this world" - and trying to get invented and developed "the most flexible database structures" will result in pure overall performance or huge investments and never (?) pay back the investors/sponsors - that would be more like fundamental research that a practical solution... All and every position of the subject patent text can be argued with real references of similar ideas/inventions/real life implementations - the authors of this patent might try to prove the opposite... As a conclusion: I'm not trying to "kill" this patent - you asked about its novelty - and my message is just a warning that this patent is not looking like a novelty and that trying to implement this patent in real life applications could be far less effective than the authors of this patent expect - in fact immediate and even long term economical effect could be negative - bankruptcy... I'd love if I'm not correct with all I have written above... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:18 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 08:11:22 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 06:11:22 -0700 Subject: [AccessD] Database Patent In-Reply-To: <29F027B7EFB04A3A9745D2A38606D2F9@creativesystemdesigns.com> Message-ID: <000a01c7f150$96976390$0301a8c0@HAL9005> Good questions. My client is a patent attorney. I'll ask. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, September 07, 2007 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Hi Rocky: I think that has already been done before. I would think the method would not be patientable but maybe no one has ever bothered to before. How long can some method be used in common practice before it becomes like 'open-source'? Jim -----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, September 06, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From Gustav at cactus.dk Fri Sep 7 08:31:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 15:31:22 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From rusty.hammond at cpiqpc.com Fri Sep 7 08:34:25 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 7 Sep 2007 08:34:25 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE10@cpixchng-1.cpiqpc.net> Thanks, I what I ended up doing. -----Original Message----- From: Gmail [mailto:max.wanadoo at gmail.com] Sent: Thursday, September 06, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Returning only numbers from a phone number field Hi Rusty, This should do the trick for you: Function teststripNonNumerics() MsgBox stripNonNumerics("1.2.3.4/5/6/akjfjakfd-789kjjkaf880-087222/.88") End Function Function stripNonNumerics(str As String) As String Dim lngLoop As Long, strTemp As String For lngLoop = 1 To Len(str) If IsNumeric(Mid(str, lngLoop, 1)) Then strTemp = strTemp & Mid(str, lngLoop, 1) End If Next lngLoop stripNonNumerics = strTemp End Function Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, September 06, 2007 6:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Returning only numbers from a phone number field Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond ********************************************************************** 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 -- 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 rusty.hammond at cpiqpc.com Fri Sep 7 08:36:30 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 7 Sep 2007 08:36:30 -0500 Subject: [AccessD] Returning only numbers from a phone number field Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE11@cpixchng-1.cpiqpc.net> Gustav, My solution was much shorter but yours is much more thorough, I'm going to keep this one around. Thanks! Rusty -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, September 06, 2007 12:13 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Returning only numbers from a phone number field Hi Rusty You may use my little function: Public Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function /gustav >>> rusty.hammond at cpiqpc.com 06-09-2007 19:09 >>> Is there a built in function that would return only the numbers from a text field? I have a table that allows the users to enter a phone number however they like, ie with or without parentheses or dashes or dots or any combination of them. I would like to extract only the numbers (0-9) from this field. Is there anything built in to Access 2003 to do this or do I just need to create my own little function to do it? TIA, Rusty Hammond -- 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 tinanfields at torchlake.com Fri Sep 7 08:37:00 2007 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 07 Sep 2007 09:37:00 -0400 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? - AHA! In-Reply-To: <46D5B065.7020200@torchlake.com> References: <46D5B065.7020200@torchlake.com> Message-ID: <46E153FC.6080206@torchlake.com> Hi All, Yesterday I went to see the database. As we sat down the client said that they had tried taking it over to a machine running A2K3 and it had run perfectly, but on the machine using A2K7 the thing seemed to be missing stuff. Okay, launch the database. The startup form has a search combo box and command buttons to allow all kinds of things: add a new record of some kind to the transaction table, edit the profile, stuff like that. Clicking the buttons produced no response. I looked up above the main window, just under the ribbon, and there was a warning statement that Access had disabled something it couldn't be sure was safe. I clicked the options button, which opened the security window, clicked the choice to enable the disabled feature - I think it was macros. Voila, the database works as it was supposed to. Apparently, the command buttons call macros and the macro feature was disabled. That's all that was wrong. I was there three minutes. She thinks I'm a genius because, she said, five IT people had failed to figure it out. I find that a little hard to believe. But, it certainly made me feel good. Tina Tina Norris Fields wrote: > Hi All, > > A client called with this story: We had a functioning database > developed in A2K3. We gave the data to an off-site developer who did > some redesign work. While the database was away being reworked, we > upgraded in the office to A2K7. The database now seems to be missing > some fields and is not really functional. > > My first impression (I have not looked at the database yet) is that the > difficulties probably are associated with the off-site rework rather > than the upgrade. But, I thought I'd check out what to watch out for > when I do go look at the database. > > Thanks for any advice and information on A2K3-A2K7 issues. > > Tina > From tinanfields at torchlake.com Fri Sep 7 08:39:13 2007 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Fri, 07 Sep 2007 09:39:13 -0400 Subject: [AccessD] Lose the warnings In-Reply-To: References: <29f585dd0708301427x488fa0fdgf3567511ce58fab3@mail.gmail.com> Message-ID: <46E15481.1020100@torchlake.com> Gary, Doesn't that change the settings for Access itself, rather than for just that particular database? Tina Gary Kjos wrote: > >From the menu go to > > Tools/Macros/Security/Security Level > > and once there select the Low Setting and that fixes that. > > GK > > On 8/30/07, Arthur Fuller wrote: > >> Having converted my 2k app to 2k3, I suffer two warnings upon entry to the >> system, and cannot locate how to kill them. One says something about >> potentially unsafe, the other about open. I want these to go away >> permanently for my particular app, bu I want them to remain for all else. Is >> this possible? >> >> I did look at the Security stuff on the menu, which was no help. In typical >> MS style. >> >> TIA, >> Arthur >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > From DWUTKA at Marlow.com Fri Sep 7 08:54:17 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:54:17 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000601c7f14f$8ea050d0$0301a8c0@HAL9005> Message-ID: They aren't truly modifying the design of the database, the database is designed to allow for modification of the data layout (without changing the database design). Not only does that prevent having to modify a live database, it prevents the need for future development. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:04 AM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Drew: On the Marlow database, can they modify that database without having to take it down? It's an on-the-fly modification? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent The beginning of the patent that you are talking about is discussing the problems of a system where you can't change the design of the tables while using the database. I built a system that got around that limitation. It's a 'data entry' system. We have several computers that record information from test equipment. An example would be our CMM machines. These machines measure things, optically. It's pretty slick, it uses a black and white camera that can tell you the height, width and depth of something, based on lines and grayscale equations. We make thermal electric coolers, so to inspect them, either someone is looking under a microscope and measuring things, or we can have the CMM inspect stuff, and report the measurements. With the first CMM, the guy working with it wanted to record the data into a database. He had two or three 'programs' that recorded their own distinct set of data. I wrote a custom database, with custom .dll's to record the data into the database. So his code (the CMM's have something called QBasic, which is a modified version of VBScript), would look like this: MyDll.CeramicWidth=SomeCodeToReferencetheCMMObjectModel MyDll.RecordData 'puts the set properties into a matching table in the database. About 2 years later, we bought another CMM. This time, however, they were planning on having lots of different 'programs', and were expecting more every time. With the original system, it's been in use for 4 or 5 years, and I've never had to add or modify to the original system I built for that one. But now I was faced with a system where the data they wanted to record could require new fields, with new data types, descriptions, etc, on a frequent database. The patent is discussing this situation, because it is talking about having to take a database 'down' to make these modifications. What I built was the CMM Data Acquisition program. The database had a few 'solid' tables, such as Batches, and Items. Items for the CMM would be the individual coolers that are inspected, and batches would be a group of items inspected at the same time. Then there was the Program table. It stores the details specific to each program. It's name, group, etc. Then the program field table. This table determined the field type, the description, the units, etc. Then there was a table for each data type. That table housed the value, the Item ID, and Field ID (The item table listed the program ID). So for every value that was entered, two indexed long integers were recorded for each value (be it text, currency, long, double, or date). There is a person that develops the QBasic code for each 'inspection' program. Instead of having to add or modify a table in the database, the database structure allows them to create a new 'program table' by creating definitions in the tables, and utilizing the multiple 'data' tables to store the same type of data, identified by item and field id's. So each program could be a different 'database design', when in reality, it's the same database just configured to handle an infinite variety of variable 'tables'. As an FYI, the goal was to use this database to record ALL test machine data, but I have never had time to go back and finish this system. It records the data without a glitch (in fact, to test it, I built in place an artificial data entry process, that just ran random number/data through batches. Let it run continuously overnight, and had the database at around 500 megs. Did some report tests, and the data reports I had ran at the same speed in the relatively empty database as it did in the system with several hundreds of thousands of batch runs (thus millions of items). I have basic batch reports, but the goal was to create a dynamic reporting engine, to let a user 'create' a report based on any 'field' (defined by the Program fields table), but just haven't gotten to it. This was not the first time I used such a structure either. Our company website (www.marlow.com) uses an almost identical process for the products. If you look the products on our web page, you'll see that the same page displays both cooler data, and data for other products like TTRSes, accessories, etc. This data is all stored in the same structure, not separate tables designed for the specific products. While a TEC (cooler) may have a Delta T attribute, a TTRS wouldn't. Our drafting department has 'control' of the product data, so they could add any type of product they want, from a TECs, to cars, to nuts and bolts, and the database never has to be redesigned to handle the different attributes of the item. Make sense? Not the exact same design of this patent, but the same idea. Drew -----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, September 06, 2007 9:57 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent This is an existing patent. The patent is date Feb. 21, 2007. Does your work predate the patent? Does it use this two-part scheme of the records data set and the categories data set? Or is yours a different technique which would duplicate one of the salient advantages of this patent which is the ability to alter the design of a database without interruption in the service? Part of what I'm trying to find out here, is knowing if this is a more or less common or existing technique or is truly unique. That would determine what value, if anything, the patent would have in a sale of the rights. How much of what you did can you share or want to share? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Is this an existing patent, or one that is applying for a patent? I ask, because I have actually built databases that pretty much use this principle. Drew -----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, September 06, 2007 6:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From garykjos at gmail.com Fri Sep 7 08:56:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Sep 2007 08:56:24 -0500 Subject: [AccessD] Lose the warnings In-Reply-To: <46E15481.1020100@torchlake.com> References: <29f585dd0708301427x488fa0fdgf3567511ce58fab3@mail.gmail.com> <46E15481.1020100@torchlake.com> Message-ID: Hi Tina, Yes, that is correct. And it is not recommended by Microsoft. You can read about their recommendations here; http://office.microsoft.com/en-us/access/HA011225981033.aspx#150 They tell you to digitally sign your database and add your signature to each users trusted publishers on each users system. It certainly depends on your particular circumstances if it is too risky to set the security setting to low or to much of a pain to deal with the digital signature solution. GK On 9/7/07, Tina Norris Fields wrote: > Gary, > Doesn't that change the settings for Access itself, rather than for just > that particular database? > Tina > > Gary Kjos wrote: > > >From the menu go to > > > > Tools/Macros/Security/Security Level > > > > and once there select the Low Setting and that fixes that. > > > > GK > > > > On 8/30/07, Arthur Fuller wrote: > > > >> Having converted my 2k app to 2k3, I suffer two warnings upon entry to the > >> system, and cannot locate how to kill them. One says something about > >> potentially unsafe, the other about open. I want these to go away > >> permanently for my particular app, bu I want them to remain for all else. Is > >> this possible? > >> > >> I did look at the Security stuff on the menu, which was no help. In typical > >> MS style. > >> > >> TIA, > >> 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 > -- Gary Kjos garykjos at gmail.com From DWUTKA at Marlow.com Fri Sep 7 08:56:24 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:56:24 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000701c7f150$117a3d90$0301a8c0@HAL9005> Message-ID: Depends. The shadow database where the live database is updating the test database would have no down time, it would just be a matter of switching to the new system. In the case of the snapshot type, where the test system is developed and tested with a one time snapshot, the down time is going to be the length of time it takes to import the new data. In the case of a mixed environment, the example I gave had a downtime of about 30 seconds. (The time it took me to swap the linked tables with imported tables.) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 8:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Drew: In which of these situations, there would be a brief interruption in service? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, September 06, 2007 10:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent To answer your 'shadow' database question, it depends on how the developer wants to set things up. There are lots of methods. The 'test' database with the new design could be a snapshot of the data, so that it is identical at the start, but the live and the test are then separate. In this case, the 'data dump' process is tested and approved, and when the new system is ready, a final data dump is run (may take more then a few minutes depending on the size of the system and speed of the components). We did this recently with our production/manufacturing database. Old system on a Unix box, new system on a windows based platform. Same software (just different versions (years apart). The final data dump, when we were ready to go live, took about 2 hours. (Probably about 50 gigs of data). You could also design a system that runs both at the same time. In a server based OS, triggers could be put in place that would update the 'shadow' server data. Another method would be to create an 'update' script. Where the shadow system is a mirror of the live site, and the done to it is a script that updates the design (modifying data formats as needed), and the final result is when that script is run against the live system. Another method is partial jumpers. Running the new data in a new database and keeping the old data (and format) live in the old system, until you are ready to put the whole new system in place. I did this with the ISFE (a system I built years ago, and recently updated). The new ISFE had only a handful of tables that the old system used. So the new database actually linked those tables while the new system went out. The old system worked, with a few processes stuck with old data, (processes unnecessary in the new system). There were several things that used the old system, however, but they used the linked tables. So while they were still entering data into the old database, the new database saw all that data, because it was using the links. When I was ready to drop the old database, it was a simple matter of importing the linked tables, took a minute, tops. Drew -----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, September 06, 2007 11:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 08:59:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 08:59:38 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From garykjos at gmail.com Fri Sep 7 09:03:22 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Sep 2007 09:03:22 -0500 Subject: [AccessD] What problems converting A2K3 mdb to A2K7? - AHA! In-Reply-To: <46E153FC.6080206@torchlake.com> References: <46D5B065.7020200@torchlake.com> <46E153FC.6080206@torchlake.com> Message-ID: Yea Tina! You ARE a hero! And as someone that has been an "IT PERSON" for more years than I care to divulge I can state that 99% of IT People think Access is a toy and not worth their time so I can see how several of them would have not seen what seemed obvious to you or they were scared to break it and then they would be responsible to fix it.Have a look, see it's Access, shrug your shoulders and scratch your head. At my current company I am the only person in our company - outside of the users - that isn't afraid to use Access for real work. So any problem the users have with Access the Computer Support area will contact me to help with even though I am no longer in the IT department. Great job for fixing the problem and thanks for sharing it with us. GK On 9/7/07, Tina Norris Fields wrote: > Hi All, > > Yesterday I went to see the database. As we sat down the client said > that they had tried taking it over to a machine running A2K3 and it had > run perfectly, but on the machine using A2K7 the thing seemed to be > missing stuff. > > Okay, launch the database. The startup form has a search combo box and > command buttons to allow all kinds of things: add a new record of some > kind to the transaction table, edit the profile, stuff like that. > Clicking the buttons produced no response. I looked up above the main > window, just under the ribbon, and there was a warning statement that > Access had disabled something it couldn't be sure was safe. I clicked > the options button, which opened the security window, clicked the choice > to enable the disabled feature - I think it was macros. Voila, the > database works as it was supposed to. > > Apparently, the command buttons call macros and the macro feature was > disabled. That's all that was wrong. I was there three minutes. She > thinks I'm a genius because, she said, five IT people had failed to > figure it out. I find that a little hard to believe. But, it certainly > made me feel good. > > Tina > > > Tina Norris Fields wrote: > > Hi All, > > > > A client called with this story: We had a functioning database > > developed in A2K3. We gave the data to an off-site developer who did > > some redesign work. While the database was away being reworked, we > > upgraded in the office to A2K7. The database now seems to be missing > > some fields and is not really functional. > > > > My first impression (I have not looked at the database yet) is that the > > difficulties probably are associated with the off-site rework rather > > than the upgrade. But, I thought I'd check out what to watch out for > > when I do go look at the database. > > > > Thanks for any advice and information on A2K3-A2K7 issues. > > > > Tina > > -- Gary Kjos garykjos at gmail.com From adtp at airtelbroadband.in Fri Sep 7 09:02:20 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 7 Sep 2007 19:32:20 +0530 Subject: [AccessD] Transactions References: Message-ID: <00ea01c7f158$2925fd00$2757a27a@personalec1122> Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- From Gustav at cactus.dk Fri Sep 7 09:09:05 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 16:09:05 +0200 Subject: [AccessD] Transactions Message-ID: Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew From DWUTKA at Marlow.com Fri Sep 7 09:40:02 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 09:40:02 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Fri Sep 7 09:55:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 07 Sep 2007 14:55:53 +0000 Subject: [AccessD] Transactions In-Reply-To: <29f585dd0709070223sae4bd83qf5fd55500f4970f2@mail.gmail.com> Message-ID: Arthur, I recently wrote and ecryption/decryption module for credit card numbers. I can't give specifics on how I did it...but I can share that the 'reviewing authority'...some group hired to say "Yes, this is suffucient encryption...or NO its not"...did like the fact that the CC# was never stored in any DB unencrypted. The app reads the CC from an unbound field, encrypts it...and stores the encrypted value (also the last four for reference purposes). When they need to view the CC#, it is decrypted and displayed in an unbound field. The 2nd thing liked was that the code to do this was not in the DB...it was saved as a library and referenced... I basically converted the CC# into a 10 digit Alpha-numeric string using an 'algorithm' Hope its helpful. Thanks, Mark A. Matte >From: "Arthur Fuller" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Transactions >Date: Fri, 7 Sep 2007 05:23:13 -0400 > >This would appear to be an appropriate thread in which to present my >question, rather than beginning a new thread. The app I have just developed >is for a very small market niche (in fact, so far as I have determined, >said >niche contains only one competitor, and my client is so unhappy with said >competitor's product that she commissioned me to write a replacement). All >that aside, there is the issue of credit cards. > >It's simple enough to mask the content of the credit card column so that >only the last four numbers show, but the data is still there, naked as it >were, and subject to the aforementioned "link tables" attack. This app uses >an MDB as its back end (so far). I know what to do if the BE is SQL Server >(encrypt the column), but I am not sure what to do in the case of an MDB >BE. >The firm's accountant is concerned with this data being potentially >available to leakage (either a disgruntled employee or an internet >penetration). Perhaps a code algorithm to scramble and unscramble the >numbers will suffice. I'm not sure. Any thoughts from the esteemed >readership here? > >A. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get a FREE small business Web site and more from Microsoft? Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ From DWUTKA at Marlow.com Fri Sep 7 09:59:44 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 09:59:44 -0500 Subject: [AccessD] Transactions In-Reply-To: <00ea01c7f158$2925fd00$2757a27a@personalec1122> Message-ID: It is possible, but not feasible. User level security only goes to table level, so to do what you want you would need to create new tables for the records you want protected with different permissions. You can create tables, and set their permissions on the fly, but honestly, with that level of security, it makes more sense to go with a more robust security system. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 9:02 AM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Transactions Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Fri Sep 7 10:00:00 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:00:00 -0700 Subject: [AccessD] Transactions In-Reply-To: <46E092B0.5060406@mvps.org> References: <46E0859B.4090705@mvps.org> <46E092B0.5060406@mvps.org> Message-ID: Good grief, I don't even recall where it was published ... Access/SQL Advisor I think. Susan, do you remember? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Thursday, September 06, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Thank you, Charlotte. I hope I didn't give the impression that I thought there were not "ways around it". I am saying that in practice, I do not find I need to try and prevent people finding ways around it. In practice, I have found that removing the possibility of accessing the Database Window from within the application UI has been sufficient. Not foolproof, but sufficient. I have a couple of times had clients who wanted me to provide them with the MDB rather than the MDE, and access to the Database Window, so they could make their own reports and whatnot. I have told them sure, no problem, but that spells the end of my relationship with them, as I do not support applications under those circumstances. Anyway, I digress. I would be interested to have a look at your article, if possible? Regards Steve Charlotte Foust wrote: > > Susan and I wrote an article one time about hiding the database window. > We did a pretty good job but there were still ways around it if your > users had more than just the runtime version of Access and knew what > they were doing. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 7 10:07:40 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:07:40 -0700 Subject: [AccessD] Database Patent In-Reply-To: <00ba01c7f106$04279830$0301a8c0@HAL9005> References: <005e01c7f102$e4ee4e80$6601a8c0@nant> <00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 7 10:12:03 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 08:12:03 -0700 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: Have you been cross pollinating your code with .Net, Drew? LOL I use ListViews all the time, but only in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 6:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Sep 7 10:16:28 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 7 Sep 2007 11:16:28 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <005e01c7f102$e4ee4e80$6601a8c0@nant><00ba01c7f106$04279830$0301a8c0@HAL9005> Message-ID: I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 rockysmolin at bchacc.com Fri Sep 7 10:55:32 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 08:55:32 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <002f01c7f167$85576050$0301a8c0@HAL9005> If true then the fact that the patent was granted says something about the inability of the PTO to keep up with the pace of technological innovation. I wouldn't envy someone the job of trying to discern whether this was a truly unique idea. Searching existing patents wouldn't be enough. You'd have to know, or be able to tap into, a vast experience with database design, wouldn't you? There are, as you say, built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. But can these be done on-the-fly, without taking down the database for an update? That seems to be the thrust of the value and unique patentable innovation. As an aside, I wonder if this 'innovation' wasn't originally conceived or designed a few years ago and only patented in 2006, after subsequent innovation in database technology left this behind or made it obsolete. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From rockysmolin at bchacc.com Fri Sep 7 10:56:46 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Sep 2007 08:56:46 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <003001c7f167$b263a9f0$0301a8c0@HAL9005> Julie: Are you surprised because you think that the idea is not unique or innovative enough to deserve a patent? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 8:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM From DWUTKA at Marlow.com Fri Sep 7 10:58:46 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 10:58:46 -0500 Subject: [AccessD] Transactions In-Reply-To: Message-ID: No, just a typo. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 10:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Have you been cross pollinating your code with .Net, Drew? LOL I use ListViews all the time, but only in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 6:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 7 10:59:41 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 7 Sep 2007 10:59:41 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000601c7f162$10603ce0$9402a8c0@hpnotebook> Message-ID: You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From comres at rpa.net Fri Sep 7 10:59:47 2007 From: comres at rpa.net (Mark Brown) Date: Fri, 7 Sep 2007 11:59:47 -0400 Subject: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference In-Reply-To: References: <20070619204928.3C0FABF14@smtp-auth.no-ip.com> Message-ID: <000c01c7f168$1de92560$6801a8c0@MarkLaptop> Is there any updated information regarding the weekend? Is it still on? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, June 19, 2007 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference It's on my calendar! However, as a native Californian, I have to tell you, I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 1:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND bi-annual GreatSmokeyMountainsAccessDConference ROTFL. OK, the second biannual conference. Now that that is handled, where are you, square or here? John 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: Tuesday, June 19, 2007 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND annual Great SmokeyMountainsAccessDConference Can't be. It has to be the second biannual conference, unless you're talking about September 2008. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 12:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND annual Great Smokey MountainsAccessDConference Let's get planning started for Sept. There were several people that indicated that Sept would work for a conference. If no one speaks up requesting a different date, I am going to declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD Conference. Same location, same great food, same great host. Be here or be square. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid Sent: Tuesday, June 19, 2007 3:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The first annual Great Smokey MountainsAccessDConference John Any chance of putting in a web camera and I can join you lot from here?? Wish I was going but hope you all have a great time Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 7 11:22:56 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Sep 2007 12:22:56 -0400 Subject: [AccessD] The SECONDbi-annualGreatSmokeyMountainsAccessDConference In-Reply-To: <000c01c7f168$1de92560$6801a8c0@MarkLaptop> Message-ID: <006e01c7f16b$59f6ce10$6c7aa8c0@M90> I would love to. However I got no response on the last date I threw out so... I think we should set a new data and try again. Maybe even out in the spring. Mark Matte got to choose the last date simply because he suggested 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 Mark Brown Sent: Friday, September 07, 2007 12:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] The SECONDbi-annualGreatSmokeyMountainsAccessDConference Is there any updated information regarding the weekend? Is it still on? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, June 19, 2007 5:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND bi-annualGreatSmokeyMountainsAccessDConference It's on my calendar! However, as a native Californian, I have to tell you, I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 1:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND bi-annual GreatSmokeyMountainsAccessDConference ROTFL. OK, the second biannual conference. Now that that is handled, where are you, square or here? John 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: Tuesday, June 19, 2007 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The SECOND annual Great SmokeyMountainsAccessDConference Can't be. It has to be the second biannual conference, unless you're talking about September 2008. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 19, 2007 12:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] The SECOND annual Great Smokey MountainsAccessDConference Let's get planning started for Sept. There were several people that indicated that Sept would work for a conference. If no one speaks up requesting a different date, I am going to declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD Conference. Same location, same great food, same great host. Be here or be square. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid Sent: Tuesday, June 19, 2007 3:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The first annual Great Smokey MountainsAccessDConference John Any chance of putting in a web camera and I can join you lot from here?? Wish I was going but hope you all have a great time Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974465 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 7 11:29:33 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 7 Sep 2007 11:29:33 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: <000601c7f162$10603ce0$9402a8c0@hpnotebook> Message-ID: <001e01c7f16c$4688c940$0200a8c0@danwaters> Julie, Why did you register your databases with the US Copyright office? What value do you get from that? Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 7 11:35:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 07 Sep 2007 16:35:22 +0000 Subject: [AccessD] TheSECONDbi-annualGreatSmokeyMountainsAccessDConference Message-ID: The dates are almost irrelevant to me...as I am less than 2 hours away. I only suggested the last date because no one else seemed to respond. Almost any date is good for me!!! Just let me know when. Thanks, Mark P.S...Did we ever get the pictures from the last one on the site? >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] >TheSECONDbi-annualGreatSmokeyMountainsAccessDConference >Date: Fri, 7 Sep 2007 12:22:56 -0400 > >I would love to. However I got no response on the last date I threw out >so... I think we should set a new data and try again. Maybe even out in >the spring. > >Mark Matte got to choose the last date simply because he suggested 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 Mark Brown >Sent: Friday, September 07, 2007 12:00 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] The >SECONDbi-annualGreatSmokeyMountainsAccessDConference > >Is there any updated information regarding the weekend? Is it still on? > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Tuesday, June 19, 2007 5:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The SECOND >bi-annualGreatSmokeyMountainsAccessDConference > >It's on my calendar! However, as a native Californian, I have to tell you, >I HATE BBQ sauce!! (I grew up on Santa Maria style BBQ, no sauce) > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Tuesday, June 19, 2007 1:49 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] The SECOND bi-annual >GreatSmokeyMountainsAccessDConference > >ROTFL. OK, the second biannual conference. > >Now that that is handled, where are you, square or here? > >John 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: Tuesday, June 19, 2007 4:37 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The SECOND annual Great >SmokeyMountainsAccessDConference > >Can't be. It has to be the second biannual conference, unless you're >talking about September 2008. LOL > >Charlotte > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Tuesday, June 19, 2007 12:27 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] The SECOND annual Great Smokey >MountainsAccessDConference > >Let's get planning started for Sept. > >There were several people that indicated that Sept would work for a >conference. If no one speaks up requesting a different date, I am going to >declare the 22nd of Sept as the SECOND annual Great Smokey Mountain AccessD >Conference. Same location, same great food, same great host. >Be here or be square. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin W Reid >Sent: Tuesday, June 19, 2007 3:19 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] The first annual Great Smokey >MountainsAccessDConference > >John > >Any chance of putting in a web camera and I can join you lot from here?? > >Wish I was going but hope you all have a great time > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974465 > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ More photos; more messages; more whatever. Windows Live Hotmail - NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 From Jim.Hale at FleetPride.com Fri Sep 7 11:59:27 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 7 Sep 2007 11:59:27 -0500 Subject: [AccessD] Exporting an OLE Object In-Reply-To: References: Message-ID: How about turning it around and using the Excel workbook as the interface? I have workbooks that update data from Excel input forms, run queries in Access, download data from the AS400 into Access and download the required result sets back into the Excel workbook. The advantage of this configuration is that the user doesn't need to know about Access at all since everything is initiated from Excel. BTW what is wrong with using templates? If your worry is having to mess with the default template folder you can store the template in a hidden folder or the same folder as the mda for that matter and use it as needed. Users don't have to know or care about the template's existence. For that matter you don't have to use a template- any Excel workbook can be opened and manipulated from within Access. Since the end result is a populated Excel workbook I see no inherent advantage in using an ole object as opposed to a template or existing workbook. Also, does the code need to reside in the Excel workbook? Anything that can be run from inside Excel can be run from within Access eliminating the need for separate code in Excel. I will admit I have seen a couple of cases where it worked best to run separate code in Excel after the book had been created but generally this is not necessary. Anyway, just some general thoughts. HTH Regards, Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Friday, September 07, 2007 7:53 AM To: accessd at databaseadvisors.com Subject: [AccessD] Exporting an OLE Object I have an Excel workbook with some complicated code; I need to export data to the workbook and run the code. I know how to do that, but this database will be used by several people, and I'd prefer not to have to require them to use an Excel template. I have imported a workbook (blank except for a module containing the needed code) as an OLE object in its own table in my database. I want to export (or open-and-save-as) the workbook, add the appropriate data from Access, and then run the code (in whatever order is best). How do you export an Excel workbook as an OLE object via VBA? Of course, if you have better ideas... TIA. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems *********************************************************************** 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 max.wanadoo at gmail.com Fri Sep 7 12:53:13 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 18:53:13 +0100 Subject: [AccessD] Access to VB.Net Message-ID: <003301c7f177$f690b770$8119fea9@LTVM> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max From cfoust at infostatsystems.com Fri Sep 7 13:01:16 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 11:01:16 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <003301c7f177$f690b770$8119fea9@LTVM> References: <003301c7f177$f690b770$8119fea9@LTVM> Message-ID: VB 2005 is the VB portion of VS 2005. If you don't want to go to the expense of full fledged VS 2005 at this, just use VB 2005. It will have the IDE and all or most of what you need to get going. There are learning versions of VB 2005 included with some books on the topic too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Sep 7 13:12:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Sep 2007 14:12:04 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <003301c7f177$f690b770$8119fea9@LTVM> Message-ID: <007901c7f17a$98fcd8c0$6c7aa8c0@M90> Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 7 13:14:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Sep 2007 20:14:02 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Max > All I want is the VB.Net stuff .. I like that statement. Look for the free Visual Studio 2005 Express editions. One is with "Visual Basic" (sort of). Also, a VS2008 beta is out for free download. And don't forget to sign up to our VB list! /gustav >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max From fuller.artful at gmail.com Fri Sep 7 13:31:54 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Sep 2007 14:31:54 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with "Visual > Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either > Visual Studio 2005 or VB 2005. Which one do I go for? Is there something > other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to convert > my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Sep 7 13:36:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Sep 2007 11:36:06 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: Learning on a beta with no prior experience in the language is doing the hard way IMO. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 11:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 webedb.com Fri Sep 7 13:36:17 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 07 Sep 2007 13:36:17 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: <200709071838.l87IcBeT015902@databaseadvisors.com> Wow, let's see. I can make a table with 3 columns. ID DefinitionID RecordText Then I can make a table with 2 columns, DefinitionID DefinitionText And wow, with that, I can store anything any way I want. What a revolutionary idea. (All humor, tongue in cheek!!!!!) Come on Rocky. I know that you have been around long enough to recognize this for the pile of s%#@ it is. Robert At 11:35 AM 9/7/2007, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Friday, September 07, 2007 11:08 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Database Patent > >Rocky, > >I have to chime in on this because it doesn't sound new to me either. I >didn't even think such a concept could be patented, since there are >built-in provisions in most, is not all, database languages for adding >or dropping fields, changing datatypes, etc. I have to wonder what kind >of database experience this gentleman has, based on his stated >assumptions. > >Charlotte Foust From max.wanadoo at gmail.com Fri Sep 7 14:31:51 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 20:31:51 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <004301c7f185$be194520$8119fea9@LTVM> Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 7:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From galeper at gmail.com Fri Sep 7 14:41:32 2007 From: galeper at gmail.com (Gale Perez) Date: Fri, 7 Sep 2007 12:41:32 -0700 Subject: [AccessD] Access 2007: Compact DB & DB creating copies of itself Message-ID: <5b2621db0709071241g495ea17do6e9798c6b43bb0f9@mail.gmail.com> Hi, I have a backend on the server and front ends on clients' machines. Each time the client closes the database, it creates a copy of itself. Both the front and back ends have the "Compact on Close" option unchecked. Does anyone have any ideas as to what else could be causing this behavior? Also, is there a way to just compact an Access 2007 database without closing and having it rename itself (which Compact on Close does)? There is an MS article on this subject, but it doesn't say how to do this in 2007. Thank you, Gale From max.wanadoo at gmail.com Fri Sep 7 15:43:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 7 Sep 2007 21:43:45 +0100 Subject: [AccessD] Transactions In-Reply-To: References: Message-ID: <000001c7f18f$ca26b460$8119fea9@LTVM> Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Fri Sep 7 16:03:40 2007 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 08 Sep 2007 09:03:40 +1200 Subject: [AccessD] Conditional Formatting with date In-Reply-To: References: <002201c7f134$29f42cd0$50c2f63f@JELaptop> Message-ID: <46E1BCAC.3010303@mvps.org> Happy to help, John. :-) This of course adds a lot of power to Conditional Formatting, because it means you can easily construct more complex or precise conditions involving the testing of multiple values, from fields or returned by functions. Regards Steve Eget, John wrote: > Thanks, I did not even know of capability!!!!! > > > ----- Original Message ----- > From: "Steve Schapel" > To: "John Eget" > Sent: Friday, September 07, 2007 5:29 AM > Subject: Re: [AccessD] Conditional Formatting with date > > >> John, >> >> You just select "Expression Is" in the first combobox in the > Conditional >> Formatting dialog, and then type the entire expression similar to my >> earlier reply, into the textbox. >> >> Regards >> Steve >> >> >> John Eget wrote: >>> Steve >>> >>> You have the need correctly, I was trying to utilize the Conditional >>> Format pulldown so that future changes could be made by other >>> individuals. >>> I am not sure where the expression would go at the moment. Will try > as >>> soon as I get to work within a few hours >>> Thank you so much for the response >>> > > > From miscellany at mvps.org Fri Sep 7 18:08:37 2007 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 08 Sep 2007 11:08:37 +1200 Subject: [AccessD] Transactions In-Reply-To: References: <46E0859B.4090705@mvps.org> <46E092B0.5060406@mvps.org> Message-ID: <46E1D9F5.6070900@mvps.org> Oh well, if it was that unremarkable... ;-) Just in case you do manage to dredge it up, I would still find it interesting. Thanks. Regards Steve Charlotte Foust wrote: > Good grief, I don't even recall where it was published ... Access/SQL > Advisor I think. Susan, do you remember? > From adtp at airtelbroadband.in Fri Sep 7 14:21:19 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 8 Sep 2007 00:51:19 +0530 Subject: [AccessD] Transactions References: Message-ID: <00c501c7f184$9bda2390$0d57a27a@personalec1122> Evidently, for an access application, where all users have to be able to selectively read/write/edit the source table, mere dependence upon user level security can not suffice. It becomes virtually redundant as table level permissions for all users look alike. Dynamic creation of varying number of new tables with different permissions does not afford a practicable alternative. In such a situation (requirements outlined in my previous post, in the context of sample db named NotesHierarchical), the optimum solution involves enforcement of rules at the interface level. Simultaneously, all possible safeguards should be incorporated for preventing direct user access to tables. Though not completely proof against some one with malafide intentions having necessary skill, it should take care of normal users. A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Friday, September 07, 2007 20:29 Subject: Re: [AccessD] Transactions It is possible, but not feasible. User level security only goes to table level, so to do what you want you would need to create new tables for the records you want protected with different permissions. You can create tables, and set their permissions on the fly, but honestly, with that level of security, it makes more sense to go with a more robust security system. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 9:02 AM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Transactions Drew, It needs to be examined whether user level security, applied at table level, can handle conditional rights at record level. Let us consider the following situation, where a finer control is needed as compared to conventional permissions for table as a whole. Given: Common data table where all executive level officers in the organization (including the top boss) enter / save / edit periodical performance notes for employees under their respective chains of command. Powers bestowed upon various executives are governed by the assigned level. For example, assigned level for top boss (say president) is 1, while that for each of the vice presidents (two or more) it is 2, for senior managers it is 3 and so on. There is no limit to the number of levels that could possibly exist in an organization. Objectives: (a) Each executive can enter and save periodical notes for all employees under his direct chain of command. (b) Each executive can edit the notes already entered & saved by him/her, provided the given record has not yet become history. (c) A record becomes history when the note is marked as having been sent. Once a record becomes history, it can not be edited and can not be reset as active record (by marking as not sent). (d) Each executive can view the notes recorded by all those below him in his direct chain of command. For example if Vice President 1 (VP1) has Mark as a senior manager directly under his control, he can view the notes recorded by Mark as well as by all those under Mark's direct chain of command. However VP1 can not view the notes recorded by Mary and those under her chain of command, if Mary is a senior manager working under VP2. Of course VP1 can not view the notes recorded by VP2 (and those below him) and vice-versa (being at same level). (e) Though in a position to view, no senior can alter the notes recorded by his juniors. Only the person who recorded the original note, can edit it (if not yet history). As supplementary action, the senior can record his own notes as required. (f) Once a note pertaining to a particular employee becomes history, no fresh back dated note for this particular combination of employee & noting official can be recorded. In view of what you have stated, could you kindly examine whether you are in a position to suggest a solution meeting the listed objectives, based purely upon user level security as applied to the above table. In this case, all users have to be able to selectively read/write/edit the said table. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 23:25 Subject: Re: [AccessD] Transactions Thanks Drew! I agree. This being a sample db, full access is available to all objects. For regular use, it will have to be converted to mde along with safeguards preventing direct user access to tables. Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Drew Wutka To: Access Developers discussion and problem solving Sent: Thursday, September 06, 2007 20:48 Subject: Re: [AccessD] Transactions A.D., I took a look at your sample. It's nice, but the 'rules' you mentioned are only enforced at the interface level. Hitting F11 let's you go make any change to the table that you want. You could prevent that with User Level security on the tables. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, September 06, 2007 12:03 AM To: Access Developers discussion and problem solving Cc: adtejpal at gmail.com Subject: Re: [AccessD] Transactions Arthur, My sample db named NotesHierarchical might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. In this db, meant for recording employee's performance notes, the notes table, has a Yes/No field named Sent. Once Sent is set to true, the note in question can no longer be edited, even by the person who recorded it originally. More-over, once set to True, it can no longer be re-set to False and no back dated note can be created. The sample is in Access 2K file format. Reference: DAO 3.6 Best wishes, A.D.Tejpal --------------- From shamil at users.mns.ru Sat Sep 8 06:39:37 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 15:39:37 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <000001c7f20d$07906a30$6401a8c0@nant> <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From shamil at users.mns.ru Sat Sep 8 07:29:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 16:29:48 +0400 Subject: [AccessD] Making VB.NET/C# program needs only.NET Framework installed - Was: RE: Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <000401c7f213$f2047fb0$6401a8c0@nant> Max, Making a VB.NET or C# program minimally needs only a .NET Framework installed - here is what you can do if you have .NET Framework 2.0 installed (I assume you MS Windows system directory is C:\Windows): 1. Use notepad.exe or any other text editor to prepare this VB.Net source code: Module Test Sub Main() Console.WriteLine("Hello, World!") Console.WriteLine("Press any key to continue...") Console.ReadKey() End Sub End Module 2. Make a batch file - let's call it test_vb_net.bat, having this line (just one line - watch line wraps, which may happen in this message): C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb HelloWorld.exe 3. Run the batch file and you'll get the following output (I assume you have your source code and the batch file stored in e:\temp\SAMPLE): E:\Temp\SAMPLE>C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb Microsoft (R) Visual Basic Compiler version 8.0.50727.42 for Microsoft (R) .NET Framework version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. E:\Temp\SAMPLE>HelloWorld.exe Hello, World! Press any key to continue... That's it - you have your VB.NET program compiled and run OK. And with .NET Framework installed you have all its power at your hands - no any limitations of functionality - Visual Studio and .NET Framework SDK just give you more development productivity tools but a real professional needs just a text editor and a compiler, right ? :) (Just kidding of course - the more productivity tools a professional have the better of course but sometimes it's needed to work without them...) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From shamil at users.mns.ru Sat Sep 8 07:46:49 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 8 Sep 2007 16:46:49 +0400 Subject: [AccessD] Entering ASP.NET "world" is easy but this is a huge world ... Was: RE: Access to VB.Net In-Reply-To: <004301c7f185$be194520$8119fea9@LTVM> Message-ID: <001101c7f216$532d52b0$6401a8c0@nant> <<< will I be able to make my databases available on-line without needing ASP etc. >>> Max, I assume that your question is: "I wanted to use .NET Framework to make my databases available online but I do not want to use ASP.NET?" - if that is your question then the answer is that the quickest way to make your databases available online via Web forms is *to use ASP.NET*, which in turn uses .NET Framework. It's easy to enter ASP.NET "world" (see simple sample below) but to make truly advanced scalable ASP.NET applications will need quite some efforts to master the ASP.NET development skills and to develop these ASP.NET applications.... Another way to make your databases available online is to use Web Services. I will talk about that Web Services subject in another message if you find this one helpful. Below is a simple Asp.NET form, which uses Shippers table from testDb.mdb database. This ASP.Net form is defined in two files: 1. sample3.aspx - web form itself 2. sample3.aspx.vb - web form's so called "code behind", which is almost empty for this sample but which can have as advanced code as one wanted. You can combine both files into one but from many points of view it's much better to keep them separated. Here is how this sample form looks and works: http://shamils-4.hosting.parking.ru/Sample3.aspx - nothing special of course - I just presented the structure of ASP.NET form as it usually looks: === sample3.aspx === <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Sample3.aspx.vb" Inherits="Sample3" %> Untitled Page
============================== ===== sample3.aspx.vb ======== Partial Class Sample3 Inherits System.Web.UI.Page End Class ============================== -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max From dwaters at usinternet.com Sat Sep 8 08:07:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 8 Sep 2007 08:07:58 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f20d$07906a30$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000001c7f20d$07906a30$6401a8c0@nant> Message-ID: <000d01c7f219$475119b0$0200a8c0@danwaters> Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:07:27 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:07:27 +0100 Subject: [AccessD] Making VB.NET/C# program needs only.NET Frameworkinstalled - Was: RE: Access to VB.Net In-Reply-To: <000401c7f213$f2047fb0$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000401c7f213$f2047fb0$6401a8c0@nant> Message-ID: <000301c7f23a$bcac4560$8119fea9@LTVM> Hi Shamil, Yes, all that works ok at this end. Max Still reading the other two emails -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 1:30 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Making VB.NET/C# program needs only.NET Frameworkinstalled - Was: RE: Access to VB.Net Max, Making a VB.NET or C# program minimally needs only a .NET Framework installed - here is what you can do if you have .NET Framework 2.0 installed (I assume you MS Windows system directory is C:\Windows): 1. Use notepad.exe or any other text editor to prepare this VB.Net source code: Module Test Sub Main() Console.WriteLine("Hello, World!") Console.WriteLine("Press any key to continue...") Console.ReadKey() End Sub End Module 2. Make a batch file - let's call it test_vb_net.bat, having this line (just one line - watch line wraps, which may happen in this message): C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb HelloWorld.exe 3. Run the batch file and you'll get the following output (I assume you have your source code and the batch file stored in e:\temp\SAMPLE): E:\Temp\SAMPLE>C:\Windows\Microsoft.NET\Framework\v2.0.50727\Vbc.exe HelloWorld.vb Microsoft (R) Visual Basic Compiler version 8.0.50727.42 for Microsoft (R) .NET Framework version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. E:\Temp\SAMPLE>HelloWorld.exe Hello, World! Press any key to continue... That's it - you have your VB.NET program compiled and run OK. And with .NET Framework installed you have all its power at your hands - no any limitations of functionality - Visual Studio and .NET Framework SDK just give you more development productivity tools but a real professional needs just a text editor and a compiler, right ? :) (Just kidding of course - the more productivity tools a professional have the better of course but sometimes it's needed to work without them...) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:27:00 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:27:00 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <007901c7f17a$98fcd8c0$6c7aa8c0@M90> References: <003301c7f177$f690b770$8119fea9@LTVM> <007901c7f17a$98fcd8c0$6c7aa8c0@M90> Message-ID: <000501c7f23d$77a88c50$8119fea9@LTVM> Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <000601c7f23d$c2193ff0$8119fea9@LTVM> Ok, will do Gustav and I will sign up to VB List too. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 7:14 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Hi Max > All I want is the VB.Net stuff .. I like that statement. Look for the free Visual Studio 2005 Express editions. One is with "Visual Basic" (sort of). Also, a VS2008 beta is out for free download. And don't forget to sign up to our VB list! /gustav >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 12:34:27 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 18:34:27 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f20d$07906a30$6401a8c0@nant> References: <004301c7f185$be194520$8119fea9@LTVM> <000001c7f20d$07906a30$6401a8c0@nant> Message-ID: <000701c7f23e$81e06750$8119fea9@LTVM> Hi Shamil This link you provided took me into a LONG reading excursion which was very useful. http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Quote from Wikepedia.. Like all .NET languages, programs written in VB.NET require the .NET framework to execute UnQuote Does this mean/infer that .NET framework is present/exists on all hosting platforms for web apps. What if I want to host my own vb.net app on my own server- do I have to have .NET framework running on that Server and if so, presumably I tell the Web Server software to recognise it (I use Abyss X2 which appears to have this facility). If I want it to run on a Hosted Server, can I assume that the ISP will be able to run such an app? Or is it something that I have to expressly ask for (just trying to get a feel for how widely it is implemented; ie. I know that ASP, PERL, etc is widely supported). Reading the other links does seem to indicate that VB will be deprectated (although they don't say so directly) but in the longer term and not the shorter term, so from that point of view, staying with VB/VBA is ok for some time to come. But these (VB) products do not produce web-enabled apps - which is, of course, where .net come in. So, If I were to go with say VB2008 Beta then it would mean that I did not have a suitable platform to rapid/ease of development and would be left struggling a bit. If this is correct then it makes sense to obtain the Visual Studio 2005 with the current vb.net support (I don't think I will be anywhere near to needing the extra enhancements of 2008 beta for some time to come) and Charlottes statement "Learning on a beta with no prior experience in the language is doing the hard way IMO." certainly makes sense to me. I should say that the only reason I want to avoid ASP is purely because it is yet another learning curve and for no other reason. One thing at a time will do for me. As we say "slowly slowly catchee monkey". When I have mastered VB.Net (say a weekend or two ) then I will have another think. Thanks for all the input and advice received and a big thanks Shamil for taking all that time to give me such a good insight. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Sat Sep 8 13:02:32 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Sat, 8 Sep 2007 13:02:32 -0500 Subject: [AccessD] Database Patent References: Message-ID: All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 13:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 19:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <000801c7f246$236b3710$8119fea9@LTVM> Thanks Arthur, I think, given my need of a supporting platform that I will be going the VS2005 route, but it is nice to know that this is available and I will download it "just in case". Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 07, 2007 7:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net I would suggest, if you're just getting started, that you skip 2005 and go directly to the .net 2008 beta, available for download now. A. On 9/7/07, Gustav Brock wrote: > > Hi Max > > > All I want is the VB.Net stuff .. > > I like that statement. > > Look for the free Visual Studio 2005 Express editions. One is with > "Visual Basic" (sort of). > Also, a VS2008 beta is out for free download. > > And don't forget to sign up to our VB list! > > /gustav > > >>> max.wanadoo at gmail.com 07-09-2007 19:53 >>> > Can I ask for some advice please. > I have been looking at getting VB.Net software and all I can find is > either Visual Studio 2005 or VB 2005. Which one do I go for? Is > there something other than these two that I have missed? > All I want is the VB.Net stuff so that I can start to learn how to > convert my existing apps to vb.net > > Many thanks > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 8 13:29:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 8 Sep 2007 19:29:04 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: References: <29f585dd0709071131r2a2dc615od65b6570ac75ca12@mail.gmail.com> Message-ID: <000901c7f246$24aabbf0$8119fea9@LTVM> Thanks Charlotte, That certainly makes sense to me. I have decided to go the VS2005 route. Thanks for the input. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 7:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net Learning on a beta with no prior experience in the language is doing the hard way IMO. Charlotte Foust isors.com From jwcolby at colbyconsulting.com Sat Sep 8 17:36:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 8 Sep 2007 18:36:36 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000501c7f23d$77a88c50$8119fea9@LTVM> Message-ID: <000601c7f268$b82b8950$6c7aa8c0@M90> You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sat Sep 8 17:54:22 2007 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 8 Sep 2007 15:54:22 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <000601c7f268$b82b8950$6c7aa8c0@M90> References: <000501c7f23d$77a88c50$8119fea9@LTVM> <000601c7f268$b82b8950$6c7aa8c0@M90> Message-ID: <001601c7f26b$34034340$6401a8c0@ACER2G> It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Sep 9 19:46:46 2007 From: darrend at nimble.com.au (dd) Date: Mon, 10 Sep 2007 10:46:46 +1000 Subject: [AccessD] A2K:Reading PDF In-Reply-To: <200709060949.l869nPUt008553@databaseadvisors.com> Message-ID: <200709100046.l8A0kgrV025567@databaseadvisors.com> Many thanks to all who replied I have since been told this was a once off - won't be done each month as anticipated So I edited each of the 70 PDFs by hand - took about half an hour Thanks for the links and the suggestions Darren -----Original Message----- From: Darren D [mailto:darren at activebilling.com.au] Sent: Thursday, 6 September 2007 7:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K:Reading PDF Hi All I have a need to open about 70 PDF files and get pages 1 and 2 of each pdf file and output only page 1 and 2 of each of the 70 to another file - then merge them altogether in one file EG 001.pdf may have 50 pages - I need to open it - somehow extract page 1 and 2 and then save pages 1 and 2 of 001.pdf to file name say.001a.pdf - close it then move to 002.pdf - repeat for all 70 files So I end up with the same number of files as I originally had but only with page 1 and 2 of the originals in each one - make sense? Sounds like a big ask - I really am not expecting anyone to have done it - I'm just looking for pointers I was thinking - 1 Open file (This bit I can do) 2 With the open file print to file pages 1 and 2 (This bit I can't do) 3 save the 'new' pages 1 and 2 to file 001a.pdf (This bit I can't do) 4 loop all the other PDFs in a folder and repeat (This bit I can do) 5 Then merge all the 001a.pdf, 002a.pdf, 003a.pdf etc files into one file (This bit I can do) Thanks team Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 10 02:30:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 00:30:31 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <000701c7f23e$81e06750$8119fea9@LTVM> Message-ID: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim From phpons at gmail.com Mon Sep 10 02:39:45 2007 From: phpons at gmail.com (philippe pons) Date: Mon, 10 Sep 2007 09:39:45 +0200 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> References: <000701c7f23e$81e06750$8119fea9@LTVM> <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: <57144ced0709100039n7345951er47d2a908785ced30@mail.gmail.com> Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for each > day > in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and one > item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Mon Sep 10 03:35:23 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 10 Sep 2007 9:35:23 +0100 Subject: [AccessD] Crosstab query Message-ID: <20070910083526.6B5892CAC94@smtp.nildram.co.uk> Hi Jim What I've done on occasions is have a dummy table with, in your case, just all of the day numbers or dates and Left Join from your data to that. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Crosstab query Date: 10/09/07 07:29 Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- 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 accessd at shaw.ca Mon Sep 10 06:13:54 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 04:13:54 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <20070910083526.6B5892CAC94@smtp.nildram.co.uk> Message-ID: <5BC1C65D9804470685E9449334122669@creativesystemdesigns.com> Thanks Andy; that looks like it will work and now I have 2 excellent methods. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, September 10, 2007 1:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim What I've done on occasions is have a dummy table with, in your case, just all of the day numbers or dates and Left Join from your data to that. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Crosstab query Date: 10/09/07 07:29 Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- 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 accessd at shaw.ca Mon Sep 10 06:12:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 04:12:30 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <57144ced0709100039n7345951er47d2a908785ced30@mail.gmail.com> Message-ID: <2B875ED6350F4226990F22512A6FAA5C@creativesystemdesigns.com> Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for each > day > in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and one > item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 jwcolby at colbyconsulting.com Mon Sep 10 07:40:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 08:40:10 -0400 Subject: [AccessD] Crosstab query In-Reply-To: <2B875ED6350F4226990F22512A6FAA5C@creativesystemdesigns.com> Message-ID: <004701c7f3a7$ba77cd50$6c7aa8c0@M90> This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for > each day in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and > one item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 markamatte at hotmail.com Mon Sep 10 09:07:07 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 10 Sep 2007 14:07:07 +0000 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: You can define what fields you want in the Query Properties "Column Headings". Good luck, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Crosstab query >Date: Mon, 10 Sep 2007 00:30:31 -0700 > >Hi All: > >When creating a crosstab query is there a way to force a column for each >day >in a month even though there is no data for that date? > >I have experimented with adding a dummy record with name of 'zzz' and one >item for each date of the particular month. It is functional but kludgy. >There must be a better way. > >TIA >Jim > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ A place for moms to take a break! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From jimdettman at verizon.net Mon Sep 10 09:50:16 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 10 Sep 2007 10:50:16 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <001601c7f26b$34034340$6401a8c0@ACER2G> References: <000501c7f23d$77a88c50$8119fea9@LTVM> <000601c7f268$b82b8950$6c7aa8c0@M90> <001601c7f26b$34034340$6401a8c0@ACER2G> Message-ID: <003401c7f3b9$e6e1b740$8abea8c0@XPS> Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 10 10:27:11 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 10:27:11 -0500 Subject: [AccessD] Transactions In-Reply-To: <000001c7f18f$ca26b460$8119fea9@LTVM> Message-ID: http://www.marlow.com/AlwaysOnTop2000.zip I'll leave that there for a few days. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Sep 10 10:32:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 10:32:38 -0500 Subject: [AccessD] Transactions In-Reply-To: <00c501c7f184$9bda2390$0d57a27a@personalec1122> Message-ID: Oh, nothing should truly be dependant on user level security. It is not complex enough to handle more then the basics in regards to data within a table. The main point I have been trying to make in this thread is that the GUI only method of protecting data integrity is just far too easily thwarted. I think part of the debate is that I have a different level of 'normal user'. I have several users where I work who are at or beyond the level necessary to link tables from one database into another. User level security isn't impregnable either, no security system is. However, if properly implemented, the data within an .mdb can be protected against normal use (including what I consider the 'power users' here). I know how to defeat User Level Security, but it's not as simple as linking a table. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, September 07, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Evidently, for an access application, where all users have to be able to selectively read/write/edit the source table, mere dependence upon user level security can not suffice. It becomes virtually redundant as table level permissions for all users look alike. Dynamic creation of varying number of new tables with different permissions does not afford a practicable alternative. In such a situation (requirements outlined in my previous post, in the context of sample db named NotesHierarchical), the optimum solution involves enforcement of rules at the interface level. Simultaneously, all possible safeguards should be incorporated for preventing direct user access to tables. Though not completely proof against some one with malafide intentions having necessary skill, it should take care of normal users. A.D.Tejpal -------------- The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Sep 10 10:44:30 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:44:30 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 10:46:04 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:46:04 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <001601c7f26b$34034340$6401a8c0@ACER2G> References: <000501c7f23d$77a88c50$8119fea9@LTVM><000601c7f268$b82b8950$6c7aa8c0@M90> <001601c7f26b$34034340$6401a8c0@ACER2G> Message-ID: You quit too soon, then, Joe. I program full-time in .Net and I have a terrible time going back to VBA because I keep trying to do things I just can't do in that language! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 10:47:38 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 08:47:38 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> References: <000701c7f23e$81e06750$8119fea9@LTVM> <260272B16AF245C59B4C77CB3B6EB299@creativesystemdesigns.com> Message-ID: Just set the column headings for the query, i.e., 1,2,3,4 ...31. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, September 10, 2007 12:31 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Crosstab query Hi All: When creating a crosstab query is there a way to force a column for each day in a month even though there is no data for that date? I have experimented with adding a dummy record with name of 'zzz' and one item for each date of the particular month. It is functional but kludgy. There must be a better way. TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 10:50:46 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 10:50:46 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <003401c7f3b9$e6e1b740$8abea8c0@XPS> References: <000501c7f23d$77a88c50$8119fea9@LTVM><000601c7f268$b82b8950$6c7aa8c0@M90><001601c7f26b$34034340$6401a8c0@ACER2G> <003401c7f3b9$e6e1b740$8abea8c0@XPS> Message-ID: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 11:05:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 12:05:48 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM From jwcolby at colbyconsulting.com Mon Sep 10 11:18:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 12:18:13 -0400 Subject: [AccessD] Database Patent In-Reply-To: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <001701c7f3c6$310bf590$6c7aa8c0@M90> >I think a patent is only as good as the lawyers you can afford. Or can't afford as the case may be. See the lawyer's reply. ;-) John 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: Monday, September 10, 2007 12:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 10 11:18:44 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 12:18:44 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> Message-ID: <001801c7f3c6$4302f550$6c7aa8c0@M90> Interesting. Thanks for sharing 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 Dan Waters Sent: Monday, September 10, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 11:24:02 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 12:24:02 -0400 Subject: [AccessD] Database Patent In-Reply-To: <001701c7f3c6$310bf590$6c7aa8c0@M90> References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <001701c7f3c6$310bf590$6c7aa8c0@M90> Message-ID: <002501c7f3c7$00cc50e0$4b3a8343@SusanOne> Exactly. ;) Susan H. >I think a patent is only as good as the lawyers you can afford. Or can't afford as the case may be. See the lawyer's reply. ;-) From dwaters at usinternet.com Mon Sep 10 11:39:59 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 11:39:59 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <001801c7f3c6$4302f550$6c7aa8c0@M90> References: <001501c7f3c2$5a4ae050$0200a8c0@danwaters> <001801c7f3c6$4302f550$6c7aa8c0@M90> Message-ID: <001901c7f3c9$3c29fff0$0200a8c0@danwaters> No problem. It's good to put some Microsoft ammunition in your naysayer gun! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Interesting. Thanks for sharing 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 Dan Waters Sent: Monday, September 10, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net For everyone: For a customer, I did some looking into the lifecycle support plan that MS has for Access. Here's what I found: 1) This is a nice graphic that shows how MS starts with Mainstream support for 5 years, changes to Extended Support for 5 more years, and continues with on-line Self-Help support. This means that any program under this policy is guaranteed to work for at least 10 years after its introduction. Access is in the Business and Development software category. http://support.microsoft.com/?pr=lifecycle 2) This is a small chart that shows that MS will end Extended Support for Access 2003 on 4/8/2014. http://support.microsoft.com/lifecycle/?p1=2509 3) This is another small chart that shows that MS will end Extended Support for Access 2007 on 4/11/2017. This is important because Access 2007 and Access 2003 use the identical programming language, Visual Basic for Applications (VBA). This demonstrates that VBA will work until at least 4/11/2017 - 10 years from now. MS will almost certainly allow VBA to continue to work on its operating system (Windows 'something') well past that date. http://support.microsoft.com/lifecycle/?p1=11265 4) This page (the gray box on top) discusses MS's decision to discontinue issuing new licenses for VBA to other companies as of 7/1/2007. For example, SolidWorks uses VBA as the language that programmers can use to do interesting and time-saving things in Solidworks. However, MS does see an eventual end to VBA (10+ years), so they have stopped allowing any new companies to begin using it. This does not affect any current MS or other application that does now use VBA. http://msdn2.microsoft.com/en-us/isv/bb190538.aspx So - my conclusion is that if something works now in Access 2003 or 2007, it will continue to work for at least the next 10 years. This gives us all plenty of time to figure out what's next. My own plan is to wait until the next version of Access is released, see what they've done to the programming language, and go from there. I suspect that the next programming language for Access (in 2-3 years?) will be some variant of VB.Net, or will at least be highly compatible. Perhaps a VB.Net For Applications (VBNA)? This should mean an easier transition at that time than diving into VB.Net today. I hope! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, September 10, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Joe, I've been avoiding it like the plague, but it looks like the time has come when I'm going to need to bit the bullet now that VFP is basically a dead product and Access seems to be heading back into end-user territory. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, September 08, 2007 6:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net It was enough to drive me out of regular professional development. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 08, 2007 3:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net You will enjoy the power of .Net, it truly is awesome (and frustrating - the learning curve). Enjoy, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 08, 2007 1:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Yes John, I think (after reading all the comments posted and then applying all that advice to my personal circumstance) that your advice is sound. So, I will obtain VS2005 and take it from there. Many thanks MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 07, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I would go with the Visual Studio 2005. It has vb.net as well as the other visual languages - C#.net, asp.net etc. You could go with vb.net however... The vb.Net standalone has some important limitations. It is designed as an "introduction" to the .net environment to suck programmers (and non programmers) in. There are some slight syntax and capability differences that will prevent your using the results should you need the higher powered suite. I own both and have worked in both but now focus on the Visual Studio side since I discovered the limitations. VB.Net is FREE, however as you are looking to actually use the results the "free" is not a good compromise for you I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Can I ask for some advice please. I have been looking at getting VB.Net software and all I can find is either Visual Studio 2005 or VB 2005. Which one do I go for? Is there something other than these two that I have missed? All I want is the VB.Net stuff so that I can start to learn how to convert my existing apps to vb.net Many thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 10 12:21:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 10 Sep 2007 21:21:06 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000d01c7f219$475119b0$0200a8c0@danwaters> Message-ID: <000001c7f3ce$f9db4d60$6401a8c0@nant> <<< Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc >>> Dan, I think that it would be incorrect to compare .NET Framework's WinForms or ASP.NET development vs. MS Access development in such context. What I can say from my experience - Visual Studio's .NET Framework-based WinForms/ASP.Net user interface development is as RAD as MS Access user interface development (or even more RAD) although VS and .NET Framework are more stable and powerful and modern and getting new and new RAD development features with every release... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 08, 2007 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Sep 10 13:10:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Sep 2007 11:10:20 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <004701c7f3a7$ba77cd50$6c7aa8c0@M90> Message-ID: Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Monday, September 10, 2007 12:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Crosstab query Hi Jim, I discovered that recently: PIVOT column-headings-field IN(value1, value2, ...) Regards, Philippe 2007/9/10, Jim Lawrence : > > Hi All: > > When creating a crosstab query is there a way to force a column for > each day in a month even though there is no data for that date? > > I have experimented with adding a dummy record with name of 'zzz' and > one item for each date of the particular month. It is functional but kludgy. > There must be a better way. > > TIA > 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 Sep 10 13:22:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 13:22:50 -0500 Subject: [AccessD] Database Patent In-Reply-To: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Mon Sep 10 13:26:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 14:26:04 -0400 Subject: [AccessD] Crosstab query In-Reply-To: Message-ID: <001b01c7f3d8$0d8d2d70$6c7aa8c0@M90> John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From jwcolby at colbyconsulting.com Mon Sep 10 13:26:04 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 14:26:04 -0400 Subject: [AccessD] Crosstab query In-Reply-To: Message-ID: <001a01c7f3d8$0d1872a0$6c7aa8c0@M90> No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From DWUTKA at Marlow.com Mon Sep 10 13:25:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 13:25:31 -0500 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: I concur. Drew (Though now we have another Dallas area member, maybe we'll have a conference in Texas yet!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 10:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Mon Sep 10 13:54:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 14:54:52 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. From jack.stone at solidcounsel.com Mon Sep 10 13:39:36 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 10 Sep 2007 13:39:36 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Thanks Charlotte -- I wanted to say the same thing days ago, but just listened instead. I'm in a rather unique position because I write about code. You can't copyright code, although... some will tell you can. You can copyright the method in which you share the code -- like a recipe, but you can't copyright the actual code. Authors and developers that tell you they own code and warn you that if you can't use it independently of them are blowing smoke. Applications and solutions are definitely copyrightable, but even then, all someone has to do is change something just a bit, and wa-la... a new solution. We see this everyday on this list -- given the same problem, we see different solutions, but often, the same exact solution from several people. You can't claim that as your own, although you can claim the finished product as your own and even protect it through licensing. A patent really seems like overkill on any kind of code-dependent solution, but not sure it even matters. Nicholas Roosevelt, not Robert Fulton, invented and even patented the side paddle steamboat apparatus, but nobody knows that or even cares and he never made a dime from it because the "technology" exploded -- to have chased it would've cost him more money than he would've made in restitution. I think a patent is only as good as the lawyers you can afford. Susan H. Jack, Thanks for clarifying the situation. The client may have the greatest thing since sliced bread, but it's unlikely to be unique. Most of us don't bother with copyright/patent applications because any competent programmer could come up with virtually identical code for the same problem. It isn't so much that it's in public domain as that there are a finite number of ways to deal effectively with a problem, and the developer community tends to share their methods, so eventually the code is homogenized into something we could all claim as our own. If the client created a database engine, that's a different product entirely, but I suspect you've been sold a pup. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 11:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 07, 2007 10:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I'm really surprised that the US patent office granted this patent. Maybe no one else ever applied for one? I do have four databases registered with the US copyright office. It seems to me that the copyright office may be a better alternative for this type of application. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 07, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Rocky, I have to chime in on this because it doesn't sound new to me either. I didn't even think such a concept could be patented, since there are built-in provisions in most, is not all, database languages for adding or dropping fields, changing datatypes, etc. I have to wonder what kind of database experience this gentleman has, based on his stated assumptions. 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: Thursday, September 06, 2007 9:18 PM To: 'Access Developers discussion and problem solving' Cc: 'Jack Stone' Subject: Re: [AccessD] Database Patent Shamil: Thanks for your response. So you see nothing unique in this patent? (BTW, the patent is not pending, but has been granted.) Does this look like "old" technology to you? Is it obsolete technology based on what you describe below as the current methods of implementing changes in the datamodel? Just out of curiosity - So during the time that the new datamodel is being tested in the "shadow" database, am I correct in assuming that the real-time changes that are going on in the production database are also happening in the "shadow" database? That it's a mirror? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, September 06, 2007 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Rocky, I'd think that all the ideas on different adaptable database structures on conceptual, logical, physical levels were invented in 70-ies-80ies. Maybe even 60-ies when first flat file/VSAM/hierarchical databases were introduced and used... There were zillion of articles written in scientific areas, there were many research projects - I'd suppose that all these ideas are free to use because they came from open sources as a result of research of many scientists/researchers from many countries and these ideas have been since implemented in many free and commercials DBMSs we use these days... If I did get correctly the subject pending patent idea - it reminds me the principle, which is the core principle of implementing what is called ADABAS - http://en.wikipedia.org/wiki/Adabas ... I'd also note that there is no any reliable company these days which would put its online database into maintenance mode for more that a couple of minutes and only in very unforeseen contexts: I mean when datamodel changes happen they are done on a shadow copy of the main database(s), then these changes all are tested online in what is usually called UAT environments (User Acceptance Test) - when all the tests pass then in a fraction of second the main database is "replaced" with its upgraded shadow copy - e.g. for properly developed ASP.NET 2.0 application switching backends can be done by just fixing one web.config file - even switching from say MS Access to MS SQL to Oracle backend - of course for the latter switch there should be also DAL level code replacement but again it can be done in "hot" mode if that will be requested and paid for the development of such "hot" mode switching... ) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, September 07, 2007 3:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Patent Dear List: A client who is a patent and trademark attorney is interested in opinions on a patent - basically it's a way to update databases on-the-fly by disconnecting the data from the data definition. You can download the patent by going to this web page: http://www.pat2pdf.org/ and entering the patent number 7003524. I guess I'm looking for opinions on whether this is a solution to a problem that exists and whether there is something of value in this approach. I know there's some deep database design talent on this list so I'm thinking this is the best place to start the research. Here's a teaser. From the patent: TECHNICAL FIELD The invention relates generally to databases and, more particularly, to the underlying schematic structure of databases. BACKGROUND Large databases running in publicly accessible environments are notorious for their inability to accommodate change. In today's world of massive access to large databases via the Internet, it is increasingly common to encounter messages to the effect of "database is down for maintenance" instead of the actual data requested. In a conventional database environment, when a change needs to be made to the schematic structure of a database, the data in the database must be extracted from the database in the old structure and re-written to the database in the new structure. If new data were to be inserted into the database while said changes were being effected, it could cause unpredictable effects to the database. Such effects could include corruption of pre-existing data, misapplication of database changes, misalignment of data relative to internal data boundaries, or any number of problems that could render the database effectively incoherent. Such results are untenable in most live database deployments. Conventionally, the most common solution to the problem of updating during changes to the schematic structure is to simply disallow it. Conventional databases also require a tight bind between the data type and the data storage. Users require that the data they request be presented in a manner consistent with the expected usage of the data. For example, a date may be stored in the database as a string of decimal digits (e.g., 20010303), but to present the data to the user in its raw form would be unacceptable. A conventional computer user requires that it be presented in a manner consistent with its usage (e.g., Saturday, 3, Mar. 2001. In order for the date to be presented in a manner consistent with its usage, the database must carry type-related information along with each unit of data. Binding between data and type is conventionally accomplished by organizing the data into metaphorical rows and columns. Rows of data are divided into pre-defined columns, where each column represents a particular data type and/or use of the data. Such data/type binding allows a computer program to make assumptions and inferences about the data appropriate to its type. Additional rows of data may be readily added to a database. However, if a new column is desired in a database, then the database must typically be made unavailable for a period of time so that data can be converted into the new format. Modifications to pre-existing programs would have to be made, along with the requisite testing and debugging necessary to validate any new code. It is also worth noting that in conventional databases there tends to be redundancy in the storage of data. For example, cities, states, zip codes, and telephone area codes may be repeated among a number of rows of data. Such redundancy results in inefficient use of memory. In light of the foregoing, it is apparent that there is a need for a system and method for modifying the schematic structure of a database without making the database unavailable for the entry of new data. Preferably, such a system and method would, among other things, also minimize redundancy of data in a database. SUMMARY The present invention, accordingly, provides a database in which an application program accesses data stored in a records data set (RDS) and a categories data set (CDS). The RDS contains at least one RDS entry having a data field configured for representing data. The CDS contains at least one CDS entry configured for being associated with at least one RDS entry and having at least one data type field sufficient to describe the type of data contained by the at least one associated RDS entry. The invention thus provides a database whereby data is isolated from its definition, thus avoiding the problems associated with the rows-and-columns model enumerated above, and permits the underlying schematic form of the database to be changed based on modifications to the CDS, without requiring any actual changes to the schematic structure of the RDS or the underlying database. By virtue of this same isolation it is also possible to reduce data redundancy with varying levels of granularity and create an object-oriented data model. 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.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 14:25:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 14:25:58 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f3ce$f9db4d60$6401a8c0@nant> References: <000d01c7f219$475119b0$0200a8c0@danwaters> <000001c7f3ce$f9db4d60$6401a8c0@nant> Message-ID: <002001c7f3e0$6add9980$0200a8c0@danwaters> Well, I am certainly curious to learn something new. Perhaps for the first time I'll take a class to get started! Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, September 10, 2007 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc >>> Dan, I think that it would be incorrect to compare .NET Framework's WinForms or ASP.NET development vs. MS Access development in such context. What I can say from my experience - Visual Studio's .NET Framework-based WinForms/ASP.Net user interface development is as RAD as MS Access user interface development (or even more RAD) although VS and .NET Framework are more stable and powerful and modern and getting new and new RAD development features with every release... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 08, 2007 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Hi Shamil, Thanks for the links you provided - great information! <<< But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... >>> Does this mean that you believe that development using VS/VB.Net is easier/faster/etc. than Access, given someone who is proficient in both languages? Or, for someone equally proficient who creates application X in both languages, which is faster/better/etc? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, September 08, 2007 6:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Can I assume that that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future... >>> Max, Try to decide for yourself - nobody has a "crystal ball" - here are the facts: 7 "Office 2007 continues to use the legacy VBA engine. However, support for VBA in Microsoft Office for Mac will be dropped with the release of version 12, in 2008" Visual Basic for Applications http://en.wikipedia.org/wiki/Visual_Basic_for_Applications Discontinuation of the VBA Licensing Program http://msdn2.microsoft.com/ru-ru/isv/Bb190538.aspx Howdy! What's up with VSA? http://blogs.msdn.com/dr._ex/archive/2005/10/03/476435.aspx Although VB6 and VBA will work OK on all the current MS operating systems including Windows Vista, which is supposed to be here until year 2014? Support Statement for Visual Basic 6.0 on WindowsR VistaT http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx Therefore it's safe to develop applications on VB6 and VBA if you do not have clear plans in software development for the time after year 2014 (I do not have such plans for sure :) )... But VB.NET is a more efficient development language and VS is more efficient development platform than VB6 IDE/VBA IDE within MS Office Applications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 11:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Thank you very much for all the good advice. Arthur, do you know if this 2008 beta has the limitations that John mentioned with stand-alone 2005 or does it provide the full functionality that Visual Studio provides? Also, would you have a URL for it? So far then; definitely not vb 2005. Also: Can I assume that (following the posting by Shamil) that VBA/VB will become deprecated in the short term and that vb.net is the way to go for the future (given that my current knowledge base is vba). Also: Will vb.net give me the ability to make my apps 'net aware'. By that I mean, will I be able to make my databases available on-line without needing ASP etc. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 10 14:30:21 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 10 Sep 2007 14:30:21 -0500 Subject: [AccessD] Output to snp file Message-ID: I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 cfoust at infostatsystems.com Mon Sep 10 14:42:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 12:42:23 -0700 Subject: [AccessD] Output to snp file In-Reply-To: References: Message-ID: Unfortunately, I don't think you can do it that way. If I remember correctly, the send to option uses default settings, not whatever you've specified in the report. You would have to create the snapshot from the report and then attach it to an email to get what you want. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 10, 2007 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Output to snp file I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 cfoust at infostatsystems.com Mon Sep 10 14:46:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 12:46:44 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack From prosoft6 at hotmail.com Mon Sep 10 14:58:09 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 10 Sep 2007 15:58:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: As far as patents go, I don't' know a thing. However, copyright is an important part of my business. I actually have a copyright attorney who helped me successfully sue a competitor who took some of my code and used it for their own purposes. Copyright is very important when you are in business for yourself. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Sep 10 15:22:39 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Sep 2007 16:22:39 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> Message-ID: <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> I'll add a tidbit to this thread, which may apply solely to Canadian developers, but anyway: when a freelancer such as myself contracts with a corporation to produce software, unless the contract specifically states that I am comissioned to write software that will be owned by said corporation, the courts deem that the software is the freelancer's. This came up recently, because I just completed an app for stable owners ( i.e. riding lessons etc.). It was by no means a complicated app, but my investigations revealed that there is almost no competition, and the person who hired me already owns the competitive product, and hates it so much that she hired me to replace it. I don't think I can grow wealthy from this one app, but there are quite a few riding stables around, and the fact that I've got a disgruntled user's perspective on the competition, led me to think about the possibilities. So I pointed out to her the existing Canadian law, but I'm not a mean person, so I even volunteered to give her a slice of whatever action ensues. She just said, "Go for it, and give me a free copy of each new version." "Deal," said I. Other than researching the competition, I haven't done anything about scouting new customers. But I do know horses and I worked at a riding stable for eight years when I was a teenager, so I know what is required from the software. To be frank, I don't think the competition did. What they wrote sort of works, but makes many things much more difficult than they ought to be, and reflects no sense of what you would typically do most often. My software does. It's not rocket science, for sure. In fact, it's one of the easiest apps I've ever written. It would be splendidly ironic if it made more money for me than some of the really complex stuff I've written. But at the end of the day, you must remember Fuller's Fifth Law: money never arrives at an inopportune moment. A. From DWUTKA at Marlow.com Mon Sep 10 15:24:45 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 15:24:45 -0500 Subject: [AccessD] Database Patent In-Reply-To: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Mon Sep 10 15:32:34 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 16:32:34 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM From DWUTKA at Marlow.com Mon Sep 10 16:07:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Sep 2007 16:07:56 -0500 Subject: [AccessD] Database Patent In-Reply-To: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Drawbridge.Jack at ic.gc.ca Mon Sep 10 16:23:27 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: SBMS) Date: Mon, 10 Sep 2007 17:23:27 -0400 Subject: [AccessD] Exporting Memo fields to Excel A2003 In-Reply-To: Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A113A70@MSG-MB3.icent.ic.gc.ca> Exporting Access2003 query containing memo fields >255char to excel2003. This worked fine, following the 2003 Help, in late Aug. I am running a slightly modified query (more fields) and the export is acting in the pre2003 way -Truncating memo fields. I have tried very basic query just memo fields where I know the length is >255 and this is being truncated also. Have shutdown, rebooted; tried compact and repair. I tried exporting to rtf -- that is working - the memo fields are exported full length. Has anyone got some ideas/experience on this? jack From robert at webedb.com Mon Sep 10 16:19:05 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 10 Sep 2007 16:19:05 -0500 Subject: [AccessD] Texas Conference In-Reply-To: References: Message-ID: <200709102124.l8ALOn8v027645@databaseadvisors.com> And I am outside of Houston. At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 13:25:31 -0500 >From: "Drew Wutka" >Subject: Re: [AccessD] Database Patent >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I concur. > >Drew (Though now we have another Dallas area member, maybe we'll have a >conference in Texas yet!) From ssharkins at gmail.com Mon Sep 10 16:26:05 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 17:26:05 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: <004c01c7f3f1$3318ce00$4b3a8343@SusanOne> That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. ========All "code" is common -- solutions aren't. Susan H. From fuller.artful at gmail.com Mon Sep 10 16:27:07 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Sep 2007 17:27:07 -0400 Subject: [AccessD] Edmonton users? Message-ID: <29f585dd0709101427j6c147b0h143d098f0f931194@mail.gmail.com> Are there any members in Edmonton? I'm teaching a course there next week at the U of A (Maintaining SQL 2005 Databases), and it would be fun to meet up with any listers from that part of the universe. Arthur From robert at webedb.com Mon Sep 10 16:27:49 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 10 Sep 2007 16:27:49 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709102129.l8ALTkdM029841@databaseadvisors.com> I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the first >time I'll take a class to get started! > >Thanks, >Dan From JHewson at karta.com Mon Sep 10 16:37:45 2007 From: JHewson at karta.com (Jim Hewson) Date: Mon, 10 Sep 2007 16:37:45 -0500 Subject: [AccessD] Texas Conference In-Reply-To: <200709102124.l8ALOn8v027645@databaseadvisors.com> References: <200709102124.l8ALOn8v027645@databaseadvisors.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F019726@karta-exc-int.Karta.com> I am in San Antonio. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Texas Conference And I am outside of Houston. At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 13:25:31 -0500 >From: "Drew Wutka" >Subject: Re: [AccessD] Database Patent >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >I concur. > >Drew (Though now we have another Dallas area member, maybe we'll have a >conference in Texas yet!) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 16:41:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 14:41:10 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709102129.l8ALTkdM029841@databaseadvisors.com> References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: Robert, I have to say that tools like Codesmith are very useful, but they're more useful if you understand what they're writing. They can also be very stupid (same like computers, natch) so you need to be able to modify the code intelligently, since one size rarely fits all, regardless of what the code writer thinks. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 2:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the >first time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 17:11:03 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 15:11:03 -0700 Subject: [AccessD] Jet version sql error In-Reply-To: Message-ID: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug From jack.stone at solidcounsel.com Mon Sep 10 17:30:03 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 10 Sep 2007 17:30:03 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: The fair use exception to copyright owner's rights allows for that. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Where are you getting that from? You can copyright code, in fact, as soon as you write it, it is copyrighted. ========Drew, if that were true, I would be violating copyright every time I write an article that includes code. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tdd-inc at shaw.ca Mon Sep 10 17:49:57 2007 From: tdd-inc at shaw.ca (Philip Scyner) Date: Mon, 10 Sep 2007 15:49:57 -0700 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Sep 10 17:55:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 15:55:45 -0700 Subject: [AccessD] Database Patent In-Reply-To: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Message-ID: If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 18:03:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 18:03:01 -0500 Subject: [AccessD] Jet version sql error In-Reply-To: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Message-ID: <002f01c7f3fe$bcd92a60$0200a8c0@danwaters> >From off the top of my head, I would experiment with: 1) dim rst = Recordset OR dim rst = DAO.Recordset 2) try different recordset types Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 10 18:03:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Sep 2007 18:03:01 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709102129.l8ALTkdM029841@databaseadvisors.com> References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: <003001c7f3fe$bd5670b0$0200a8c0@danwaters> Thanks Robert, I'll keep this in my vb.net stack. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 10, 2007 4:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the first >time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 18:24:12 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 16:24:12 -0700 Subject: [AccessD] Jet version sql error In-Reply-To: <002f01c7f3fe$bcd92a60$0200a8c0@danwaters> Message-ID: <005a01c7f401$b24cc9f0$0200a8c0@murphy3234aaf1> Hi Dan, The variables are dimensioned, I just didn't copy that far up the routine. ADO is not referenced or used anywhere in this app so I did not define they type of recordset. All other code using recordsets seems to run fine, except for this one line. Thanks for the thoughts. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 10, 2007 4:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error >From off the top of my head, I would experiment with: 1) dim rst = Recordset OR dim rst = DAO.Recordset 2) try different recordset types Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Folks, The basic question is do different versions of Jet require a different sql syntax. Background. We have a product developed as an Access 2002 runtime that is packaged using the Sagekey scripts for Wise. I am testing the distributable on different machine configurations, e.g., different versions of Windows, with/without different versions of Office installed, etc. All was going well WindowsXP, Windows Vista, until I tested the app on a clean (no Office, fresh install of windows) Windows 98 machine. When I open the program to a screen that opens a recordset based on an sql statement I get an Error 3075. The offending line contains (fldCountry = 'United States'), this is what is in the error message. The code that throws the error is as follows: sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "'" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenForwardOnly) When I get the error sCountrySettings is = 'Unites States', but I am pretty sure it would throw the error with any string value. As I said this runs well when our installation is run in Windows 2000 or later. The only difference between the newwer and earlier windows installation is the version of Jet that installer puts on the computer. The older one is Jet 4 SP 8 for windows 98, 16 bit I assume. The later versions use another version of Jet 4 SP 8. Any idea why we see the error on Windows 98 machines and not others? Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Mon Sep 10 18:57:14 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 10 Sep 2007 16:57:14 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> Message-ID: <000001c7f406$4fb17700$6400a8c0@dsunit1> That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 10 19:04:19 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Sep 2007 17:04:19 -0700 Subject: [AccessD] OT-Database Patent In-Reply-To: <000001c7f406$4fb17700$6400a8c0@dsunit1> References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM> <000001c7f406$4fb17700$6400a8c0@dsunit1> Message-ID: I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 10 19:19:24 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 11 Sep 2007 10:19:24 +1000 Subject: [AccessD] Access to VB.Net References: <200709102129.l8ALTkdM029841@databaseadvisors.com> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D3B@ddi-01.DDI.local> I like .netTiers a lot. However it is tied to Codesmith and SQL 2K+, C#. I've found C# pretty easy to get the hang of. VS2005 really makes it pretty easy to write any language IMO. The linking of snippets with intellisense is just great, class diagrams, easy as... I had to whip up a quick UI for an Access BE. Getting the data, data binding working is a snap using the builtin controls and data components. I was surprised just how quick and easy it was. cheers Michael M I have been with Access since 1.0. If you are really interested in getting into .Net, I would suggest you try Codesmith Tools with the .netTiers template for it. Using the cheapest version of Codesmith, you can create and extremely robust data layer for your .Net applications. And it takes less than 5 minutes to regenerate it when you change the database. Once you get accustomed to using it, it will seem very "Access" like in the resulting classes, methods, and properties. If you go into VB.net, then the learning curve is not very bad. C# is a bit steeper. I am doing both. Web forms is another world. WinForms (Smart Client) will look pretty familiar. Learning curve is much steeper on the Web Forms. Robert At 04:08 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:25:58 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002001c7f3e0$6add9980$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Well, I am certainly curious to learn something new. Perhaps for the >first time I'll take a class to get started! > >Thanks, >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Mon Sep 10 19:31:42 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 10 Sep 2007 17:31:42 -0700 Subject: [AccessD] OT-Database Patent In-Reply-To: References: <030801c7f3fc$ecaf2d40$f55c4e46@CADCAM><000001c7f406$4fb17700$6400a8c0@dsunit1> Message-ID: <000001c7f40b$20cad5d0$6400a8c0@dsunit1> Just a password...so far...officially... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 5:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-Database Patent I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 19:34:37 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 20:34:37 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> Message-ID: <003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. From jwcolby at colbyconsulting.com Mon Sep 10 19:35:14 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Sep 2007 20:35:14 -0400 Subject: [AccessD] OT-Database Patent In-Reply-To: Message-ID: <000301c7f40b$9f3ea950$6c7aa8c0@M90> ROTFL. But is it intelligible? John 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: Monday, September 10, 2007 8:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-Database Patent I thought we HAD!! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Monday, September 10, 2007 4:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent That was tooooooo funny, Charlotte....we could turn Colby into an entire language! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent If slogans can be copyrighted, then we (or John) should file for "colbyize", as in, "It's time to colbyize this thread!" LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Philip Scyner Sent: Monday, September 10, 2007 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Slogans are copyrighted "It's the real thing" (Coke) Even notes... as few as 3 to 4 notes... one bar can be copyrighted Is 'aluminium' copyrighted? All I see which might be going on here... someone is not happy and is going thru legal channels to stop the other from using the application or code because a bill was not paid... something like that Phil A very old 'reader' who has learnt lots .. and is still learning -----Original Message----- From: Drew Wutka [mailto:DWUTKA at Marlow.com] Sent: Monday, September 10, 2007 2:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Mon Sep 10 19:41:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Sep 2007 20:41:11 -0400 Subject: [AccessD] OT-Database Patent In-Reply-To: <000301c7f40b$9f3ea950$6c7aa8c0@M90> References: <000301c7f40b$9f3ea950$6c7aa8c0@M90> Message-ID: <004001c7f40c$74768de0$4b3a8343@SusanOne> And the Colby goes to... ;) Susan H. ROTFL. But is it intelligible? I thought we HAD!! LOL That was tooooooo funny, Charlotte....we could turn Colby into an entire language! From michael at ddisolutions.com.au Mon Sep 10 19:52:33 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 11 Sep 2007 10:52:33 +1000 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne> <003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D3D@ddi-01.DDI.local> Indeed. Makes me laugh when I find code made available on the net that has copyright ME written in the header, especially when the code is something like Declare GetWindowHWND blah blah I = GetWindowHWND cheers Michael M But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Sep 10 23:13:04 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 10 Sep 2007 21:13:04 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> Message-ID: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst From darren at activebilling.com.au Mon Sep 10 23:37:39 2007 From: darren at activebilling.com.au (Darren D) Date: Tue, 11 Sep 2007 14:37:39 +1000 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <200709110437.l8B4bVNC028813@databaseadvisors.com> Hi Doug A way out guess here - what happens when you change fldCountry = 'United States';" to fldCountry = ""United States"" ;" Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, 11 September 2007 2:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtejpal at gmail.com Tue Sep 11 00:31:52 2007 From: adtejpal at gmail.com (A.D.TEJPAL) Date: Tue, 11 Sep 2007 11:01:52 +0530 Subject: [AccessD] Crosstab query References: <001a01c7f3d8$0d1872a0$6c7aa8c0@M90> Message-ID: <00d601c7f435$b2dde8c0$c957a27a@personalec1122> Jim, As the number of days for various one month periods are not identical, left join method using a query filtered for the spell in question, as suggested by Andy, should be preferred. My sample db named MotelBooking demonstrates this approach. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. On the main switchboard, second command button captioned "Booking Status (Style 2) - Dates Across Columns", is pertinent to this case. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, September 10, 2007 23:56 Subject: Re: [AccessD] Crosstab query No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim From max.wanadoo at gmail.com Tue Sep 11 02:57:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 08:57:22 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <002801c7f449$6344c630$8119fea9@LTVM> Hi Doug, To me this code does not make sense to me, but I understand that is is not the complete code, so my comments below may be meaningless. 1. Presumably GetUserLocaleInfo is a function that returns a string (and not a null) 2. You haven't tested to see if if sCountrySettings has a value before using it. 3. What does tFM.sCountry mean. If it is a field in a table then it really should use the pling (!). If it is a property setting in a Class then where was the class defined? The "." is really for a property. (I do understand that some people use them for both, but the pling makes it clear what the interpretation is to be. 4. You have told the recordset to move to the first record, but you haven't tested to see if the recordset has any content. If it is empty, then that would generate an error. Ie, use "If not rs.eof then...." 5. Are you sure that the returned value is actually what you type in. If there is an embedded single quote in the returned value then you can get this error. 6. Are your Reference correctly installed and/or have you recently installed an update on your system. Does the function work for other values other than the one you quoted? You could try removing references and then putting them back in again - do any show as "missing". Hope some of this may help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 5:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 11 04:57:03 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Sep 2007 05:57:03 -0400 Subject: [AccessD] Redesign tools Message-ID: <000901c7f45a$1b5185f0$6c7aa8c0@M90> I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool to do this. John W. Colby Colby Consulting www.ColbyConsulting.com From adtejpal at gmail.com Tue Sep 11 06:59:08 2007 From: adtejpal at gmail.com (A.D.TEJPAL) Date: Tue, 11 Sep 2007 17:29:08 +0530 Subject: [AccessD] Exporting Memo fields to Excel A2003 References: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A113A70@MSG-MB3.icent.ic.gc.ca> Message-ID: <018101c7f46b$427a5560$4c58a27a@personalec1122> Jack, It is observed that the phenomenon of truncation of memo field content to 255 characters, while exporting from Access to Excel, is not uniform for different methods used for export. The position is summarized below: 1 - Methods permitting successful export of memo field content larger than 255 characters: (a) Manual export of query via File > Export. (b) Programmatic export of query using DoCmd.TransferSpreadsheet 2 - Methods resulting in truncation of exported content of memo field to 255 characters only: (a) Manual export of query via Tools > OfficeLinks > Excel (b) Manual export of form via File > Export (c) Manual export of form via Tools > OfficeLinks > Excel (d) Programmatic export of query using DoCmd.OutputTo (e) Programmatic export of form using DoCmd.OutputTo Conclusions: If memo fields are involved, export from Access to Excel has to be confined to methods listed at 1 (a) & (b) above, in order to prevent truncation to 255 characters. Note - Tests using Excel's CopyFromRecordset method have not yet been conducted. Prima-facie, this method is also expected to be able to handle the memo fields without truncation. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Drawbridge, Jack: SBMS To: Access Developers discussion and problem solving Sent: Tuesday, September 11, 2007 02:53 Subject: Re: [AccessD] Exporting Memo fields to Excel A2003 Exporting Access2003 query containing memo fields >255char to excel2003. This worked fine, following the 2003 Help, in late Aug. I am running a slightly modified query (more fields) and the export is acting in the pre2003 way -Truncating memo fields. I have tried very basic query just memo fields where I know the length is >255 and this is being truncated also. Have shutdown, rebooted; tried compact and repair. I tried exporting to rtf -- that is working - the memo fields are exported full length. Has anyone got some ideas/experience on this? jack From jwelz at hotmail.com Tue Sep 11 07:47:59 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Tue, 11 Sep 2007 06:47:59 -0600 Subject: [AccessD] Edmonton users? In-Reply-To: <29f585dd0709101427j6c147b0h143d098f0f931194@mail.gmail.com> Message-ID: Arthur: I'm in Edmonton this week except Fort McMurray on Friday, various locations in Saskatchewan next week. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Arthur Fuller" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Edmonton users? >Date: Mon, 10 Sep 2007 17:27:07 -0400 >MIME-Version: 1.0 >Received: from databaseadvisors.com ([209.135.140.44]) by >bay0-mc7-f17.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, >10 Sep 2007 14:29:25 -0700 >Received: from databaseadvisors.com >(IDENT:91ot4lCHv1t/TFGQTX96IsekGWVrCaOH at databaseadvisors.com >[209.135.140.44])by databaseadvisors.com (8.13.8/8.13.8) with ESMTP id >l8ALR6b2028897;Mon, 10 Sep 2007 16:27:13 -0500 >Received: from nf-out-0910.google.com (nf-out-0910.google.com >[64.233.182.187])by databaseadvisors.com (8.13.8/8.13.8) with ESMTP id >l8ALR1V3028458for ; Mon, 10 Sep 2007 16:27:04 >-0500 >Received: by nf-out-0910.google.com with SMTP id g16so903740nfdfor >;Mon, 10 Sep 2007 14:27:08 -0700 (PDT) >Received: by 10.86.57.9 with SMTP id f9mr4028390fga.1189459628013;Mon, 10 >Sep 2007 14:27:08 -0700 (PDT) >Received: by 10.86.84.15 with HTTP; Mon, 10 Sep 2007 14:27:07 -0700 (PDT) >X-Message-Delivery: Vj0zLjQuMDt1cz0wO2k9MDtsPTA7YT0w >X-Message-Info: >uX4bQusXWiLW2dL1AmJQCKKH0TsgC27DDXlje+8e7ZH4n6+ZFUdg4H9flm7v4egnj1kKKOzdhkKRq+Vxccc2bQ== >X-Content-Filtered-By: Mailman/MimeDel 2.1.7-HF >X-BeenThere: accessd at databaseadvisors.com >X-Mailman-Version: 2.1.7-HF >Precedence: list >List-Id: Access Developers discussion and problem >solving >List-Unsubscribe: >, >List-Archive: >List-Post: >List-Help: >List-Subscribe: >, >Errors-To: accessd-bounces at databaseadvisors.com >Return-Path: accessd-bounces at databaseadvisors.com >X-OriginalArrivalTime: 10 Sep 2007 21:29:26.0307 (UTC) >FILETIME=[A9B29730:01C7F3F1] > >Are there any members in Edmonton? I'm teaching a course there next week at >the U of A (Maintaining SQL 2005 Databases), and it would be fun to meet up >with any listers from that part of the universe. > >Arthur >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Put Your Face In Your Space with Windows Live Spaces http://spaces.live.com/?mkt=en-ca From robert at webedb.com Tue Sep 11 08:17:11 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 08:17:11 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111323.l8BDN9ma025900@databaseadvisors.com> Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust From Gustav at cactus.dk Tue Sep 11 08:23:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 15:23:45 +0200 Subject: [AccessD] Jet version sql error Try 2 Message-ID: Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- From jack.stone at solidcounsel.com Tue Sep 11 08:57:05 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Tue, 11 Sep 2007 08:57:05 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <000f01c7f3e4$e973c540$9402a8c0@hpnotebook> Message-ID: Yes, there is a place for copyright, but my only point was that it does not generally provide as broad protection as a patent. And copyright is a lot simpler and less expensive than a patent. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 10, 2007 2:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent As far as patents go, I don't' know a thing. However, copyright is an important part of my business. I actually have a copyright attorney who helped me successfully sue a competitor who took some of my code and used it for their own purposes. Copyright is very important when you are in business for yourself. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, September 10, 2007 3:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Since I'm not an attorney, I'll leave the expert opinions to you. However, unless your client is dealing with some database technology other than object-oriented or event-driven, I suspect it isn't new or unique. As for being sold a pup, it was just a phrase. Your previous message made it clear that you had perhaps "inherited a pup" by default rather than buying it. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 10, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Well, after what I said below, I guess I am one of those that say you can copyright code, but as I also said, it is not worth much, and I don't believe I have ever advised a client to do it. I will note too that copyright is limited to protecting expression, and does not extend beyond that to protect method, application, and solutions, at least not in the sense of those words as I understand them. Patents are another story. While I sometimes include code in the detailed description portion of a patent as an example of one way to implement an invention, I don't believe I have ever written a patent so that it was limited to any particular embodiment of code. The subject Weinman patent is a case in point. The purpose of a patent is to protect function (not mere expression, as with a copyright), including any way that a function may be performed, and so the legal metes and bounds of a software patent are typically defined at a high level by flow charts and/or structure, and rarely ever by code, even though code obviously underlies all of it. If it were limited to a particular embodiment of code, then it would indeed be easy to design around, and so not worth much, or overkill as you say. Re being "sold a pup", we never bought it and it was not part of the arragnement (e.g., as a contingency), we were just stuck with it, as can happen in any business when a client defaults in payment and/or goes bankrupt. Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 08:58:38 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 15:58:38 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Robert Interesting. But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? http://www.codesmithtools.com/store/pricing.aspx /gustav >>> robert at webedb.com 11-09-2007 15:17 >>> Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust From fuller.artful at gmail.com Tue Sep 11 09:12:32 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Sep 2007 10:12:32 -0400 Subject: [AccessD] Compare BEs Message-ID: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur From dwaters at usinternet.com Tue Sep 11 09:12:40 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 09:12:40 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709111323.l8BDN9ma025900@databaseadvisors.com> References: <200709111323.l8BDN9ma025900@databaseadvisors.com> Message-ID: <000f01c7f47d$d0c26a80$0200a8c0@danwaters> Robert - where are you teaching this class? Is this on-line? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 8:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Sep 11 09:34:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 09:34:55 -0500 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> References: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <001001c7f480$ec780bb0$0200a8c0@danwaters> Yes - FMS has a tool called Total Access Detective. I haven't used it though. http://www.fmsinc.com/products/detective/index.html Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Elizabeth.J.Doering at wellsfargo.com Tue Sep 11 09:39:20 2007 From: Elizabeth.J.Doering at wellsfargo.com (Elizabeth.J.Doering at wellsfargo.com) Date: Tue, 11 Sep 2007 09:39:20 -0500 Subject: [AccessD] Compare BEs References: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: Arthur, I don't have a copy handy, but MDBDiff was a very useful one for just that need. You should be able to google up a link pretty quickly. HTH, Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Sep 11 09:45:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 07:45:13 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <002101c7f482$5c5468b0$0301a8c0@HAL9005> MDBDiff: http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDif f.html I used it in A97 - it's pretty effective. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From rockysmolin at bchacc.com Tue Sep 11 09:48:51 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 07:48:51 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <29f585dd0709110712s7b95bb44o1cb1367ce7d8c251@mail.gmail.com> Message-ID: <002201c7f482$de9f34d0$0301a8c0@HAL9005> Arthur: That site I sent you is flagged by McAfee site advisor as a bad site. This one is OK by them: http://www.softhypermarket.com/MDBDiff-download_17792.html Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From jack.stone at solidcounsel.com Tue Sep 11 09:50:21 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Tue, 11 Sep 2007 09:50:21 -0500 Subject: [AccessD] Database Patent References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne><000801c7f3dc$12a7a5c0$4b3a8343@SusanOne><003a01c7f40b$8ae32cb0$4b3a8343@SusanOne> <59A61174B1F5B54B97FD4ADDE71E7D01289D3D@ddi-01.DDI.local> Message-ID: A downside of being an attorney is that some people may take me seriously and even consider what I say to be legal advice for which I could be held liable. So I am reluctant to say much on a forum like this when I have no idea who may be listening. But having said that, I will make a few general comments (based on US law) that I think are safe, in response to some comments made and questions posed: No matter how highly creative, novel, or distinctive they may be, individual words and "short" phrases, including "snippets of code", are not protected by copyright. Thus, in response to Susan's concerns below, no one owns the copyright to "snippets of code" since they are not copyrightable in the first place, and thus the fair use exception does not apply either. Someone said slogans are copyrightable, but under US law, like the foregoing, slogans, names, and titles are not copyrightable. However, these items may be protectable under trademark laws. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Monday, September 10, 2007 7:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Indeed. Makes me laugh when I find code made available on the net that has copyright ME written in the header, especially when the code is something like Declare GetWindowHWND blah blah I = GetWindowHWND cheers Michael M But who's the copyright with? How many people use these snippets of code? Thousands and thousands -- who owns them? Susan H. The fair use exception to copyright owner's rights allows for that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Sep 11 10:00:30 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 11 Sep 2007 08:00:30 -0700 Subject: [AccessD] Compare BEs In-Reply-To: <002201c7f482$de9f34d0$0301a8c0@HAL9005> Message-ID: <002301c7f484$839ddd50$0301a8c0@HAL9005> Arthur: I'm having trouble connecting to a download for mdbdiff. I can send it to you off-line if you want. I have both mdbdiff97.exe and mdbdiff2000.exe and documentation. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 11, 2007 7:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Compare BEs Arthur: That site I sent you is flagged by McAfee site advisor as a bad site. This one is OK by them: http://www.softhypermarket.com/MDBDiff-download_17792.html Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 11, 2007 7:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Compare BEs Is there a tool or a method of comparing two Back Ends and listing their differences? I've made a few changes to columns and now have to update the client's copy of the BE, and I want to make sure I make all the changes required. TIA, Arthur -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM -- 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.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From cfoust at infostatsystems.com Tue Sep 11 10:00:14 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:00:14 -0700 Subject: [AccessD] Access to VB.Net In-Reply-To: <200709111323.l8BDN9ma025900@databaseadvisors.com> References: <200709111323.l8BDN9ma025900@databaseadvisors.com> Message-ID: Yes, I know you don't actually modify their code, but we hand code business rules into our data entities. They can't be generated by CodeSmith because The rules differ from entity to entity, so they have to be in the abstraction layer and preserved when the class is regenerated. And I have nothing against time saving tools. I just think users need to understand exactly what that code is doing, and the best way to understand that is to write code yourself, explore the various options for doing things, and try to figure out why the tool might do it differently. I question whether the generated code is written "better", any more than a production line widget is any "better" than a hand crafted widget. It is certainly written more quickly, but my experience suggests that only means cheaper, not necessarily better. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net Charlotte, I am teaching a special interest group, Database and GUI Design. We are using the Codesmith/netTiers combination and most of the people in the group have limited experience in .Net. What I have found is that it actually does so much that it is difficult to get your arms around all that it does do. It uses the Enterprise Library to base itself on. While it is huge, it is also extremely feature rich. All you really have to learn is to program the GUI. Do you worry about, or even know how Access saves a record? No, you call the method to do it. Dim svcName as new tblNamesService Set svcName = tblNamesService.getall() dim entName as tblNames ...code here to load the row (entity) txtFirstName = entName.FirstName (for example) ...and edit it svcName.save(entName) That is an example of the simplicity of using the combination of Codesmith and netTiers to do a data layer. Now if you want to write all the ADO code for the connection getting the data and manipulating it, be my guest. Personally I don't have the time or energy to replicate something that is actually written better than I could. Same with Clipper years ago, I used a code generator called Zachery. It wrote much tighter code than I ever did. I was on their beta team for about 3 years. And no, you don't modify their code. They give you an abstraction layer, a class that inherits the generated class, where you can make changes that do not get erased each time you regenerate it. Robert At 11:13 PM 9/10/2007, you wrote: >Date: Mon, 10 Sep 2007 14:41:10 -0700 >From: "Charlotte Foust" >Subject: Re: [AccessD] Access to VB.Net >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Robert, > >I have to say that tools like Codesmith are very useful, but they're >more useful if you understand what they're writing. They can also be >very stupid (same like computers, natch) so you need to be able to >modify the code intelligently, since one size rarely fits all, >regardless of what the code writer thinks. LOL > >Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Tue Sep 11 10:03:52 2007 From: developer at ultradnt.com (Steve Conklin) Date: Tue, 11 Sep 2007 11:03:52 -0400 Subject: [AccessD] Database Patent In-Reply-To: <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> References: <001c01c7f3c4$74c9cbb0$4b3a8343@SusanOne> <29f585dd0709101322q12b97ff9n53af8bc7999c856b@mail.gmail.com> Message-ID: <00c201c7f484$fa4b7ca0$0f64a8c0@CONKEY2505> Arthur: USA is reverse - as a contractor, client owns my code and re-sell rights (work-for-hire) unless I specify otherwise in the contract. Some I know include this in all contracts; I do also when I sense a re-sale potential. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, September 10, 2007 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I'll add a tidbit to this thread, which may apply solely to Canadian developers, but anyway: when a freelancer such as myself contracts with a corporation to produce software, unless the contract specifically states that I am comissioned to write software that will be owned by said corporation, the courts deem that the software is the freelancer's. This came up recently, because I just completed an app for stable owners ( i.e. riding lessons etc.). It was by no means a complicated app, but my investigations revealed that there is almost no competition, and the person who hired me already owns the competitive product, and hates it so much that she hired me to replace it. I don't think I can grow wealthy from this one app, but there are quite a few riding stables around, and the fact that I've got a disgruntled user's perspective on the competition, led me to think about the possibilities. So I pointed out to her the existing Canadian law, but I'm not a mean person, so I even volunteered to give her a slice of whatever action ensues. She just said, "Go for it, and give me a free copy of each new version." "Deal," said I. Other than researching the competition, I haven't done anything about scouting new customers. But I do know horses and I worked at a riding stable for eight years when I was a teenager, so I know what is required from the software. To be frank, I don't think the competition did. What they wrote sort of works, but makes many things much more difficult than they ought to be, and reflects no sense of what you would typically do most often. My software does. It's not rocket science, for sure. In fact, it's one of the easiest apps I've ever written. It would be splendidly ironic if it made more money for me than some of the really complex stuff I've written. But at the end of the day, you must remember Fuller's Fifth Law: money never arrives at an inopportune moment. A. -- 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.485 / Virus Database: 269.13.13/998 - Release Date: 9/10/2007 8:48 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.14/999 - Release Date: 9/10/2007 5:43 PM From cfoust at infostatsystems.com Tue Sep 11 10:03:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:03:05 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From RRANTHON at sentara.com Tue Sep 11 10:19:35 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Tue, 11 Sep 2007 11:19:35 -0400 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1> <006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> Message-ID: <200709111520.l8BFK9vs032649@databaseadvisors.com> Sorry I missed this earlier, IIRC I had a similar problem and it's with the space in the field. Try putting brackets [ ] in your sql string around the variable. I know for sure it occurred with a field that contained a hyphen. For example my sql string would be select * from tablename where fieldname = 'A-B' and the string would show select * from tablename where fieldname = A, then the error. >>> "Charlotte Foust" 9/11/2007 11:03 AM >>> Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 10:29:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 08:29:25 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <200709111520.l8BFK9vs032649@databaseadvisors.com> References: <005901c7f3f7$7a643e10$0200a8c0@murphy3234aaf1><006201c7f42a$0cb4fca0$0200a8c0@murphy3234aaf1> <200709111520.l8BFK9vs032649@databaseadvisors.com> Message-ID: The square brackets are needed when dealing with field *names* with spaces or odd characters in them, but not for specifying a value in a field. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Tuesday, September 11, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 Sorry I missed this earlier, IIRC I had a similar problem and it's with the space in the field. Try putting brackets [ ] in your sql string around the variable. I know for sure it occurred with a field that contained a hyphen. For example my sql string would be select * from tablename where fieldname = 'A-B' and the string would show select * from tablename where fieldname = A, then the error. >>> "Charlotte Foust" 9/11/2007 11:03 AM >>> >>> Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 webedb.com Tue Sep 11 10:42:02 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 10:42:02 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111548.l8BFmBii009401@databaseadvisors.com> Gustav, That is why I said in a earlier post that the cheapest version is really all you need, $99 USD. The .netTiers is free. And, to me, that is what makes Codesmith usable. Robert At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is >quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav From robert at webedb.com Tue Sep 11 10:43:54 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 10:43:54 -0500 Subject: [AccessD] Access to VB.Net In-Reply-To: References: Message-ID: <200709111548.l8BFmBYF009402@databaseadvisors.com> At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 09:12:40 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000f01c7f47d$d0c26a80$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Robert - where are you teaching this class? Is this on-line? From prosoft6 at hotmail.com Tue Sep 11 10:58:55 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Tue, 11 Sep 2007 11:58:55 -0400 Subject: [AccessD] OT:Adobe Bundled with Office In-Reply-To: References: <000001c7f18f$ca26b460$8119fea9@LTVM> Message-ID: Just to vent a little.........my company is a reseller of Dell computers, and we just ordered three systems for a customer. I cannot get MS-Office without it being coupled with Adobe, and they charge $35 for each system just for the privelage! What a pain............wish they would bundle my software with MS-Office. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions http://www.marlow.com/AlwaysOnTop2000.zip I'll leave that there for a few days. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 07, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Transactions Drew, I am sorry to trouble you, but I am having some difficulty in getting this to work. If you have the time, I would really appreciate an example mdb with a form showing all this working. Openening and closing plus the bits inbetween. (max.wanadoo at gmail.com) Thanks in anticipation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 07, 2007 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transactions Nope, that's right. The code posted was two 'parts' though (and not really stand alone, they refered to other things in the systems they were in). First part hid (and unhid) Access and put the forms 'Always On Top'. The second part was some code to unhide all Access (main) windows on your machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Yes, I did figure that out, though I used SW_SHOWNORMAL. This restores nicely the main window of Access. However, as I browsed the thread, the target was to unhide the Database window - or did I miss something? /gustav >>> DWUTKA at marlow.com 07-09-2007 15:59 >>> Good point, sorry, just grabbed the code out of a module, the form I had run that had the 'showaccesswindow' function. Just replace that line with: ShowWindow hwnd, SW_MAXIMIZE You'll need to copy the API declaration and SW_MAXMIZE constant from the first bit of code in the post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 8:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew OK, it's probably from my cut and paste ... But your sub ShowAccessWindow seems to miss? I've found one from you dated 2002-05-10 but it takes another argument. /gustav >>> DWUTKA at marlow.com 07-09-2007 15:05 >>> No idea why that says listview, should be long. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 07, 2007 4:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transactions Hi Drew Nice. However, what is the ListView type? A2003 won't compile that: Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long /gustav >>> DWUTKA at marlow.com 06-09-2007 23:15 >>> Yes, my code does the same, and a little more: Option Compare Database Option Explicit 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 Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SW_HIDE = 0 Const SW_MAXIMIZE = 3 Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Const HWND_BOTTOM = 1 Private Sub cmdAlwaysOnTop_Click() If IsWindowVisible(Application.hWndAccessApp) Then ShowWindow Application.hWndAccessApp, SW_HIDE SetWindowPos Application.hWndAccessApp, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE Else ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub Private Sub Form_Unload(Cancel As Integer) If IsWindowVisible(Application.hWndAccessApp) = False Then ShowWindow Application.hWndAccessApp, SW_MAXIMIZE SetWindowPos Application.hWndAccessApp, HWND_BOTTOM, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End If End Sub The code above hides the access window and actually puts popup forms as 'always on top' of all other windows. However, this code: Option Explicit Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Public Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Public intWindowsShown As Long Function FindAndShowWindows() Dim dwReturn As Long dwReturn = EnumWindows(AddressOf EnumWindowsProc, 0) End Function Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As ListView) As Long Dim strClass As String Dim dwReturn As Long strClass = Space(50) dwReturn = GetClassName(hwnd, strClass, 50) strClass = Left(strClass, dwReturn) If strClass = "OMain" And Not IsWindowVisible(hwnd) Then ShowAccessWindow hwnd intWindowsShown = intWindowsShown + 1 End If EnumWindowsProc = 1 End Function Will unhide every Access window on your machine. Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at webedb.com Tue Sep 11 11:17:57 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 11 Sep 2007 11:17:57 -0500 Subject: [AccessD] Compare BEs In-Reply-To: References: Message-ID: <200709111623.l8BGN7p0021334@databaseadvisors.com> None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDif >f.html > >I used it in A97 - it's pretty effective. > >Rocky From dwaters at usinternet.com Tue Sep 11 11:28:16 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 11:28:16 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <200709111548.l8BFmBYF009402@databaseadvisors.com> References: <200709111548.l8BFmBYF009402@databaseadvisors.com> Message-ID: <001a01c7f490$c4ae8c70$0200a8c0@danwaters> Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 09:12:40 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Access to VB.Net >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000f01c7f47d$d0c26a80$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Robert - where are you teaching this class? Is this on-line? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 11 11:51:08 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 09:51:08 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001a01c7f490$c4ae8c70$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com> <001a01c7f490$c4ae8c70$0200a8c0@danwaters> Message-ID: I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. From dw-murphy at cox.net Tue Sep 11 12:00:28 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:00:28 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <002801c7f449$6344c630$8119fea9@LTVM> Message-ID: <002301c7f495$416c75c0$0200a8c0@murphy3234aaf1> Hi Max, Thanks for the thoughts. I should have explained the situation a little better. Did that in my first post. The table is an application table that holds mask settings for diffent country codes which I pre set, so I know it is populated and the recordset returns values. tFM is a user defined type set at the application level that is loaded with the various masks, once we determine the computers country setting, e.g. phone number, date, address etc. The values returned by the country setting api do not contain any punctuation. I have run into this problem before where a user puts a single quote into something a sql statement must use. The application is a runtime which uses a separate install of the Access 2002 runtime and its supporting dlls. The issue I beleive is that for some reason the version of jet that is installed to run on Windows 98 machines interprets my sql string differenetly than that on later operating systems. MS has a jet version for Win 98 machines and one for later versions. They are both jet 4 SP 8. This installation runs correctly on versions of windows later than 98 Second Edition. I try to allow users to run our application on any machine that AccessXP would run on natively. There aren't to many 98 machines left but there are some, especially in other countries. The interesting thing is that other portions of the application that use recordsets work without error. As far as I can tell it is just this one routine. I'll keep researching. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 12:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug, To me this code does not make sense to me, but I understand that is is not the complete code, so my comments below may be meaningless. 1. Presumably GetUserLocaleInfo is a function that returns a string (and not a null) 2. You haven't tested to see if if sCountrySettings has a value before using it. 3. What does tFM.sCountry mean. If it is a field in a table then it really should use the pling (!). If it is a property setting in a Class then where was the class defined? The "." is really for a property. (I do understand that some people use them for both, but the pling makes it clear what the interpretation is to be. 4. You have told the recordset to move to the first record, but you haven't tested to see if the recordset has any content. If it is empty, then that would generate an error. Ie, use "If not rs.eof then...." 5. Are you sure that the returned value is actually what you type in. If there is an embedded single quote in the returned value then you can get this error. 6. Are your Reference correctly installed and/or have you recently installed an update on your system. Does the function work for other values other than the one you quoted? You could try removing references and then putting them back in again - do any show as "missing". Hope some of this may help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 5:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 12:01:11 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 18:01:11 +0100 Subject: [AccessD] Compare BEs In-Reply-To: <200709111623.l8BGN7p0021334@databaseadvisors.com> References: <200709111623.l8BGN7p0021334@databaseadvisors.com> Message-ID: <003701c7f495$5b958ae0$8119fea9@LTVM> Robert, this link works. Watch for line wrap Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 5:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Compare BEs None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDi ff.html > >I used it in A97 - it's pretty effective. > >Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 12:04:37 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:04:37 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <002401c7f495$d5c88060$0200a8c0@murphy3234aaf1> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 12:05:52 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 10:05:52 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <002501c7f496$0240ee70$0200a8c0@murphy3234aaf1> I tried that. Same result. I also moved the table from the back end to front end. Same error. Very frustrating. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 8:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 Try taking out the semicolon at the end of the statement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, September 10, 2007 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Jet version sql error Try 2 OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 12:20:49 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 19:20:49 +0200 Subject: [AccessD] Access to VB.Net Message-ID: Hi Robert OK, missed that, sorry. But I thought integration with the VS2005 IDE would be essential for any serious use? That said, I haven't studied closer what the Codesmith really offers. /gustav >>> robert at webedb.com 11-09-2007 17:42 >>> Gustav, That is why I said in a earlier post that the cheapest version is really all you need, $99 USD. The .netTiers is free. And, to me, that is what makes Codesmith usable. Robert At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is >quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav From Gustav at cactus.dk Tue Sep 11 12:25:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Sep 2007 19:25:53 +0200 Subject: [AccessD] Jet version sql error Try 2 Message-ID: Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- From dwaters at usinternet.com Tue Sep 11 12:29:03 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 12:29:03 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters> Message-ID: <001e01c7f499$3fc77b80$0200a8c0@danwaters> Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Sep 11 12:45:45 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 10:45:45 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001e01c7f499$3fc77b80$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters> <001e01c7f499$3fc77b80$0200a8c0@danwaters> Message-ID: Yep, I've left them in so you can see. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 13:28:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Sep 2007 13:28:37 -0500 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters><001e01c7f499$3fc77b80$0200a8c0@danwaters> Message-ID: <001f01c7f4a1$920f80b0$0200a8c0@danwaters> I can't see them! Alright - I admit they're there! ;-) So they got generated between me and you somehow. And you generated some more. Hmmm. Research time. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yep, I've left them in so you can see. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yes - although not as many. I bet they are cumulative. I do have a signature, but not for this account, and only for the original email. Did the email you received from me have blank lines? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I'm using Outlook 2003. Do you see blank lines in mine? If you have a signature set up for use, even it it's blank, that might be causing your problem. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Please post when you get this ready! And thanks for the note about blank lines - I didn't know. (Blank lines removed from this email). I'm using Outlook 2003 - any ideas on what could cause this? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access to VB.Net At HAL-PC, the users group in Houston, TX. We are working on getting an extension of my website up with tips and PDFs on what we have learned on using the combination. And how to use it in actual programs. Dan, you need to do something about the amount of blank lines that are at the end of all your posts. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 14:57:41 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 20:57:41 +0100 Subject: [AccessD] Compare BEs In-Reply-To: <003701c7f495$5b958ae0$8119fea9@LTVM> References: <200709111623.l8BGN7p0021334@databaseadvisors.com> <003701c7f495$5b958ae0$8119fea9@LTVM> Message-ID: <006001c7f4ae$03e95a60$8119fea9@LTVM> Ooops, sorry didn't follow it through to a download. Mea culpa. To make amends, I have found the following which may help:- http://www.ssw.com.au/ssw/DataRenovator/ And this link which definitely downloads (just done it, but not tested the software):- http://pcwin.com/Utilities/Free_Database_Compare/download.htm For John Colby: John, I found this link which may help you in your documenting job. http://pcwin.com/Software_Development/DB_Manual/download.htm Also this one:- http://pcwin.com/Software_Development/dbQwikSyncPro/index.htm Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 6:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Compare BEs Robert, this link works. Watch for line wrap Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, September 11, 2007 5:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Compare BEs None of the download links work. They are all pointing to a server that does not exist any more. At 10:31 AM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 07:45:13 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: Re: [AccessD] Compare BEs >To: "'Access Developers discussion and problem solving'" > >Message-ID: <002101c7f482$5c5468b0$0301a8c0 at HAL9005> >Content-Type: text/plain; charset="us-ascii" > >MDBDiff: > >http://www.freedownloadscenter.com/Programming/Databases_and_Networks/M >DBDi ff.html > >I used it in A97 - it's pretty effective. > >Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Tue Sep 11 15:05:58 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 11 Sep 2007 16:05:58 -0400 Subject: [AccessD] Compare BEs In-Reply-To: <006001c7f4ae$03e95a60$8119fea9@LTVM> Message-ID: Are these changes to an mdb? If so, I do all changes using the BEU. I can then be sure the updates work and then when everything's ready all I have to do is send the updated FE to the user. The BE changes are made for me and I know the BE's match. Reuben Cummings GFC, LLC 812.523.1017 > From max.wanadoo at gmail.com Tue Sep 11 15:08:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 21:08:09 +0100 Subject: [AccessD] Redesign tools In-Reply-To: <000901c7f45a$1b5185f0$6c7aa8c0@M90> References: <000901c7f45a$1b5185f0$6c7aa8c0@M90> Message-ID: <006101c7f4af$79b2bec0$8119fea9@LTVM> John, I found this link which may help you in your documenting job. http://pcwin.com/Software_Development/DB_Manual/download.htm Also this one:- http://pcwin.com/Software_Development/dbQwikSyncPro/index.htm Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 11, 2007 10:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Redesign tools I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool 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 From cfoust at infostatsystems.com Tue Sep 11 15:33:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 13:33:42 -0700 Subject: [AccessD] Blank Lines in Email (was Access to VB.Net) In-Reply-To: <001f01c7f4a1$920f80b0$0200a8c0@danwaters> References: <200709111548.l8BFmBYF009402@databaseadvisors.com><001a01c7f490$c4ae8c70$0200a8c0@danwaters><001e01c7f499$3fc77b80$0200a8c0@danwaters> <001f01c7f4a1$920f80b0$0200a8c0@danwaters> Message-ID: I didn't see any this time. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 11, 2007 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) I can't see them! Alright - I admit they're there! ;-) So they got generated between me and you somehow. And you generated some more. Hmmm. Research time. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) Yep, I've left them in so you can see. Charlotte From dw-murphy at cox.net Tue Sep 11 16:06:12 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:06:12 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: Message-ID: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:31:22 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:31:22 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> Message-ID: <006801c7f4bb$1a0e6080$8119fea9@LTVM> Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 16:40:51 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:40:51 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 16:39:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 14:39:55 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006801c7f4bb$1a0e6080$8119fea9@LTVM> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1> <006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:47:28 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:47:28 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM> Message-ID: <006901c7f4bd$59a43b00$8119fea9@LTVM> >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 16:49:07 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 22:49:07 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> References: <006801c7f4bb$1a0e6080$8119fea9@LTVM> <007d01c7f4bc$6cb68b40$0200a8c0@murphy3234aaf1> Message-ID: <006a01c7f4bd$950f4270$8119fea9@LTVM> There you go! I learn something new every day. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 16:50:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 11 Sep 2007 14:50:05 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006901c7f4bd$59a43b00$8119fea9@LTVM> References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM> <006901c7f4bd$59a43b00$8119fea9@LTVM> Message-ID: The + is actually a mathematical/logical operator and it indeed returns a null if you try to concatenate a null. The Ampersand is a string concatenation operator, so if you concatenate a null to a string using &, you get a string. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 11 16:58:22 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Sep 2007 14:58:22 -0700 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: <006a01c7f4bd$950f4270$8119fea9@LTVM> Message-ID: <008101c7f4be$dee34b70$0200a8c0@murphy3234aaf1> I certainly learned more than I wanted. Took way to long to trouble shoot this. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 There you go! I learn something new every day. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hi Max, When you use some APIs they ask for a variable to be dimensioned to be passed into the api and into which the result is returned. If you look at the string that is returned there will be an asci 0 at the end. This is the null I was refering to since that is what the asci table calls it. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 11 17:00:31 2007 From: max.wanadoo at gmail.com (Gmail) Date: Tue, 11 Sep 2007 23:00:31 +0100 Subject: [AccessD] Jet version sql error Try 2 In-Reply-To: References: <006d01c7f4b7$9534da90$0200a8c0@murphy3234aaf1><006801c7f4bb$1a0e6080$8119fea9@LTVM><006901c7f4bd$59a43b00$8119fea9@LTVM> Message-ID: <006b01c7f4bf$2ca266c0$8119fea9@LTVM> Yes, just tried it and you are correct Charlotte. Thanks - still learning Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 The + is actually a mathematical/logical operator and it indeed returns a null if you try to concatenate a null. The Ampersand is a string concatenation operator, so if you concatenate a null to a string using &, you get a string. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 >An ampersand works differently How does an ampersand work, Charlotte? Ie, how does it differ from a + operator. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 11, 2007 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Jet version sql error Try 2 A null concatenated to anything only returns a null if you use the + operator for the concatenation. An ampersand works differently. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Tuesday, September 11, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 Hmmm, I *think* it was returning a null, not a null terminated string. How do you do you trim a null "I trim one so there was an extra" ? I do not know of anyway to add a null to anything. >Concatenation does not work with null terminated strings so my sql >string didn't have the last semicolon and threw an error. A null concatenated to anything returns a null. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 11, 2007 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Jet version sql error Try 2 I finally figured out what the problem was. I use the GetLocalInfo API to get the users computer country settings. This API is supposed to give a string length which you then use to dimension a variable into which the api returns the country setting as a null terminated string that designates the country, e.g., "United States" for the US. This works as it is supposed to for the later versions of Windows. For some reason when I test our runtime on a Windows 98 SE computer the returned buffer length has one extra space so I was getting the Country designation with 2 null characters on the end. I trim one so there was an extra. The sql string was just a symptom of this problem. Concatenation does not work with null terminated strings so my sql string didn't have the last semicolon and threw an error. When the country setting string is not null terminated all is well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 10:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug This may be one of those situations where you just code it differently to skip further debugging. You could apply a filter to the recordset: sSQL = "Select * From tblUserFormat" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.Filter = "fldCountry = '" & sCountrySettings & "'" Set rs = rs.OpenRecordset /gustav >>> dw-murphy at cox.net 11-09-2007 19:04 >>> Hi Gustav, This is a runtime that I install from a test CD. It runs correctly on operating systems other than win 98 SE. I know the table is populated since I put the values in and that the recordset returns values, when it runs correctly. As I responded to Max on his post I suspect this is something to do with the version of jet used on Windows 98 and later versions of windows. My installer checks the windows version and loads the apprpropriate version of Jet 4 SP8. I just can't figure out why this simple string would be interpreted differently. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 11, 2007 6:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Jet version sql error Try 2 Hi Doug Strange, except that sSQL is never Null and dbOpenDynaset is the default method for attached tables. Try with another table/database to check if the table should be corrupt. /gustav >>> dw-murphy at cox.net 11-09-2007 06:13 >>> OK I'll try again with a simpler (?) question. Any one see a reason why the following sql string generates an error when used to open a recordset? "Select * From tblUserFormat Where fldCountry = 'United States';" Generates an error 3075 when run in the following line: "Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)" The error message that gives the error number 3075 indicates that there is some problem with fldCountry = 'United States' I have modified the code slightly from my first post to use a dynaset type recordset and added the semicolon at the end of the query string. Same error is generated with the updated code. The complete procedure up to this point is as follows. Public Sub GetCountrySettings() Dim rs As DAO.Recordset Dim db As DAO.Database Dim sSQL As String Dim sCountrySettings As String Dim fld As Field Dim LCID As Long LCID = 0 'GetSystemDefaultLCID() On Error GoTo GetCountrySettings_Error sCountrySettings = GetUserLocaleInfo(LCID, LOCALE_SCOUNTRY) tFM.sCountry = sCountrySettings If Not IsNull(sSQL) Then sSQL = "Select * From tblUserFormat Where fldCountry = '" & sCountrySettings & "';" Set db = CurrentDb Set rs = db.OpenRecordset(sSQL, dbOpenDynaset) rs.MoveFirst -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 11 17:17:20 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 11 Sep 2007 17:17:20 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 Jim.Hale at FleetPride.com Tue Sep 11 17:20:34 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 11 Sep 2007 17:20:34 -0500 Subject: [AccessD] Database Patent In-Reply-To: References: <002201c7f3e9$b916d7c0$4b3a8343@SusanOne> Message-ID: OK, Can Getz sue if someone uses code taken from the ADH (which is copyrighted) for example? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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 john at winhaven.net Tue Sep 11 17:17:05 2007 From: john at winhaven.net (John Bartow) Date: Tue, 11 Sep 2007 17:17:05 -0500 Subject: [AccessD] Unbelievable defense dept. security (does contain Access related info :) Message-ID: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> This is a short slideshow (7 slides) about database security on the web... http://www.eweek.com/slideshow/0,1206,pg=0 &s=25932&a=214818,00.asp From DWUTKA at Marlow.com Tue Sep 11 18:03:19 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Sep 2007 18:03:19 -0500 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: Only if you sell the code as your own. Not in an application, but as just code. For example, I think there is some code in there (never had a copy of that personally...don't have any VB or Access books) for a form based calendar, like my mini calendar. If you used that in an application, that would be fine, because the purpose of the book is to sell copies of the book. (just like code in an article). However, if you were to write a book, and use the code from the ADH, that would be a copyright violation. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent OK, Can Getz sue if someone uses code taken from the ADH (which is copyrighted) for example? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, September 10, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent That's not the point, the for loop is like 'the sky is blue'. You can't copyright a common word, nor can you copyright a single command of code. You can't really copyright a statement either, with both code and writing. You can however, copyright a collection of statements. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, September 10, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent I agree -- but how many of us would come up with the same exact For loop as you? There's a difference between code and solutions. Susan H. Only if you copied someone's code without their consent. When we co-wrote articles, we were both compensated for our contributions. If you were to write an article based on code someone posted on here, while it might be uncouth to not give credit, the code was posted to a public forum, with no copyright restrictions. If you were to make money off such an article, legally, the person who wrote the code could fight for compensation/credit, since it was copyrighted as they wrote it. Just like words in a story, code in a program is protected by copyright. For i=1 to 100 Debug.print i Next i That would be hard to fight for credit, just like 'The sky is blue.' Would be hard to fight for credit. However, a full blown function or application is just as protected as a story. Now, you could write a story about a little girl and three bears. And as long as YOU wrote the story, with your style, thoughts, ideas, etc. it would be your story. I could also write about a little girl and three bears, and as long as I wrote it, with my style, thoughts, ideas, etc. it would be MY story. If my story was really identical to yours, then there could be a copyright battle. Take movies, how many movies have identical plots, characters, etc. There has to be enough of it that is different otherwise it would be plagiarism. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fuller.artful at gmail.com Tue Sep 11 20:27:01 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Sep 2007 21:27:01 -0400 Subject: [AccessD] Unbelievable defense dept. security (does contain Access related info :) In-Reply-To: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> References: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> Message-ID: <29f585dd0709111827l18f3de90g4cb7d29e9e23a8e@mail.gmail.com> In the unbelievable defence department, I would nominate Roger Federer. On 9/11/07, John Bartow wrote: > > This is a short slideshow (7 slides) about database security on the web... > > http://www.eweek.com/slideshow/0,1206,pg=0 > > &s=25932&a=214818,00.asp > > > From pcs at azizaz.com Tue Sep 11 23:11:34 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Wed, 12 Sep 2007 14:11:34 +1000 (EST) Subject: [AccessD] Access to VB.Net Message-ID: <20070912141134.DCV42097@dommail.onthenet.com.au> In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and >GUI Design. We are using the Codesmith/netTiers combination >and most of the people in the group have limited experience >in .Net. What I have found is that it actually does so >much that it is difficult to get your arms around all that >it does do. It uses the Enterprise Library to base itself >on. While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do >you worry about, or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) >...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a >code generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 12 01:13:36 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 12 Sep 2007 16:13:36 +1000 Subject: [AccessD] Access to VB.Net References: <20070912141134.DCV42097@dommail.onthenet.com.au> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289D51@ddi-01.DDI.local> Form a cursory examination of the website it looks interesting. It seems to support more then just SQL 2K+ Cheaper then the full CodeSmith/netTiers... Nice GUI Does C# + VB.net Don't have time to test it though. cheers Michael M Subject: Re: [AccessD] Access to VB.Net In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and GUI Design. We are >using the Codesmith/netTiers combination and most of the people in the >group have limited experience in .Net. What I have found is that it >actually does so much that it is difficult to get your arms around all >that it does do. It uses the Enterprise Library to base itself on. >While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do you worry about, >or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) ...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a code >generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Sep 12 06:47:27 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 07:47:27 -0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D01289D51@ddi-01.DDI.local> Message-ID: <003f01c7f532$b242a330$6c7aa8c0@M90> And are these license seats for each developer or for each application copy sold - notice that they don't really say.? I assume per developer but would want to be sure before committing. I am leery of having any company's hooks into me for each copy of my 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 Michael Maddison Sent: Wednesday, September 12, 2007 2:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access to VB.Net Form a cursory examination of the website it looks interesting. It seems to support more then just SQL 2K+ Cheaper then the full CodeSmith/netTiers... Nice GUI Does C# + VB.net Don't have time to test it though. cheers Michael M Subject: Re: [AccessD] Access to VB.Net In this context what is everyone's view on a O/R wrapper like http://www.llblgen.com/defaultgeneric.aspx regards borge ---- Original message ---- >Date: Tue, 11 Sep 2007 15:58:38 +0200 >From: "Gustav Brock" >Subject: Re: [AccessD] Access to VB.Net >To: > >Hi Robert > >Interesting. >But this SI group is a club of pros? I mean, USD 400 per license is quite some money for an amateur? > >http://www.codesmithtools.com/store/pricing.aspx > >/gustav > >>>> robert at webedb.com 11-09-2007 15:17 >>> >Charlotte, > >I am teaching a special interest group, Database and GUI Design. We are >using the Codesmith/netTiers combination and most of the people in the >group have limited experience in .Net. What I have found is that it >actually does so much that it is difficult to get your arms around all >that it does do. It uses the Enterprise Library to base itself on. >While it is huge, it is also extremely feature rich. > >All you really have to learn is to program the GUI. Do you worry about, >or even know how Access saves a record? >No, you call the method to do it. > >Dim svcName as new tblNamesService >Set svcName = tblNamesService.getall() >dim entName as tblNames >...code here to load the row (entity) >txtFirstName = entName.FirstName (for example) ...and edit it >svcName.save(entName) > >That is an example of the simplicity of using the combination >of Codesmith and netTiers to do a data layer. Now if you want >to write all the ADO code for the connection getting the data >and manipulating it, be my guest. Personally I don't have the >time or energy to replicate something that is actually written >better than I could. Same with Clipper years ago, I used a code >generator called Zachery. It wrote much tighter code than >I ever did. I was on their beta team for about 3 years. > >And no, you don't modify their code. They give you an abstraction >layer, a class that inherits the generated class, where you can >make changes that do not get erased each time you regenerate it. > >Robert > > >At 11:13 PM 9/10/2007, you wrote: >>Date: Mon, 10 Sep 2007 14:41:10 -0700 >>From: "Charlotte Foust" >>Subject: Re: [AccessD] Access to VB.Net >>To: "Access Developers discussion and problem solving" >> >>Message-ID: >> >>Content-Type: text/plain; charset="us-ascii" >> >>Robert, >> >>I have to say that tools like Codesmith are very useful, but they're >>more useful if you understand what they're writing. They can also be >>very stupid (same like computers, natch) so you need to be able to >>modify the code intelligently, since one size rarely fits all, >>regardless of what the code writer thinks. LOL >> >>Charlotte Foust > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Wed Sep 12 08:02:29 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Wed, 12 Sep 2007 09:02:29 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: Message-ID: Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 Wed Sep 12 08:32:03 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Sep 2007 08:32:03 -0500 Subject: [AccessD] Unbelievable defense dept. security (does contain Accessrelated info :) In-Reply-To: <0cc701c7f4c1$7c86e830$6402a8c0@ScuzzPaq> Message-ID: In it, they said Access wasn't an SQL based database.....ummmmm, why isn't it? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 11, 2007 5:17 PM To: _DBA-Access Subject: [AccessD] Unbelievable defense dept. security (does contain Accessrelated info :) This is a short slideshow (7 slides) about database security on the web... http://www.eweek.com/slideshow/0,1206,pg=0 &s=25932&a=214818,00.asp -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jack.stone at solidcounsel.com Wed Sep 12 09:55:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 09:55:52 -0500 Subject: [AccessD] Database Patent References: Message-ID: Thanks Jim, I have heard of that case, but now that you mention it and with my newfound interest, I will take another look at it. BTW, is there a way to just respond to a person that sends an email, as in this case, so I don't have to bother everybody on the list when it is not relevant to everybody? Thanks Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 andy at minstersystems.co.uk Wed Sep 12 10:11:21 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 12 Sep 2007 16:11:21 +0100 Subject: [AccessD] Database Patent Message-ID: <20070912151126.AB4AD87405@smtp.nildram.co.uk> In reply to your question about replying direct, Jack, yes you can. I think the method will differ slightly depending on what you use for email but basically when you open an email up at the top in the From area it will show both AccessD and, probably something like On Behalf Of followed by the individuals email address. You can then copy & paste this into the To of a new email rather than just hitting Reply. Bit bothersome but it works. Having said that you shouldn't be too quick to assume no-one else is interested. I can see from other posts that this thread has been followed by a lot of list members and your response to anyone's posted comment or suggestion may well interest them. OTOH some people have to be positively encouraged to take a thread 'off-list' when it gets too personal (in any sense) or is just not related to the list. Anyway, you're a bright guy and can make that judgement I'm sure. And, as Julie said, thanks for introducing this thread - it's been very different and very interesting to follow. -- 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] Database Patent Date: 12/09/07 15:00 Thanks Jim, I have heard of that case, but now that you mention it and with my newfound interest, I will take another look at it. BTW, is there a way to just respond to a person that sends an email, as in this case, so I don't have to bother everybody on the list when it is not relevant to everybody? Thanks Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- 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 jack.stone at solidcounsel.com Wed Sep 12 10:15:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 10:15:52 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 12 10:19:28 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Sep 2007 08:19:28 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 11, 2007 6:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Jack, It may be instructive for you to review the case history around Timeline's patents and their resulting gunfight with Microsoft. This dispute sounds very similar to your case, i.e. the patent office granting a patent on a database idea that was intrinsically obvious. Timeline worked very hard trying to force people to pay fees on what I thought at the time were fundamental database design concepts. I am not sure how much they ultimately obtained. Very interesting case as I recall: "Timeline's US Patent # 5,802,511; US Patent # 6,023,694; and US Patent # 6,026,392 (herein collectively the '511 patents) have been termed pioneer patents in the design and use of data marts and data warehouses. The '511 patents can apply to stand alone software products or combinations of software products." HTH Jim Hale Houston -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Saturday, September 08, 2007 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent All, Hello, my name is Jack Stone, new to this forum. I am the patent, trademark, and copyright attorney that Rocky referred to that has the client who got the subject patent, and on whose patent my name is listed as the attorney of record. First, I want to express how extremely impressed I am, not only with the vast wealth of knowledge you guys collectively have, but also with how you are all so willing to take the time to share it, for which I am very grateful. As a patent attorney, I am certainly no expert in databases. I just represent a client before the Patent Office with whatever invention he/she has, and do my level best to get a patent for them. And with all the prior art that is apparently out there, I guess I did a good job with this one. So while I may not be an expert in databases, after reading the myriad of email responses that this patent has elicited, I am starting get the distinct impression that just maybe the Patent Office granted a patent that should not have been granted (it would not be the first time). However, in the defense of the Patent Office, when deciding on novelty (and "non-obviousness"), all the "prior art" they generally consider, or have the resources to consider, are other patents at the Patent Office. Hence, what some responses have alluded to as many people not pursuing patents when they could have, and as a result, the Patent Office not being fully aware of all the technology out there when granting a patent is, unfortunately, correct. If an inventor is aware of any prior art, he does have a duty to disclose it to the Patent Office, but my client was evidently not aware of any (he needs to join your forum). Having said all that, if the invention/technology is out there, but is not in the public domain, i.e., is kept as a trade secret, then it may be possible for a second inventor to get a patent on the invention if he/she subsequently independently develops it, and then charge the earlier inventor using it as a trade secret with infringement. Classic example is if someone independently comes up with the formula for Coca Cola, they could get a patent on it and shut down Coca Cola (that is, if they didn't have an "unfortunate" accident and end up face down in a ditch somewhere). But it sounds like the prior technology has not been kept as a trade secret, so my client may be SOL on that count. But the patent may still have some nuisance value, that is, even if it could ultimately be invalidated, it may cost a defendant a million dollars to do that, and so such a defendant may instead settle for $250,000 to be rid of it or even buy it. Who knows? I have seen stranger things happen. In this case, the client defaulted on payment of about $40,000 to our firm, and we obtained a court judgment against him for that amount. The client says he cannot pay us, so maybe we would be trying to squeeze blood from a turnip, which ain't gonna happen. So we were considering obtaining title to the patent, if it has any value. If it did, and any of you could help us distill that value from it, we would be pleased to let you keep whatever we can get for the patent in excess of the $40,000, or maybe work out some other arrangement if you would prefer. BTW, FWIW, my client is actually using the patented idea at http://www.webmusicdb.com, not exactly another YouTube. Re Drew's comment below, he is absolutely correct (except for a "design" which can sometimes be copyrighted), i.e., "You can't copyright an idea. You can copyright code, at any time, or a book (Actually, the text within the book). But an idea or design must be patented." But the problem with a copyright, especially on code, is that it is much more narrow than a patent, and so is generally easy to design around, and so is generally of little value. So we almost always advise clients to seek a patent on a function performed by code, and rarely ever advise someone to seek a copyright on code. Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at scheefandstone.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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 webedb.com Wed Sep 12 11:00:15 2007 From: robert at webedb.com (Robert L. Stewart) Date: Wed, 12 Sep 2007 11:00:15 -0500 Subject: [AccessD] Blank Lines in Email In-Reply-To: References: Message-ID: <200709121605.l8CG5pdK019873@databaseadvisors.com> A bad signature that had all that would be my guess. At 12:00 PM 9/11/2007, you wrote: >Date: Tue, 11 Sep 2007 11:28:16 -0500 >From: "Dan Waters" >Subject: Re: [AccessD] Blank Lines in Email (was Access to VB.Net) >To: "'Access Developers discussion and problem solving'" > >Message-ID: <001a01c7f490$c4ae8c70$0200a8c0 at danwaters> >Content-Type: text/plain; charset="us-ascii" > >Please post when you get this ready! > >And thanks for the note about blank lines - I didn't know. (Blank lines >removed from this email). I'm using Outlook 2003 - any ideas on what could >cause this? From jwcolby at colbyconsulting.com Wed Sep 12 11:12:29 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 12:12:29 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <004d01c7f557$b8974630$6c7aa8c0@M90> LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net From markamatte at hotmail.com Wed Sep 12 11:53:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 12 Sep 2007 16:53:27 +0000 Subject: [AccessD] Crosstab Totals? Message-ID: Hello All, I apparently did this months ago...but just re-discovered it...I'm sure most probably know how to do this...but thought I'd share anyway and ask if anyone can explain why it works? I have a crosstab query for statuses. I needed a count of each status and a total for each user. And I did it in a singly query...I'm just not sure WHY it works...?!?!?!?! Below is the SQL...any thoughts? Thanks, Mark A. Matte *******SQL********* TRANSFORM Count(*) AS Stat SELECT tblData.CCMS_User, Count(*) AS Total FROM tblData WHERE (((tblData.Status)<>"closed")) GROUP BY tblData.CCMS_User PIVOT tblData.Status In ("Pending","New","Follow Up"); *******SQL********* _________________________________________________________________ Share your special parenting moments! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From fuller.artful at gmail.com Wed Sep 12 11:59:58 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 12 Sep 2007 12:59:58 -0400 Subject: [AccessD] GetOpenFilename function Message-ID: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur From max.wanadoo at gmail.com Wed Sep 12 12:12:54 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 12 Sep 2007 18:12:54 +0100 Subject: [AccessD] GetOpenFilename function In-Reply-To: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> References: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> Message-ID: <001201c7f560$28d03df0$8119fea9@LTVM> Arthur, If you download my EATBloat, it has exactly the functions you need to do this as this is one of the requirements also. http://www.peoplelinks.co.uk/msaccess/downloads/ Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 12, 2007 6:00 PM To: Access Developers discussion and problem solving Subject: [AccessD] GetOpenFilename function I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Sep 12 12:16:08 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 12 Sep 2007 10:16:08 -0700 Subject: [AccessD] GetOpenFilename function In-Reply-To: <29f585dd0709120959u57dd0becw39496bec7b54c878@mail.gmail.com> Message-ID: <002e01c7f560$9c7705e0$0301a8c0@HAL9005> Arthur: In the file open dialog box routine that I'm using the default folder is an option which you can pass to the routine. Does your File Open Dialog Box code allow for this option? Unless the folder you want to start in is the same as where the Excel file is stored, you'd have to save the path as a preference - probably in a cell of the spreadsheet. The first time, of course, it would be blank. The second time you could pick up the starting folder from that cell. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 12, 2007 10:00 AM To: Access Developers discussion and problem solving Subject: [AccessD] GetOpenFilename function I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur -- 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.485 / Virus Database: 269.13.15/1002 - Release Date: 9/11/2007 5:46 PM From accessd at shaw.ca Wed Sep 12 12:21:23 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Sep 2007 10:21:23 -0700 Subject: [AccessD] Crosstab query In-Reply-To: <00d601c7f435$b2dde8c0$c957a27a@personalec1122> Message-ID: Hi A.D.Tejal: Thanks for the link. I will review it further and see if there are any revelations and usable techniques. I had the report model completed by either setting a range or padding with dummy fields so it would always line up. The days were in sequence so the report always worked. The client admitted that is what they had asked for but not what they needed. What they have decided on was to only show fields (dates) where there are data hits and have the report extend over a number of months. In addition they want the top header to show the month number and the bottom header row to show the day number. The information can be gathered through a cross tab query but the requirement for 2 top rows, which an Access crosstab can not produce and a series non sequential report columns, there appears to be no eloquent solution... just brute force coding. :-( If anyone has experience with a similar project would be so kind as to share their expertise it would be greatly appreciated. Again thank you A.D.Tejal. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, September 10, 2007 10:32 PM To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Subject: Re: [AccessD] Crosstab query Jim, As the number of days for various one month periods are not identical, left join method using a query filtered for the spell in question, as suggested by Andy, should be preferred. My sample db named MotelBooking demonstrates this approach. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. On the main switchboard, second command button captioned "Booking Status (Style 2) - Dates Across Columns", is pertinent to this case. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, September 10, 2007 23:56 Subject: Re: [AccessD] Crosstab query No I am simply pointing out that if you get in a situation where the number of columns change, you have to manually edit SQL of a query. As long as you document where to go to make the change everything is fine, but it is non-intuitive. The other way you would be modifying (adding / deleting) the fields in a table, perhaps with a make table query that you modify as the number of columns change. Also non-intuitive, but perhaps less so since the table is visible. I do use the IN() clause simply because that was the method I discovered first. John 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: Monday, September 10, 2007 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Hi John: Are you suggesting the Andy's method would be more a more universal solution. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 10, 2007 5:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query This works well for places where the number of columns are fixed such as the days of the week. I use it as well. The issue comes when you need to add a column, you have to manually edit the SQL statement to add a value to the IN() clause. It works but is kludgy. John 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: Monday, September 10, 2007 7:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Crosstab query Thanks Philippe, this looks like an excellent method. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 12 12:16:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 12 Sep 2007 19:16:45 +0200 Subject: [AccessD] GetOpenFilename function Message-ID: Hi Arthur You could try to call ChDrive strStartingPath ChDir strStartingPath before you call GetOpenFilename(). /gustav >>> fuller.artful at gmail.com 12-09-2007 18:59 >>> I'm calling this function from Excel code. My question is, can I somehow specify the starting path in which the user begins browsing? The directory structure is very deep and typically the user has to navigate first to the drive and then about 8 levels in. I'd like to supply the default drive letter and as much of the tree as possible. TIA, Arthur From accessd at shaw.ca Wed Sep 12 12:42:49 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Sep 2007 10:42:49 -0700 Subject: [AccessD] Redesign tools In-Reply-To: <000901c7f45a$1b5185f0$6c7aa8c0@M90> Message-ID: Hi John: Though this is not a complete solution, I have used an open-source product called DB Designer4, from FabForce.net at http://www.fabforce.net/downloads.php It creates a UML graphic schema of a MS Access/ MS SQL database and I have used it to find obvious issues and it can even make some structural changes on the fly. The program has all sorts of features. One will allow you to enter/edit notes about fields and tables as you go. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 11, 2007 2:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Redesign tools I am about to undertake a ground up redesign of a client's application. This application has been in service for perhaps 8 years and, while it functions, it has some serious normalization issues. Does anyone have any suggestions for tools for mapping the BE and storing comments on design issues as I encounter them? I need to be able to document the problems, make comments about why I perceive the issue as a problem, and suggestions on what to do to remove the design problem. I also have to preserve the existing data and migrate it to the new application once complete. I have performed this task many times in the past, but usually I have done so on databases designed by "complete amateurs". This database was actually designed by someone who apparently knew a lot about normalization but just didn't get it quite right, and / or the db had tables added which should not have been implemented as they were. Thus the basic structure will stand, and yet there will be areas where entire tables or areas of the database will be deleted or redesigned to eliminate redundant data etc. I need a tool to help me document what I will be doing and why. In the absence of anything more sophisticated I will be using a simple table of "table name / field / problem description / solution / implemented" kind of thing. I just thought you guys might know of some existing tool 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 From jack.stone at solidcounsel.com Wed Sep 12 13:44:31 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 13:44:31 -0500 Subject: [AccessD] Database Patent References: <004d01c7f557$b8974630$6c7aa8c0@M90> Message-ID: LOL, pretty funny - I am glad I am not old. Do I get any credit for trying to develop a database on the side? Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 12, 2007 11:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Wednesday, September 12, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Jack, Such an interesting post. Thank you so much for you insight and your comments. We have all learned a lot, I am sure! I know that I did. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 12 15:33:55 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Sep 2007 16:33:55 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000901c7f57c$3e22b400$6c7aa8c0@M90> ROTFL. Hmmm... Lawyer. DB developer. If I remember correctly that is TWO loonie points AGAINST 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 Jack Stone Sent: Wednesday, September 12, 2007 2:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent LOL, pretty funny - I am glad I am not old. Do I get any credit for trying to develop a database on the side? Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 12, 2007 11:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. I'm not so sure you can teach an old lawyer anything about being a loonie. ;-) One thing we all need to do though is snip off at least the lower 1/2 of a message once it gets long. John 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: Wednesday, September 12, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Who says you can't teach an old lawyer new tricks?? LOL Welcome to the loonie bin! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Julie, You are very welcome, although I think I am more indebted to you all for the insight and comments you all have shared with me about the patent so I can better decide how to proceed (or not proceed) forward with it. I also appreciate the insights and comments the forum has shared with Rocky who is helping me to develop a database (portions of which I, of course, have applied for patent protection - wouldn't want to disappoint you all :-). Yours, Jack Stone From ssharkins at gmail.com Wed Sep 12 16:35:09 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 12 Sep 2007 17:35:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> Message-ID: <008501c7f584$cdd476d0$4b3a8343@SusanOne> Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! From cfoust at infostatsystems.com Wed Sep 12 16:40:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Sep 2007 14:40:32 -0700 Subject: [AccessD] Database Patent In-Reply-To: <008501c7f584$cdd476d0$4b3a8343@SusanOne> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> <008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Wed Sep 12 21:47:40 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Wed, 12 Sep 2007 21:47:40 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thewaddles at sbcglobal.net Wed Sep 12 21:51:16 2007 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Wed, 12 Sep 2007 19:51:16 -0700 Subject: [AccessD] Output to snp file In-Reply-To: References: Message-ID: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Chester, I recently found this download and have been using it successfully. It has an OCX and a DLL that need to be placed in the same folder as your mdb file. They do not need to be registered, only in the directory. It allows you to programmatically print (and name the pdf) an Access report to a PDF file, even if you do not have Acrobat on the system. http://www.lebans.com/reporttopdf.htm HTH, Kevin Drawing on my fine command of language, I said nothing -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 10, 2007 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Output to snp file I have a report in a database that is set up to print preview and print landscape which it does fine. When I do a send to mail recipient as snapshot the file it creates is in portrait mode. Am I missing a setting somewhere? Thanks. 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 jwcolby at colbyconsulting.com Thu Sep 13 01:15:09 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 02:15:09 -0400 Subject: [AccessD] Database Patent In-Reply-To: Message-ID: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte From clh at christopherhawkins.com Thu Sep 13 02:26:10 2007 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 13 Sep 2007 01:26:10 -0600 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Message-ID: Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- From Gustav at cactus.dk Thu Sep 13 03:55:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 10:55:45 +0200 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Message-ID: Hi Christoffer Not that I've seen this issue but, first, why the requery? Next, how about using a specific recordset: Dim rst As DAO.Recordset Dim bkm As Bookmark With Forms("frmBlah") ' Skip this? ' .Requery Set rst = .RecordsetClone With rst .FindFirst "[RecID] = " & Me![cboFindRec] If .NoMatch = False Then ' Read Bookmark. bkm = .Bookmark End If .Close End With Set rst = Nothing If Not bmk Is Nothing Then ' Apply Bookmark. .Bookmark = bmk End If End With Finally, with 200 fields you are probably only retrieving those you need? /gustav >>> clh at christopherhawkins.com 13-09-2007 09:26 >>> Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- From jack.stone at solidcounsel.com Thu Sep 13 07:06:37 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 07:06:37 -0500 Subject: [AccessD] Database Patent References: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> Message-ID: I was just kidding, like I wonder if I could get a patent on the wheel, like the patent that started this thread and should not have been granted ... My patent actually has to do with time management, scheduling soft dates with hard dates, and that sort of thing, and just uses a database for a platform. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 13 07:20:49 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 13:20:49 +0100 Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search In-Reply-To: References: Message-ID: <004401c7f600$86f981c0$8119fea9@LTVM> Chris, I don't understand why you are requerying the whole form. That is what is probably slowing things down. What I would do is have a combo box with the minimum number of fields for the user (ie, ID + Text Desc of item to be chosed) On the change/exit event (up to you) then this sort of code Dim rst as dao.recordset, strFind as string Set rst = me.recordsetclose Strfind = "ID=" & me!cboName Rst.findfirst strfind If not rst.nomatch then me.bookmark = rst.bookmark Else msgbox ?"afakjhfh" Endif Set rst = nothing HTH Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, September 13, 2007 8:26 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access & SQL 2005 Performance: .Recordset clone search Hey all. I've got a real performance issue here. A client of mine has an Access (front and back end) application. We have migrated to a SQL 2005 back-end. Most things work as well as the Access version did, but there is one thing in particular that has become markedly slower - a jump-to navigation control using the old .RecordsetClone trick. You know the one: you lay a combobox on the form and bindit to a list of IDs, then add this code to the OnClick: Forms("frmBlah").Requery Forms("frmBlah").RecordsetClone.FindFirst "[RecID] = " & Me![cboFindRec] Forms("frmBlah").Bookmark = Forms("frmBlah").RecordsetClone.Bookmark Anyway. The table that this works against is bad news; it has about 200 fields and 5,000 records. It's indexed for the most commonly-searched fields, but still. The jump-to takes about 3 seconds in Access - which, IMO, is too slow to start with - but it now takes a whopping EIGHT SECONDS against SQL 2005. I'm not sure why this is. Out of all the things that have stayed the same performance-wise, why is this the thing that slows down? Has anyone had any similar experiences with migrating to SQL 2005 (or SQL in general)? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 13 07:29:32 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 08:29:32 -0400 Subject: [AccessD] Database Patent In-Reply-To: References: <000e01c7f5cd$70c7c6b0$6c7aa8c0@M90> Message-ID: <000001c7f601$bdbb5700$6c7aa8c0@M90> Cool. We all need to manage our time better. ;-) This forum can help with that, or... It can hinder it immensely. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 8:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I was just kidding, like I wonder if I could get a patent on the wheel, like the patent that started this thread and should not have been granted ... My patent actually has to do with time management, scheduling soft dates with hard dates, and that sort of thing, and just uses a database for a platform. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent LOL. Patents are only useful if someone wants to buy or license it. You may rest assured that if you have applied for a patent on anything that is remotely similar to anything in existence, you will be up to your ears in litigation. Microsoft owns entire rooms full of patents, entire filing cabinets full on database concepts I am sure, as do IBM, Oracle and a ton of other companies. Of course you already know a patent lawyer - oh, you ARE a patent lawyer. Anyway, good luck on 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 Jack Stone Sent: Wednesday, September 12, 2007 10:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 09:06:19 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 10:06:19 -0400 Subject: [AccessD] First in a group Message-ID: <000801c7f60f$42e86fa0$6c7aa8c0@M90> I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Thu Sep 13 09:23:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 16:23:20 +0200 Subject: [AccessD] First in a group Message-ID: Hi John With a subquery. No smart methods for this as far as I know. /gustav >>> jwcolby at colbyconsulting.com 13-09-2007 16:06 >>> I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. John W. Colby Colby Consulting www.ColbyConsulting.com From markamatte at hotmail.com Thu Sep 13 09:28:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 13 Sep 2007 14:28:38 +0000 Subject: [AccessD] OT: Database Patent Message-ID: So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From mmattys at rochester.rr.com Thu Sep 13 09:38:49 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 13 Sep 2007 10:38:49 -0400 Subject: [AccessD] First in a group References: Message-ID: <01cd01c7f613$cdd6b3c0$0202a8c0@Laptop> A subquery for each address in the Qry.SQL ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, September 13, 2007 10:23 AM Subject: Re: [AccessD] First in a group > Hi John > > With a subquery. No smart methods for this as far as I know. > > /gustav > >>>> jwcolby at colbyconsulting.com 13-09-2007 16:06 >>> > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person > doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip > Mary Colby, Some Street, SomeCity, SomeState, SomeZip > John Doe, Some Other Street, Some Other City, Some Other State, Some Other > Zip > Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other > Zip > > I don't care whether I send to Mary or John, I only care that only a > single > piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 > names. > > I do have an address hash that generates a hash string for just the > address > part. > > So it seems like something like a group by address hash and then a top1 is > the right direction, but of course it has to be the TOP 1 in each GROUP. > > I could (and might have to to get this out) write a little VBA routine to > do > this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 jimdettman at verizon.net Thu Sep 13 09:50:29 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 13 Sep 2007 10:50:29 -0400 Subject: [AccessD] First in a group In-Reply-To: <000801c7f60f$42e86fa0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: <001301c7f615$6e74e850$8abea8c0@XPS> John, Do a group by on the combined Street, City, State, and Zip. Then select FIRST or LAST for all other fields. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 cfoust at infostatsystems.com Thu Sep 13 10:04:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 08:04:42 -0700 Subject: [AccessD] Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 10:07:21 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 08:07:21 -0700 Subject: [AccessD] First in a group In-Reply-To: <000801c7f60f$42e86fa0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 Gustav at cactus.dk Thu Sep 13 10:28:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Sep 2007 17:28:37 +0200 Subject: [AccessD] First in a group Message-ID: Hi Jim and John This sounds like a good idea. /gustav >>> jimdettman at verizon.net 13-09-2007 16:50 >>> John, Do a group by on the combined Street, City, State, and Zip. Then select FIRST or LAST for all other fields. Jim. From jwcolby at colbyconsulting.com Thu Sep 13 11:11:25 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 12:11:25 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> Message-ID: <001101c7f620$bcd2dab0$6c7aa8c0@M90> Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 delam at zyterra.com Thu Sep 13 11:37:40 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 11:37:40 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: <200709131637.l8DGbkp4002441@databaseadvisors.com> I have a table in Access linked from MS SQL. Access has determined that the field length of a text field is 100 characters. This works 98% of the time, but a few fields have values that exceed 100 characters. Does anyone know how to get Access to give me a longer field length? Debbie From Jim.Hale at FleetPride.com Thu Sep 13 11:45:49 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 13 Sep 2007 11:45:49 -0500 Subject: [AccessD] First in a group In-Reply-To: <001101c7f620$bcd2dab0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 delam at zyterra.com Thu Sep 13 11:55:44 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 11:55:44 -0500 Subject: [AccessD] First in a group In-Reply-To: Message-ID: <200709131655.l8DGto1J014351@databaseadvisors.com> Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 13, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 max.wanadoo at gmail.com Thu Sep 13 12:10:57 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 18:10:57 +0100 Subject: [AccessD] OT: Database Patent In-Reply-To: References: Message-ID: <003301c7f629$0e23fcc0$8119fea9@LTVM> Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 From prosoft6 at hotmail.com Thu Sep 13 12:45:03 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Thu, 13 Sep 2007 13:45:03 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net From jwcolby at colbyconsulting.com Thu Sep 13 12:45:33 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 13:45:33 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> Message-ID: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> The problem here is that with mailing lists, particularly where you have 50 million names in the list, you haven't a clue who is who, just that they share the same last name and live at the same location. In the case I am working on now, they want males, making BIG bucks, who have a boat. I am seeing three males (all different names) all apparently claiming the boat, and all claiming to make big bucks. The client only wants to send one piece of mail to the address. Who do YOU choose? As you can see, there are often criteria (only target the males) etc. We do have age fields, sometimes they are filled in, sometimes the client wants to target an age group. In those cases the age group narrows who gets the mail. Not so in this specific case. In a previous mailing, they wanted women who owned a cat, in specific income groups. Then they wanted Women, who owned a dog, in specific income groups. Neither could be in the other mailing (dog owners could not get the cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. But yea, in general, "we don't care who gets the mail, just get one piece to that address". John 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: Thursday, September 13, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 jwcolby at colbyconsulting.com Thu Sep 13 12:46:22 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 13:46:22 -0400 Subject: [AccessD] First in a group In-Reply-To: <200709131655.l8DGto1J014351@databaseadvisors.com> References: <200709131655.l8DGto1J014351@databaseadvisors.com> Message-ID: <001b01c7f62e$00eb5620$6c7aa8c0@M90> Yea, but there are 50 million names / addresses and no place to determine who is the primary. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 13, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Thu Sep 13 12:58:17 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Thu, 13 Sep 2007 13:58:17 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_patten at embarqmail.com Thu Sep 13 13:05:15 2007 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 13 Sep 2007 11:05:15 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> Message-ID: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 13 13:12:11 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:12:11 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 ssharkins at gmail.com Thu Sep 13 13:21:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 13 Sep 2007 14:21:48 -0400 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90> <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <00aa01c7f632$f377f070$4b3a8343@SusanOne> Boat Owner Address City, State, ZIP Works for me. ;) Susan H. Who do YOU choose? From ssharkins at gmail.com Thu Sep 13 13:21:48 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 13 Sep 2007 14:21:48 -0400 Subject: [AccessD] First in a group In-Reply-To: <200709131655.l8DGto1J014351@databaseadvisors.com> References: <200709131655.l8DGto1J014351@databaseadvisors.com> Message-ID: <00ab01c7f632$f4c81720$4b3a8343@SusanOne> Good excuse for a one to one. Susan H. Maybe you could set a default contact person, and query only for the default contact when you want one mailing per address to go out. The only issue I see is that each address would require one default contact. From jack.stone at solidcounsel.com Thu Sep 13 13:24:57 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:24:57 -0500 Subject: [AccessD] OT: Database Patent References: Message-ID: Interesting. Not sure exactly what a Perpetual Motion Simulator is, but I will say that the US Patent Office specifically excludes Perpetual Motion Machines from patentable material for the very reason you give. But if a Perpetual Motion Simulator can dodge that bullet, and assuming it has some real utility, then I would be glad to work on a patent for that. It might break the monotony of all the telecon patents I work on. My contact info is below if you want to discuss it further. Thanks! Regards, Jack Stone Scheef & Stone, L.L.P. 5956 Sherry Lane, Suite 1400 Dallas, Texas 75225 Direct 214.706.4207 Main 214.706.4200 Fax 214.706.4242 jack.stone at solidcounsel.com www.solidcounsel.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 9:29 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From jack.stone at solidcounsel.com Thu Sep 13 13:28:52 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:28:52 -0500 Subject: [AccessD] Database Patent References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: Hmmm, not sure how to take that, but I will assume positively :-) Thx Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 13 13:32:53 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:32:53 -0700 Subject: [AccessD] OT: Database Patent In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: ;-> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hmmm, not sure how to take that, but I will assume positively :-) Thx Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent I can see you're going to fit right in!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Wednesday, September 12, 2007 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent Hah! You all just wait until I get a patent on an electronic computerized database (ever heard of one of those?), and see who gets the last laugh. Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 12, 2007 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent ROTFL In that case, how fortunate that we have a patent attorney in the asylum! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 12, 2007 2:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent Excuse me, but I have the patent on that... ;) Susan H. Welcome to the loonie bin! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Thu Sep 13 13:41:57 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Thu, 13 Sep 2007 13:41:57 -0500 Subject: [AccessD] OT: Database Patent References: <003301c7f629$0e23fcc0$8119fea9@LTVM> Message-ID: So does that mean when you work, it is really just simulated motion? LOL Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 13, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Database Patent Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextli nk2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 13 13:46:35 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 13 Sep 2007 13:46:35 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709131637.l8DGbkp4002441@databaseadvisors.com> References: <001101c7f620$bcd2dab0$6c7aa8c0@M90> <200709131637.l8DGbkp4002441@databaseadvisors.com> Message-ID: Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined that the > field length of a text field is 100 characters. This works 98% of the time, > but a few fields have values that exceed 100 characters. Does anyone know > how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 max.wanadoo at gmail.com Thu Sep 13 13:50:26 2007 From: max.wanadoo at gmail.com (Gmail) Date: Thu, 13 Sep 2007 19:50:26 +0100 Subject: [AccessD] OT: Database Patent In-Reply-To: References: <003301c7f629$0e23fcc0$8119fea9@LTVM> Message-ID: <003701c7f636$f45c6030$8119fea9@LTVM> Oops Sorry, I though it said "Stimulated motion" Oh second thoughts, I won't have to patent myself because nobody can make a copy (unless you discount Dolly the sheep that is) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Thursday, September 13, 2007 7:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Database Patent So does that mean when you work, it is really just simulated motion? LOL Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Thursday, September 13, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Database Patent Too late Matt, My mum and dad already produce one - me! Can I patent myself? I am unique, or so I am told. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, September 13, 2007 3:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Database Patent So Jack, If the device I'm building...a Perpetual Motion Simulator(has to be Simulator because by definition perpetual motion is impossible)...actually works...would you be the guy I need to patent this thing? Thanks, Mark A. Matte P.S...Only problem is that if it works...either the government or Oil Industry might have us...eliminated...lol...still interested? >From: "Jack Stone" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Database Patent >Date: Thu, 13 Sep 2007 07:06:37 -0500 > >I was just kidding, like I wonder if I could get a patent on the wheel, >like the patent that started this thread and should not have been >granted ... > >My patent actually has to do with time management, scheduling soft dates >with hard dates, and that sort of thing, and just uses a database for a >platform. > >Jack > _________________________________________________________________ Test your celebrity IQ. Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextli nk2 No virus found in this incoming message. Checked by AVG. Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007 17:22 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Drawbridge.Jack at ic.gc.ca Thu Sep 13 13:49:17 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: SBMS) Date: Thu, 13 Sep 2007 14:49:17 -0400 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B0A18B21F@MSG-MB3.icent.ic.gc.ca> John, "we don't care who gets the mail, just get one piece to that address" So how about a query where you Select Distinct on address fields only (don't include any Person name info), then send a letter to Dear Occupant, or Boat Owner or Cat Lover.... as the case may be. We've all received Dear Occupant letters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 1:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group The problem here is that with mailing lists, particularly where you have 50 million names in the list, you haven't a clue who is who, just that they share the same last name and live at the same location. In the case I am working on now, they want males, making BIG bucks, who have a boat. I am seeing three males (all different names) all apparently claiming the boat, and all claiming to make big bucks. The client only wants to send one piece of mail to the address. Who do YOU choose? As you can see, there are often criteria (only target the males) etc. We do have age fields, sometimes they are filled in, sometimes the client wants to target an age group. In those cases the age group narrows who gets the mail. Not so in this specific case. In a previous mailing, they wanted women who owned a cat, in specific income groups. Then they wanted Women, who owned a dog, in specific income groups. Neither could be in the other mailing (dog owners could not get the cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. But yea, in general, "we don't care who gets the mail, just get one piece to that address". John 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: Thursday, September 13, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group So if you have parent/children or parent/grandparents living at the same address it is pot luck as to who gets the mailing? The child or grandparent or inlaw for that matter might get a letter intended for the parent? That could be interesting! :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Thanks all who replied. I added an autonumber ID to the table. 1) Extracted all matching records to a temp table. 2) Added an autonumber ID so I could uniquely point to any given record. 3) Created qFirstID where I Grouped By the address hash and pulled the First(ID) That gave me the correct subset of records where there is only one ID for each address. 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID 5) Selected all the name / address fields and viewed them to ensure no dupes. NO DUPES. 6) Used that to export the data Again thanks for the suggestions. I really have to write up a document of how I do this stuff!!! John 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, September 13, 2007 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group John, Group on the address and use First([person]) to get the nanme. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 7:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First in a group I have a set of address records where there are several people at the address. I need to send only one piece of mail to that address, the person doesn't matter. John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some Other City, Some Other State, Some Other Zip I don't care whether I send to Mary or John, I only care that only a single piece of mail goes to each address. Select distinct of course acts on the entire row and so returns all 4 names. I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. I could (and might have to to get this out) write a little VBA routine to do this but I would rather use a SQL solution. So how is this done in SQL. 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 *********************************************************************** 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Sep 13 13:51:30 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 13 Sep 2007 13:51:30 -0500 Subject: [AccessD] First in a group In-Reply-To: <001a01c7f62d$e341a5c0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90> <001101c7f620$bcd2dab0$6c7aa8c0@M90> <001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you have 50 > million names in the list, you haven't a clue who is who, just that they > share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, who have > a boat. I am seeing three males (all different names) all apparently > claiming the boat, and all claiming to make big bucks. The client only > wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. We do > have age fields, sometimes they are filled in, sometimes the client wants to > target an age group. In those cases the age group narrows who gets the > mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific income > groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the cat > mailer, cat owners could not get the dog mailer). What a PITA THAT was. > > But yea, in general, "we don't care who gets the mail, just get one piece to > that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the same > address it is pot luck as to who gets the mailing? The child or grandparent > or inlaw for that matter might get a letter intended for the parent? That > could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID for > each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a document of > how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the person > doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some Other > City, Some Other State, Some Other Zip Mary Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a single > piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the address > part. > > So it seems like something like a group by address hash and then a top1 is > the right direction, but of course it has to be the TOP 1 in each GROUP. > > > I could (and might have to to get this out) write a little VBA routine to do > this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > *********************************************************************** > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Thu Sep 13 13:52:33 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 11:52:33 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: References: <001101c7f620$bcd2dab0$6c7aa8c0@M90><200709131637.l8DGbkp4002441@databaseadvisors.com> Message-ID: I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined > that the field length of a text field is 100 characters. This works > 98% of the time, but a few fields have values that exceed 100 > characters. Does anyone know how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 jwcolby at colbyconsulting.com Thu Sep 13 14:05:03 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 15:05:03 -0400 Subject: [AccessD] First in a group In-Reply-To: References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90> Message-ID: <002601c7f638$fdf371e0$6c7aa8c0@M90> LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 delam at zyterra.com Thu Sep 13 14:05:41 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 14:05:41 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709131905.l8DJ5kfj014113@databaseadvisors.com> I have refreshed the link and re-created it altogether. Every interation has the 100 character field length. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined that the > field length of a text field is 100 characters. This works 98% of the time, > but a few fields have values that exceed 100 characters. Does anyone know > how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 delam at zyterra.com Thu Sep 13 14:23:16 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 14:23:16 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709131923.l8DJNQkx022617@databaseadvisors.com> The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, September 13, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size Refresh the Link? GK On 9/13/07, Debbie Elam wrote: > I have a table in Access linked from MS SQL. Access has determined > that the field length of a text field is 100 characters. This works > 98% of the time, but a few fields have values that exceed 100 > characters. Does anyone know how to get Access to give me a longer field length? > > Debbie > > > > -- > 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 cfoust at infostatsystems.com Thu Sep 13 15:49:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 13:49:25 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709131923.l8DJNQkx022617@databaseadvisors.com> References: <200709131923.l8DJNQkx022617@databaseadvisors.com> Message-ID: It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust From delam at zyterra.com Thu Sep 13 16:54:04 2007 From: delam at zyterra.com (Debbie Elam) Date: Thu, 13 Sep 2007 16:54:04 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: Message-ID: <200709132154.l8DLs8ud028158@databaseadvisors.com> Access 2000 and SQL 2000 also. I do not think it is the program manufacturer, since I tried linking the view independent of the code that used for re-linking. That was using standard Access tools. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 3:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Sep 13 16:57:49 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Sep 2007 17:57:49 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> Another alternative is to forget about autonumber PKs and instead use a system of offsets, one per tablet. It would something like this: - each tablet is assigned an offset of, say, 100,000 (or a million if you plan on lots of inspections). - initial record on each tablet will be Offset + 1 - each subsequent record will be Max(pk) + 1 The result will be PKs from 100,001 to 199,999 from tablet pc #1, 200,001 to 299,999 from table pc #2, etc. Most of us use a table called sysCompany or somesuch which always contains one record, that we use for system parameters. Add a column called Offset to that table, or just create a new table called Offset and store the offset value on each tablet's copy. Oracle, incidentally, uses a scheme like this, called Sequences. Back in the old days of MS-SQL they did something similar for replication schemes. Now, of course, they use GUIDs for this purpose. Since this was sent to AccessD, I'd guess that GUIDs are not going to work for you. You can create GUIDs in Access, but using them is much more cumbersome than in SQL. hth, Arthur On 9/13/07, Charlotte Foust wrote: > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 cfoust at infostatsystems.com Thu Sep 13 17:25:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 13 Sep 2007 15:25:09 -0700 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709132154.l8DLs8ud028158@databaseadvisors.com> References: <200709132154.l8DLs8ud028158@databaseadvisors.com> Message-ID: Good heavens! Who remembers the uglies that lurked in Access 2000? It was more fun than 97 but it had more than its fair share of odd crotchets. Are all the service packs applied? Maybe someone else who's still using A2k can offer suggestions. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 2:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size Access 2000 and SQL 2000 also. I do not think it is the program manufacturer, since I tried linking the view independent of the code that used for re-linking. That was using standard Access tools. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 3:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size It isn't a limitation in Access but it may be some kind of limitation in the product you're using. I've never run into that. What version of SQL Server and Access are you using? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam Sent: Thursday, September 13, 2007 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table field Size The link is actually to a view in SQL. The view returns more than 100 characters if they are present. There is code to re-link the tables/views so that each user can log on as themselves. Using the code, or link external tables, the number of characters is the same. This is a commercial product to create reports that I have modified. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table field Size I'm not sure I understand. A linked table should reflect the field size of the SQL Server table, not an arbitrary Access limit. Can you explain in a bit more detail what's going on, what kind of a linked table you have, etc. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 13 21:29:49 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Fri, 14 Sep 2007 12:29:49 +1000 (EST) Subject: [AccessD] First in a group Message-ID: <20070914122949.DCY31371@dommail.onthenet.com.au> John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From pcs at azizaz.com Thu Sep 13 21:34:06 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Fri, 14 Sep 2007 12:34:06 +1000 (EST) Subject: [AccessD] Linked Table field Size Message-ID: <20070914123406.DCY31864@dommail.onthenet.com.au> If you can access and change the table in the SQL Db change the field to a nvarchar(255) ... failing this you have to work with the existing field length... borge ---- Original message ---- >Date: Thu, 13 Sep 2007 11:37:40 -0500 >From: "Debbie Elam" >Subject: [AccessD] Linked Table field Size >To: "'Access Developers discussion and problem solving'" > >I have a table in Access linked from MS SQL. Access has determined that the >field length of a text field is 100 characters. This works 98% of the time, >but a few fields have values that exceed 100 characters. Does anyone know >how to get Access to give me a longer field length? > >Debbie > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Sep 13 22:58:00 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Sep 2007 23:58:00 -0400 Subject: [AccessD] First in a group In-Reply-To: <20070914122949.DCY31371@dommail.onthenet.com.au> References: <20070914122949.DCY31371@dommail.onthenet.com.au> Message-ID: <003501c7f683$71e09200$6c7aa8c0@M90> Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Sep 13 23:54:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 13 Sep 2007 21:54:55 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: Message-ID: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Julie: Why not use GUID values as temp values. Their creation and nature almost guarantees self-contained uniqueness. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From anitatiedemann at gmail.com Fri Sep 14 00:24:10 2007 From: anitatiedemann at gmail.com (Anita Smith) Date: Fri, 14 Sep 2007 15:24:10 +1000 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> References: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Message-ID: Julie, I am assuming that you are using SQL Server. If you set the field as follows: * Identity Yes - (NOT FOR REPLICATION ) * Increment (by1) Then SQL Server will automatically assign a new unique number for every record entered. SQL server keeps its own list of ID's and each subscriber has its own range of IDs. It is critical that you set the range sizes when you publish the database as that is what SQL server uses to assign the ranges. As you can imagne, you won't get a neat list of ID's in sequential order, but you will eventually get to know the ranges and you will be able to establish who created the record just by looking at ID. Anita On 9/14/07, Jim Lawrence wrote: > > Julie: Why not use GUID values as temp values. Their creation and nature > almost guarantees self-contained uniqueness. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working great. > > However, when I wrote the software, they were only using one tablet pc and > replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection process, > and then onto the Work Order that is created when there are repairs > needed. > > If I have multiple inspectors with tablet pc's, I can't create the unique > inspection id (automatically increments by one) when the inspection is > created on the tablet pc, because I won't know which id each of the tablet > pc's are using until the users synch with the copy on the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the > record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 paul.hartland at fsmail.net Fri Sep 14 06:51:54 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Sep 2007 13:51:54 +0200 (CEST) Subject: [AccessD] Recordsets - See If Two Match Message-ID: <27771441.30801189770714927.JavaMail.www@wwinf3207> To all, Is there a quick (or what is the best way) to see if two recordsets are identical ? Many thanks for your help in advance. Paul Hartland paul.hartland at fsmail.net 07730 523179 From pharold at proftesting.com Fri Sep 14 08:56:29 2007 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 14 Sep 2007 09:56:29 -0400 Subject: [AccessD] First in a group In-Reply-To: <002601c7f638$fdf371e0$6c7aa8c0@M90> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90> <002601c7f638$fdf371e0$6c7aa8c0@M90> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> In direct mail the first job is to get the mailing piece opened. Having a name means it's less likely to be deposited in the round file without even being opened. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 3:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA > THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in > each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 max.wanadoo at gmail.com Fri Sep 14 09:20:07 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 15:20:07 +0100 Subject: [AccessD] First in a group In-Reply-To: <003501c7f683$71e09200$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> Message-ID: <006d01c7f6da$5ad5e860$8119fea9@LTVM> Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 14 09:23:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Sep 2007 10:23:01 -0400 Subject: [AccessD] First in a group In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> References: <000801c7f60f$42e86fa0$6c7aa8c0@M90><001101c7f620$bcd2dab0$6c7aa8c0@M90><001a01c7f62d$e341a5c0$6c7aa8c0@M90><002601c7f638$fdf371e0$6c7aa8c0@M90> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50D921@EXCHANGE.ptiorl.local> Message-ID: <003c01c7f6da$c2370e80$6c7aa8c0@M90> Yep. And the reality is that we don't know who is who, or what their relationship is to anyone else in the house. I have first, last and address. Beyond that not a clue about the relationships. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Friday, September 14, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group In direct mail the first job is to get the mailing piece opened. Having a name means it's less likely to be deposited in the round file without even being opened. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 13, 2007 3:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group LOL. Sounds like a plan. Unfortunately the advertisers prefer names. And I just do what I am asked. John 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: Thursday, September 13, 2007 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] First in a group How about if you have multiple names at and address then addresing to "Boat Owner" rather than a name. Or maybe "Rich Guy Boat Owner" ;-) GK On 9/13/07, jwcolby wrote: > The problem here is that with mailing lists, particularly where you > have 50 million names in the list, you haven't a clue who is who, just > that they share the same last name and live at the same location. > > In the case I am working on now, they want males, making BIG bucks, > who have a boat. I am seeing three males (all different names) all > apparently claiming the boat, and all claiming to make big bucks. The > client only wants to send one piece of mail to the address. > > Who do YOU choose? > > As you can see, there are often criteria (only target the males) etc. > We do have age fields, sometimes they are filled in, sometimes the > client wants to target an age group. In those cases the age group > narrows who gets the mail. Not so in this specific case. > > In a previous mailing, they wanted women who owned a cat, in specific > income groups. Then they wanted Women, who owned a dog, in specific income groups. > Neither could be in the other mailing (dog owners could not get the > cat mailer, cat owners could not get the dog mailer). What a PITA > THAT was. > > But yea, in general, "we don't care who gets the mail, just get one > piece to that address". > > > John 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: Thursday, September 13, 2007 12:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > > So if you have parent/children or parent/grandparents living at the > same address it is pot luck as to who gets the mailing? The child or > grandparent or inlaw for that matter might get a letter intended for > the parent? That could be interesting! :-) Jim Hale > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] First in a group > > Thanks all who replied. > > I added an autonumber ID to the table. > > 1) Extracted all matching records to a temp table. > 2) Added an autonumber ID so I could uniquely point to any given record. > 3) Created qFirstID where I Grouped By the address hash and pulled the > First(ID) > > That gave me the correct subset of records where there is only one ID > for each address. > > 4) Joined that ID from qFirstID with tblOrder on the ID in > qOrderFirstID > 5) Selected all the name / address fields and viewed them to ensure no > dupes. NO DUPES. > > 6) Used that to export the data > > Again thanks for the suggestions. I really have to write up a > document of how I do this stuff!!! > > John 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, September 13, 2007 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] First in a group > > John, > > Group on the address and use First([person]) to get the nanme. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, September 13, 2007 7:06 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] First in a group > > I have a set of address records where there are several people at the > address. I need to send only one piece of mail to that address, the > person doesn't matter. > > John Colby, Some Street, SomeCity, SomeState, SomeZip Mary Colby, Some > Street, SomeCity, SomeState, SomeZip John Doe, Some Other Street, Some > Other City, Some Other State, Some Other Zip Mary Doe, Some Other > Street, Some Other City, Some Other State, Some Other Zip > > I don't care whether I send to Mary or John, I only care that only a > single piece of mail goes to each address. > > Select distinct of course acts on the entire row and so returns all 4 names. > > I do have an address hash that generates a hash string for just the > address part. > > So it seems like something like a group by address hash and then a > top1 is the right direction, but of course it has to be the TOP 1 in > each GROUP. > > > I could (and might have to to get this out) write a little VBA routine > to do this but I would rather use a SQL solution. > > So how is this done in SQL. > > 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 > > ********************************************************************** > * 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 > > -- > 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 garykjos at gmail.com Fri Sep 14 09:37:36 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 14 Sep 2007 09:37:36 -0500 Subject: [AccessD] Linked Table field Size In-Reply-To: <200709132154.l8DLs8ud028158@databaseadvisors.com> References: <200709132154.l8DLs8ud028158@databaseadvisors.com> Message-ID: Can you access the tables directly rather than through the view? I would be curious if it's related to the view verses physical table. GK On 9/13/07, Debbie Elam wrote: > Access 2000 and SQL 2000 also. I do not think it is the program > manufacturer, since I tried linking the view independent of the code that > used for re-linking. That was using standard Access tools. > > Debbie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 3:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table field Size > > It isn't a limitation in Access but it may be some kind of limitation in > the product you're using. I've never run into that. What version of > SQL Server and Access are you using? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Elam > Sent: Thursday, September 13, 2007 12:23 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table field Size > > The link is actually to a view in SQL. The view returns more than 100 > characters if they are present. There is code to re-link the > tables/views so that each user can log on as themselves. Using the > code, or link external tables, the number of characters is the same. > > This is a commercial product to create reports that I have modified. > > Debbie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Thursday, September 13, 2007 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table field Size > > I'm not sure I understand. A linked table should reflect the field size > of the SQL Server table, not an arbitrary Access limit. Can you explain > in a bit more detail what's going on, what kind of a linked table you > have, etc. > > Charlotte Foust > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 prosoft6 at hotmail.com Fri Sep 14 09:40:30 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:40:30 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: I'm not an idiot Charlotte. Of course, I am not working directly with the design master. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 09:42:07 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:42:07 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <29f585dd0709131457t45bafffy2e6b5e26232b8c13@mail.gmail.com> Message-ID: Thanks Arthur. I'll look into that. This is going to be an application that I sell and will need to come up with an automated system. I won't know how many tablets are being used, and will not have any control over the software, albeit support, after it leaves my office. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 13, 2007 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Another alternative is to forget about autonumber PKs and instead use a system of offsets, one per tablet. It would something like this: - each tablet is assigned an offset of, say, 100,000 (or a million if you plan on lots of inspections). - initial record on each tablet will be Offset + 1 - each subsequent record will be Max(pk) + 1 The result will be PKs from 100,001 to 199,999 from tablet pc #1, 200,001 to 299,999 from table pc #2, etc. Most of us use a table called sysCompany or somesuch which always contains one record, that we use for system parameters. Add a column called Offset to that table, or just create a new table called Offset and store the offset value on each tablet's copy. Oracle, incidentally, uses a scheme like this, called Sequences. Back in the old days of MS-SQL they did something similar for replication schemes. Now, of course, they use GUIDs for this purpose. Since this was sent to AccessD, I'd guess that GUIDs are not going to work for you. You can create GUIDs in Access, but using them is much more cumbersome than in SQL. hth, Arthur On 9/13/07, Charlotte Foust wrote: > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 jimdettman at verizon.net Fri Sep 14 09:41:31 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 14 Sep 2007 10:41:31 -0400 Subject: [AccessD] First in a group In-Reply-To: <006d01c7f6da$5ad5e860$8119fea9@LTVM> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> <006d01c7f6da$5ad5e860$8119fea9@LTVM> Message-ID: <006b01c7f6dd$581d0290$8abea8c0@XPS> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri Sep 14 09:44:24 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 10:44:24 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <6B69BAF7780B49EB8962BADE7012D2F9@creativesystemdesigns.com> Message-ID: Hi Anita, Are you talking about on the tablet pc, or on the server? How do I replicate the data on the tablet pc to the copy on the server after the inspections are complete, using this method? I'm not sure that I understand what you are getting at? Could you explain further? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Anita Smith Sent: Friday, September 14, 2007 1:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Julie, I am assuming that you are using SQL Server. If you set the field as follows: * Identity Yes - (NOT FOR REPLICATION ) * Increment (by1) Then SQL Server will automatically assign a new unique number for every record entered. SQL server keeps its own list of ID's and each subscriber has its own range of IDs. It is critical that you set the range sizes when you publish the database as that is what SQL server uses to assign the ranges. As you can imagne, you won't get a neat list of ID's in sequential order, but you will eventually get to know the ranges and you will be able to establish who created the record just by looking at ID. Anita On 9/14/07, Jim Lawrence wrote: > > Julie: Why not use GUID values as temp values. Their creation and nature > almost guarantees self-contained uniqueness. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working great. > > However, when I wrote the software, they were only using one tablet pc and > replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection process, > and then onto the Work Order that is created when there are repairs > needed. > > If I have multiple inspectors with tablet pc's, I can't create the unique > inspection id (automatically increments by one) when the inspection is > created on the tablet pc, because I won't know which id each of the tablet > pc's are using until the users synch with the copy on the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the > record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 10:01:08 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 11:01:08 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 prosoft6 at hotmail.com Fri Sep 14 10:01:52 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Fri, 14 Sep 2007 11:01:52 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: What type of pda is it? I was thinking of using a pda, but the screen size may be too small. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 14 10:04:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:04:11 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From Gustav at cactus.dk Fri Sep 14 10:13:21 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:13:21 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: OK, that's what I feared: --- Your mail to 'AccessD' with the subject Re: [AccessD] MD5 Hash (was: First in a group) Is being held until the list moderator can review it for approval. The reason it is being held: Message body is too big: 30144 bytes with a limit of 20 KB Either the message will get posted to the list, or you will receive notification of the moderator's decision. .. --- From mmattys at rochester.rr.com Fri Sep 14 10:15:36 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 14 Sep 2007 11:15:36 -0400 Subject: [AccessD] Multiple Users Question - Replicated Database References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles> <003201c7f62f$a9dc4770$9402a8c0@hpnotebook> Message-ID: <011801c7f6e2$1b6febf0$0202a8c0@Laptop> I volunteer to be the idiot. Why doesn't anyone ever work with the design master? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 10:40 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database > I'm not an idiot Charlotte. Of course, I am not working directly with the > design master. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 2:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.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 Gustav at cactus.dk Fri Sep 14 10:09:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 17:09:52 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Here's the class module. Save as a text file clsMD5.txt and read it in with: LoadFromText acModule, "clsMD5", "clsMD5.txt" /gustav Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Option Compare Database Option Explicit '******************************************************************************* ' MODULE: CMD5 ' FILENAME: C:\My Code\vb\md5\CMD5.cls ' AUTHOR: Phil Fresle ' CREATED: 16-Feb-2001 ' COPYRIGHT: Copyright 2001 Frez Systems Limited. All Rights Reserved. ' ' DESCRIPTION: ' Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm, ' as set out in the memo RFC1321. ' ' This class is used to generate an MD5 'digest' or 'signature' of a string. The ' MD5 algorithm is one of the industry standard methods for generating digital ' signatures. It is generically known as a digest, digital signature, one-way ' encryption, hash or checksum algorithm. A common use for MD5 is for password ' encryption as it is one-way in nature, that does not mean that your passwords ' are not free from a dictionary attack. If you are using the ' routine for passwords, you can make it a little more secure by concatenating ' some known random characters to the password before you generate the signature ' and on subsequent tests, so even if a hacker knows you are using MD5 for ' your passwords, the random characters will make it harder to dictionary attack. ' ' *** CAUTION *** ' See the comment attached to the MD5 method below regarding use on systems ' with different character sets. ' ' This is 'free' software with the following restrictions: ' ' You may not redistribute this code as a 'sample' or 'demo'. However, you are free ' to use the source code in your own code, but you may not claim that you created ' the sample code. It is expressly forbidden to sell or profit from this source code ' other than by the knowledge gained or the enhanced value added by your own code. ' ' Use of this software is also done so at your own risk. The code is supplied as ' is without warranty or guarantee of any kind. ' ' Should you wish to commission some derivative work based on this code provided ' here, or any consultancy work, please do not hesitate to contact us. ' ' Web Site: http://www.frez.co.uk ' E-mail: sales at frez.co.uk ' ' MODIFICATION HISTORY: ' 1.0 16-Feb-2001 ' Phil Fresle ' Initial Version '******************************************************************************* Private Const BITS_TO_A_BYTE As Long = 8 Private Const BYTES_TO_A_WORD As Long = 4 Private Const BITS_TO_A_WORD As Long = BYTES_TO_A_WORD * BITS_TO_A_BYTE Private m_lOnBits(0 To 30) As Long Private m_l2Power(0 To 30) As Long '******************************************************************************* ' Class_Initialize (SUB) ' ' DESCRIPTION: ' We will usually get quicker results by preparing arrays of bit patterns and ' powers of 2 ahead of time instead of calculating them every time, unless of ' course the methods are only ever getting called once per instantiation of the ' class. '******************************************************************************* Private Sub Class_Initialize() ' Could have done this with a loop calculating each value, but simply ' assigning the values is quicker - BITS SET FROM RIGHT m_lOnBits(0) = 1 ' 00000000000000000000000000000001 m_lOnBits(1) = 3 ' 00000000000000000000000000000011 m_lOnBits(2) = 7 ' 00000000000000000000000000000111 m_lOnBits(3) = 15 ' 00000000000000000000000000001111 m_lOnBits(4) = 31 ' 00000000000000000000000000011111 m_lOnBits(5) = 63 ' 00000000000000000000000000111111 m_lOnBits(6) = 127 ' 00000000000000000000000001111111 m_lOnBits(7) = 255 ' 00000000000000000000000011111111 m_lOnBits(8) = 511 ' 00000000000000000000000111111111 m_lOnBits(9) = 1023 ' 00000000000000000000001111111111 m_lOnBits(10) = 2047 ' 00000000000000000000011111111111 m_lOnBits(11) = 4095 ' 00000000000000000000111111111111 m_lOnBits(12) = 8191 ' 00000000000000000001111111111111 m_lOnBits(13) = 16383 ' 00000000000000000011111111111111 m_lOnBits(14) = 32767 ' 00000000000000000111111111111111 m_lOnBits(15) = 65535 ' 00000000000000001111111111111111 m_lOnBits(16) = 131071 ' 00000000000000011111111111111111 m_lOnBits(17) = 262143 ' 00000000000000111111111111111111 m_lOnBits(18) = 524287 ' 00000000000001111111111111111111 m_lOnBits(19) = 1048575 ' 00000000000011111111111111111111 m_lOnBits(20) = 2097151 ' 00000000000111111111111111111111 m_lOnBits(21) = 4194303 ' 00000000001111111111111111111111 m_lOnBits(22) = 8388607 ' 00000000011111111111111111111111 m_lOnBits(23) = 16777215 ' 00000000111111111111111111111111 m_lOnBits(24) = 33554431 ' 00000001111111111111111111111111 m_lOnBits(25) = 67108863 ' 00000011111111111111111111111111 m_lOnBits(26) = 134217727 ' 00000111111111111111111111111111 m_lOnBits(27) = 268435455 ' 00001111111111111111111111111111 m_lOnBits(28) = 536870911 ' 00011111111111111111111111111111 m_lOnBits(29) = 1073741823 ' 00111111111111111111111111111111 m_lOnBits(30) = 2147483647 ' 01111111111111111111111111111111 ' Could have done this with a loop calculating each value, but simply ' assigning the values is quicker - POWERS OF 2 m_l2Power(0) = 1 ' 00000000000000000000000000000001 m_l2Power(1) = 2 ' 00000000000000000000000000000010 m_l2Power(2) = 4 ' 00000000000000000000000000000100 m_l2Power(3) = 8 ' 00000000000000000000000000001000 m_l2Power(4) = 16 ' 00000000000000000000000000010000 m_l2Power(5) = 32 ' 00000000000000000000000000100000 m_l2Power(6) = 64 ' 00000000000000000000000001000000 m_l2Power(7) = 128 ' 00000000000000000000000010000000 m_l2Power(8) = 256 ' 00000000000000000000000100000000 m_l2Power(9) = 512 ' 00000000000000000000001000000000 m_l2Power(10) = 1024 ' 00000000000000000000010000000000 m_l2Power(11) = 2048 ' 00000000000000000000100000000000 m_l2Power(12) = 4096 ' 00000000000000000001000000000000 m_l2Power(13) = 8192 ' 00000000000000000010000000000000 m_l2Power(14) = 16384 ' 00000000000000000100000000000000 m_l2Power(15) = 32768 ' 00000000000000001000000000000000 m_l2Power(16) = 65536 ' 00000000000000010000000000000000 m_l2Power(17) = 131072 ' 00000000000000100000000000000000 m_l2Power(18) = 262144 ' 00000000000001000000000000000000 m_l2Power(19) = 524288 ' 00000000000010000000000000000000 m_l2Power(20) = 1048576 ' 00000000000100000000000000000000 m_l2Power(21) = 2097152 ' 00000000001000000000000000000000 m_l2Power(22) = 4194304 ' 00000000010000000000000000000000 m_l2Power(23) = 8388608 ' 00000000100000000000000000000000 m_l2Power(24) = 16777216 ' 00000001000000000000000000000000 m_l2Power(25) = 33554432 ' 00000010000000000000000000000000 m_l2Power(26) = 67108864 ' 00000100000000000000000000000000 m_l2Power(27) = 134217728 ' 00001000000000000000000000000000 m_l2Power(28) = 268435456 ' 00010000000000000000000000000000 m_l2Power(29) = 536870912 ' 00100000000000000000000000000000 m_l2Power(30) = 1073741824 ' 01000000000000000000000000000000 End Sub '******************************************************************************* ' LShift (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - The value to be shifted ' (In) - iShiftBits - Integer - The number of bits to shift the value by ' ' RETURN VALUE: ' Long - The shifted long integer ' ' DESCRIPTION: ' A left shift takes all the set binary bits and moves them left, in-filling ' with zeros in the vacated bits on the right. This function is equivalent to ' the << operator in Java and C++ '******************************************************************************* Private Function LShift(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all. If iShiftBits = 0 Then LShift = lValue Exit Function ' A shift of 31 will result in the right most bit becoming the left most ' bit and all other bits being cleared ElseIf iShiftBits = 31 Then If lValue And 1 Then LShift = &H80000000 Else LShift = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' If the left most bit that remains will end up in the negative bit ' position (&H80000000) we would end up with an overflow if we took the ' standard route. We need to strip the left most bit and add it back ' afterwards. If (lValue And m_l2Power(31 - iShiftBits)) Then ' (Value And OnBits(31 - (Shift + 1))) chops off the left most bits that ' we are shifting into, but also the left most bit we still want as this ' is going to end up in the negative bit marker position (&H80000000). ' After the multiplication/shift we Or the result with &H80000000 to ' turn the negative bit on. LShift = ((lValue And m_lOnBits(31 - (iShiftBits + 1))) * _ m_l2Power(iShiftBits)) Or &H80000000 Else ' (Value And OnBits(31-Shift)) chops off the left most bits that we are ' shifting into so we do not get an overflow error when we do the ' multiplication/shift LShift = ((lValue And m_lOnBits(31 - iShiftBits)) * _ m_l2Power(iShiftBits)) End If End Function '******************************************************************************* ' RShift (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - The value to be shifted ' (In) - iShiftBits - Integer - The number of bits to shift the value by ' ' RETURN VALUE: ' Long - The shifted long integer ' ' DESCRIPTION: ' The right shift of an unsigned long integer involves shifting all the set bits ' to the right and in-filling on the left with zeros. This function is ' equivalent to the >>> operator in Java or the >> operator in C++ when used on ' an unsigned long. '******************************************************************************* Private Function RShift(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all If iShiftBits = 0 Then RShift = lValue Exit Function ' A shift of 31 will clear all bits and move the left most bit to the right ' most bit position ElseIf iShiftBits = 31 Then If lValue And &H80000000 Then RShift = 1 Else RShift = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' We do not care about the top most bit or the final bit, the top most bit ' will be taken into account in the next stage, the final bit (whether it ' is an odd number or not) is being shifted into, so we do not give a jot ' about it RShift = (lValue And &H7FFFFFFE) \ m_l2Power(iShiftBits) ' If the top most bit (&H80000000) was set we need to do things differently ' as in a normal VB signed long integer the top most bit is used to indicate ' the sign of the number, when it is set it is a negative number, so just ' deviding by a factor of 2 as above would not work. ' NOTE: (lValue And &H80000000) is equivalent to (lValue < 0), you could ' get a very marginal speed improvement by changing the test to (lValue < 0) If (lValue And &H80000000) Then ' We take the value computed so far, and then add the left most negative ' bit after it has been shifted to the right the appropriate number of ' places RShift = (RShift Or (&H40000000 \ m_l2Power(iShiftBits - 1))) End If End Function '******************************************************************************* ' RShiftSigned (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - ' (In) - iShiftBits - Integer - ' ' RETURN VALUE: ' Long - ' ' DESCRIPTION: ' The right shift of a signed long integer involves shifting all the set bits to ' the right and in-filling on the left with the sign bit (0 if positive, 1 if ' negative. This function is equivalent to the >> operator in Java or the >> ' operator in C++ when used on a signed long integer. Not used in this class, ' but included for completeness. '******************************************************************************* Private Function RShiftSigned(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long ' NOTE: If you can guarantee that the Shift parameter will be in the ' range 1 to 30 you can safely strip of this first nested if structure for ' speed. ' ' A shift of zero is no shift at all If iShiftBits = 0 Then RShiftSigned = lValue Exit Function ' A shift of 31 will clear all bits if the left most bit was zero, and will ' set all bits if the left most bit was 1 (a negative indicator) ElseIf iShiftBits = 31 Then ' NOTE: (lValue And &H80000000) is equivalent to (lValue < 0), you ' could get a very marginal speed improvement by changing the test to ' (lValue < 0) If (lValue And &H80000000) Then RShiftSigned = -1 Else RShiftSigned = 0 End If Exit Function ' A shift of less than zero or more than 31 is undefined ElseIf iShiftBits < 0 Or iShiftBits > 31 Then Err.Raise 6 End If ' We get the same result by dividing by the appropriate power of 2 and ' rounding in the negative direction RShiftSigned = Int(lValue / m_l2Power(iShiftBits)) End Function '******************************************************************************* ' RotateLeft (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - Value to act on ' (In) - iShiftBits - Integer - Bits to move by ' ' RETURN VALUE: ' Long - Result ' ' DESCRIPTION: ' Rotates the bits in a long integer to the left, those bits falling off the ' left edge are put back on the right edge '******************************************************************************* Private Function RotateLeft(ByVal lValue As Long, _ ByVal iShiftBits As Integer) As Long RotateLeft = LShift(lValue, iShiftBits) Or RShift(lValue, (32 - iShiftBits)) End Function '******************************************************************************* ' AddUnsigned (FUNCTION) ' ' PARAMETERS: ' (In) - lX - Long - First value ' (In) - lY - Long - Second value ' ' RETURN VALUE: ' Long - Result ' ' DESCRIPTION: ' Adds two potentially large unsigned numbers without overflowing '******************************************************************************* Private Function AddUnsigned(ByVal lX As Long, _ ByVal lY As Long) As Long Dim lX4 As Long Dim lY4 As Long Dim lX8 As Long Dim lY8 As Long Dim lResult As Long lX8 = lX And &H80000000 lY8 = lY And &H80000000 lX4 = lX And &H40000000 lY4 = lY And &H40000000 lResult = (lX And &H3FFFFFFF) + (lY And &H3FFFFFFF) If lX4 And lY4 Then lResult = lResult Xor &H80000000 Xor lX8 Xor lY8 ElseIf lX4 Or lY4 Then If lResult And &H40000000 Then lResult = lResult Xor &HC0000000 Xor lX8 Xor lY8 Else lResult = lResult Xor &H40000000 Xor lX8 Xor lY8 End If Else lResult = lResult Xor lX8 Xor lY8 End If AddUnsigned = lResult End Function '******************************************************************************* ' F (FUNCTION) ' ' DESCRIPTION: ' MD5's F function '******************************************************************************* Private Function F(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long F = (x And y) Or ((Not x) And z) End Function '******************************************************************************* ' G (FUNCTION) ' ' DESCRIPTION: ' MD5's G function '******************************************************************************* Private Function G(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long G = (x And z) Or (y And (Not z)) End Function '******************************************************************************* ' H (FUNCTION) ' ' DESCRIPTION: ' MD5's H function '******************************************************************************* Private Function H(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long H = (x Xor y Xor z) End Function '******************************************************************************* ' I (FUNCTION) ' ' DESCRIPTION: ' MD5's I function '******************************************************************************* Private Function I(ByVal x As Long, _ ByVal y As Long, _ ByVal z As Long) As Long I = (y Xor (x Or (Not z))) End Function '******************************************************************************* ' FF (SUB) ' ' DESCRIPTION: ' MD5's FF procedure '******************************************************************************* Private Sub FF(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' GG (SUB) ' ' DESCRIPTION: ' MD5's GG procedure '******************************************************************************* Private Sub GG(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' HH (SUB) ' ' DESCRIPTION: ' MD5's HH procedure '******************************************************************************* Private Sub HH(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' II (SUB) ' ' DESCRIPTION: ' MD5's II procedure '******************************************************************************* Private Sub II(a As Long, _ ByVal b As Long, _ ByVal c As Long, _ ByVal d As Long, _ ByVal x As Long, _ ByVal s As Long, _ ByVal ac As Long) a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac)) a = RotateLeft(a, s) a = AddUnsigned(a, b) End Sub '******************************************************************************* ' ConvertToWordArray (FUNCTION) ' ' PARAMETERS: ' (In/Out) - sMessage - String - String message ' ' RETURN VALUE: ' Long() - Converted message as long array ' ' DESCRIPTION: ' Takes the string message and puts it in a long array with padding according to ' the MD5 rules. '******************************************************************************* Private Function ConvertToWordArray(sMessage As String) As Long() Dim lMessageLength As Long Dim lNumberOfWords As Long Dim lWordArray() As Long Dim lBytePosition As Long Dim lByteCount As Long Dim lWordCount As Long Const MODULUS_BITS As Long = 512 Const CONGRUENT_BITS As Long = 448 lMessageLength = Len(sMessage) ' Get padded number of words. Message needs to be congruent to 448 bits, ' modulo 512 bits. If it is exactly congruent to 448 bits, modulo 512 bits ' it must still have another 512 bits added. 512 bits = 64 bytes ' (or 16 * 4 byte words), 448 bits = 56 bytes. This means lMessageSize must ' be a multiple of 16 (i.e. 16 * 4 (bytes) * 8 (bits)) lNumberOfWords = (((lMessageLength + _ ((MODULUS_BITS - CONGRUENT_BITS) \ BITS_TO_A_BYTE)) \ _ (MODULUS_BITS \ BITS_TO_A_BYTE)) + 1) * _ (MODULUS_BITS \ BITS_TO_A_WORD) ReDim lWordArray(lNumberOfWords - 1) ' Combine each block of 4 bytes (ascii code of character) into one long ' value and store in the message. The high-order (most significant) bit of ' each byte is listed first. However, the low-order (least significant) byte ' is given first in each word. lBytePosition = 0 lByteCount = 0 Do Until lByteCount >= lMessageLength ' Each word is 4 bytes lWordCount = lByteCount \ BYTES_TO_A_WORD ' The bytes are put in the word from the right most edge lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE lWordArray(lWordCount) = lWordArray(lWordCount) Or _ LShift(AscB(Mid(sMessage, lByteCount + 1, 1)), lBytePosition) lByteCount = lByteCount + 1 Loop ' Terminate according to MD5 rules with a 1 bit, zeros and the length in ' bits stored in the last two words lWordCount = lByteCount \ BYTES_TO_A_WORD lBytePosition = (lByteCount Mod BYTES_TO_A_WORD) * BITS_TO_A_BYTE ' Add a terminating 1 bit, all the rest of the bits to the end of the ' word array will default to zero lWordArray(lWordCount) = lWordArray(lWordCount) Or _ LShift(&H80, lBytePosition) ' We put the length of the message in bits into the last two words, to get ' the length in bits we need to multiply by 8 (or left shift 3). This left ' shifted value is put in the first word. Any bits shifted off the left edge ' need to be put in the second word, we can work out which bits by shifting ' right the length by 29 bits. lWordArray(lNumberOfWords - 2) = LShift(lMessageLength, 3) lWordArray(lNumberOfWords - 1) = RShift(lMessageLength, 29) ConvertToWordArray = lWordArray End Function '******************************************************************************* ' WordToHex (FUNCTION) ' ' PARAMETERS: ' (In) - lValue - Long - Long value to convert ' ' RETURN VALUE: ' String - Hex value to return ' ' DESCRIPTION: ' Takes a long integer and due to the bytes reverse order it extracts the ' individual bytes and converts them to hex appending them for an overall hex ' value '******************************************************************************* Private Function WordToHex(ByVal lValue As Long) As String Dim lByte As Long Dim lCount As Long For lCount = 0 To 3 lByte = RShift(lValue, lCount * BITS_TO_A_BYTE) And _ m_lOnBits(BITS_TO_A_BYTE - 1) WordToHex = WordToHex & Right("0" & Hex(lByte), 2) Next End Function '******************************************************************************* ' MD5 (FUNCTION) ' ' PARAMETERS: ' (In/Out) - sMessage - String - String to be digested ' ' RETURN VALUE: ' String - The MD5 digest ' ' DESCRIPTION: ' This function takes a string message and generates an MD5 digest for it. ' sMessage can be up to the VB string length limit of 2^31 (approx. 2 billion) ' characters. ' ' NOTE: Due to the way in which the string is processed the routine assumes a ' single byte character set. VB passes unicode (2-byte) character strings, the ' ConvertToWordArray function uses on the first byte for each character. This ' has been done this way for ease of use, to make the routine truely portable ' you could accept a byte array instead, it would then be up to the calling ' routine to make sure that the byte array is generated from their string in ' a manner consistent with the string type. '******************************************************************************* Public Function MD5(sMessage As String) As String Dim x() As Long Dim k As Long Dim AA As Long Dim BB As Long Dim CC As Long Dim DD As Long Dim a As Long Dim b As Long Dim c As Long Dim d As Long Const S11 As Long = 7 Const S12 As Long = 12 Const S13 As Long = 17 Const S14 As Long = 22 Const S21 As Long = 5 Const S22 As Long = 9 Const S23 As Long = 14 Const S24 As Long = 20 Const S31 As Long = 4 Const S32 As Long = 11 Const S33 As Long = 16 Const S34 As Long = 23 Const S41 As Long = 6 Const S42 As Long = 10 Const S43 As Long = 15 Const S44 As Long = 21 ' Steps 1 and 2. Append padding bits and length and convert to words x = ConvertToWordArray(sMessage) ' Step 3. Initialise a = &H67452301 b = &HEFCDAB89 c = &H98BADCFE d = &H10325476 ' Step 4. Process the message in 16-word blocks For k = 0 To UBound(x) Step 16 AA = a BB = b CC = c DD = d ' The hex number on the end of each of the following procedure calls is ' an element from the 64 element table constructed with ' T(i) = Int(4294967296 * Abs(Sin(i))) where i is 1 to 64. ' ' However, for speed we don't want to calculate the value every time. FF a, b, c, d, x(k + 0), S11, &HD76AA478 FF d, a, b, c, x(k + 1), S12, &HE8C7B756 FF c, d, a, b, x(k + 2), S13, &H242070DB FF b, c, d, a, x(k + 3), S14, &HC1BDCEEE FF a, b, c, d, x(k + 4), S11, &HF57C0FAF FF d, a, b, c, x(k + 5), S12, &H4787C62A FF c, d, a, b, x(k + 6), S13, &HA8304613 FF b, c, d, a, x(k + 7), S14, &HFD469501 FF a, b, c, d, x(k + 8), S11, &H698098D8 FF d, a, b, c, x(k + 9), S12, &H8B44F7AF FF c, d, a, b, x(k + 10), S13, &HFFFF5BB1 FF b, c, d, a, x(k + 11), S14, &H895CD7BE FF a, b, c, d, x(k + 12), S11, &H6B901122 FF d, a, b, c, x(k + 13), S12, &HFD987193 FF c, d, a, b, x(k + 14), S13, &HA679438E FF b, c, d, a, x(k + 15), S14, &H49B40821 GG a, b, c, d, x(k + 1), S21, &HF61E2562 GG d, a, b, c, x(k + 6), S22, &HC040B340 GG c, d, a, b, x(k + 11), S23, &H265E5A51 GG b, c, d, a, x(k + 0), S24, &HE9B6C7AA GG a, b, c, d, x(k + 5), S21, &HD62F105D GG d, a, b, c, x(k + 10), S22, &H2441453 GG c, d, a, b, x(k + 15), S23, &HD8A1E681 GG b, c, d, a, x(k + 4), S24, &HE7D3FBC8 GG a, b, c, d, x(k + 9), S21, &H21E1CDE6 GG d, a, b, c, x(k + 14), S22, &HC33707D6 GG c, d, a, b, x(k + 3), S23, &HF4D50D87 GG b, c, d, a, x(k + 8), S24, &H455A14ED GG a, b, c, d, x(k + 13), S21, &HA9E3E905 GG d, a, b, c, x(k + 2), S22, &HFCEFA3F8 GG c, d, a, b, x(k + 7), S23, &H676F02D9 GG b, c, d, a, x(k + 12), S24, &H8D2A4C8A HH a, b, c, d, x(k + 5), S31, &HFFFA3942 HH d, a, b, c, x(k + 8), S32, &H8771F681 HH c, d, a, b, x(k + 11), S33, &H6D9D6122 HH b, c, d, a, x(k + 14), S34, &HFDE5380C HH a, b, c, d, x(k + 1), S31, &HA4BEEA44 HH d, a, b, c, x(k + 4), S32, &H4BDECFA9 HH c, d, a, b, x(k + 7), S33, &HF6BB4B60 HH b, c, d, a, x(k + 10), S34, &HBEBFBC70 HH a, b, c, d, x(k + 13), S31, &H289B7EC6 HH d, a, b, c, x(k + 0), S32, &HEAA127FA HH c, d, a, b, x(k + 3), S33, &HD4EF3085 HH b, c, d, a, x(k + 6), S34, &H4881D05 HH a, b, c, d, x(k + 9), S31, &HD9D4D039 HH d, a, b, c, x(k + 12), S32, &HE6DB99E5 HH c, d, a, b, x(k + 15), S33, &H1FA27CF8 HH b, c, d, a, x(k + 2), S34, &HC4AC5665 II a, b, c, d, x(k + 0), S41, &HF4292244 II d, a, b, c, x(k + 7), S42, &H432AFF97 II c, d, a, b, x(k + 14), S43, &HAB9423A7 II b, c, d, a, x(k + 5), S44, &HFC93A039 II a, b, c, d, x(k + 12), S41, &H655B59C3 II d, a, b, c, x(k + 3), S42, &H8F0CCC92 II c, d, a, b, x(k + 10), S43, &HFFEFF47D II b, c, d, a, x(k + 1), S44, &H85845DD1 II a, b, c, d, x(k + 8), S41, &H6FA87E4F II d, a, b, c, x(k + 15), S42, &HFE2CE6E0 II c, d, a, b, x(k + 6), S43, &HA3014314 II b, c, d, a, x(k + 13), S44, &H4E0811A1 II a, b, c, d, x(k + 4), S41, &HF7537E82 II d, a, b, c, x(k + 11), S42, &HBD3AF235 II c, d, a, b, x(k + 2), S43, &H2AD7D2BB II b, c, d, a, x(k + 9), S44, &HEB86D391 a = AddUnsigned(a, AA) b = AddUnsigned(b, BB) c = AddUnsigned(c, CC) d = AddUnsigned(d, DD) Next ' Step 5. Output the 128 bit digest MD5 = LCase(WordToHex(a) & WordToHex(b) & WordToHex(c) & WordToHex(d)) End Function From garykjos at gmail.com Fri Sep 14 10:24:17 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 14 Sep 2007 10:24:17 -0500 Subject: [AccessD] MD5 Hash (was: First in a group) In-Reply-To: References: Message-ID: I let it go through. This time ;-) GK On 9/14/07, Gustav Brock wrote: > OK, that's what I feared: > > --- > Your mail to 'AccessD' with the subject > > Re: [AccessD] MD5 Hash (was: First in a group) > > Is being held until the list moderator can review it for approval. > > The reason it is being held: > > Message body is too big: 30144 bytes with a limit of 20 KB > > Either the message will get posted to the list, or you will receive > notification of the moderator's decision. .. > --- > > > -- > 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 bill_patten at embarqmail.com Fri Sep 14 10:43:50 2007 From: bill_patten at embarqmail.com (Bill Patten) Date: Fri, 14 Sep 2007 08:43:50 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><65EBB2E41D8A4C45AE1BA04FEE09988D@BPCS> Message-ID: <4AA8A44B737643A5A1C50A49F667A8F8@BPCS> Hi Julie, No, I use merge replication (SQL 2000) and check the CE tab when setting it up. Then set up IIS so that the PDA uses wireless and connects, then sync's. I also have 2 laptops with SQL server in them (standard in one and MSDE in the other) and they sync either wireless or on the lan. They both use triggers to create the ID based on the code I sent you. I only have a few thousand records but have never seen a duplication error. I am using an Dell AXIM X51V, but mostly to look up data, very little inputting. If much inputting was required I'd probably try to find one with a built in keyboard, as the screen keyboards tend to cover up the input screens. Bill ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 8:01 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 cfoust at infostatsystems.com Fri Sep 14 10:53:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 08:53:55 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <003101c7f6dd$32c44f80$9402a8c0@hpnotebook> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <003101c7f6dd$32c44f80$9402a8c0@hpnotebook> Message-ID: I didn't mean to offend you, Julie. And just because you understand the sanctity of design masters doesn't mean that every person who reads this thread does. The comment was simply to emphasize the for anyone who *didn't* already know it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Friday, September 14, 2007 7:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database I'm not an idiot Charlotte. Of course, I am not working directly with the design master. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 13, 2007 2:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Master copy? You mean of the data or of the UI? If you have a combined database replicated, you're looking at trouble, not matter how you handle it. I hope you don't mean the *Design Master* because nobody EVER works directly with that one. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 10:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hmmmmmm. I may have just figured it out. I can have them create the inspections on the master copy on the server, where I assign a unique inspection id, then download those inspections to the tablet pc. That way, there won't be any duplicates. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Thursday, September 13, 2007 1:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 jmhecht at earthlink.net Fri Sep 14 10:56:42 2007 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 14 Sep 2007 08:56:42 -0700 Subject: [AccessD] Thank you and see you Message-ID: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net From cfoust at infostatsystems.com Fri Sep 14 11:03:37 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 09:03:37 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: <011801c7f6e2$1b6febf0$0202a8c0@Laptop> References: <035c01c7f5b0$f48589f0$6600a8c0@TheWaddles><003201c7f62f$a9dc4770$9402a8c0@hpnotebook> <011801c7f6e2$1b6febf0$0202a8c0@Laptop> Message-ID: The design master is synced to the other replicas, usually through an intermediate replica, with all design changes being made to the design master and then synced to the levels of replicas. You don't change data in a design master because it causes data conflicts with the replicas that have to be hand laundered by the developer. In replication, the design and the data are synced separately, not simultaneously, so changes to design to add a field and changes to data to populate that field would result in the data being synced when the field didn't yet exist in the replicas. The other big reason for not working directly in the design master (I'm not talking design changes, mind you, only data) is that sooner or later the design master rolls over and turns up its toes and you have to recover a replica as the new DM. Mucking around in the DM only increases the chance of it failing. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Friday, September 14, 2007 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database I volunteer to be the idiot. Why doesn't anyone ever work with the design master? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Friday, September 14, 2007 10:40 AM Subject: Re: [AccessD] Multiple Users Question - Replicated Database > I'm not an idiot Charlotte. Of course, I am not working directly with the > design master. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, September 13, 2007 2:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Master copy? You mean of the data or of the UI? If you have a combined > database replicated, you're looking at trouble, not matter how you > handle it. I hope you don't mean the *Design Master* because nobody > EVER works directly with that one. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 10:58 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Multiple Users Question - Replicated Database > > Hmmmmmm. I may have just figured it out. I can have them create the > inspections on the master copy on the server, where I assign a unique > inspection id, then download those inspections to the tablet pc. That > way, there won't be any duplicates. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon > Sent: Thursday, September 13, 2007 1:45 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Multiple Users Question - Replicated Database > > Hi, > > I am kind of stuck on an issue and wondered if anyone has done this. > > My housing inspection software is being used locally and is working > great. > > However, when I wrote the software, they were only using one tablet pc > and replicating with the master copy on the server. > > Now they want to send multiple inspectors out there with tablet pc's. > > My problem is that when they create an inspection, I assign a unique > inspection id. That id follows the record through the inspection > process, and then onto the Work Order that is created when there are > repairs needed. > > If I have multiple inspectors with tablet pc's, I can't create the > unique inspection id (automatically increments by one) when the > inspection is created on the tablet pc, because I won't know which id > each of the tablet pc's are using until the users synch with the copy on > the server. > > Multiple inspectors means duplicate inspection id's. > > Is this making sense? > > I need a way to create a temporary inspection id that is unique and then > when the inspector synchs with the server, a permanent id is assigned to > the record. > > Anyone run into this? > > Is this the way to go about doing this? > > I'm not necessarily looking for code, just some opinions. > > Julie Reardon > PRO-SOFT of NY, Inc. > 44 Public Square, Suite 5 > Watertown, NY 13601 > Phone: 315.785.0319 > Fax: 315.785.0323 > NYS IT Contract#CMT026A > NYS Certified Woman-Owned Business > www.pro-soft.net > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 14 11:05:18 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 14 Sep 2007 09:05:18 -0700 Subject: [AccessD] Thank you and see you In-Reply-To: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> References: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Message-ID: You'll stay signed up for the conference list, right? I think it's safe to say that list alumni are welcome at those get togethers. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, September 14, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Thank you and see you Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net -- 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 Sep 14 11:38:22 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 14 Sep 2007 12:38:22 -0400 Subject: [AccessD] Does anyone have a parenthesis highlighting tool? In-Reply-To: <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> References: <00e101c7ebfd$4364c800$048e01c7@SusanOne><000001c7ec5d$6f7bb380$6401a8c0@nant><004b01c7ec9f$27d5b2a0$048e01c7@SusanOne> <001e01c7ecc8$7434f330$6400a8c0@DCYN3T81> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFC0@EXCNYSM0A1AI.nysemail.nyenet> Try Programmer's notepad http://www.pnotepad.org/ I have been using this for awhile. There might be others out there that I don't know of ************************************************** * 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 > Bob Gajewski > Sent: Saturday, September 01, 2007 02:47 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Does anyone have a parenthesis highlighting tool? > > Hi Folks > > I am in need of some rather complex WHERE statements in my > SELECT clauses, and was wondering if anyone knew of a > tool/program that helps keep parentheses properly paired --- > perhaps similar to the way that Excel uses different colors > for highlighting corresponding pairs? > > Thanks, > Bob Gajewski > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.13.1/982 - Release > Date: 08/31/2007 > 17:21 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Fri Sep 14 11:54:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 18:54:02 +0200 Subject: [AccessD] Thank you and see you Message-ID: Hi Joe Nice product range of yours. Good luck! /gustav >>> jmhecht at earthlink.net 14-09-2007 17:56 >>> Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net From tdd-inc at shaw.ca Fri Sep 14 12:18:49 2007 From: tdd-inc at shaw.ca (Philip Scyner) Date: Fri, 14 Sep 2007 10:18:49 -0700 Subject: [AccessD] Multiple Users Question - Replicated Database In-Reply-To: Message-ID: <036701c7f6f3$58dc0ad0$6500a8c0@CADCAM> I might consider having each tablet a unique no or letter... Ie tablet 1 - 01 or A Tablet 2 - 02 or B and putting an id after/before it id number could be 00001-01 or 01-00001 or A00001 when you import it into the main db you have that one assign its own unique id still being able to reference the tablet id for tracebility. Phil -----Original Message----- From: Julie Reardon [mailto:prosoft6 at hotmail.com] Sent: Friday, September 14, 2007 8:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Bill, Thank you for your response. Do you use the synchmanager on the pda to synch the two devices? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, September 13, 2007 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multiple Users Question - Replicated Database Hi Julie, Several years ago I upsized a synchronized Access database into sql server. The upsizing wizard created a trigger that used the similar code to this. I use this in a VB.NET PDA to create new ID's when ever I add a record and to date have never had a duplicate record created. Probably not as good as a GUID, but certainly much easier to read ID's when troubleshooting. Bill Turn off autonumber and use this function to create the 'Random' ID newid = fncNewID() Public Function fncNewID() As Long ' This function creates an ID similar to that created by Access synchronize ID ' and emulated by a trigger in SQL server 2000 Randomize() fncNewID = Int((100000000 + 100000000 + 1) * Rnd() - 100000000) End Function ----- Original Message ----- From: "Julie Reardon" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 13, 2007 10:45 AM Subject: [AccessD] Multiple Users Question - Replicated Database Hi, I am kind of stuck on an issue and wondered if anyone has done this. My housing inspection software is being used locally and is working great. However, when I wrote the software, they were only using one tablet pc and replicating with the master copy on the server. Now they want to send multiple inspectors out there with tablet pc's. My problem is that when they create an inspection, I assign a unique inspection id. That id follows the record through the inspection process, and then onto the Work Order that is created when there are repairs needed. If I have multiple inspectors with tablet pc's, I can't create the unique inspection id (automatically increments by one) when the inspection is created on the tablet pc, because I won't know which id each of the tablet pc's are using until the users synch with the copy on the server. Multiple inspectors means duplicate inspection id's. Is this making sense? I need a way to create a temporary inspection id that is unique and then when the inspector synchs with the server, a permanent id is assigned to the record. Anyone run into this? Is this the way to go about doing this? I'm not necessarily looking for code, just some opinions. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.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 max.wanadoo at gmail.com Fri Sep 14 12:53:34 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 18:53:34 +0100 Subject: [AccessD] MD5 Hash (was: First in a group) In-Reply-To: References: Message-ID: <002901c7f6f8$2c4f3820$8119fea9@LTVM> Thanks very much Gustav, That works a treat! Much obliged Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 14, 2007 4:04 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MD5 Hash (was: First in a group) Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 14 13:08:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Sep 2007 20:08:06 +0200 Subject: [AccessD] MD5 Hash (was: First in a group) Message-ID: Hi Max Good to know. Thanks for the feedback. /gustav >>> max.wanadoo at gmail.com 14-09-2007 19:53 >>> Thanks very much Gustav, That works a treat! Much obliged Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 14, 2007 4:04 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MD5 Hash (was: First in a group) Hi Jim and Max I happened to rewrite it to VBA though I don't recall how carefully I tested it. Here's the main module. I'll post the class separately: Option Compare Database Option Explicit Public Function MD5Hash( _ ByVal strText As String) _ As String ' Create and return MD5 signature from strText. ' Signature has a length of 32 characters. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim cMD5 As New clsMD5 Dim strSignature As String ' Calculate MD5 hash. strSignature = cMD5.MD5(strText) ' Return MD5 signature. MD5Hash = strSignature Set cMD5 = Nothing End Function Public Function IsMD5( _ ByVal strText As String, _ ByVal strMD5 As String) _ As Boolean ' Checks if strMD5 is the MD5 signature of strText. ' Returns True if they match. ' Note: strText is case sensitive while strMD5 is not. ' ' 2005-11-21. Cactus Data ApS, CPH. Dim booMatch As Boolean booMatch = (StrComp(strMD5, MD5Hash(strText), vbTextCompare) = 0) IsMD5 = booMatch End Function /gustav >>> jimdettman at verizon.net 14-09-2007 16:41 >>> Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge From max.wanadoo at gmail.com Fri Sep 14 13:15:46 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 19:15:46 +0100 Subject: [AccessD] Access to VB.Net Message-ID: <000001c7f6fb$46692ab0$8119fea9@LTVM> Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max From max.wanadoo at gmail.com Fri Sep 14 13:55:04 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 14 Sep 2007 19:55:04 +0100 Subject: [AccessD] First in a group In-Reply-To: <006b01c7f6dd$581d0290$8abea8c0@XPS> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90><006d01c7f6da$5ad5e860$8119fea9@LTVM> <006b01c7f6dd$581d0290$8abea8c0@XPS> Message-ID: <000101c7f700$c3a30550$8119fea9@LTVM> No worries, Jim. The code that Gustav posted worked a dream Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 14, 2007 3:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Max, Think it was gustav that posted a link in the past to a MD5 and SHA hash. I downloaded at the time and I still have them, but they are VB6 files. If you have VB6, I'll send them to you. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Is there a similar function that somebody could post which would do an M5 hash from VBA please? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Sep 14 15:02:46 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 15 Sep 2007 00:02:46 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000001c7f6fb$46692ab0$8119fea9@LTVM> Message-ID: <000101c7f70a$380d0720$6501a8c0@nant> Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Fri Sep 14 20:20:17 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Sat, 15 Sep 2007 11:20:17 +1000 (EST) Subject: [AccessD] Hash - was: First in a group Message-ID: <20070915112017.DCZ38808@dommail.onthenet.com.au> John, thanks for - as usual - an elaborate response to a qustion - I can put this to good use. Also thanks to Max for asking and Gustav for providing the MD5 hash algoritm for VBA! Regards Borge ---- Original message ---- >Date: Thu, 13 Sep 2007 23:58:00 -0400 >From: "jwcolby" >Subject: Re: [AccessD] First in a group >To: "'Access Developers discussion and problem solving'" > >Borge, > >The hash was done in SQL Server. There is a Hash function inside of SQL >Server that I used. It has various "brands" of hash and I chose one (sha1), >then just ran all of the address fields into the hash function and out pops >a binary (~160 bit?) hash number. > >UPDATE [PSM_DPSI11000].[dbo].[tblData] > SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) > ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) > ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) > >Google HashBytes for more info on that function. > From max.wanadoo at gmail.com Sat Sep 15 02:45:53 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 08:45:53 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000101c7f70a$380d0720$6501a8c0@nant> References: <000001c7f6fb$46692ab0$8119fea9@LTVM> <000101c7f70a$380d0720$6501a8c0@nant> Message-ID: <000a01c7f76c$722933e0$8119fea9@LTVM> Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 15 03:33:03 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 09:33:03 +0100 Subject: [AccessD] HashBytes In-Reply-To: <003501c7f683$71e09200$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au> <003501c7f683$71e09200$6c7aa8c0@M90> Message-ID: <001001c7f773$0917e890$8119fea9@LTVM> John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Sep 15 06:48:21 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2007 07:48:21 -0400 Subject: [AccessD] HashBytes In-Reply-To: <001001c7f773$0917e890$8119fea9@LTVM> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90> <001001c7f773$0917e890$8119fea9@LTVM> Message-ID: <004c01c7f78e$5185ac00$6c7aa8c0@M90> >However, do you first put all to Ucase()? No I didn't but should have! My addresses are standardized but I do not know whether they standardize the case as well, I suspect not. And yes, it would almost certainly make a difference between the hash codes. The nice thing is that once calculated, you never have to do that again. You would have to remember to do the UCASE against any other address record so that you were comparing apples to oranges. Good catch. I will have to go back and recalc my hashes doing the UCASE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 4:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] HashBytes John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Sep 15 07:11:40 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sat, 15 Sep 2007 13:11:40 +0100 Subject: [AccessD] HashBytes In-Reply-To: <004c01c7f78e$5185ac00$6c7aa8c0@M90> References: <20070914122949.DCY31371@dommail.onthenet.com.au><003501c7f683$71e09200$6c7aa8c0@M90><001001c7f773$0917e890$8119fea9@LTVM> <004c01c7f78e$5185ac00$6c7aa8c0@M90> Message-ID: <001901c7f791$93684030$8119fea9@LTVM> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, September 15, 2007 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] HashBytes >However, do you first put all to Ucase()? No I didn't but should have! My addresses are standardized but I do not know whether they standardize the case as well, I suspect not. And yes, it would almost certainly make a difference between the hash codes. The nice thing is that once calculated, you never have to do that again. You would have to remember to do the UCASE against any other address record so that you were comparing apples to oranges. Good catch. I will have to go back and recalc my hashes doing the UCASE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 4:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] HashBytes John, This is a very clever way of doing things and I might do similar. Currently I store Postcode+County+town+street+houseno/name and check against them. Your sounds a lot better (and a lot cleverer). However, do you first put all to Ucase()? I ask this because the MD5 code that Gustav kindly provided, does make a distinction between the same words with different case. Ie, "Max" and "max" will give a different hash value. Max Ps. I have renamed the topic, hope that is ok. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2007 4:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] First in a group Borge, The hash was done in SQL Server. There is a Hash function inside of SQL Server that I used. It has various "brands" of hash and I chose one (sha1), then just ran all of the address fields into the hash function and out pops a binary (~160 bit?) hash number. UPDATE [PSM_DPSI11000].[dbo].[tblData] SET [HashAddr] = hashbytes('sha1', Addr + Zip5 + Zip4) ,[HashFamily] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName) ,[HashPerson] = hashbytes('sha1', Addr + Zip5 + Zip4 + LName + FName) Google HashBytes for more info on that function. I hash each of these strings and store the three values for every person record. I can then compare the hash values to determine a fact collision - same address, same family, same person. Obviously this does not handle mis-spellings, that is not the intent here. Having hashes I can do compares or even joins on the hash columns. I index the columns as well. It is just simpler (and faster, and easier) than doing a multi-column join to identify matches. The hash value is an 20 byte value so I think / hope / pray it becomes more efficient than a multi-column index as well. In the address case it is a marginal call. Zip5 + zip4 is nine bytes plus the average of Address but on average a 20 byte hash wins I think. I was previously using X bytes from the address plus zip5 plus zip 4 but that left me open to problems with instances like: 1) 1723 Twin Pines Apt A. 2) 1723 Twin Pines Apt B. 3) 1722 Twin Pines If I took the leading 6 characters (for example) then the examples 1 and 2 match and if I took the last 6 characters then examples 2 and 3 match. A hash simply seemed superior. Once you throw in the first and last name as well then the hash unquestionably wins. What really helps it all work is the fact that I do address validation such that I know that each address is EXACTLY valid (is actually deliverable) and just throw away any that are not deliverable so I do not have to deal with mis-spellings in the address part at least. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, September 13, 2007 10:30 PM To: Access Developers discussion and problemsolving Subject: [AccessD] First in a group John Colby wrote: ... I do have an address hash that generates a hash string for just the address part. So it seems like something like a group by address hash and then a top1 is the right direction, but of course it has to be the TOP 1 in each GROUP. ... I am assuming that the result of an address hash is a unique numeric value for the particual address text string being 'hashed'? .... I am interested in knowing more about the address hash .... a function ? A pointer or link to an example will do, thanks Regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 15 17:16:02 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 15 Sep 2007 17:16:02 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row Message-ID: <000301c7f7e6$01071a90$0200a8c0@danwaters> I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan From max.wanadoo at gmail.com Sun Sep 16 11:21:33 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sun, 16 Sep 2007 17:21:33 +0100 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f7e6$01071a90$0200a8c0@danwaters> References: <000301c7f7e6$01071a90$0200a8c0@danwaters> Message-ID: <000301c7f87d$a6773860$8119fea9@LTVM> Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Sep 16 12:01:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 16 Sep 2007 10:01:55 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sun Sep 16 12:59:24 2007 From: max.wanadoo at gmail.com (Gmail) Date: Sun, 16 Sep 2007 18:59:24 +0100 Subject: [AccessD] FW: Command Button Bitmap for Delete Row Message-ID: <000a01c7f88b$51fbfd80$8119fea9@LTVM> Hi Jim, I took it straight out of the text file that came with the download (was some time ago though). Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 6:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nd500_lo at charter.net Sun Sep 16 17:37:50 2007 From: nd500_lo at charter.net (Dian) Date: Sun, 16 Sep 2007 15:37:50 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> Message-ID: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... From darren at activebilling.com.au Sun Sep 16 17:49:45 2007 From: darren at activebilling.com.au (Darren D) Date: Mon, 17 Sep 2007 08:49:45 +1000 Subject: [AccessD] Thank you and see you In-Reply-To: <000c01c7f6e7$d8aa0d90$6501a8c0@ACER2G> Message-ID: <200709162249.l8GMnePi018365@databaseadvisors.com> Hi Joe Sad to see you go - I do hope all goes well with your products Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, 15 September 2007 1:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Thank you and see you Thank you to all of you who have helped me through the years. My current project for a friend is on hold right now. I need to concentrate on my real job selling digital signage and video walls and such. I hope I do not break the rules by inviting you to look at www.smartavi.com if you need these or other special video needs you may have. I am going to sign off the list to reduce my e mail load. Thank you JC, Rocky and everyone else. Joe Hecht jmhecht at earthlink.net -- 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 Sep 16 18:39:16 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 16 Sep 2007 19:39:16 -0400 Subject: [AccessD] Database Patent...sort of....kinda References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook> <008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> I haven't any idea about this kind of ridiculous hair-splitting, but to get the ball rolling ... I would propose that only the data was of any proprietary value. The method used at A and, subsequently, used at B was developed by the same person (you) for the same logical business process. One need only apply the following standard: If any logical person working independently with the same kind or type of business process is to succeed in uniformly accounting for these special issues, will they or will they not likely be forced to reach the same conclusions given the accounting standards to which such business is bound? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Dian" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 6:37 PM Subject: Re: [AccessD] Database Patent...sort of....kinda > OK...I give up...I've thought about this all weekend and I'm supposed to > have an answer tomorrow and I don't. This is ethical and moral and legal, > I > think. Years ago, I worked for a title insurance company that dealt with > timeshares. At their request, I created an application to deal with some > of > the special issues that affect timeshares and title insurance. That was my > first Access database. I left the company and the database...it belonged > to > them. No problem. I went to work for another title company and created the > database application they needed to deal with their timeshare issues > (didn't > use the old one....sorta recreated a new one). So far, so good. Not a > moral > or ethical issue involved. That company fell apart and I moved on. Now, > the > unethical part. The company fell apart and I took the the database home > with > me because nobody cared. I "play" with it...have test data, etc., easily > available and I have implemented a number of the ideas I've gleaned from > this group (for which I will always be grateful)...now comes the ethical > question: Owner A couldn't care less (they don't do timeshares now); Owner > B > is out of business entirely. IF I choose to work with C, am I doing > anything > wrong by using the framework I've "played" with over the years. My > apologies...I know this is weird...but, honestly, I have no clue who else > to > ask. Thank you... > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From nd500_lo at charter.net Sun Sep 16 18:55:57 2007 From: nd500_lo at charter.net (Dian) Date: Sun, 16 Sep 2007 16:55:57 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne><000001c7f8b2$36e9fd40$6400a8c0@dsunit1> <000801c7f8ba$cc7f9fb0$0202a8c0@Laptop> Message-ID: <000001c7f8bd$20339fb0$6400a8c0@dsunit1> Thank you, Michael...I know it's complicated...and I do appreciate your input. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, September 16, 2007 4:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent...sort of....kinda I haven't any idea about this kind of ridiculous hair-splitting, but to get the ball rolling ... I would propose that only the data was of any proprietary value. The method used at A and, subsequently, used at B was developed by the same person (you) for the same logical business process. One need only apply the following standard: If any logical person working independently with the same kind or type of business process is to succeed in uniformly accounting for these special issues, will they or will they not likely be forced to reach the same conclusions given the accounting standards to which such business is bound? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Dian" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 6:37 PM Subject: Re: [AccessD] Database Patent...sort of....kinda > OK...I give up...I've thought about this all weekend and I'm supposed to > have an answer tomorrow and I don't. This is ethical and moral and legal, > I > think. Years ago, I worked for a title insurance company that dealt with > timeshares. At their request, I created an application to deal with some > of > the special issues that affect timeshares and title insurance. That was my > first Access database. I left the company and the database...it belonged > to > them. No problem. I went to work for another title company and created the > database application they needed to deal with their timeshare issues > (didn't > use the old one....sorta recreated a new one). So far, so good. Not a > moral > or ethical issue involved. That company fell apart and I moved on. Now, > the > unethical part. The company fell apart and I took the the database home > with > me because nobody cared. I "play" with it...have test data, etc., easily > available and I have implemented a number of the ideas I've gleaned from > this group (for which I will always be grateful)...now comes the ethical > question: Owner A couldn't care less (they don't do timeshares now); Owner > B > is out of business entirely. IF I choose to work with C, am I doing > anything > wrong by using the framework I've "played" with over the years. My > apologies...I know this is weird...but, honestly, I have no clue who else > to > ask. Thank you... > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Sep 16 20:30:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 21:30:10 -0400 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <006501c7f8ca$4a721060$6c7aa8c0@M90> Both companies out of business, you developed it for pay for an insolvent business. I would say that you are bringing prior experience to company C, which happens to include code and ideas gleaned from time spent working for companies no longer in business. My first take would be no problem. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 6:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Sep 16 21:12:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 22:12:30 -0400 Subject: [AccessD] Is my site down Message-ID: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com From askolits at nni.com Sun Sep 16 21:37:19 2007 From: askolits at nni.com (John Skolits) Date: Sun, 16 Sep 2007 22:37:19 -0400 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <003201c7f8d3$ab0f6810$6401a8c0@LaptopXP> Received an error John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 askolits at nni.com Sun Sep 16 21:38:28 2007 From: askolits at nni.com (John Skolits) Date: Sun, 16 Sep 2007 22:38:28 -0400 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <087301c7f8d3$d46141c0$0f01a8c0@officexp> Here's the error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 drboz at pacbell.net Sun Sep 16 21:40:59 2007 From: drboz at pacbell.net (Don Bozarth) Date: Sun, 16 Sep 2007 19:40:59 -0700 Subject: [AccessD] Is my site down References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <005001c7f8d4$2ebcf880$6501a8c0@don> John, Received the following error.... Don B. Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, September 16, 2007 7:12 PM Subject: [AccessD] Is my site down > Would someone please try to browse to my web site - > > www.colbyconsulting.com > > And tell me if the site is down. I can't get at it at all but the hosting > company says they can see it. > > Please cut and paste the HTML error into a return email. > > Thanks, > > 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 thewaddles at sbcglobal.net Sun Sep 16 21:41:02 2007 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Sun, 16 Sep 2007 19:41:02 -0700 Subject: [AccessD] Is my site down In-Reply-To: <006c01c7f8d0$353b6740$6c7aa8c0@M90> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> Message-ID: <001b01c7f8d4$30d32e50$6600a8c0@TheWaddles> I get a server error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 7:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 Sun Sep 16 21:45:12 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Sep 2007 22:45:12 -0400 Subject: [AccessD] Is my site down In-Reply-To: <087301c7f8d3$d46141c0$0f01a8c0@officexp> References: <006c01c7f8d0$353b6740$6c7aa8c0@M90> <087301c7f8d3$d46141c0$0f01a8c0@officexp> Message-ID: <006d01c7f8d4$c6656f00$6c7aa8c0@M90> Thanks, that is what I needed. John 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 Skolits Sent: Sunday, September 16, 2007 10:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Is my site down Here's the error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file. Source Error: Line 1: Line 2: Line 3: Source File: /App_GlobalResources/Locales.Portal.xml.resources Line: 1 ---------------------------------------------------------------------------- ---- Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Sunday, September 16, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is my site down Would someone please try to browse to my web site - www.colbyconsulting.com And tell me if the site is down. I can't get at it at all but the hosting company says they can see it. Please cut and paste the HTML error into a return email. Thanks, 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 darren at activebilling.com.au Sun Sep 16 22:19:07 2007 From: darren at activebilling.com.au (Darren D) Date: Mon, 17 Sep 2007 13:19:07 +1000 Subject: [AccessD] A2003: Access Data Project Question Message-ID: <200709170319.l8H3IxGY028473@databaseadvisors.com> Hi All Am trying to do an insert from an Access Project form (That connects to an SQL 2000 dB) using a Forms!Control reference and am getting the following error "Run Time Error 128 - The Name Forms! Is not permitted in this context. Only Constants expressions, or variables allowed here. Column Names are not Permitted" Clearly the old fashioned way of referencing a form control is gone in access Data Projects When I click help on the error - I get a white blank screen - Pretty much how I feel :-) Any suggestions, work arounds or is there some proper way to do with with data Acess Projects? Many thanks Darren The code is Dim rs As Object Dim con As Object Dim insSQL As String Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" rs.Open insSQL, con, 1, 3 '<========Fails here ' DoCmd.RunSQL insSQL ' Also tried this and that failed too From newsgrps at dalyn.co.nz Sun Sep 16 22:32:45 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 17 Sep 2007 15:32:45 +1200 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <200709170319.l8H3IxGY028473@databaseadvisors.com> References: <200709170319.l8H3IxGY028473@databaseadvisors.com> Message-ID: <20070917032912.BSU7219.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Darren, Instead of: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" Try: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (" & Forms!frm1_Tariff!txtTariffID & ", " & Forms!frm3_TariffServices!cbo_luTariffServiceID & ")" Regards David At 17/09/2007, you wrote: >Hi All > > > >Am trying to do an insert from an Access Project form (That connects to an SQL >2000 dB) using a Forms!Control reference and am getting the following error > > > > > >"Run Time Error 128 - The Name Forms! Is not permitted in this context. Only >Constants expressions, or variables allowed here. Column Names are not >Permitted" > > > >Clearly the old fashioned way of referencing a form control is gone in access >Data Projects > > > >When I click help on the error - I get a white blank screen - Pretty >much how I >feel :-) > > > >Any suggestions, work arounds or is there some proper way to do with with data >Acess Projects? > > > >Many thanks > > > >Darren > > > >The code is > > Dim rs As Object > > Dim con As Object > > Dim insSQL As String > > > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > > > insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES >(Forms!frm1_Tariff!txtTariffID, >Forms!frm3_TariffServices!cbo_luTariffServiceID)" > > > > > > rs.Open insSQL, con, 1, 3 '<========Fails here > > > > ' DoCmd.RunSQL insSQL ' Also tried this and that failed too > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Sep 17 04:01:12 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Sep 2007 11:01:12 +0200 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max From max.wanadoo at gmail.com Mon Sep 17 07:32:12 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 17 Sep 2007 13:32:12 +0100 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: References: Message-ID: <004801c7f926$c7c5f020$8119fea9@LTVM> Hello Gustav, Thank you very much for this. I will try it out later, but knowing you I am sure it will work just fine. Thanks very much Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 17, 2007 10:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 07:37:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 08:37:30 -0400 Subject: [AccessD] Web site up Message-ID: <000001c7f927$83c40190$6c7aa8c0@M90> My web site is back up. Thanks for your responses in testing my site. John W. Colby Colby Consulting www.ColbyConsulting.com From Chester_Kaup at kindermorgan.com Mon Sep 17 08:10:54 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 08:10:54 -0500 Subject: [AccessD] Query is to complex Message-ID: Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 dwaters at usinternet.com Mon Sep 17 08:56:59 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 08:56:59 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> References: <000301c7f53d$2cf91500$9402a8c0@hpnotebook><008501c7f584$cdd476d0$4b3a8343@SusanOne> <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <000a01c7f932$9e155e30$0200a8c0@danwaters> This is a good question! Unless you had a prior written agreement with either company that stated that a condition of your employment was that you would assign all rights to anything you created that was patentable or copyrightable, then those databases are yours. The reason for this is that the US Constitution specifically states that 'discoveries' belong to inventors and authors, and so no federal or state law can state differently and force you to give up your rights in this legal area. I've been a design engineer, and at most places I worked, before I accepted the job, I had to sign an agreement to assign all inventions (related to my job) to the company. I decided up front to do this, no law required me to. At one company I did apply for and receive a patent that was unrelated to my job, and my company had a review process where they released me from my obligation to assign rights to them for that patent. I am completely confident (although not an attorney) that the database you currently have is yours. Hope this helps, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Sep 17 09:05:08 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 17 Sep 2007 10:05:08 -0400 Subject: [AccessD] Query is to complex In-Reply-To: References: Message-ID: Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 dwaters at usinternet.com Mon Sep 17 09:12:58 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 09:12:58 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <000b01c7f934$d99a1d40$0200a8c0@danwaters> Jim & Max, Thanks! I'll try this and report back! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Sep 17 09:21:15 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 17 Sep 2007 18:21:15 +0400 Subject: [AccessD] Access to VB.Net In-Reply-To: <000a01c7f76c$722933e0$8119fea9@LTVM> Message-ID: <000301c7f936$02180fb0$6401a8c0@nant> <<< Also, Will the SQL installation affect any of my existing or future Access projects? >>> Hello Max, I can't tell anything about future - that's MS's and "Crystal Ball's" responsibility :) What can I tell from my experience: MS SQL 2000 and 2005 installations didn't affect anyhow (badly) MS Office/Access 2003 or MS Office/Access 2007 installations and projects (I have MS Office/Access 2003 and 2007 on different PCs)... I'd suppose that MS SQL 2005 should work well on your system also... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 11:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Sep 17 09:26:24 2007 From: max.wanadoo at gmail.com (Gmail) Date: Mon, 17 Sep 2007 15:26:24 +0100 Subject: [AccessD] Access to VB.Net In-Reply-To: <000301c7f936$02180fb0$6401a8c0@nant> References: <000a01c7f76c$722933e0$8119fea9@LTVM> <000301c7f936$02180fb0$6401a8c0@nant> Message-ID: <005e01c7f936$bd181210$8119fea9@LTVM> Thank you, Shamil Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, September 17, 2007 3:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net <<< Also, Will the SQL installation affect any of my existing or future Access projects? >>> Hello Max, I can't tell anything about future - that's MS's and "Crystal Ball's" responsibility :) What can I tell from my experience: MS SQL 2000 and 2005 installations didn't affect anyhow (badly) MS Office/Access 2003 or MS Office/Access 2007 installations and projects (I have MS Office/Access 2003 and 2007 on different PCs)... I'd suppose that MS SQL 2005 should work well on your system also... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Saturday, September 15, 2007 11:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Shamil, Thanks once again for an very useful reply. One other question that I should have asked but forgot to: Do I have to take any special precautions to safeguard my current installation of Access (and indeed MS Office). I currently have Office 2003 (Access V11.0). Also, Will the SQL installation affect any of my existing or future Access projects? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, September 14, 2007 9:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access to VB.Net Max, I did install my VS and MS SQL 2005 and MSDN from MSDN sets configured differently therefore below is my guess: a) 1,2 - not needed if you do not plan to use MS SQL Server but not using MS SQL Server sounds strange these days - at least install MS SQL Server 2005 Express Edition and its Management Studio - available for free download from MS Site b) 3,4 c) 9,10,11 (if you have good Internet connection or you don't mind to shuffle manually MSDN disks when they will be requested when you will search for some MSDN information then you can install minimal subset of MSDN docs - I usually install all) I also have Dell Inspiron 9400 but with MS Windows Vista Ultimate: MS SQL 2000, MS SQL 2005, VS 2005 Prof., MS Office 2007, ... - everything I use works very well on this system... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 14, 2007 10:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access to VB.Net Many thanks to all of you for the advice for Access to VB.Net I now have the installation disks, but I am unsure of what to install. I do not want to install anything that I don't need and would appreciate your advice on this. What I have is:- ALL ARE MS Visual Studio 2005 dated December 2005 Application Developer Tools Professional Edition 1. SQL Server Developer Edition. 32bit CD1 2. SQL Server Developer Edition. 32bit CD2 3. MS Visual Studio 2005 Professional Edition Disc 1 4. MS Visual Studio 2005 Professional Edition Disc 2 5. SQL Server Developer Edition. IA 64bit CD1 6. SQL Server Developer Edition. IA 64bit CD2 7. SQL Server Developer Edition. 64bit CD1 8. SQL Server Developer Edition. 64bit CD2 9. MSDN Library for Visual Studion System Disc 1 10. MSDN Library for Visual Studion System Disc 2 11. MSDN Library for Visual Studion System Disc 3 I work at home on a Dell Inspiron 9400 laptop with Windows XP Pro And at work on a PC with Windows XP Pro 1+2 Do I need these? 3+4 Presume I need these. 5+6 I don't know what 5+6 are (never heard of IA) and I don't have a 5+64bit system 7+8 Again, no 64bit system 9+10+11. Do I need these (thinking of space on my laptop, no problem 9+10+with space at work) Is there any special order for installation? If I need the SQL, do I install these before the VS? Any advice would be greatly appreciated. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 17 10:17:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 17 Sep 2007 08:17:10 -0700 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <200709170319.l8H3IxGY028473@databaseadvisors.com> References: <200709170319.l8H3IxGY028473@databaseadvisors.com> Message-ID: An ADP works with SQL Server and SQL Server knows zip about the UI forms, so you can't use that construction in an ADP. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren D Sent: Sunday, September 16, 2007 8:19 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Access Data Project Question Hi All Am trying to do an insert from an Access Project form (That connects to an SQL 2000 dB) using a Forms!Control reference and am getting the following error "Run Time Error 128 - The Name Forms! Is not permitted in this context. Only Constants expressions, or variables allowed here. Column Names are not Permitted" Clearly the old fashioned way of referencing a form control is gone in access Data Projects When I click help on the error - I get a white blank screen - Pretty much how I feel :-) Any suggestions, work arounds or is there some proper way to do with with data Acess Projects? Many thanks Darren The code is Dim rs As Object Dim con As Object Dim insSQL As String Set rs = CreateObject("ADODB.Recordset") Set con = Application.CurrentProject.Connection insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" rs.Open insSQL, con, 1, 3 '<========Fails here ' DoCmd.RunSQL insSQL ' Also tried this and that failed too -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Sep 17 10:23:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 08:23:39 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <000001c7f8b2$36e9fd40$6400a8c0@dsunit1> Message-ID: <006901c7f93e$b9671e60$0301a8c0@HAL9005> I'm not a lawyer or an ethicist, but I wouldn't think twice about using the code you developed for the first two companies. First of all, in the absence of a written contract to the contrary, everything you developed belongs to you. This is important to all of us developers because we all have libraries of stuff that we drop into our apps for clients, and obviously we don't want ownership of that stuff to pass to one client. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian Sent: Sunday, September 16, 2007 3:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda OK...I give up...I've thought about this all weekend and I'm supposed to have an answer tomorrow and I don't. This is ethical and moral and legal, I think. Years ago, I worked for a title insurance company that dealt with timeshares. At their request, I created an application to deal with some of the special issues that affect timeshares and title insurance. That was my first Access database. I left the company and the database...it belonged to them. No problem. I went to work for another title company and created the database application they needed to deal with their timeshare issues (didn't use the old one....sorta recreated a new one). So far, so good. Not a moral or ethical issue involved. That company fell apart and I moved on. Now, the unethical part. The company fell apart and I took the the database home with me because nobody cared. I "play" with it...have test data, etc., easily available and I have implemented a number of the ideas I've gleaned from this group (for which I will always be grateful)...now comes the ethical question: Owner A couldn't care less (they don't do timeshares now); Owner B is out of business entirely. IF I choose to work with C, am I doing anything wrong by using the framework I've "played" with over the years. My apologies...I know this is weird...but, honestly, I have no clue who else to ask. Thank you... -- 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.487 / Virus Database: 269.13.21/1010 - Release Date: 9/15/2007 7:54 PM From Chester_Kaup at kindermorgan.com Mon Sep 17 10:37:23 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 10:37:23 -0500 Subject: [AccessD] Query is to complex In-Reply-To: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> References: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> Message-ID: I don't know what to think now. Took a snapshot of the SQL server data into local tables to send it to you and it ran. Something else is going on. Broke it into 2 queries against SQL server and it ran. I think I will leave it at that. Thanks for the offer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query is to complex Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 robert at webedb.com Mon Sep 17 11:03:11 2007 From: robert at webedb.com (Robert L. Stewart) Date: Mon, 17 Sep 2007 11:03:11 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: Message-ID: <200709171605.l8HG5S5N014846@databaseadvisors.com> If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... From Chester_Kaup at kindermorgan.com Mon Sep 17 11:06:57 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 11:06:57 -0500 Subject: [AccessD] Query returns data for wrong time period Message-ID: When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR FROM [qry All Manifolds Oil Gas Water] WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; 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 dwaters at usinternet.com Mon Sep 17 11:45:00 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 11:45:00 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <200709171605.l8HG5S5N014846@databaseadvisors.com> References: <200709171605.l8HG5S5N014846@databaseadvisors.com> Message-ID: <001701c7f94a$17105170$0200a8c0@danwaters> All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Sep 17 12:12:49 2007 From: prosoft6 at hotmail.com (Julie Reardon) Date: Mon, 17 Sep 2007 13:12:49 -0400 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: <001701c7f94a$17105170$0200a8c0@danwaters> References: <200709171605.l8HG5S5N014846@databaseadvisors.com> <001701c7f94a$17105170$0200a8c0@danwaters> Message-ID: Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Sep 17 12:14:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 17 Sep 2007 12:14:09 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- Gary Kjos garykjos at gmail.com From Chester_Kaup at kindermorgan.com Mon Sep 17 12:47:46 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 17 Sep 2007 12:47:46 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 askolits at nni.com Mon Sep 17 12:55:16 2007 From: askolits at nni.com (John Skolits) Date: Mon, 17 Sep 2007 13:55:16 -0400 Subject: [AccessD] Query is to complex In-Reply-To: References: <000301c7f933$c14c4d40$9402a8c0@hpnotebook> Message-ID: <08fb01c7f953$e7fdcc00$0f01a8c0@officexp> For the heck of it, try making an alias for each table/query object in your query. In the past, I have done that and it fixed a 'Too Complex' message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query is to complex I don't know what to think now. Took a snapshot of the SQL server data into local tables to send it to you and it ran. Something else is going on. Broke it into 2 queries against SQL server and it ran. I think I will leave it at that. Thanks for the offer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query is to complex Hi Chester, Any way you can send this to me? I would be happy to help if I could see a sampling of the data. Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, September 17, 2007 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 garykjos at gmail.com Mon Sep 17 13:16:39 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 17 Sep 2007 13:16:39 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 nd500_lo at charter.net Mon Sep 17 14:21:17 2007 From: nd500_lo at charter.net (Dian) Date: Mon, 17 Sep 2007 12:21:17 -0700 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters> Message-ID: <000601c7f95f$ebeac730$6400a8c0@dsunit1> Julie, I hope so. I couldn't find anyone that cared a thing about it, except for this little local timeshare development. They contacted me after a former co-worker told them about it and about me...and no one has said it's wrong. If this is a mistake, I'll be sure to let you all know when I get email rights in the friendly neighborhood jail. Wish me luck, folks. I'm technically retired, but what they'll need is basically nothing more than the installation and some training. Thank you so much to all of you. I've just called and committed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an >insolvent business. I would say that you are bringing prior experience >to company C, which happens to include code and ideas gleaned from time >spent working for companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed >to have an answer tomorrow and I don't. This is ethical and moral and >legal, I think. Years ago, I worked for a title insurance company that >dealt with timeshares. At their request, I created an application to >deal with some of the special issues that affect timeshares and title >insurance. That was my first Access database. I left the company and >the database...it belonged to them. No problem. I went to work for >another title company and created the database application they needed >to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a >moral or ethical issue involved. That company fell apart and I moved >on. Now, the unethical part. The company fell apart and I took the the >database home with >me because nobody cared. I "play" with it...have test data, etc., >easily available and I have implemented a number of the ideas I've >gleaned from this group (for which I will always be grateful)...now >comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); >Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who >else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jack.stone at solidcounsel.com Mon Sep 17 14:38:58 2007 From: jack.stone at solidcounsel.com (Jack Stone) Date: Mon, 17 Sep 2007 14:38:58 -0500 Subject: [AccessD] Database Patent...sort of....kinda References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters> <001501c7f94d$f96544b0$9402a8c0@hpnotebook> Message-ID: I haven't really been following this thread very closely lately, but noticed this one, and will say that those are the general rules loosely worded by Dan, but as in so many things in law, it is not always so simple, and there are always exceptions (that's what keeps us in business). Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 15:13:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 16:13:50 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: References: Message-ID: <001301c7f967$446cd7c0$6c7aa8c0@M90> Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Sep 17 16:45:23 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 17 Sep 2007 16:45:23 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: <200709171605.l8HG5S5N014846@databaseadvisors.com><001701c7f94a$17105170$0200a8c0@danwaters><001501c7f94d$f96544b0$9402a8c0@hpnotebook> Message-ID: <003501c7f974$0d65dad0$0200a8c0@danwaters> Jack, Can you list some exceptions that might be more frequent and applicable to the folks on this list? Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack Stone Sent: Monday, September 17, 2007 2:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database Patent...sort of....kinda I haven't really been following this thread very closely lately, but noticed this one, and will say that those are the general rules loosely worded by Dan, but as in so many things in law, it is not always so simple, and there are always exceptions (that's what keeps us in business). Regards, Jack Stone -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon Sent: Monday, September 17, 2007 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda Is that an official, lawyer-type answer? Can we bank on that as a response officially? Julie Reardon PRO-SOFT of NY, Inc. 44 Public Square, Suite 5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 NYS IT Contract#CMT026A NYS Certified Woman-Owned Business www.pro-soft.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, September 17, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database Patent...sort of....kinda All patents and inventions automatically belong to the inventor or author, unless that person agrees to reassign the rights. Typically a company will want certain employees to agree to this reassignment before they give you a job (and they won't give you the job unless you do agree). If a person comes up with an invention or copyright, the company can't force a person to reassign the rights, unless there is a prior agreement to do so. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Monday, September 17, 2007 11:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Database Patent...sort of....kinda If you were an employee, technically it is theirs. If you were paid to develop it specifically, as a contractor, it depends on the state. If they did not have you sign a contract stating it was theirs, it could possibly be yours. Patent, I doubt it. At 09:26 AM 9/17/2007, you wrote: >Date: Sun, 16 Sep 2007 21:30:10 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Database Patent...sort of....kinda >To: "'Access Developers discussion and problem solving'" > >Message-ID: <006501c7f8ca$4a721060$6c7aa8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >Both companies out of business, you developed it for pay for an insolvent >business. I would say that you are bringing prior experience to company C, >which happens to include code and ideas gleaned from time spent working for >companies no longer in business. My first take would be no problem. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dian >Sent: Sunday, September 16, 2007 6:38 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >OK...I give up...I've thought about this all weekend and I'm supposed to >have an answer tomorrow and I don't. This is ethical and moral and legal, I >think. Years ago, I worked for a title insurance company that dealt with >timeshares. At their request, I created an application to deal with some of >the special issues that affect timeshares and title insurance. That was my >first Access database. I left the company and the database...it belonged to >them. No problem. I went to work for another title company and created the >database application they needed to deal with their timeshare issues (didn't >use the old one....sorta recreated a new one). So far, so good. Not a moral >or ethical issue involved. That company fell apart and I moved on. Now, the >unethical part. The company fell apart and I took the the database home with >me because nobody cared. I "play" with it...have test data, etc., easily >available and I have implemented a number of the ideas I've gleaned from >this group (for which I will always be grateful)...now comes the ethical >question: Owner A couldn't care less (they don't do timeshares now); Owner B >is out of business entirely. IF I choose to work with C, am I doing anything >wrong by using the framework I've "played" with over the years. My >apologies...I know this is weird...but, honestly, I have no clue who else to >ask. Thank you... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Sep 17 18:10:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 16:10:02 -0700 Subject: [AccessD] Combo Box On Open Problem Message-ID: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> Dear List: When a form opens I want to set focus to a combo box on that form and drop it down. But the combo box list does not appear below the combo box as if you had clicked on the combo box after the form was open. It appears offset to the left and below the combo box. I think it's because the combo box is dropping down before the form is completely open even though cboGoTo.DropDown is the last line in the Open event. Is there some way I can fix this so that the list will be properly positioned beneath the combo box when the form opens? MTIA Rocky From darren at activebilling.com.au Mon Sep 17 19:56:30 2007 From: darren at activebilling.com.au (Darren D) Date: Tue, 18 Sep 2007 10:56:30 +1000 Subject: [AccessD] A2003: Access Data Project Question In-Reply-To: <20070917032912.BSU7219.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <200709180056.l8I0uIVV019594@databaseadvisors.com> Hi David, Charlotte Thanks for the construct David - I ended up using it - it works well Charlotte - Yes I am discovering this about Data Projects - very powerful beast but - another learning curve - not too tricky but the occasional gotcha Thanks for the replies team Excellent Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Monday, 17 September 2007 1:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Access Data Project Question Darren, Instead of: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (Forms!frm1_Tariff!txtTariffID, Forms!frm3_TariffServices!cbo_luTariffServiceID)" Try: insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES (" & Forms!frm1_Tariff!txtTariffID & ", " & Forms!frm3_TariffServices!cbo_luTariffServiceID & ")" Regards David At 17/09/2007, you wrote: >Hi All > > > >Am trying to do an insert from an Access Project form (That connects to an SQL >2000 dB) using a Forms!Control reference and am getting the following error > > > > > >"Run Time Error 128 - The Name Forms! Is not permitted in this context. Only >Constants expressions, or variables allowed here. Column Names are not >Permitted" > > > >Clearly the old fashioned way of referencing a form control is gone in access >Data Projects > > > >When I click help on the error - I get a white blank screen - Pretty >much how I >feel :-) > > > >Any suggestions, work arounds or is there some proper way to do with with data >Acess Projects? > > > >Many thanks > > > >Darren > > > >The code is > > Dim rs As Object > > Dim con As Object > > Dim insSQL As String > > > > > > Set rs = CreateObject("ADODB.Recordset") > > Set con = Application.CurrentProject.Connection > > > > > > insSQL = "insert into TariffServices (TariffID, ServiceTypeCode) VALUES >(Forms!frm1_Tariff!txtTariffID, >Forms!frm3_TariffServices!cbo_luTariffServiceID)" > > > > > > rs.Open insSQL, con, 1, 3 '<========Fails here > > > > ' DoCmd.RunSQL insSQL ' Also tried this and that failed too > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Sep 17 21:24:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 18 Sep 2007 02:24:18 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Hello All, I tried the suggestion below...using 10k filters instead of 10K SQL statements...it actually took 3 times as long. I need the fastest approach to executing 10K SQL Statements/Sets of Criteria. The 10K are all againts the same 3K row table. Any ideas?> Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a >3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the >data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte > >P.S...Searching for 'stuff' like this...found an articly by Susan H. about >arrays...but not quite what I needed. > > > >From: "Rocky Smolin at Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] SQL against recordset > >Date: Mon, 3 Sep 2007 20:23:05 -0700 > > > >Why do you want to do this. Or, what are you trying to accomplish? Why > >not > >just open a second recordset? The criteria are the same, yes? > > > >Rocky > > > > > > > > > > > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Monday, September 03, 2007 6:26 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] SQL against recordset > > > >Hello All, > > > >This might sound odd...but I want to use VBA to open a recordset... > > > >"Set rst1 = dbs.OpenRecordset("SELECT symbol from tblList...." > > > >then I want to open a new recordset by running an SQL statement against >the > >first recordset. I don't know if this is possible...and if so...what > >syntax > >would I use to reference the recordset? > > > >"Set rst2 = dbs.OpenRecordset("SELECT symbol from rst1..."??????? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From pcs at azizaz.com Mon Sep 17 21:54:24 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 18 Sep 2007 12:54:24 +1000 (EST) Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: <20070918125424.DDD90829@dommail.onthenet.com.au> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From miscellany at mvps.org Mon Sep 17 21:59:56 2007 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 18 Sep 2007 14:59:56 +1200 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> References: <00c301c7f97f$e0b10990$0301a8c0@HAL9005> Message-ID: <46EF3F2C.3090705@mvps.org> Rocky, I suggest trying the Load event rather than Open. Regards Steve Rocky Smolin at Beach Access Software wrote: > Dear List: > > When a form opens I want to set focus to a combo box on that form and drop > it down. But the combo box list does not appear below the combo box as if > you had clicked on the combo box after the form was open. > > It appears offset to the left and below the combo box. I think it's because > the combo box is dropping down before the form is completely open even > though cboGoTo.DropDown is the last line in the Open event. > > Is there some way I can fix this so that the list will be properly > positioned beneath the combo box when the form opens? From pcs at azizaz.com Mon Sep 17 22:00:03 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 18 Sep 2007 13:00:03 +1000 (EST) Subject: [AccessD] Combo Box On Open Problem Message-ID: <20070918130003.DDD91583@dommail.onthenet.com.au> Rocky, I would try and put the code on the Timer event of the Form to be sure that it only runs after the Form has opened .... after you have run the code set the Timer so it doesn't run again ... Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:10:02 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: [AccessD] Combo Box On Open Problem >To: "'Access Developers discussion and problem solving'" > >Dear List: > >When a form opens I want to set focus to a combo box on that form and drop >it down. But the combo box list does not appear below the combo box as if >you had clicked on the combo box after the form was open. > >It appears offset to the left and below the combo box. I think it's because >the combo box is dropping down before the form is completely open even >though cboGoTo.DropDown is the last line in the Open event. > >Is there some way I can fix this so that the list will be properly >positioned beneath the combo box when the form opens? > >MTIA > >Rocky > > > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 17 22:11:58 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Sep 2007 23:11:58 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <20070918125424.DDD90829@dommail.onthenet.com.au> References: <20070918125424.DDD90829@dommail.onthenet.com.au> Message-ID: <003001c7f9a1$adad86f0$6c7aa8c0@M90> No, but I can do some tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Monday, September 17, 2007 10:54 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Strong encryption (was: HashBytes) John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Mon Sep 17 22:14:48 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 20:14:48 -0700 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <46EF3F2C.3090705@mvps.org> Message-ID: <00f201c7f9a2$1271bb10$0301a8c0@HAL9005> Steve: That worked pretty well. It was lined up under the combo box but a little bit low. You know what worked even better? The Current event. Go figure. T Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Monday, September 17, 2007 8:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box On Open Problem Rocky, I suggest trying the Load event rather than Open. Regards Steve Rocky Smolin at Beach Access Software wrote: > Dear List: > > When a form opens I want to set focus to a combo box on that form and > drop it down. But the combo box list does not appear below the combo > box as if you had clicked on the combo box after the form was open. > > It appears offset to the left and below the combo box. I think it's > because the combo box is dropping down before the form is completely > open even though cboGoTo.DropDown is the last line in the Open event. > > Is there some way I can fix this so that the list will be properly > positioned beneath the combo box when the form opens? -- 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.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From rockysmolin at bchacc.com Mon Sep 17 22:16:17 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Sep 2007 20:16:17 -0700 Subject: [AccessD] Combo Box On Open Problem In-Reply-To: <20070918130003.DDD91583@dommail.onthenet.com.au> Message-ID: <00f301c7f9a2$47853980$0301a8c0@HAL9005> Borge: I ended up putting the code in the Current event. Which worked. Who knew? Any downside to that over the Timer approach. This is an inbound for that just allows the user to pick a person from a combo box which is then passed to a bound form that displays all the info about that person. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Monday, September 17, 2007 8:00 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Combo Box On Open Problem Rocky, I would try and put the code on the Timer event of the Form to be sure that it only runs after the Form has opened .... after you have run the code set the Timer so it doesn't run again ... Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:10:02 -0700 >From: "Rocky Smolin at Beach Access Software" >Subject: [AccessD] Combo Box On Open Problem >To: "'Access Developers discussion and problem solving'" > >Dear List: > >When a form opens I want to set focus to a combo box on that form and drop >it down. But the combo box list does not appear below the combo box as if >you had clicked on the combo box after the form was open. > >It appears offset to the left and below the combo box. I think it's because >the combo box is dropping down before the form is completely open even >though cboGoTo.DropDown is the last line in the Open event. > >Is there some way I can fix this so that the list will be properly >positioned beneath the combo box when the form opens? > >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.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From Gustav at cactus.dk Tue Sep 18 04:17:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 11:17:53 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Oh, but the recordset, was that retrieved from SQL Server or a (local) Access database? Did you try to open it static and/or as a snapshot? /gustav >>> markamatte at hotmail.com 18-09-2007 04:24 >>> Hello All, I tried the suggestion below...using 10k filters instead of 10K SQL statements...it actually took 3 times as long. I need the fastest approach to executing 10K SQL Statements/Sets of Criteria. The 10K are all againts the same 3K row table. Any ideas?> Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 04 Sep 2007 16:30:10 +0200 > >Hi Mark > >To initiate an SQL Execute is slow. Running DAO on a recordset is very >fast, indeed when you have only 3K records. >So open a recordset and apply the 10K filters - my guess is a 10 fold speed >increase or more. > >/gustav > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> >This is the speed thing again. I am running 10K SQL statements against a 3K >row table. I need it to be as fast as possible. Currently my 10K >statements are stored in a table. I pull them in as a recordset...loop >through...and execute each one. The 10K are all looking at the same >table...just different sets of criteria. A friend suggested I pull the data >into a recordset...and have each SQL statement reference the recorset...as >an attempt to save time. Maybe an array? > >Any thoughts? > >Thanks, > >Mark A. Matte From Gustav at cactus.dk Tue Sep 18 04:36:44 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 11:36:44 +0200 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi John and Borge I would expect a linear relation between string length and conversion time. And it is right, speed is not impressive due to the many calculations that have to be done. To gain real speed, an DLL or OCX would be needed like this commercial tool: http://www.chilkatsoft.com/crypt-activex.asp Perhaps someone could try to create an DLL in .Net? As far as I know, .Net contains a class for several types of encrypting, so it should be straight forward to carry out ... /gustav >>> pcs at azizaz.com 18-09-2007 04:54 >>> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >John 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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non- informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. > >Here's the header info with the description of the functions: > >' PC1 Cipher 128-bit key >' (c) Alexander Pukall 1991 >' Can be used freely even for commercial applications ' >' MS Access 97 version by >' Gustav Brock, Cactus Data ApS >' gustav at cactus.dk >' >' 2002-03-09. V1.0 >' Initial port from Visual Basic. >' 2002-06-23. V1.1 >' Code clean up and constants added. >' Redundant code removed. >' Modified to fully comply with VB datatypes. >' Modified to not crash for certain passwords. >' Modified for high speed conversion of long strings ( > 32K). >' 2002-06-24. V1.2 >' Functions added for en/decrypting to/from binary strings. > >' Usage: >' SetPassword(password) sets password prior to en/decryption. >' GetPassword() retrieves current password. >' StrEncrypt(DecryptedString) returns encrypted ascii string. >' StrDecrypt(EncryptedString_ascii) returns decrypted string. >' StrEncryptBin(DecryptedString) returns encrypted binary string. >' StrDecryptBin(EncryptedString_binary) returns decrypted string. >' >' Encrypted ascii string is twice the length of the decrypted string. >' Encrypted ascii string contains low ascii chars from a to p only. >' Encrypted binary string is same length as the decrypted string. >' Encrypted binary string may contain any char including Chr (0). >' Password may contain any ascii char including Chr(0). >' Password is maintained in global variable strPC1Password16. > >I've posted the full module previously: > >http://databaseadvisors.com/pipermail/dba-tech/2005- February/003711.html > >/gustav > > >>>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> >One more thing I would like to ask to see if anybody can help. > >With MD5 you can create a hashkey but cannot get the original word back out >of the hash. > >This is fine, but I have a situation where I need a strong encryption (like >that provided by MD5) but I need to get the orignal back again. > >The case in point is storing SMTP details for different employees so that >they can send emails off using CDO. Their specific email addresses are >stored in a table and their account passwords are encrypted, but at the >moment when sending the Email I have to prompt them for their password >before the email can be sent via their account. If the password could be >encrypted in the table and then auto-decrypted when sending the email then >it would all go through seamlessly. > >Does anybody know of an encryption/decryption device that would suit this? >Thanks >Max > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From phpons at gmail.com Tue Sep 18 05:48:09 2007 From: phpons at gmail.com (philippe pons) Date: Tue, 18 Sep 2007 12:48:09 +0200 Subject: [AccessD] Using a CommandBarComboBox Message-ID: <57144ced0709180348h5087ab2y7cac6fbde732c449@mail.gmail.com> Hi, I'm using a CommandBarComboBox to select items from a liste. To populate the cbo I use the AddItem method of the control. Then my list is populated with a list of name. When the user select an item, the code reads the selected name. But what I would prefer instead of using the returned name, is to use the corresponding ID, to query the database. But unfortuately, I cant't find a way to store the name and the ID in the cbo. ( like with the "normal" cbo where you can read the text and value propertty). Do you know a way of doing that? TIA, Philippe From ewaldt at gdls.com Tue Sep 18 07:02:33 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 18 Sep 2007 08:02:33 -0400 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 jimdettman at verizon.net Tue Sep 18 07:29:43 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 18 Sep 2007 08:29:43 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <001301c7f967$446cd7c0$6c7aa8c0@M90> References: <001301c7f967$446cd7c0$6c7aa8c0@M90> Message-ID: <000401c7f9ef$98be3250$8abea8c0@XPS> John, <> Yeah, something like that you'd really want to write in a fully compiled language (C++ or VB) and have it living in a .DLL that you could call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 17, 2007 4:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 18 07:46:23 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Sep 2007 14:46:23 +0200 Subject: [AccessD] More Access to Excel Help Needed Message-ID: Hi Thomas First, Sheet is not the same as WorkSheet. Use WorkSheet. Then, as you have the application object, this: xlBook.Application.Run "RunImpacts" could be written as: xlApp.Run "RunImpacts" Also, you must close all open worksheets before you terminate these. Finally, close the app before terminating it: xlApp.Quit Set xlApp = Nothing /gustav >>> ewaldt at gdls.com 18-09-2007 14:02 >>> I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub From dwaters at usinternet.com Tue Sep 18 07:58:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 07:58:01 -0500 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: References: Message-ID: <001501c7f9f3$8c0b7a00$0200a8c0@danwaters> I recently worked on an Access to Excel procedure, and there are three things I can see that might help. First, you will want to know if your user currently has Excel already open: '-- Is Excel already running? If IsAppRunning("Excel") = True Then Set objExcel = GetObject(, "Excel.Application") blnXLRunning = True Else Set objExcel = CreateObject("Excel.Application") blnXLRunning = False End If I used late binding because I don't know which version of Excel a user might have. Also, the procedure IsAppRunning is from Leban's web site. Next, you need to specifically save & close the workbook and instance of Excel if your code opened a new one. '-- Save & Quit objWorkbook.Save objWorkbook.Close If blnXLRunning = False Then objExcel.Quit End If Set objWorkbook = Nothing Set objExcel = Nothing Then, open the excel spreadsheet using ShellExecute: ShellExecute 0, "Open", stgFullPath, vbNullString, CurDir$, vbMaximizedFocus I am NOT experienced with running Excel in Access, but perhaps this will help. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 7:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 From jwcolby at colbyconsulting.com Tue Sep 18 08:23:26 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 09:23:26 -0400 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: <000401c7f9ef$98be3250$8abea8c0@XPS> References: <001301c7f967$446cd7c0$6c7aa8c0@M90> <000401c7f9ef$98be3250$8abea8c0@XPS> Message-ID: <003a01c7f9f7$19457850$6c7aa8c0@M90> LOL. Something like that I wouldn't want to write at all. But yea, a DLL would be good (for speed). Of course for the "once off" application such as the one that started this thread it seems that the speeds found in this VBA version would be fine, and would not require the DLL and all the DLL hell headaches that go along with 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 Jim Dettman Sent: Tuesday, September 18, 2007 8:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) John, <> Yeah, something like that you'd really want to write in a fully compiled language (C++ or VB) and have it living in a .DLL that you could call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 17, 2007 4:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Strong encryption (was: HashBytes) Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, and wrote a couple of functions to test it. It is not particularly speedy, taking about .75 milliseconds to encrypt / decrypt a short string "this is a drill, this is a drill". It scales linearly, i.e. it takes about twice as long to do the same string appended to itself once, and three times as long for the same string appended to itself twice. But of course this is interpreted basic, and it does appear to work just fine so there ya go. John 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: Monday, September 17, 2007 5:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi Max Yes, just a week ago I posted this for Arthur with a non-informative subject (Transactions): I've used that for mdb files sent over the Internet thus eliminating the need for VPN or encrypted mail. I just zipped and attached the mdb files. Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav >>> max.wanadoo at gmail.com 15-09-2007 14:11 >>> One more thing I would like to ask to see if anybody can help. With MD5 you can create a hashkey but cannot get the original word back out of the hash. This is fine, but I have a situation where I need a strong encryption (like that provided by MD5) but I need to get the orignal back again. The case in point is storing SMTP details for different employees so that they can send emails off using CDO. Their specific email addresses are stored in a table and their account passwords are encrypted, but at the moment when sending the Email I have to prompt them for their password before the email can be sent via their account. If the password could be encrypted in the table and then auto-decrypted when sending the email then it would all go through seamlessly. Does anybody know of an encryption/decryption device that would suit this? Thanks Max From robert at webedb.com Tue Sep 18 08:50:16 2007 From: robert at webedb.com (Robert L. Stewart) Date: Tue, 18 Sep 2007 08:50:16 -0500 Subject: [AccessD] Database Patent...sort of....kinda In-Reply-To: References: Message-ID: <200709181352.l8IDqgCJ026621@databaseadvisors.com> Dan, My comment about the patent was that it is probably not something that can be patented no matter who "owns" the rights to the source. Robert At 10:16 PM 9/17/2007, you wrote: >Sent: Monday, September 17, 2007 12:45 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Database Patent...sort of....kinda > >All patents and inventions automatically belong to the inventor or >author, >unless that person agrees to reassign the rights. Typically a company >will >want certain employees to agree to this reassignment before they give >you a >job (and they won't give you the job unless you do agree). > >If a person comes up with an invention or copyright, the company can't >force >a person to reassign the rights, unless there is a prior agreement to do >so. > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. >Stewart >Sent: Monday, September 17, 2007 11:03 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Database Patent...sort of....kinda > >If you were an employee, technically it is theirs. > >If you were paid to develop it specifically, as a >contractor, it depends on the state. If they did not >have you sign a contract stating it was theirs, it >could possibly be yours. > >Patent, I doubt it. From Patricia.O'Connor at otda.state.ny.us Tue Sep 18 08:59:48 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 09:59:48 -0400 Subject: [AccessD] Query is to complex References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> I have had this happen quite a few times. Would have to see more to test out. It actually could be that you are using a field as numeric but it is actually a text field. Is the MAnifoldList a single selection or multiple choice? How do you want to handle the GAS1 if there is no record for GAS? The other could be the number of characters in the sql text but that is iffy. I have a very very strong rule here that NO table, field, query name has spaces or special characters. I also keep the length of the query names down. Makes it easier to read and check SELECT qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM (qryManfldOilProdLst90Days LEFT JOIN qryManfldWaterProdLst90Days ON (qryManfldOilProdLst90Days.Manifold = qryManfldWaterProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qryManfldWaterProdLst90Days.ProductionDate)) LEFT JOIN qryManfldGasProdLst90Days ON ((qryManfldOilProdLst90Days.Manifold = qryManfldGasProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qry ManfldGasProdLst90Days.ProductionDate)) WHERE (qryManfldOilProdLst90Days.Manifold =[Forms]![frmSelManifold]![ManifoldList]) AND (qryManfldOilProdLst90Days.ProductionDate Between [Forms]![frmTimeInterval]![StartDate] And [Forms]![frmTimeInterval]![EndDate]) GROUP BY qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 rockysmolin at bchacc.com Tue Sep 18 09:06:04 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Sep 2007 07:06:04 -0700 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: <002201c7f9fd$0d279b10$0301a8c0@HAL9005> Are you closing all the Excel objects you're setting and then setting them = Nothing? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 5:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1013 - Release Date: 9/17/2007 1:29 PM From markamatte at hotmail.com Tue Sep 18 09:29:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 18 Sep 2007 14:29:35 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: The Recordset was retrieved from the (local) Access database...and as a snapshot, it was only twice as slow...so far...unless I'm doing something way off here...running 10K SQL statements seems to be fastest...but I'm having a hard time accepting that. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 18 Sep 2007 11:17:53 +0200 > >Hi Mark > >Oh, but the recordset, was that retrieved from SQL Server or a (local) >Access database? >Did you try to open it static and/or as a snapshot? > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> >Hello All, > >I tried the suggestion below...using 10k filters instead of 10K SQL >statements...it actually took 3 times as long. > >I need the fastest approach to executing 10K SQL Statements/Sets of >Criteria. > >The 10K are all againts the same 3K row table. > >Any ideas?> > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a >3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the >data > >into a recordset...and have each SQL statement reference the >recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Share your special parenting moments! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From BillMorrill at Comcast.net Tue Sep 18 09:48:49 2007 From: BillMorrill at Comcast.net (Bill Morrill) Date: Tue, 18 Sep 2007 08:48:49 -0600 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Message-ID: 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill From Jim.Hale at FleetPride.com Tue Sep 18 10:12:13 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 10:12:13 -0500 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: References: Message-ID: Two thoughts: If you are using ActiveCell, ActiveWorkbook, etc in your code and another workbook is open and being used while your code is running the code may grab that as the currently active workbook. This obviously will confuse the code completely since the workbook it has grabbed won't be what it expected. Second, I have found that ALL object references (not just those using excel objects) have to be properly set to nothing or Excel will sometimes hang around. Don't rely on Access to do proper garbage collection. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Tuesday, September 18, 2007 7:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] More Access to Excel Help Needed I'm thrilled at how well a database I'm working is doing (thanks in part to people here) except for one area: Excel doesn't want to go leave when it's told to. My database opens Excel, creates a workbook, exports data from several runs of a query (each to its own worksheet,), copies a code module from Access to Excel (it's actually Excel code just being stored in Access for this purpose), and then tells Excel to run that code. One of two things happens: 1. It runs perfectly, but Excel does not completely shut down (i.e., it still shows in the Task Manager) when closed. 2. It does NOT run completely, but gives error #462: "The remote server machine does not exist or is unavailable." In this case, the Excel workbook has been created, the data have been exported, but it's unable to transfer the code module. Now, I've also noticed that my Personal Macro Workbook is not present in either case. I don't know if this is normal in this situation or not; just thought I'd mention it in case it offers a hint to one of you knowledgeable individuals. In case #2, BTW, it dies at the "Set NewModule" statement in CopyModule. Any help with these would be greatly appreciated as always. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems '----Code Follows---- Public Sub CreateExcelWB() Dim varChoice As Variant Dim intToggle As Integer Dim rst As ADODB.Recordset Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Dim intCount As Integer intToggle = 0 On Error GoTo HandleErr Set xlApp = New Excel.Application 'Launch Excel Set xlBook = xlApp.Workbooks.Add 'Create workbook Set rst = New ADODB.Recordset For Each varChoice In Forms![frmexportcriteria].[lboVariants].ItemsSelected Forms![frmexportcriteria]![txtVariant] = _ Forms![frmexportcriteria].[lboVariants].ItemData(varChoice) DoCmd.SetWarnings False DoCmd.OpenQuery "qryGen" DoCmd.SetWarnings True xlBook.Sheets.Add Set xlSheet = xlBook.ActiveSheet xlSheet.Name = _ "Data_" & Forms![frmexportcriteria]![lboVariants].ItemData(varChoice) rst.Open _ Source:="tbl02", _ ActiveConnection:=CurrentProject.Connection With xlSheet For intCount = 1 To 3 With .Cells(1, intCount) .Value = rst.Fields(intCount - 1).Name .Font.Bold = True End With Next intCount .Range("A2").CopyFromRecordset rst End With rst.Close Next CopyModule (xlBook.Name) xlBook.Application.Run "RunImpacts" xlApp.Visible = True ExitHere: On Error Resume Next rst.Close Set rst = Nothing Set xlSheet = Nothing Set xlApp = Nothing Set xlBook = Nothing Exit Sub HandleErr: MsgBox ERR & ": " & ERR.Description, , "Error" xlApp.Visible = True Resume ExitHere End Sub '--------------------------------------------------- Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As vbcomponent, NewModule As vbcomponent Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) CodeLines = ModuleTocopy.CodeModule.Lines _ (1, ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 *********************************************************************** 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 Tue Sep 18 10:14:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 11:14:01 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: References: Message-ID: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 Sep 18 10:20:02 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 10:20:02 -0500 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: References: Message-ID: ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 mboyd at deloitte.com Tue Sep 18 10:57:07 2007 From: mboyd at deloitte.com (Boyd, Mark Thomas (US - Philadelphia)) Date: Tue, 18 Sep 2007 11:57:07 -0400 Subject: [AccessD] Email Automation Error Message-ID: I'm using code to loop thru a # of email addresses and send an email to each addr. My code pretty much does the following: Set rst = CurrentDb.OpenRecordset("SELECT [EmailAddr] FROM tblEmailAddrs") rst.MoveFirst Do Until rst.EOF = True ... populate Subject, To, Body, and add attachment objOutlookMsg.Display SendKeys "^{ENTER}", True 'automatically send form rst.MoveNext Loop The code works perfectly on my computer, however not so much on another pc. The 1st email sends fine, but the 2nd one produces the following error when the code hits "objOutlookMsg.Display": "A dialog box is open. Close it and try again." Has anyone experienced this error before? From the screenshot this person sent to me, there doesn't appear to be any dialog boxes blocking the email message from displaying. Any help/direction is greatly appreciated. Thanks, Mark Boyd This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] From accessd at shaw.ca Tue Sep 18 11:17:59 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:17:59 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: Message-ID: Hi Bill: I have been this route a few times and the one outstanding issue I found was the speed or lack of speed when using an ODBC drivers. I have always converted/have had to concert the connection to ADO-OLE... the performance is on a magnitude of difference. The bottle neck comes when attempting to download data (select). Delete, Update and in most cases Add requests are fairly quick. It also helps a lot if most of the SQL processing is done through procedures on the Oracle server... as well as it being much more secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 7:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 18 11:33:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:33:55 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> Message-ID: <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> John: I work with many clients who have networks that extend through out North America. You can use a secure domain with full encrypted secure connections, VPN pipes or private high speed connections. When logged on to one companies Windows servers, as admin, I could see every company, online.... thousands of computers and servers. The provincial government has their own private, protected bandwidth through the local ISP. Then there is a number of VPN options... even Hamachi... on the pay for version you can over 2000 connections on a network. All of these connection types can be very secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Sep 18 11:43:13 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 09:43:13 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries In-Reply-To: Message-ID: Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 jwcolby at colbyconsulting.com Tue Sep 18 11:42:02 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 12:42:02 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> References: <005901c7fa06$8c1fa3a0$6c7aa8c0@M90> <020E04B0366948AFA1E5950FC1589101@creativesystemdesigns.com> Message-ID: <006301c7fa12$d771c020$6c7aa8c0@M90> Fascinating! I use Hamachi when I am out of my office (which is rarely). John 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: Tuesday, September 18, 2007 12:34 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries John: I work with many clients who have networks that extend through out North America. You can use a secure domain with full encrypted secure connections, VPN pipes or private high speed connections. When logged on to one companies Windows servers, as admin, I could see every company, online.... thousands of computers and servers. The provincial government has their own private, protected bandwidth through the local ISP. Then there is a number of VPN options... even Hamachi... on the pay for version you can over 2000 connections on a network. All of these connection types can be very secure. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries Read only? Might be possible. It seems unlikely though that anyone with an Oracle database is going to expose views or tables to the internet directly. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 10:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Sep 18 11:52:53 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Sep 2007 12:52:53 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: References: Message-ID: <006401c7fa14$5bdc90a0$6c7aa8c0@M90> I think it is Access corruptions that are the issue. Access is finicky when its connections don't answer up in time. John 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: Tuesday, September 18, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill From accessd at shaw.ca Tue Sep 18 12:36:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 10:36:31 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: <006401c7fa14$5bdc90a0$6c7aa8c0@M90> Message-ID: Hi John: You are right; the Bound type applications do not work well in this environment. If you are using an ADO connection the ConnectionTimeout property can be set very high in the event of unstable connections. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, September 18, 2007 9:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries I think it is Access corruptions that are the issue. Access is finicky when its connections don't answer up in time. John 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: Tuesday, September 18, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Tue Sep 18 13:31:04 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 18 Sep 2007 13:31:04 -0500 Subject: [AccessD] Query is to complex In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C14D@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: The problem seems to be that Access does not think ProductionDate which is derived from a field named date in a SQL Server view by the formula Cdate(Fix(Date)) is really a date. By changing the source query to a make table query and then running the attached query against the table everything works great. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Tuesday, September 18, 2007 9:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query is to complex I have had this happen quite a few times. Would have to see more to test out. It actually could be that you are using a field as numeric but it is actually a text field. Is the MAnifoldList a single selection or multiple choice? How do you want to handle the GAS1 if there is no record for GAS? The other could be the number of characters in the sql text but that is iffy. I have a very very strong rule here that NO table, field, query name has spaces or special characters. I also keep the length of the query names down. Makes it easier to read and check SELECT qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM (qryManfldOilProdLst90Days LEFT JOIN qryManfldWaterProdLst90Days ON (qryManfldOilProdLst90Days.Manifold = qryManfldWaterProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qryManfldWaterProdLst90Days.ProductionDate)) LEFT JOIN qryManfldGasProdLst90Days ON ((qryManfldOilProdLst90Days.Manifold = qryManfldGasProdLst90Days.Manifold) AND (qryManfldOilProdLst90Days.ProductionDate = qry ManfldGasProdLst90Days.ProductionDate)) WHERE (qryManfldOilProdLst90Days.Manifold =[Forms]![frmSelManifold]![ManifoldList]) AND (qryManfldOilProdLst90Days.ProductionDate Between [Forms]![frmTimeInterval]![StartDate] And [Forms]![frmTimeInterval]![EndDate]) GROUP BY qryManfldOilProdLst90Days.Manifold, qryManfldOilProdLst90Days.ProductionDate, qryManfldOilProdLst90Days.Oil1, qryManfldGasProdLst90Days.Gas1, qryManfldWaterProdLst90Days.Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query is to complex Access says this query is to complex and of course cannot run it. I need some suggestions on how to do this better. Several queries, VBA? Thanks SELECT [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]) AS GOR1 FROM ([qry Manifold Oil Production last 90 Days] LEFT JOIN [qry Manifold Water Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Water Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Water Production Last 90 Days].ProductionDate)) LEFT JOIN [qry Manifold Gas Production Last 90 Days] ON ([qry Manifold Oil Production last 90 Days].Manifold = [qry Manifold Gas Production Last 90 Days].Manifold) AND ([qry Manifold Oil Production last 90 Days].ProductionDate = [qry Manifold Gas Production Last 90 Days].[Production Date]) WHERE ((([qry Manifold Oil Production last 90 Days].Manifold)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry Manifold Oil Production last 90 Days].ProductionDate) Between [Forms]![frm Time Interval]![StartDate] And [Forms]![frm Time Interval]![EndDate])) GROUP BY [qry Manifold Oil Production last 90 Days].Manifold, [qry Manifold Oil Production last 90 Days].ProductionDate, [qry Manifold Oil Production last 90 Days].Oil1, [qry Manifold Gas Production Last 90 Days].Gas1, [qry Manifold Water Production Last 90 Days].Water1, IIf([Oil1]=0,Null,[Gas1]*1000/[Oil1]); 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 Chester_Kaup at kindermorgan.com Tue Sep 18 13:34:28 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 18 Sep 2007 13:34:28 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: Message-ID: If I take the source query and make it into a make table query and then run the attached query off the created table everything works fine. Apparently access does not think ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) is a date until stored in a table. Thanks for the ideas, comments. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 Jim.Hale at FleetPride.com Tue Sep 18 13:45:51 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 18 Sep 2007 13:45:51 -0500 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: References: Message-ID: Actually I believe you are correct. My pass through queries use the IBM client Access ODBC driver to return the data. The difference(at least in my case) is that instead of sending a million record table down to Access and then running the query to create a record set of 10,000 records, the pass through query runs on the AS400 and sends only the result recordset down the line. This results in significantly fewer problems. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 18, 2007 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim *********************************************************************** 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 accessd at shaw.ca Tue Sep 18 13:57:42 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 11:57:42 -0700 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: Message-ID: Hi Chester: Have you tried putting # signs around the date? #MyDate# That should tell Access that is to be processed. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, September 18, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period If I take the source query and make it into a make table query and then run the attached query off the created table everything works fine. Apparently access does not think ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) is a date until stored in a table. Thanks for the ideas, comments. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period So the data in the date being checked is not stored in a date format? Is that correct? I am wondering if you need to do a conversion on the input form field to get it into the same frame of reference. Also I am wondering if the fieldname is actually called DATE? That would possibly be a problem even with the qualification in front of it. Date is possibly a reserved word and you might be getting something you don't intend. Just tossing out some ideas for you to maybe look into or think about. GK On 9/17/07, Kaup, Chester wrote: > The query returns a start date before the one entered. It appears to be > the first record most of the time. The first record is 5/16/2002. If I > hard code the date in the query works fine. The production date in the > source query has the following formula > ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) > > Example of query result > Start Date Entered Start Date Returned > 6/20/2005 6/3/2002 > 1/1/2005 5/16/2002 > 3/5/2006 5/16/2002 > 1/1/2007 5/16/2002 > 10/11/2004 5/16/2002 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, September 17, 2007 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > I think you need to describe a little more exactly what the > discrepancy is from what you enter to what data is selected. Are you > getting too much data or not enough? You are taking into > consideration that date type fields also have TIME included in them > that will sometimes affect selection? Usually with start dates that > doesn't catch you as much as with end dates. Also are there possibly > date format issues involved? Perhaps are your dates stored in a > different time zone or something so that they are really not the value > you think they are? > > Can you give us some samples of what you entered verses what was > selected and not selected as you expected? > > GK > > On 9/17/07, Kaup, Chester wrote: > > When I run the following query the start date of the results is not > the same as the start date from the form. The end date works correctly. > I have checked the value of StartDate and it appears correct. > Suggestions? > > > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil > Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry > All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas > Water].Gas, [qry All Manifolds Oil Gas Water].GOR > > FROM [qry All Manifolds Oil Gas Water] > > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select > Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas > Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And > ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time > Interval]![EndDate])) > > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > -- > 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 accessd at shaw.ca Tue Sep 18 15:36:52 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Sep 2007 13:36:52 -0700 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries In-Reply-To: Message-ID: Jim, that is a very good recommendation. I try to run all my queries on the server as that is what it does best, limits the downloads and let your Access do what it does best; present information in a great user interface. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 11:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Actually I believe you are correct. My pass through queries use the IBM client Access ODBC driver to return the data. The difference(at least in my case) is that instead of sending a million record table down to Access and then running the query to create a record set of 10,000 records, the pass through query runs on the AS400 and sends only the result recordset down the line. This results in significantly fewer problems. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, September 18, 2007 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim *********************************************************************** 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 dwaters at usinternet.com Tue Sep 18 17:33:10 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 17:33:10 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Sep 18 18:20:03 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 18 Sep 2007 16:20:03 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Message-ID: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Dan, You can do what you want with Snagit. You have to pay but it is well worth it. I use this application for documenting screens all the time. I copied the delete image out of Access and will send off line. You can also get this image if you use the wizard to create a button to delete a record. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 18, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Tue Sep 18 18:26:51 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 19:26:51 -0400 Subject: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C150@EXCNYSM0A1AI.nysemail.nyenet> The number one thing is use the ORACLE driver not the ms oracle driver!!! The ms driver does not seem to play with oracle as well. I have been using the ORACLE drivers for the last 7 years. I do both passthru and access queries. I tend to do more passthru because i do more complex and special subqueries. The second thing is under PROPERTIES change the TIMEOUT (? i am not at work right now to check wording) from 60 to 6000 or 600. I tend to use 6000. Otherwise the queries will bomb out after about 4 minutes even if it is simple. change it to a higher number and whallah it runs. HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Jim Lawrence Sent: Tue 09/18/2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enableAccess queries Jim: Isn't pass-through connections just ODBC? With good routers at each end of the connections you should not have any corruption. The banks use Cisco router and they have no lost packets... The Cisco router does the encryption, manages the network and monitors the packet flow. If a packet drops it automatically requests a resend. Even if a remote server or connection goes down the router just re-routes to another connection and/or server. This type of system takes all corruption concerns out of transactions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, September 18, 2007 8:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries ODBC connections over long distances has never worked for me- too slow and prone to corruption. Pass through queries, OTOH, have always worked well for me since the heavy lifting is done on the host machine and only the result set is delivered to Access. Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Tuesday, September 18, 2007 9:49 AM To: Accessd at databaseadvisors.com Subject: [AccessD] {Accessd] ODBC driver to Oracle to enable Access queries 9-18-07 I have a client who wishes to link up to Oracle databases in several US cities. These hookups would be up to 1000 miles from his office. He wants to use an Access ODBC driver via the Internet to enable Access querying. He has asked me to check this out as to the whys and wherefores. Help!!!!!. Is it possible to do this? Any books/articles on this topic? Thanks in advance, Bill -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Sep 18 18:28:43 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 09:28:43 +1000 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> References: <00f701c7fa43$e4d86c10$0200a8c0@danwaters>, <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Message-ID: <46F05F2B.30953.4C126CD1@stuart.lexacorp.com.pg> On 18 Sep 2007 at 16:20, Doug Murphy wrote: > Dan, > > You can do what you want with Snagit. You have to pay but it is well worth > it. I use this application for documenting screens all the time. I copied > the delete image out of Access and will send off line. You can do the same thing for free using Irfanview. From stuart at lexacorp.com.pg Tue Sep 18 18:07:49 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 09:07:49 +1000 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> References: <000301c7f87d$a6773860$8119fea9@LTVM>, , <00f701c7fa43$e4d86c10$0200a8c0@danwaters> Message-ID: <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> Yep , i use it quite often. On 13 March 07, I used in on MSAccess.exe before posting the following to the list under the subject "Re: [AccessD] A2K - Button Wizard Icons" ... Extract the executable into a directory such as C:\Resthief. Run the program. Navigate to you Office installation directory and locate the file MSACCESS.EXE. Drag and drop MSACCESS.EXE onto the open ResThief window. Now look in the ResThief directory. You will find a new subdirectory called MSACCESS.EXE.res This directory will now contain all the icons, bitmaps, cursors etc from MSAccess.exe as separate files. On 18 Sep 2007 at 17:33, Dan Waters wrote: > Well, I could not make this work for me. Has anyone else tried ResThief > 1.20? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Sunday, September 16, 2007 12:02 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Command Button Bitmap for Delete Row > > Hi Max: > > Could not get anything from the site www.ping.be/liontech but found it on > http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie > f.html > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail > Sent: Sunday, September 16, 2007 9:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Command Button Bitmap for Delete Row > > Try This. It will pull all the Access Resources out for you. > Regards > Max > > > ResThief 1.20 > ResThief extracts all resources from all binary files that get dropped on > its window. > If you drop a directory on its window all the binary files in that directory > and its > sub-directories will be processed. > It creates a directory for each file and stores the resources found in it. > It'll try > to construct a usefull name for the resource. > > STATUS Freeware > > AUTHOR Peter Stuer, email: Peter.Stuer at ping.be > > WEBPAGE Check the web for latest updates: > > www.ping.be/liontech > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Saturday, September 15, 2007 11:16 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Command Button Bitmap for Delete Row > > I have a customer who has asked that I use standard pictures on command > buttons. You can find some in Access through the picture property of a > command button. > > One that I can't find though is the standard 'Delete Row' X that has curved > lines. Does anyone know where a bitmap of that can be downloaded or > retrieved on a PC? > > Thanks! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sep 18 18:39:51 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 18 Sep 2007 18:39:51 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> References: <00f701c7fa43$e4d86c10$0200a8c0@danwaters> <007d01c7fa4a$70e1ab30$0200a8c0@murphy3234aaf1> Message-ID: <00fb01c7fa4d$35a41500$0200a8c0@danwaters> Hi Doug, I do have Snagit - a great tool for quickly creating screenshots for customer meetings and explanations! Thanks for the image! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, September 18, 2007 6:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Dan, You can do what you want with Snagit. You have to pay but it is well worth it. I use this application for documenting screens all the time. I copied the delete image out of Access and will send off line. You can also get this image if you use the wizard to create a button to delete a record. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, September 18, 2007 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Well, I could not make this work for me. Has anyone else tried ResThief 1.20? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, September 16, 2007 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Hi Max: Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Sunday, September 16, 2007 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Try This. It will pull all the Access Resources out for you. Regards Max ResThief 1.20 ResThief extracts all resources from all binary files that get dropped on its window. If you drop a directory on its window all the binary files in that directory and its sub-directories will be processed. It creates a directory for each file and stores the resources found in it. It'll try to construct a usefull name for the resource. STATUS Freeware AUTHOR Peter Stuer, email: Peter.Stuer at ping.be WEBPAGE Check the web for latest updates: www.ping.be/liontech -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, September 15, 2007 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Button Bitmap for Delete Row I have a customer who has asked that I use standard pictures on command buttons. You can find some in Access through the picture property of a command button. One that I can't find though is the standard 'Delete Row' X that has curved lines. Does anyone know where a bitmap of that can be downloaded or retrieved on a PC? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Tue Sep 18 18:48:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 18 Sep 2007 19:48:52 -0400 Subject: [AccessD] Problem with combo box audit Message-ID: <005801c7fa4e$82509260$4b3a8343@SusanOne> I receive an error when I add acCombo Box to the If conditions: If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType = acComboBox Then If .Value <> .OldValue Then Help says the following: "Operation is not supported for this type of object. (Error 3251) You were attempting to execute a method or assign a value to a property that is usually valid for the object, but is not supported in this specific instance. For example, the Edit method is generally valid for Recordset objects, but not for a snapshot-type Recordset. This error could also occur in cases where the operation is not permitted due to the type or status of the object - as when trying to use the MovePrevious method on a forward-only-type Recordset. Some operations are also not supported, depending on if you are accessing a Microsoft Access database engine or an ODBC data source." I have no clue why a combo box can't support Value or OldValue -- anyone run into this before? I'm stumped. If I remove the check for a combo, it works fine everytime. I'm running this from the form's BeforeUpdate event. Susan H. From cfoust at infostatsystems.com Tue Sep 18 19:07:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 18 Sep 2007 17:07:32 -0700 Subject: [AccessD] Problem with combo box audit In-Reply-To: <005801c7fa4e$82509260$4b3a8343@SusanOne> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: Unbound controls don't have an .OldValue property. Could that be what you're running into? Otherwise, it may be because the OldValue of the combo is null, and you can't compare anything to Null. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, September 18, 2007 4:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Problem with combo box audit I receive an error when I add acCombo Box to the If conditions: If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType = acComboBox Then If .Value <> .OldValue Then Help says the following: "Operation is not supported for this type of object. (Error 3251) You were attempting to execute a method or assign a value to a property that is usually valid for the object, but is not supported in this specific instance. For example, the Edit method is generally valid for Recordset objects, but not for a snapshot-type Recordset. This error could also occur in cases where the operation is not permitted due to the type or status of the object - as when trying to use the MovePrevious method on a forward-only-type Recordset. Some operations are also not supported, depending on if you are accessing a Microsoft Access database engine or an ODBC data source." I have no clue why a combo box can't support Value or OldValue -- anyone run into this before? I'm stumped. If I remove the check for a combo, it works fine everytime. I'm running this from the form's BeforeUpdate event. Susan H. -- 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 Tue Sep 18 19:10:07 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 18 Sep 2007 20:10:07 -0400 Subject: [AccessD] Query returns data for wrong time period References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Are you saying if you use a hardcoded date in ProductionDate example ProductionDate: #08/18/2007# the query works fine? When you use ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a table or form? How is it described? Why are you using fix? Just some quick tries. -- I rarely use ! for table fields in queries and I do queries using access tables and oracle tables. If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then Try - ProductionDate: Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) If this query is a regular access gui query you could try setting the format to date in the gui If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you could set a hidden field to a date format and insert the entered data into the hidden field and use that in the query instead of have to do Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. BTW - Date is usually considered a reserved word in most languages and software. It can cause some strange happenings. ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 stuart at lexacorp.com.pg Tue Sep 18 19:17:39 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Sep 2007 10:17:39 +1000 Subject: [AccessD] Problem with combo box audit In-Reply-To: <005801c7fa4e$82509260$4b3a8343@SusanOne> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> Comboboxes do have .Value and .OldValue properties. Looks to me as though the error is being thrown in whatever you are doing AFTER "If .Value <> .OldValue Then" What comes next? On 18 Sep 2007 at 19:48, Susan Harkins wrote: > I receive an error when I add acCombo Box to the If conditions: > > If .ControlType = acTextBox Or .ControlType = acOptionGroup Or .ControlType > = acComboBox Then If .Value <> .OldValue Then > > Help says the following: > > "Operation is not supported for this type of object. (Error 3251) > > You were attempting to execute a method or assign a value to a property that > is usually valid for the object, but is not supported in this specific > instance. For example, the Edit method is generally valid for Recordset > objects, but not for a snapshot-type Recordset. This error could also occur > in cases where the operation is not permitted due to the type or status of > the object - as when trying to use the MovePrevious method on a > forward-only-type Recordset. Some operations are also not supported, > depending on if you are accessing a Microsoft Access database engine or an > ODBC data source." > > I have no clue why a combo box can't support Value or OldValue -- anyone run > into this before? I'm stumped. If I remove the check for a combo, it works > fine everytime. I'm running this from the form's BeforeUpdate event. > > Susan H. > > -- > 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 Sep 18 23:44:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 19 Sep 2007 08:44:06 +0400 Subject: [AccessD] OT: The Baker's Dozen: A 13-Step Crash Course for Using LINQ Message-ID: <004701c7fa77$b63446c0$6401a8c0@nant> Hi All, Just thought this article could be interesting to many developers from Access-D because this article is about "bleeding-edge" but simple to use data access technologies for C#3.0/VB9.0, some of which are released already and some of which will come released in not that far future: http://www.devx.com/codemag/Article/35390/1954?pf=true If you know good direct links to articles/topics/tips on ADO.NET Entity Framework please post them here... Thank you. -- Shamil From Gustav at cactus.dk Wed Sep 19 04:42:41 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 19 Sep 2007 11:42:41 +0200 Subject: [AccessD] SQL against recordset Message-ID: Hi Mark Did you read the post from Shamil: "The Baker's Dozen: A 13-Step Crash Course for Using LINQ": LINQ is a set of extensions to the .NET Framework to query different types of data using a common language. Orcas Beta 1 features the following LINQ capabilities within .NET: Querying Microsoft SQL Server data using a strongly-typed DataContext (LINQ to SQL) Querying in-memory .NET objects (LINQ to Objects) Querying .NET DataSets (LINQ to DataSets) Querying XML Data (LINQ to XML) Using LINQ with a DataSet might be faster than your current solution. /gustav >>> markamatte at hotmail.com 18-09-2007 16:29 >>> The Recordset was retrieved from the (local) Access database...and as a snapshot, it was only twice as slow...so far...unless I'm doing something way off here...running 10K SQL statements seems to be fastest...but I'm having a hard time accepting that. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Tue, 18 Sep 2007 11:17:53 +0200 > >Hi Mark > >Oh, but the recordset, was that retrieved from SQL Server or a (local) >Access database? >Did you try to open it static and/or as a snapshot? > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> >Hello All, > >I tried the suggestion below...using 10k filters instead of 10K SQL >statements...it actually took 3 times as long. > >I need the fastest approach to executing 10K SQL Statements/Sets of >Criteria. > >The 10K are all againts the same 3K row table. > >Any ideas?> > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > >Hi Mark > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > >fast, indeed when you have only 3K records. > >So open a recordset and apply the 10K filters - my guess is a 10 fold speed > >increase or more. > > > >/gustav > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > >This is the speed thing again. I am running 10K SQL statements against a 3K > >row table. I need it to be as fast as possible. Currently my 10K > >statements are stored in a table. I pull them in as a recordset...loop > >through...and execute each one. The 10K are all looking at the same > >table...just different sets of criteria. A friend suggested I pull the data > >into a recordset...and have each SQL statement reference the recorset...as > >an attempt to save time. Maybe an array? > > > >Any thoughts? > > > >Thanks, > > > >Mark A. Matte From ssharkins at gmail.com Wed Sep 19 07:37:40 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 08:37:40 -0400 Subject: [AccessD] Problem with combo box audit In-Reply-To: <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> References: <005801c7fa4e$82509260$4b3a8343@SusanOne> <46F06AA3.24065.4C3F3924@stuart.lexacorp.com.pg> Message-ID: <00c901c7fab9$eb19f870$4b3a8343@SusanOne> Received this from the reader this morning: "I've been playing with this all evening... found one thing... If I put the validation function on a command button... both seem to work.... trying to run tem together seems to be doing something..... " I don't know why the event would matter with just the combo, but does appear to be the source of the problem. Oh, btw, he's using linked tables, but I don't know why that would matter. Susan H. Comboboxes do have .Value and .OldValue properties. Looks to me as though the error is being thrown in whatever you are doing AFTER "If .Value <> .OldValue Then" What comes next? From ssharkins at gmail.com Wed Sep 19 07:37:41 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 08:37:41 -0400 Subject: [AccessD] Problem with combo box audit In-Reply-To: References: <005801c7fa4e$82509260$4b3a8343@SusanOne> Message-ID: <00ca01c7faba$0e365010$4b3a8343@SusanOne> Nope, neither is the problem, but thanks for playing. :) Susan H. Unbound controls don't have an .OldValue property. Could that be what you're running into? Otherwise, it may be because the OldValue of the combo is null, and you can't compare anything to Null. From Chester_Kaup at kindermorgan.com Wed Sep 19 07:57:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 07:57:20 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: See responses below: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Tuesday, September 18, 2007 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Are you saying if you use a hardcoded date in ProductionDate example ProductionDate: #08/18/2007# the query works fine? Correct When you use ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? Correct Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a table or form? It is a view in SQL server How is it described? It is a DateTime data type Why are you using fix? To strip of the time part of the SQL server DateTime field Just some quick tries. -- I rarely use ! for table fields in queries and I do queries using access tables and oracle tables. If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then Try - ProductionDate: Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) If this query is a regular access gui query you could try setting the format to date in the gui If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you could set a hidden field to a date format and insert the entered data into the hidden field and use that in the query instead of have to do Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. BTW - Date is usually considered a reserved word in most languages and software. It can cause some strange happenings. Agreed however I did not create nor can I create the SQL server view Thanks for the ideas. ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (W) mailto:aa1160 at otda.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. ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Kaup, Chester Sent: Mon 09/17/2007 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period The query returns a start date before the one entered. It appears to be the first record most of the time. The first record is 5/16/2002. If I hard code the date in the query works fine. The production date in the source query has the following formula ProductionDate: CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) Example of query result Start Date Entered Start Date Returned 6/20/2005 6/3/2002 1/1/2005 5/16/2002 3/5/2006 5/16/2002 1/1/2007 5/16/2002 10/11/2004 5/16/2002 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, September 17, 2007 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period I think you need to describe a little more exactly what the discrepancy is from what you enter to what data is selected. Are you getting too much data or not enough? You are taking into consideration that date type fields also have TIME included in them that will sometimes affect selection? Usually with start dates that doesn't catch you as much as with end dates. Also are there possibly date format issues involved? Perhaps are your dates stored in a different time zone or something so that they are really not the value you think they are? Can you give us some samples of what you entered verses what was selected and not selected as you expected? GK On 9/17/07, Kaup, Chester wrote: > When I run the following query the start date of the results is not the same as the start date from the form. The end date works correctly. I have checked the value of StartDate and it appears correct. Suggestions? > > SELECT [qry All Manifolds Oil Gas Water].PID, [qry All Manifolds Oil Gas Water].ProductionDate, [qry All Manifolds Oil Gas Water].Oil, [qry All Manifolds Oil Gas Water].Water, [qry All Manifolds Oil Gas Water].Gas, [qry All Manifolds Oil Gas Water].GOR > FROM [qry All Manifolds Oil Gas Water] > WHERE ((([qry All Manifolds Oil Gas Water].PID)=[Forms]![frm Select Manifold]![ManifoldList]) AND (([qry All Manifolds Oil Gas Water].ProductionDate)>=[Forms]![frm Time Interval]![StartDate] And ([qry All Manifolds Oil Gas Water].ProductionDate)<=[Forms]![frm Time Interval]![EndDate])) > ORDER BY [qry All Manifolds Oil Gas Water].ProductionDate; > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 -- 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 ssharkins at gmail.com Wed Sep 19 08:59:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 09:59:11 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) Message-ID: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. From ewaldt at gdls.com Wed Sep 19 09:11:30 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 19 Sep 2007 10:11:30 -0400 Subject: [AccessD] More Access to Excel Help Needed In-Reply-To: Message-ID: I've been trying to narrow down the problem, and I believe I've found it. I commented out the line that calls a module that I use to copy a module from my Access database to the Excel workbook. Then I put a breakpoint in right before it, and manually copied the module into the workbook. It worked fine. I tried it more than once with no problem at all. The problem, it would seem, must be in the CopyModule module. Can someone see a problem with the module below? I think I remember adapting it from an Excel-to-Excel puppy, so apparently my adaptation is incorrect. I don't specifically open anything from within this module, so it does not seem that I should close anything. Of course I could be wrong. I send it the name of the workbook (variable = xlBook, so I send it xlBook.Name). "CR_Impacts" is the name of the module within Access that I want to copy. As always, thanks for any and all help. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As VBComponent, NewModule As VBComponent Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") CodeLines = ModuleTocopy.CodeModule.Lines _ (ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub 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 markamatte at hotmail.com Wed Sep 19 09:14:58 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 19 Sep 2007 14:14:58 +0000 Subject: [AccessD] SQL against recordset In-Reply-To: Message-ID: Thanks Gustav, I did not see that post. I will definetely take a look at it. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] SQL against recordset >Date: Wed, 19 Sep 2007 11:42:41 +0200 > >Hi Mark > >Did you read the post from Shamil: > >"The Baker's Dozen: A 13-Step Crash Course for Using LINQ": > > > >LINQ is a set of extensions to the .NET Framework to query different types >of data using a common language. Orcas Beta 1 features the following LINQ >capabilities within .NET: > >Querying Microsoft SQL Server data using a strongly-typed DataContext (LINQ >to SQL) >Querying in-memory .NET objects (LINQ to Objects) >Querying .NET DataSets (LINQ to DataSets) >Querying XML Data (LINQ to XML) > > > >Using LINQ with a DataSet might be faster than your current solution. > >/gustav > > >>> markamatte at hotmail.com 18-09-2007 16:29 >>> >The Recordset was retrieved from the (local) Access database...and as a >snapshot, it was only twice as slow...so far...unless I'm doing something >way off here...running 10K SQL statements seems to be fastest...but I'm >having a hard time accepting that. > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] SQL against recordset > >Date: Tue, 18 Sep 2007 11:17:53 +0200 > > > >Hi Mark > > > >Oh, but the recordset, was that retrieved from SQL Server or a (local) > >Access database? > >Did you try to open it static and/or as a snapshot? > > > >/gustav > > > > >>> markamatte at hotmail.com 18-09-2007 04:24 >>> > >Hello All, > > > >I tried the suggestion below...using 10k filters instead of 10K SQL > >statements...it actually took 3 times as long. > > > >I need the fastest approach to executing 10K SQL Statements/Sets of > >Criteria. > > > >The 10K are all againts the same 3K row table. > > > >Any ideas?> > > > >Thanks, > > > >Mark A. Matte > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] SQL against recordset > > >Date: Tue, 04 Sep 2007 16:30:10 +0200 > > > > > >Hi Mark > > > > > >To initiate an SQL Execute is slow. Running DAO on a recordset is very > > >fast, indeed when you have only 3K records. > > >So open a recordset and apply the 10K filters - my guess is a 10 fold >speed > > >increase or more. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 04-09-2007 16:12 >>> > > >This is the speed thing again. I am running 10K SQL statements against >a 3K > > >row table. I need it to be as fast as possible. Currently my 10K > > >statements are stored in a table. I pull them in as a recordset...loop > > >through...and execute each one. The 10K are all looking at the same > > >table...just different sets of criteria. A friend suggested I pull the >data > > >into a recordset...and have each SQL statement reference the >recorset...as > > >an attempt to save time. Maybe an array? > > > > > >Any thoughts? > > > > > >Thanks, > > > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Test your celebrity IQ.? Play Red Carpet Reveal and earn great prizes! http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_hotmailtextlink2 From Gustav at cactus.dk Wed Sep 19 09:27:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 19 Sep 2007 16:27:07 +0200 Subject: [AccessD] More Access to Excel Help Needed Message-ID: Hi Thomas What I did for a similar scenario, was to open Excel and open a Workbook containing the code, and then add the new WorkSheet to hold the data. Further, to prevent bloat, the very first thing was to create the Workbook with the code as a copy of a master Workbook. /gustav >>> ewaldt at gdls.com 19-09-2007 16:11 >>> I've been trying to narrow down the problem, and I believe I've found it. I commented out the line that calls a module that I use to copy a module from my Access database to the Excel workbook. Then I put a breakpoint in right before it, and manually copied the module into the workbook. It worked fine. I tried it more than once with no problem at all. The problem, it would seem, must be in the CopyModule module. Can someone see a problem with the module below? I think I remember adapting it from an Excel-to-Excel puppy, so apparently my adaptation is incorrect. I don't specifically open anything from within this module, so it does not seem that I should close anything. Of course I could be wrong. I send it the name of the workbook (variable = xlBook, so I send it xlBook.Name). "CR_Impacts" is the name of the module within Access that I want to copy. As always, thanks for any and all help. Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems Sub CopyModule(strXL As String) 'Copy CR_Impacts module to Excel workbook Dim CodeLines As String Dim ModuleTocopy As VBComponent, NewModule As VBComponent Set NewModule = _ Workbooks(strXL).VBProject.VBComponents.Add(vbext_ct_StdModule) Set ModuleTocopy = _ Application.VBE.ActiveVBProject.VBComponents("CR_Impacts") CodeLines = ModuleTocopy.CodeModule.Lines _ (ModuleTocopy.CodeModule.CountOfLines) NewModule.CodeModule.AddFromString CodeLines NewModule.Name = ModuleTocopy.Name End Sub From max.wanadoo at gmail.com Wed Sep 19 10:17:06 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 16:17:06 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> Message-ID: <001b01c7fad0$25b72690$8119fea9@LTVM> WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 19 10:32:34 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 10:32:34 -0500 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001b01c7fad0$25b72690$8119fea9@LTVM> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <001b01c7fad0$25b72690$8119fea9@LTVM> Message-ID: <001e01c7fad2$4d903100$0200a8c0@danwaters> Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... 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 john at winhaven.net Wed Sep 19 10:39:14 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 10:39:14 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <000301c7f87d$a6773860$8119fea9@LTVM> References: <000301c7f7e6$01071a90$0200a8c0@danwaters> <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> Sounds like a really neat solution for this however, I can't get it from the link provided. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail ResThief 1.20 www.ping.be/liontech From john at winhaven.net Wed Sep 19 10:44:16 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 10:44:16 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: References: <000301c7f87d$a6773860$8119fea9@LTVM> Message-ID: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html From accessd at shaw.ca Wed Sep 19 11:08:14 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:08:14 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> Message-ID: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Hi All: Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Sep 19 11:06:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 11:06:55 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> References: <000301c7f7e6$01071a90$0200a8c0@danwaters><000301c7f87d$a6773860$8119fea9@LTVM> <00ec01c7fad3$3e2fc530$6402a8c0@ScuzzPaq> Message-ID: <002501c7fad7$1cb89540$0200a8c0@danwaters> Do a web search for ResThief 1.20. There are many links. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row Sounds like a really neat solution for this however, I can't get it from the link provided. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail ResThief 1.20 www.ping.be/liontech -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Sep 19 11:04:09 2007 From: john at winhaven.net (John Bartow) Date: Wed, 19 Sep 2007 11:04:09 -0500 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> References: <000301c7f87d$a6773860$8119fea9@LTVM>, , <00f701c7fa43$e4d86c10$0200a8c0@danwaters> <46F05A45.3217.4BFF4B4C@stuart.lexacorp.com.pg> Message-ID: <00fc01c7fad6$b6f2a890$6402a8c0@ScuzzPaq> I found a copy I could download by searching the web: http://www.freewarehome.com/index.html?http%3A//www.freewarehome.com/Program ming/Helper_Apps/Extraction_-_Inclusion_t.html Pest Patrol doesn't like it! had to turn off it's real time scanner or it wouldn't allow it to run and would quarantine it. Once going though its very nice. Has one advantage over Irfanview in that it allows for quickly browsing all embedded resources at once with thumbnail view of Explorer. Thanks, this may come in handy. From Patricia.O'Connor at otda.state.ny.us Wed Sep 19 11:14:19 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 19 Sep 2007 12:14:19 -0400 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Another question - are you using a regular access query or a passthru? Using Access2k3 - I tried the Cdate(fix()) against an oracle db table. I selected the actual field and the modified one. It worked fine. So then I also checked it using Access97 still worked ok. I also wrote one where I had to link two table to get results and that worked ok. Then I pulled in one of our "views" with the create_dt. This one took longer but still worked. SELECT CaseID, CREATE_DT, CrDt: cDATE(fix(CREATE_DT)) FROM Tbl1 I can not run this in passthru because Cdate is not a valid oracle function. I can't get to a Sql Server table at the moment. ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 08:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > See responses below: > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Tuesday, September 18, 2007 7:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > Are you saying if you use a hardcoded date in ProductionDate example > ProductionDate: #08/18/2007# the query works fine? > Correct > > When you use ProductionDate: > CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? > Correct > > Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a > table or form? > It is a view in SQL server > > How is it described? > It is a DateTime data type > > Why are you using fix? > To strip of the time part of the SQL server DateTime field > > Just some quick tries. -- > I rarely use ! for table fields in queries and I do queries > using access tables and oracle tables. > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then > Try - ProductionDate: > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) > or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) > > If this query is a regular access gui query you could try > setting the format to date in the gui > > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you > could set a hidden field to a date format and insert the > entered data into the hidden field and use that in the query > instead of have to do > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. > > BTW - Date is usually considered a reserved word in most > languages and software. It can cause some strange happenings. > Agreed however I did not create nor can I create the SQL server view > > Thanks for the ideas. > > > ************************************************************* > * Patricia E. O'Connor > * Associate Computer Programmer/Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (W) mailto:aa1160 at otda.state.ny.us > *********************************************************** > > From accessd at shaw.ca Wed Sep 19 11:17:46 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:17:46 -0700 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> Message-ID: <57886EBB1FCB4AA0BFC5775A70868631@creativesystemdesigns.com> Just a comment... These low budget sites seem to be continually running on very tight margins. That is why it sometimes necessary to drop a few dollars off if you find a downloaded 'free' app is useful. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 8:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 11:21:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 09:21:22 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <62CB6458D9D3497CA39EDA5422EE5455@creativesystemdesigns.com> The ResThief can be downloaded from: http://www.freewarehome.com/index.html?http%3A//www.freewarehome.com/bx/inde x.php%3Faction%3Dvthread%26forum%3D8%26topic%3D3301 Jim From ssharkins at gmail.com Wed Sep 19 11:24:44 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 12:24:44 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <000901c7fad9$9d448870$4b3a8343@SusanOne> Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. From max.wanadoo at gmail.com Wed Sep 19 11:37:13 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:37:13 +0100 Subject: [AccessD] Command Button Bitmap for Delete Row In-Reply-To: <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> References: <000301c7f87d$a6773860$8119fea9@LTVM> <00f001c7fad3$efd89320$6402a8c0@ScuzzPaq> Message-ID: <000f01c7fadb$560b4730$8119fea9@LTVM> Probably because everybody hit the site when it was published here. Anyway, I have put a copy onto: http://peoplelinks.co.uk/msaccess/downloads/ResThief.zip In the expectation that the author has no objection. I will remove it tomorrow so get it now if you want it. (5.3Kb) ver small download. Watch for word wrap. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, September 19, 2007 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Button Bitmap for Delete Row This web page gave me a warning: Bandwidth Limit Exceeded The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Could not get anything from the site www.ping.be/liontech but found it on http://www.free2u.org/freeware/programming/miscellaneous_programming/resthie f.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:39:50 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:39:50 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <000901c7fad9$9d448870$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> <000901c7fad9$9d448870$4b3a8343@SusanOne> Message-ID: <001001c7fadb$b35f5660$8119fea9@LTVM> Jim, you probably didn't notice the word-wrap on the posting. It is there ok and I have had to do a System Restore on all but one computer at work, plus on my home laptop because of memory errors in Access - Be Warned! Wasted most of the afternoon and I am not a happy Teddy Bear. Also, if you have automatic updates enabled, then it will try to install when you go to turn your PC off - watch for this if you don't want it! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:41:36 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:41:36 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001e01c7fad2$4d903100$0200a8c0@danwaters> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM> <001e01c7fad2$4d903100$0200a8c0@danwaters> Message-ID: <001101c7fadb$f2bad1e0$8119fea9@LTVM> Yes, all of my computers! Made no difference, had to remove the update. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 4:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 19 11:50:05 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 17:50:05 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001e01c7fad2$4d903100$0200a8c0@danwaters> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM> <001e01c7fad2$4d903100$0200a8c0@danwaters> Message-ID: <001d01c7fadd$22360330$8119fea9@LTVM> Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 4:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Here is a list of known issues related to SP3: http://msmvps.com/blogs/bradley/archive/2007/09/18/office-2003-sp3.aspx Max - have you rebooted? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) WARNING! I have just downloaded this on my work PC and I am now getting memory errors!! Forms won't load etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 2:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 12:29:56 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 13:29:56 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001d01c7fadd$22360330$8119fea9@LTVM> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM><001e01c7fad2$4d903100$0200a8c0@danwaters> <001d01c7fadd$22360330$8119fea9@LTVM> Message-ID: <002201c7fae2$b33caf00$4b3a8343@SusanOne> Just a quick comparison, but MS posted most of these issues with its download information. Susan H. Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From accessd at shaw.ca Wed Sep 19 12:40:39 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 10:40:39 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <001001c7fadb$b35f5660$8119fea9@LTVM> Message-ID: <62817D8FE77447748E601474B2E1E606@creativesystemdesigns.com> Susan and Max... yes... noticed the wrap... thanks for your concern. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Wednesday, September 19, 2007 9:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Jim, you probably didn't notice the word-wrap on the posting. It is there ok and I have had to do a System Restore on all but one computer at work, plus on my home laptop because of memory errors in Access - Be Warned! Wasted most of the afternoon and I am not a happy Teddy Bear. Also, if you have automatic updates enabled, then it will try to install when you go to turn your PC off - watch for this if you don't want it! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hmmmmmm.... Lots of buzz about it already, so I'm sure some people got it -- I know I did. I'm not having any trouble with it either, but then, what I do on this system development-wise is limited. I tried the link and it's still working for me -- did you catch the wrap? Maybe that's what's wrong. http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-433B- B9D2-5E3C1132F206&displaylang=en Susan H. Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 19 12:44:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 10:44:36 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne> <300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 19, 2007 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Hi All: Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... 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 max.wanadoo at gmail.com Wed Sep 19 12:55:02 2007 From: max.wanadoo at gmail.com (Gmail) Date: Wed, 19 Sep 2007 18:55:02 +0100 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <002201c7fae2$b33caf00$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><001b01c7fad0$25b72690$8119fea9@LTVM><001e01c7fad2$4d903100$0200a8c0@danwaters><001d01c7fadd$22360330$8119fea9@LTVM> <002201c7fae2$b33caf00$4b3a8343@SusanOne> Message-ID: <002401c7fae6$34dae010$8119fea9@LTVM> I didn't see one that said that my Access progams would run out of memory when they had been operating correctly for some 7 years. Also, many people (like me) just trust MS and download when told to do so. Never again! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Just a quick comparison, but MS posted most of these issues with its download information. Susan H. Dan, Have you read this list? It is horrendous! This doesn't work, that doesn't work. What else that people haven't found out about yet? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 13:18:58 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 14:18:58 -0400 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> Message-ID: <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> Charlotte, now I'm curious -- nothing failed, at least, there was no message, but... apps are still showing SP 2. Wouldn't they show SP 3 if the install had been successful? Susan H. I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From ssharkins at gmail.com Wed Sep 19 13:39:49 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 14:39:49 -0400 Subject: [AccessD] credentials Message-ID: <003a01c7faec$76e34460$4b3a8343@SusanOne> Do any of you ask for credentials during the contract phase? How do you know whether the client you're talking to is legitimate? Do you run a credit check, look to the BBB? Susan H. From Chester_Kaup at kindermorgan.com Wed Sep 19 14:29:31 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 14:29:31 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: This is a regular access query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Wednesday, September 19, 2007 11:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Another question - are you using a regular access query or a passthru? Using Access2k3 - I tried the Cdate(fix()) against an oracle db table. I selected the actual field and the modified one. It worked fine. So then I also checked it using Access97 still worked ok. I also wrote one where I had to link two table to get results and that worked ok. Then I pulled in one of our "views" with the create_dt. This one took longer but still worked. SELECT CaseID, CREATE_DT, CrDt: cDATE(fix(CREATE_DT)) FROM Tbl1 I can not run this in passthru because Cdate is not a valid oracle function. I can't get to a Sql Server table at the moment. ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 08:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > See responses below: > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Tuesday, September 18, 2007 7:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > Are you saying if you use a hardcoded date in ProductionDate example > ProductionDate: #08/18/2007# the query works fine? > Correct > > When you use ProductionDate: > CDate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes!Date)) it gets wacky? > Correct > > Where is dbo_V_S_Oil_Metering_Daily_Volumes!Date located in a > table or form? > It is a view in SQL server > > How is it described? > It is a DateTime data type > > Why are you using fix? > To strip of the time part of the SQL server DateTime field > > Just some quick tries. -- > I rarely use ! for table fields in queries and I do queries > using access tables and oracle tables. > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a table then > Try - ProductionDate: > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) > or cdate([dbo_V_S_Oil_Metering_Daily_Volumes].[Date]) > > If this query is a regular access gui query you could try > setting the format to date in the gui > > If dbo_V_S_Oil_Metering_Daily_Volumes!Date is in a form, you > could set a hidden field to a date format and insert the > entered data into the hidden field and use that in the query > instead of have to do > Cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) in the query. > > BTW - Date is usually considered a reserved word in most > languages and software. It can cause some strange happenings. > Agreed however I did not create nor can I create the SQL server view > > Thanks for the ideas. > > > ************************************************************* > * Patricia E. O'Connor > * Associate Computer Programmer/Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (W) mailto:aa1160 at otda.state.ny.us > *********************************************************** > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 19 14:49:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 12:49:34 -0700 Subject: [AccessD] Office 2003 Service Pack 3 (SP3) In-Reply-To: <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> References: <000f01c7fac5$47a8bad0$4b3a8343@SusanOne><300033DF0FE042F7B1AEAE3D84B1299E@creativesystemdesigns.com> <002f01c7fae9$8f83ec20$4b3a8343@SusanOne> Message-ID: Beats me, Susan. Since it didn't install on my machine and gave me a message to that effect, I don't have a means of checking. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office 2003 Service Pack 3 (SP3) Charlotte, now I'm curious -- nothing failed, at least, there was no message, but... apps are still showing SP 2. Wouldn't they show SP 3 if the install had been successful? Susan H. I tried it from Windows Update and the update failed. I downloaded it from the download page, but I think I'll hold off on trying to install it. Charlotte Foust Whoops... a premature release? This message shows up in the browser this morning: The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office 2003 Service Pack 3 (SP3) http://www.microsoft.com/downloads/details.aspx?FamilyId=E25B7049-3E13-4 33B- B9D2-5E3C1132F206&displaylang=en I probably don't need to tell any of you that this is available (published yesterday), but just in case... Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed Sep 19 14:53:00 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 14:53:00 -0500 Subject: [AccessD] Text Box Default Value Message-ID: I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Donald.A.McGillivray at sprint.com Wed Sep 19 15:20:13 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Wed, 19 Sep 2007 15:20:13 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: Chester, Try using a domain aggregate function: =DMin("[ProductionDate]","tbl Manifold Production") Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 12:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 15:33:04 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 15:33:04 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: Perfect. Thank You! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Wednesday, September 19, 2007 3:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Box Default Value Chester, Try using a domain aggregate function: =DMin("[ProductionDate]","tbl Manifold Production") Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 12:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 dwaters at usinternet.com Wed Sep 19 15:43:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 15:43:38 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: Message-ID: <003001c7fafd$c22da670$0200a8c0@danwaters> Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 15:59:25 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 15:59:25 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: <003001c7fafd$c22da670$0200a8c0@danwaters> References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: Ok. I am not thinking well today. I put this in the forms on load property and get a message the macro txtTextBox cannot be found. Now another question looking down the road. Can the default value be set with a query. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Box Default Value Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Patricia.O'Connor at otda.state.ny.us Wed Sep 19 16:10:34 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 19 Sep 2007 17:10:34 -0400 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet><01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> Well I have run the adjustment of a full date several different ways and get the following CREATE_DT tDtBrac tDtFixbrac tDtCdfixBrac tDtCFixdot tDtdtfnc tdtapost 08/27/2001 11:32:38 AM 08/27/2001 11:32:38 AM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 11:32:38 AM 08/27/2001 02:03:53 PM 08/27/2001 02:03:53 PM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 02:03:53 PM 08/29/2001 10:51:42 AM 08/29/2001 10:51:42 AM 37132 08/29/2001 08/29/2001 09/19/2007 08/29/2001 10:51:42 AM 11/20/2001 04:55:00 PM 11/20/2001 04:55:00 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:55:00 PM 11/20/2001 04:59:56 PM 11/20/2001 04:59:56 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:59:56 PM 11/27/2001 03:51:16 PM 11/27/2001 03:51:16 PM 37222 11/27/2001 11/27/2001 09/19/2007 11/27/2001 03:51:16 PM 03/15/2002 02:59:11 PM 03/15/2002 02:59:11 PM 37330 03/15/2002 03/15/2002 09/19/2007 03/15/2002 02:59:11 PM 03/18/2002 03:32:46 PM 03/18/2002 03:32:46 PM 37333 03/18/2002 03/18/2002 09/19/2007 03/18/2002 03:32:46 PM 10/17/2002 03:13:46 PM 10/17/2002 03:13:46 PM 37546 10/17/2002 10/17/2002 09/19/2007 10/17/2002 03:13:46 PM 01/12/2004 01:22:06 PM 01/12/2004 01:22:06 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:22:06 PM 01/12/2004 01:23:37 PM 01/12/2004 01:23:37 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:23:37 PM 05/19/2004 01:46:16 PM 05/19/2004 01:46:16 PM 38126 05/19/2004 05/19/2004 09/19/2007 05/19/2004 01:46:16 PM I did run things against a view here and had no problem. It could be the way the view is created that is causing the problem. Can't tell you much more without seeing the table/view desc and the the sql for that. By any chance is the date in a binary index? You could try this and see what comes back and maybe that would help. SELECT dbo_V_S_Oil_Metering_Daily_Volumes.Date as tDtdot, dbo_V_S_Oil_Metering_Daily_Volumes!Date as tDtApost, cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtcdatedot, fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtfixdot, Cdate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date)) as tDtcdatefixdot, cdate(fix([dbo_V_S_Oil_Metering_Daily_Volumes].[date])) as tDtcfixbrac, cdate(fix([date])) as tDtcfixjdt, cdate(fix(date())) as tDtcfixfncdt >From dbo_V_S_Oil_Metering_Daily_Volumes Order by dbo_V_S_Oil_Metering_Daily_Volumes.Date ascending Sorry wish I could be more help ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 03:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > This is a regular access query. > From dwaters at usinternet.com Wed Sep 19 16:14:40 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Sep 2007 16:14:40 -0500 Subject: [AccessD] Text Box Default Value In-Reply-To: References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: <003d01c7fb02$17c0b4c0$0200a8c0@danwaters> Substitute txtTextBox with the actual name of your textbox. I don't know if it can be set with a query (just haven't tried). Generally, you would use the Default property if the initial value will always be the same value. Say, a checkbox would always be True, or a Date field will always be today (use Date()). If your initial value could be different each time, then you should use code in the Load event. That way you can trap for errors. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 3:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Box Default Value Ok. I am not thinking well today. I put this in the forms on load property and get a message the macro txtTextBox cannot be found. Now another question looking down the road. Can the default value be set with a query. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, September 19, 2007 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Box Default Value Instead of using the default value property, try this in the forms Load event: txtTextBox = Min([tbl Manifold Production]![ProductionDate]) Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, September 19, 2007 2:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Text Box Default Value I an using the following expression to set the default value of a text box on a form. The text box displays nothing. What might I be doing wrong? Thanks =Min([tbl Manifold Production]![ProductionDate]) 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 Wed Sep 19 16:31:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 19 Sep 2007 16:31:20 -0500 Subject: [AccessD] Query returns data for wrong time period In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE80253C151@EXCNYSM0A1AI.nysemail.nyenet><01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCA@EXCNYSM0A1AI.nysemail.nyenet> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFCD@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: Here is a sample of the result of your query. Thanks for all the effort you put into looking at this. I don't like the reserved word Date used in the SQL server view. May be a problem. One again thinks for your efforts. I may get the DBA to change the field name in SQL server. Date tDtdot tDtApost tdtcdatedot tdtfixdot tDtcdatefixdot tDtcfixbrac tDtcfixjdt tDtcfixfncdt 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 5/16/2002 11:00:00 PM 37392 5/16/2002 5/16/2002 5/16/2002 9/19/2007 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 5/17/2002 11:00:00 PM 37393 5/17/2002 5/17/2002 5/17/2002 9/19/2007 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 5/18/2002 11:00:00 PM 37394 5/18/2002 5/18/2002 5/18/2002 9/19/2007 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 5/19/2002 11:00:00 PM 37395 5/19/2002 5/19/2002 5/19/2002 9/19/2007 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 5/20/2002 11:00:00 PM 37396 5/20/2002 5/20/2002 5/20/2002 9/19/2007 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Wednesday, September 19, 2007 4:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query returns data for wrong time period Well I have run the adjustment of a full date several different ways and get the following CREATE_DT tDtBrac tDtFixbrac tDtCdfixBrac tDtCFixdot tDtdtfnc tdtapost 08/27/2001 11:32:38 AM 08/27/2001 11:32:38 AM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 11:32:38 AM 08/27/2001 02:03:53 PM 08/27/2001 02:03:53 PM 37130 08/27/2001 08/27/2001 09/19/2007 08/27/2001 02:03:53 PM 08/29/2001 10:51:42 AM 08/29/2001 10:51:42 AM 37132 08/29/2001 08/29/2001 09/19/2007 08/29/2001 10:51:42 AM 11/20/2001 04:55:00 PM 11/20/2001 04:55:00 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:55:00 PM 11/20/2001 04:59:56 PM 11/20/2001 04:59:56 PM 37215 11/20/2001 11/20/2001 09/19/2007 11/20/2001 04:59:56 PM 11/27/2001 03:51:16 PM 11/27/2001 03:51:16 PM 37222 11/27/2001 11/27/2001 09/19/2007 11/27/2001 03:51:16 PM 03/15/2002 02:59:11 PM 03/15/2002 02:59:11 PM 37330 03/15/2002 03/15/2002 09/19/2007 03/15/2002 02:59:11 PM 03/18/2002 03:32:46 PM 03/18/2002 03:32:46 PM 37333 03/18/2002 03/18/2002 09/19/2007 03/18/2002 03:32:46 PM 10/17/2002 03:13:46 PM 10/17/2002 03:13:46 PM 37546 10/17/2002 10/17/2002 09/19/2007 10/17/2002 03:13:46 PM 01/12/2004 01:22:06 PM 01/12/2004 01:22:06 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:22:06 PM 01/12/2004 01:23:37 PM 01/12/2004 01:23:37 PM 37998 01/12/2004 01/12/2004 09/19/2007 01/12/2004 01:23:37 PM 05/19/2004 01:46:16 PM 05/19/2004 01:46:16 PM 38126 05/19/2004 05/19/2004 09/19/2007 05/19/2004 01:46:16 PM I did run things against a view here and had no problem. It could be the way the view is created that is causing the problem. Can't tell you much more without seeing the table/view desc and the the sql for that. By any chance is the date in a binary index? You could try this and see what comes back and maybe that would help. SELECT dbo_V_S_Oil_Metering_Daily_Volumes.Date as tDtdot, dbo_V_S_Oil_Metering_Daily_Volumes!Date as tDtApost, cdate(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtcdatedot, fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date) as tdtfixdot, Cdate(Fix(dbo_V_S_Oil_Metering_Daily_Volumes.Date)) as tDtcdatefixdot, cdate(fix([dbo_V_S_Oil_Metering_Daily_Volumes].[date])) as tDtcfixbrac, cdate(fix([date])) as tDtcfixjdt, cdate(fix(date())) as tDtcfixfncdt >From dbo_V_S_Oil_Metering_Daily_Volumes Order by dbo_V_S_Oil_Metering_Daily_Volumes.Date ascending Sorry wish I could be more help ************************************************** * 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 > Kaup, Chester > Sent: Wednesday, September 19, 2007 03:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query returns data for wrong time period > > This is a regular access query. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 17:07:00 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 15:07:00 -0700 Subject: [AccessD] credentials In-Reply-To: <003a01c7faec$76e34460$4b3a8343@SusanOne> Message-ID: Before launching into any contract I spent as much time researching the contact person/ company as I do the contract. Check things like university/college trained, hobbies, locations, any news or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers related to the perspective client. Then there are business contacts, previous work done and if a lot of money is involved I will pay for a credit check. Someone with very little information on them I trust even less as I always wonder what they are hiding. Honest people don't hide. Suspicious people usually have a good reason to be very cautious... and a business venture can go strange very fast if one of the participants is carrying baggage. I have found information acquired from the BBB is not worth anything. Unless the member has not paid their dues there is no negative info on them. Even formal complaints are viewed as confidential until the member has been charged and convicted.... We had this company in court 3 times, for breach of contract before they finally forced to declared bankruptcy and their 'Member in Good Standing' endorsement was removed from the BBB roles. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 11:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] credentials Do any of you ask for credentials during the contract phase? How do you know whether the client you're talking to is legitimate? Do you run a credit check, look to the BBB? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Wed Sep 19 18:34:07 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 19 Sep 2007 17:34:07 -0600 Subject: [AccessD] credentials In-Reply-To: References: <003a01c7faec$76e34460$4b3a8343@SusanOne> Message-ID: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching the > contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any news > or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers > related to the perspective client. Then there are business contacts, > previous work done and if a lot of money is involved I will pay for a > credit > check. > > Someone with very little information on them I trust even less as I always > wonder what they are hiding. Honest people don't hide. Suspicious people > usually have a good reason to be very cautious... and a business venture > can > go strange very fast if one of the participants is carrying baggage. > > From ssharkins at gmail.com Wed Sep 19 19:01:38 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 20:01:38 -0400 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> References: <003a01c7faec$76e34460$4b3a8343@SusanOne> <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: <001301c7fb19$6bc58750$4b3a8343@SusanOne> I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. =======I maintain a blog on MS Office, and I can assure you, I'm not having that much fun. ;) Susan H. From cfoust at infostatsystems.com Wed Sep 19 19:00:10 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Sep 2007 17:00:10 -0700 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> References: <003a01c7faec$76e34460$4b3a8343@SusanOne> <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: You and I can commiserate, Arthur. I've never visited those sites either, although I have/had a silly blog that was nothing but nonsense, intentionally. Not only that, but I keep my face off the internet! LOL Charlotte (otherwise known as the Shady Lady!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 19, 2007 4:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching > the contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any > news or personal comments, MySpace, FaceBook, pictures, Blogs, local > newspapers related to the perspective client. Then there are business > contacts, previous work done and if a lot of money is involved I will > pay for a credit check. > > Someone with very little information on them I trust even less as I > always wonder what they are hiding. Honest people don't hide. > Suspicious people usually have a good reason to be very cautious... > and a business venture can go strange very fast if one of the > participants is carrying baggage. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 19:19:05 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 17:19:05 -0700 Subject: [AccessD] credentials In-Reply-To: <29f585dd0709191634s376871dx46c9d7070821a2bb@mail.gmail.com> Message-ID: <51063B73C1A84C07B031D4F3A8A5DBDD@creativesystemdesigns.com> Oh yes you would pass and with flying colours. I did not mean to suggest that a person has to be in MySpace, FaceBook or even have a Blog. It just some of the places I would look when researching a person. You show up in dozens of other places. There are 2,340,000 hits, on Google, on the name Arthur Fuller and I bet there are a good 100 direct references to you. (I have not been able to find out what you ate for supper to night or what your bank-account number is though) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, September 19, 2007 4:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. Arthur On 9/19/07, Jim Lawrence wrote: > > Before launching into any contract I spent as much time researching the > contact person/ company as I do the contract. > > Check things like university/college trained, hobbies, locations, any news > or personal comments, MySpace, FaceBook, pictures, Blogs, local newspapers > related to the perspective client. Then there are business contacts, > previous work done and if a lot of money is involved I will pay for a > credit > check. > > Someone with very little information on them I trust even less as I always > wonder what they are hiding. Honest people don't hide. Suspicious people > usually have a good reason to be very cautious... and a business venture > can > go strange very fast if one of the participants is carrying baggage. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 19 19:36:26 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Sep 2007 17:36:26 -0700 Subject: [AccessD] credentials In-Reply-To: <001301c7fb19$6bc58750$4b3a8343@SusanOne> Message-ID: <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> Hi Suzan: There are about 100 direct references to you through your books and articles under the name Susan Sales Harkin. Even some in Japanese. Your famous Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, September 19, 2007 5:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] credentials I guess I would fail your tests, Jim, since I have never even once visited either FaceBook or MySpace, and only very briefly written a blog, after which time I concluded that it was nothing more than intellectual masturbation. =======I maintain a blog on MS Office, and I can assure you, I'm not having that much fun. ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 19 19:56:36 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 20:56:36 -0400 Subject: [AccessD] Favor Message-ID: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> My copy of Access 2003 is toast, can someone please tell me the exact name of the objects/commands identified by a preceding _ To launch the label report wizard, choose _Report from the _New Object button's dropdown list and choose _Label Report from the resulting dialog box. I'd appreciate it. I should know them by heart, but I find, I don't. :( Susan H. From ssharkins at gmail.com Wed Sep 19 20:03:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 21:03:52 -0400 Subject: [AccessD] credentials In-Reply-To: <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> References: <001301c7fb19$6bc58750$4b3a8343@SusanOne> <67AC78306C7941B9998CDF5B5BBC2C1D@creativesystemdesigns.com> Message-ID: <002401c7fb22$1dd66c40$4b3a8343@SusanOne> Your famous ====Nope, just been writing for a long time. :) Susan H. From ssharkins at gmail.com Wed Sep 19 20:14:01 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 21:14:01 -0400 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? Message-ID: <002501c7fb23$89f04300$4b3a8343@SusanOne> My 2007 reports lose their settings. I can't even remember the feature that caused this problem before -- can someone remind me? Is it really still not fixed? Susan H. From garykjos at gmail.com Wed Sep 19 21:10:30 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 19 Sep 2007 21:10:30 -0500 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? In-Reply-To: <002501c7fb23$89f04300$4b3a8343@SusanOne> References: <002501c7fb23$89f04300$4b3a8343@SusanOne> Message-ID: Well I cannot find it in 2007 but it used to be under Options and General or something to that effect. Here let me look at another machine with 2003 or XP on it....In XP it was under Tools/Options/General and was a set of checkboxes the first of which is "Track Name AutoCorrect Info". With that one unchecked the two below it are greyed out but they are "Perform Name Autocorrect" and "Log Name Autocorrect Changes" Oh, I found info on it under Help. Good luck getting your settings to stay set. GK On 9/19/07, Susan Harkins wrote: > My 2007 reports lose their settings. I can't even remember the feature that > caused this problem before -- can someone remind me? Is it really still not > fixed? > > 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 miscellany at mvps.org Wed Sep 19 21:12:25 2007 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 20 Sep 2007 14:12:25 +1200 Subject: [AccessD] Text Box Default Value In-Reply-To: References: <003001c7fafd$c22da670$0200a8c0@danwaters> Message-ID: <46F1D709.2030300@mvps.org> Chester, You would appear to be putting the expression directly into the form's On Load event property. Instead, to follow Dan's approach, you need to enter [Event Procedure] into the event property, cick the little ellipsis [...] button to the right to open the VB Editor, and put the code in there instead. But if it was me, I would go with Don's idea, of using the domain function in the Default Value property of the textbox... except that I don't think you would precede it with the = sign. Regards Steve Kaup, Chester wrote: > Ok. I am not thinking well today. I put this in the forms on load > property and get a message the macro txtTextBox cannot be found. > From ssharkins at gmail.com Wed Sep 19 21:24:29 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Sep 2007 22:24:29 -0400 Subject: [AccessD] Groan -- old Name Correct hits Access 2007???? In-Reply-To: References: <002501c7fb23$89f04300$4b3a8343@SusanOne> Message-ID: <003e01c7fb2d$633953f0$4b3a8343@SusanOne> Gary, that helped me find the option, but disabling it didn't do the trick. I've created a label report in 2007, but it loses the column setup when I close it. The wizard generates it correctly, but when I reopen it, it's just one long column of labels. Truly odd. Susan H. Well I cannot find it in 2007 but it used to be under Options and General or something to that effect. Here let me look at another machine with 2003 or XP on it....In XP it was under Tools/Options/General and was a set of checkboxes the first of which is "Track Name AutoCorrect Info". With that one unchecked the two below it are greyed out but they are "Perform Name Autocorrect" and "Log Name Autocorrect Changes" Oh, I found info on it under Help. Good luck getting your settings to stay set. From garykjos at gmail.com Wed Sep 19 21:25:43 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 19 Sep 2007 21:25:43 -0500 Subject: [AccessD] Favor In-Reply-To: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> Message-ID: You've lost me. I have 2003 and created a label report but saw nothing anywhere with a preceeding underscore character. Where should I be looking for this again? GK On 9/19/07, Susan Harkins wrote: > My copy of Access 2003 is toast, can someone please tell me the exact name > of the objects/commands identified by a preceding _ > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting dialog > box. > > I'd appreciate it. I should know them by heart, but I find, I don't. :( > > 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 ssharkins at gmail.com Thu Sep 20 07:18:22 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 08:18:22 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> Message-ID: <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> I'm sorry Gary -- the underscore is in the message -- see below -- I need the correct names of those objects/commands. :) See the following statement -- see the underscore before Report, New Object, and Label Report? I guess I wasn't very specific in what I was asking -- I apologize. To launch the label report wizard, choose _Report from the _New Object button's dropdown list and choose _Label Report from the resulting dialog box. Susan H. You've lost me. I have 2003 and created a label report but saw nothing anywhere with a preceeding underscore character. Where should I be looking for this again? > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting > dialog box. > > I'd appreciate it. I should know them by heart, but I find, I don't. > :( > > 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 -- 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From garykjos at gmail.com Thu Sep 20 08:13:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 08:13:09 -0500 Subject: [AccessD] Favor In-Reply-To: <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> Message-ID: You have entirely different Wizards than I do evidently. Or I am completely clueless. Which is entirely possible. I'm at the database window. In an open database. It's Access 2000 format database though as are all my databases. I have a list of object types on the extreem left of the window listing Tables, queries, Forms, Reports, Pages, Macros and Modules. Under that is a Groups section. If I select the Reports Object type I have buttons on the top of that for Preview, Design and New Selecting New gets me into the dialog asking if I want to go to Design View or use the report Wizard, the Chart Wizard, the Label Wizard or the AutoReport in Columnar or Tabular formats. Selecting the Label Wizard and choosing a table to use for that I say OK. It asks me to choose a type of label paper. I choose the first one on the list. It asks me about fonts. I take the default one It wants some data in the label so I choose the one field in my table. Likewise to sort by. It then wants a name for the report so I give it rptSusansLabelTest and click Finish. And it runs my labels. OK, where are these _ Objects you want me to tell you about? I'm really not trying to be dense but I guess I am. GK On 9/20/07, Susan Harkins wrote: > I'm sorry Gary -- the underscore is in the message -- see below -- I need > the correct names of those objects/commands. :) See the following statement > -- see the underscore before Report, New Object, and Label Report? I guess I > wasn't very specific in what I was asking -- I apologize. > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting dialog > box. > > Susan H. > > You've lost me. I have 2003 and created a label report but saw nothing > anywhere with a preceeding underscore character. Where should I be looking > for this again? > > > > > To launch the label report wizard, choose _Report from the _New Object > > button's dropdown list and choose _Label Report from the resulting > > dialog box. > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > :( > > > > Susan H. > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 > 8:59 AM > > > -- > 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 ssharkins at gmail.com Thu Sep 20 08:27:41 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 09:27:41 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne> Message-ID: <007501c7fb8a$07070e30$4b3a8343@SusanOne> You don't have a New Objects button on the Database toolbar? Not in the Database window -- but with the DW current -- choose a wizard from the New Objects button -- wow, I am bad at winging it! ;( Susan H. You have entirely different Wizards than I do evidently. Or I am completely clueless. Which is entirely possible. I'm at the database window. In an open database. It's Access 2000 format database though as are all my databases. I have a list of object types on the extreem left of the window listing Tables, queries, Forms, Reports, Pages, Macros and Modules. Under that is a Groups section. If I select the Reports Object type I have buttons on the top of that for Preview, Design and New Selecting New gets me into the dialog asking if I want to go to Design View or use the report Wizard, the Chart Wizard, the Label Wizard or the AutoReport in Columnar or Tabular formats. Selecting the Label Wizard and choosing a table to use for that I say OK. It asks me to choose a type of label paper. I choose the first one on the list. It asks me about fonts. I take the default one It wants some data in the label so I choose the one field in my table. Likewise to sort by. It then wants a name for the report so I give it rptSusansLabelTest and click Finish. And it runs my labels. OK, where are these _ Objects you want me to tell you about? I'm really not trying to be dense but I guess I am. GK On 9/20/07, Susan Harkins wrote: > I'm sorry Gary -- the underscore is in the message -- see below -- I > need the correct names of those objects/commands. :) See the following > statement > -- see the underscore before Report, New Object, and Label Report? I > guess I wasn't very specific in what I was asking -- I apologize. > > To launch the label report wizard, choose _Report from the _New Object > button's dropdown list and choose _Label Report from the resulting > dialog box. > > Susan H. > > You've lost me. I have 2003 and created a label report but saw nothing > anywhere with a preceeding underscore character. Where should I be > looking for this again? > > > > > To launch the label report wizard, choose _Report from the _New > > Object button's dropdown list and choose _Label Report from the > > resulting dialog box. > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > :( > > > > Susan H. > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: > 9/14/2007 > 8:59 AM > > > -- > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From garykjos at gmail.com Thu Sep 20 09:07:05 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 09:07:05 -0500 Subject: [AccessD] Favor In-Reply-To: <007501c7fb8a$07070e30$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> Message-ID: OK, with the table I want open in datasheef view I have a new Object button in the toolbar. It has a little drop down arrow next to it and if I click that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, Module, Page and Class Module. If I choose Report it gets me to what appears to be the exact same New Report dialog I previously described. I use menu functions way more often than toolbar icons as I have trouble understanding what little pictures represent and they are too tiny for me to see well for the most part. Part of why I am so lost in 2007 now as they are no menus, just that !@&?!! ribbon thing where I can'[t find anything. Perhaps it's working differently for me since it's an Access 2000 Format database? It appears to be consistent here on my work system to what it was on my laptop at home last night when I first looked at it. I have Access XP on my second machine here at work I can see if the wizard works differently there. And I can try to create an Access 2003 format database and see if it gives me diffeent wizard options. GK On 9/20/07, Susan Harkins wrote: > You don't have a New Objects button on the Database toolbar? Not in the > Database window -- but with the DW current -- choose a wizard from the New > Objects button -- wow, I am bad at winging it! ;( > > Susan H. > > You have entirely different Wizards than I do evidently. Or I am completely > clueless. Which is entirely possible. > > I'm at the database window. In an open database. It's Access 2000 format > database though as are all my databases. > > I have a list of object types on the extreem left of the window listing > Tables, queries, Forms, Reports, Pages, Macros and Modules. > Under that is a Groups section. > > If I select the Reports Object type I have buttons on the top of that for > Preview, Design and New > > Selecting New gets me into the dialog asking if I want to go to Design View > or use the report Wizard, the Chart Wizard, the Label Wizard or the > AutoReport in Columnar or Tabular formats. > > Selecting the Label Wizard and choosing a table to use for that I say OK. It > asks me to choose a type of label paper. I choose the first one on the list. > > It asks me about fonts. I take the default one > > It wants some data in the label so I choose the one field in my table. > Likewise to sort by. > It then wants a name for the report so I give it rptSusansLabelTest and > click Finish. > > And it runs my labels. > > OK, where are these _ Objects you want me to tell you about? > > I'm really not trying to be dense but I guess I am. > > GK > > On 9/20/07, Susan Harkins wrote: > > I'm sorry Gary -- the underscore is in the message -- see below -- I > > need the correct names of those objects/commands. :) See the following > > statement > > -- see the underscore before Report, New Object, and Label Report? I > > guess I wasn't very specific in what I was asking -- I apologize. > > > > To launch the label report wizard, choose _Report from the _New Object > > button's dropdown list and choose _Label Report from the resulting > > dialog box. > > > > Susan H. > > > > You've lost me. I have 2003 and created a label report but saw nothing > > anywhere with a preceeding underscore character. Where should I be > > looking for this again? > > > > > > > > To launch the label report wizard, choose _Report from the _New > > > Object button's dropdown list and choose _Label Report from the > > > resulting dialog box. > > > > > > I'd appreciate it. I should know them by heart, but I find, I don't. > > > :( > > > > > > Susan H. > > > > > > -- > > 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.485 / Virus Database: 269.13.19/1008 - Release Date: > > 9/14/2007 > > 8:59 AM > > > > > > -- > > 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 > 8:59 AM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Thu Sep 20 09:37:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 20 Sep 2007 07:37:49 -0700 Subject: [AccessD] Office 2003 SP3 Message-ID: Well it looks like the update was part of Microsoft's weekly putsch (pun intended!) cause my Outlook 2003 is happily sporting an SP3 in Help-->About. Who knew? Charlotte Foust From ssharkins at gmail.com Thu Sep 20 12:11:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 13:11:52 -0400 Subject: [AccessD] Office 2003 SP3 In-Reply-To: References: Message-ID: <00af01c7fba9$57af4ea0$4b3a8343@SusanOne> Well it looks like the update was part of Microsoft's weekly putsch (pun intended!) cause my Outlook 2003 is happily sporting an SP3 in Help-->About. Who knew? =======Mine isn't, and I've rebooted twice. :( Susan H. From ewaldt at gdls.com Thu Sep 20 13:36:24 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Thu, 20 Sep 2007 14:36:24 -0400 Subject: [AccessD] More Access to Excel Help Needed - Solved In-Reply-To: Message-ID: Thank you all for your help. I finally found the solution to the problem. Of all places, it was actually at Microsoft.com! The KnowledgeBase article #319832, on page 4 of 5 (when you print it out, of course) has a section entitled, "Qualifying the Code to Avoid Errors." In speaking of automation errors, it mentions a reference to "Workbooks.Count" in its example code, without referencing the Excel app that had been created. The author states, "When you run the code, it appears to run correctly the first time. However, Excel continues to run, even though you called the Quit method." That is what was happening to me. Apparently, referencing global puppies (in the technical sense) can cause an app to hang. Simply qualifying the code more fully makes the difference. In my case, my Access code had the line, VBProject.VBComponents.Add(vbext_ct_StdModule) This was in a separate module (from Microsoft.com, btw), which my main module called. To avoid confusion, I pulled all of the code from that separate module into my main one and added the reference to the Excel workbook variable I was using: xlBook.VBProject.VBComponents.Add(vbext_ct_StdModule) I also changed some early binding to late binding at the article's suggestion. That might not have helped, since I made that change before I made the one above, and it still didn't work. I've left it in, though, for insurance. ;-) Anyway, it now works. When I close Excel within this code it closes correctly. Thanks, again, for everyone's help. I thought this lesson was worth passing on. It's always good to qualify. ;-) Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 ssharkins at gmail.com Thu Sep 20 13:46:36 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 14:46:36 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne> Message-ID: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Oh dear, oh dear... I am doing such a lousy job of this -- OK, with the table I want open in datasheef view I have a new Object button in the toolbar. It has a little drop down arrow next to it and if I click that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, Module, Page and Class Module. If I choose Report it gets me to what appears to be the exact same New Report dialog I previously described. ==========There should be a Label Report option -- isn't there one? Perhaps it's working differently for me since it's an Access 2000 Format database? It appears to be consistent here on my work system to what it was on my laptop at home last night when I first looked at it. ==========No, I'm just not explaining myself well enough I think. I apologize. Susan H. From dwaters at usinternet.com Thu Sep 20 14:15:38 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 20 Sep 2007 14:15:38 -0500 Subject: [AccessD] More Access to Excel Help Needed - Solved In-Reply-To: References: Message-ID: <001801c7fbba$a0d37550$0200a8c0@danwaters> Thanks Tom! I always like hearing how things worked out. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ewaldt at gdls.com Sent: Thursday, September 20, 2007 1:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] More Access to Excel Help Needed - Solved Thank you all for your help. I finally found the solution to the problem. Of all places, it was actually at Microsoft.com! The KnowledgeBase article #319832, on page 4 of 5 (when you print it out, of course) has a section entitled, "Qualifying the Code to Avoid Errors." In speaking of automation errors, it mentions a reference to "Workbooks.Count" in its example code, without referencing the Excel app that had been created. The author states, "When you run the code, it appears to run correctly the first time. However, Excel continues to run, even though you called the Quit method." That is what was happening to me. Apparently, referencing global puppies (in the technical sense) can cause an app to hang. Simply qualifying the code more fully makes the difference. In my case, my Access code had the line, VBProject.VBComponents.Add(vbext_ct_StdModule) This was in a separate module (from Microsoft.com, btw), which my main module called. To avoid confusion, I pulled all of the code from that separate module into my main one and added the reference to the Excel workbook variable I was using: xlBook.VBProject.VBComponents.Add(vbext_ct_StdModule) I also changed some early binding to late binding at the article's suggestion. That might not have helped, since I made that change before I made the one above, and it still didn't work. I've left it in, though, for insurance. ;-) Anyway, it now works. When I close Excel within this code it closes correctly. Thanks, again, for everyone's help. I thought this lesson was worth passing on. It's always good to qualify. ;-) Thomas F. Ewald Stryker Mass Properties General Dynamics Land Systems 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 From markamatte at hotmail.com Thu Sep 20 14:21:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 20 Sep 2007 19:21:12 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From Patricia.O'Connor at otda.state.ny.us Thu Sep 20 14:31:56 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 20 Sep 2007 15:31:56 -0400 Subject: [AccessD] Favor In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> I can send a private email with a small picture of the box that appears The list contains LABEL WIZARD Patti ************************************************** * 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 > Susan Harkins > Sent: Thursday, September 20, 2007 02:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Favor > > Oh dear, oh dear... I am doing such a lousy job of this -- > > > OK, with the table I want open in datasheef view I have a new > Object button in the toolbar. It has a little drop down arrow > next to it and if I click that it gives me choices for > Autoform, AutoReport, Table Query, Form, Macro, Module, Page > and Class Module. If I choose Report it gets me to what > appears to be the exact same New Report dialog I previously > described. > > ==========There should be a Label Report option -- isn't there one? > > Perhaps it's working differently for me since it's an Access > 2000 Format database? It appears to be consistent here on my > work system to what it was on my laptop at home last night > when I first looked at it. > > ==========No, I'm just not explaining myself well enough I > think. I apologize. > > 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 Sep 20 14:42:30 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Sep 2007 15:42:30 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Mark, AFAIK this won't work. The problem is that when you change a record on the sub form events in the subform will fire. What are you really trying to do, in plain English? John 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, September 20, 2007 3:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 From markamatte at hotmail.com Thu Sep 20 14:59:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 20 Sep 2007 19:59:16 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Message-ID: John, I'm ok with the events in the subform firing... Plain English...I just want to change a field in the subform to a certain value when the user exits the subform. I don't want this to happen when they just move to another record in the same subform. Thanks, Mark >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Leave Subform >Date: Thu, 20 Sep 2007 15:42:30 -0400 > >Mark, > >AFAIK this won't work. The problem is that when you change a record on the >sub form events in the subform will fire. > >What are you really trying to do, in plain English? > > >John 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, September 20, 2007 3:21 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Leave Subform > >Hello All, > >Have an A97 db...I have a subform/continuous...when I leave/exit that >subform I want to change a value on the current record of the subform. I >thought I could do this by using the "On Exit" property of the subform. >The >problem is when I click out of the subform...the "on Exit" does fire...but >if I put code in that references the field I want to change...the click >part >is cancelled and the subform maintains focus. > >Any suggestions? > >Thanks, > >Mark > >P.S...I can't use the "Before Update" of the subform itself...because going >to a new record in the form does something different. > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo? 3 with free downloads and an exclusive offer. http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1 From ssharkins at gmail.com Thu Sep 20 15:01:03 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:01:03 -0400 Subject: [AccessD] Favor In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAFD6@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <012c01c7fbc0$fdb81220$4b3a8343@SusanOne> That's it Patti -- don't need a figure, but thank you for offering. Thanks! Susan H. I can send a private email with a small picture of the box that appears The list contains LABEL WIZARD From ssharkins at gmail.com Thu Sep 20 15:03:43 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:03:43 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <013201c7fbc1$59ad7bb0$4b3a8343@SusanOne> Hmmmm... That's a good one -- have you tried fully referencing the subform control -- as if you were changing it from the main form instead of the subform? Susan h. Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. From Chester_Kaup at kindermorgan.com Thu Sep 20 15:17:09 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:17:09 -0500 Subject: [AccessD] Resume command problem Message-ID: I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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 rockysmolin at bchacc.com Thu Sep 20 15:20:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:20:01 -0700 Subject: [AccessD] FW: [dba-OT] OT: Screen Resizing Message-ID: <001701c7fbc3$9fe99b70$0301a8c0@HAL9005> Dear List: I am under contract to write a book for Apress - tentatively titled How to Turn a Program Into a Product. The book is not about Access apps but more general - covering considerations that developers need to think about before bringing a program to market. I'm thinking about adding a section to the chapter I'm writing now about screen resizing, having your form fill the screen regardless of the user's resolution. I can cover this for Access apps, obviously, but what about other platforms? Is this a similar problem and solution in VB? How do web products handle this? MTIA, Rocky _______________________________________________ dba-OT mailing list dba-OT at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-ot Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From jwcolby at colbyconsulting.com Thu Sep 20 15:27:18 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Sep 2007 16:27:18 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> Message-ID: <004801c7fbc4$a4c20910$6c7aa8c0@M90> Mark, >I just want to change a field in the subform to a certain value when the user exits the subform. That is not plain English, that is database speak. I am trying to discover what you are doing so that I can suggest a different way of doing it. What is the field? Why does it need to be set when the user leaves the subform? What kind of value will go in the field? Is this a "trail" of what the user was looking at last? A subform tries to save a record being edited when you leave the subform. You are intentionally editing the subform record when you leave the subform. The subform tries to save the record that you just edited. A vicious circle... I would suggest that you will need to store the PK of the subform "current" record, then from up in the main form run code to update that record, some specific field. NOT EDIT A FIELD ON THE SUBFORM, but rather run SQL that edits the record back in that table. You should be able to do that from the OnExit of the subform control because SQL is editing data in a table, not modifying a control on a subform. John 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, September 20, 2007 3:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Leave Subform John, I'm ok with the events in the subform firing... Plain English...I just want to change a field in the subform to a certain value when the user exits the subform. I don't want this to happen when they just move to another record in the same subform. Thanks, Mark >From: "jwcolby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Leave Subform >Date: Thu, 20 Sep 2007 15:42:30 -0400 > >Mark, > >AFAIK this won't work. The problem is that when you change a record on >the sub form events in the subform will fire. > >What are you really trying to do, in plain English? > > >John 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, September 20, 2007 3:21 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Leave Subform > >Hello All, > >Have an A97 db...I have a subform/continuous...when I leave/exit that >subform I want to change a value on the current record of the subform. >I thought I could do this by using the "On Exit" property of the subform. >The >problem is when I click out of the subform...the "on Exit" does >fire...but if I put code in that references the field I want to >change...the click part is cancelled and the subform maintains focus. > >Any suggestions? > >Thanks, > >Mark > >P.S...I can't use the "Before Update" of the subform itself...because >going to a new record in the form does something different. > >_________________________________________________________________ >Kick back and relax with hot games and cool activities at the Messenger >Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo. 3 with free downloads and an exclusive offer. http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1 From rockysmolin at bchacc.com Thu Sep 20 15:30:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:30:27 -0700 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From ssharkins at gmail.com Thu Sep 20 15:31:24 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:31:24 -0400 Subject: [AccessD] Resume command problem In-Reply-To: References: Message-ID: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From ssharkins at gmail.com Thu Sep 20 15:37:04 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:37:04 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? Message-ID: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. From Chester_Kaup at kindermorgan.com Thu Sep 20 15:38:21 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:38:21 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> References: <001d01c7fbc5$151a6950$0301a8c0@HAL9005> Message-ID: I want to go back and check the value in the text box again. Maybe I am doing all the wrong way? -----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, September 20, 2007 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM -- 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 Sep 20 15:39:59 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 20 Sep 2007 15:39:59 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <015901c7fbc5$377349e0$4b3a8343@SusanOne> References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Sep 20 15:48:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Sep 2007 13:48:02 -0700 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <002201c7fbc7$89cfa920$0301a8c0@HAL9005> I might replace the Resume with Forms![frm Manifold Chart]!StartDate.SetFocus That way they can't get past your edit message until Start < End Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I want to go back and check the value in the text box again. Maybe I am doing all the wrong way? -----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, September 20, 2007 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Why are you using RESUME there? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 1:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Resume command problem I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 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.487 / Virus Database: 269.13.25/1018 - Release Date: 9/19/2007 3:59 PM From ssharkins at gmail.com Thu Sep 20 15:58:11 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 16:58:11 -0400 Subject: [AccessD] Resume command problem In-Reply-To: References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: <016c01c7fbc8$f9ef50b0$4b3a8343@SusanOne> Go back where? You need a custom even to validate entries -- either in a control's BeforeUpdate or the form's Current or LostFocus -- Resume won't do that for you. Susan H. I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From cfoust at infostatsystems.com Thu Sep 20 16:05:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 20 Sep 2007 14:05:44 -0700 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: If nothing else, you should have a restore point set prior to the update. Check and see whether it's there. If so, you can roll back to it. I don't have any obvious means of uninstalling SP3 either, but there may be an option on the SP3 executable to remove it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 1:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Max -- how do I uninstall SP 3? Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Sep 20 16:18:08 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 17:18:08 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: <017801c7fbcb$c045ef10$4b3a8343@SusanOne> Can't do that -- I've got a virus in my restore file and I can't restore. That's one of the reasons I need to reformat and start over. Susan H. If nothing else, you should have a restore point set prior to the update. Check and see whether it's there. If so, you can roll back to it. I don't have any obvious means of uninstalling SP3 either, but there may be an option on the SP3 executable to remove it. From garykjos at gmail.com Thu Sep 20 16:23:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 16:23:24 -0500 Subject: [AccessD] Favor In-Reply-To: <011501c7fbb6$93ad8270$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: Yes, I see the label wizard. I select it. It lads me through picking a type of label stock. It leads me through selecting fields to display and then allows me to view the end result. I still am not seeing anything with an underscore character anyplace. GK On 9/20/07, Susan Harkins wrote: > Oh dear, oh dear... I am doing such a lousy job of this -- > > > OK, with the table I want open in datasheef view I have a new Object button > in the toolbar. It has a little drop down arrow next to it and if I click > that it gives me choices for Autoform, AutoReport, Table Query, Form, Macro, > Module, Page and Class Module. If I choose Report it gets me to what appears > to be the exact same New Report dialog I > previously described. > > ==========There should be a Label Report option -- isn't there one? > > Perhaps it's working differently for me since it's an Access 2000 Format > database? It appears to be consistent here on my work system to what it was > on my laptop at home last night when I first looked at it. > > ==========No, I'm just not explaining myself well enough I think. I > apologize. > > 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 ssharkins at gmail.com Thu Sep 20 16:41:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 17:41:52 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne> Message-ID: <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Gary, the underscores were in the text following the original question -- not in the actual commands. :) I tried to explain that to you once I realized what you were doing, but I guess I didn't do a very good job. I'm sorry. Here's a brief example of what I did.. Blah, blah, blah... _Report, blah, blah, blah... _New Object button's dropdown list... Lbah, blah, .... _Label Report Do you see the underscores in the text? I was using the underscores to identify the commands/menus because I couldn't remember if I was remembering them correctly. Patti helped me out, so just forget it, and I apologize for sending you on a wild goose chase! Susan H. Yes, I see the label wizard. I select it. It lads me through picking a type of label stock. It leads me through selecting fields to display and then allows me to view the end result. I still am not seeing anything with an underscore character anyplace. From ssharkins at gmail.com Thu Sep 20 17:10:32 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 18:10:32 -0400 Subject: [AccessD] contracts Message-ID: <01ae01c7fbd3$10b72de0$4b3a8343@SusanOne> I'd like to see copies of simple consulting contracts -- the list doesn't support attachments, so if you want to share, you'll have to copy into an email message. Thanks! Susan H. From garykjos at gmail.com Thu Sep 20 17:26:02 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 20 Sep 2007 17:26:02 -0500 Subject: [AccessD] Favor In-Reply-To: <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne> <003c01c7fb80$5e759ba0$4b3a8343@SusanOne> <007501c7fb8a$07070e30$4b3a8343@SusanOne> <011501c7fbb6$93ad8270$4b3a8343@SusanOne> <018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Message-ID: Ack! Underscore just meant MENU???? OK, time for me to go home.I am obviously WAY TO LITERAL as I was still looking for underscore characters just a little bit ago. HA HA HA . I'm such a doofus. Like you didn't know that ;-) Nity nite. GK On 9/20/07, Susan Harkins wrote: > Gary, the underscores were in the text following the original question -- > not in the actual commands. :) I tried to explain that to you once I > realized what you were doing, but I guess I didn't do a very good job. I'm > sorry. > > Here's a brief example of what I did.. > > Blah, blah, blah... _Report, blah, blah, blah... _New Object button's > dropdown list... Lbah, blah, .... _Label Report > > Do you see the underscores in the text? I was using the underscores to > identify the commands/menus because I couldn't remember if I was > remembering them correctly. Patti helped me out, so just forget it, and I > apologize for sending you on a wild goose chase! > > Susan H. > -- Gary Kjos garykjos at gmail.com From darren at activebilling.com.au Thu Sep 20 18:28:55 2007 From: darren at activebilling.com.au (Darren D) Date: Fri, 21 Sep 2007 09:28:55 +1000 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <200709202328.l8KNShYT014597@databaseadvisors.com> Hi Chester How about some thing like this Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm ManifoldChart]!EndDate Then msgBox "Invalid Date. Start date must be before end date" 'Stop the Exit Event occurring Cancel = true 'send the cursor wherever you want Forms![frm Manifold Chart]!StartDate.setfocus Else 'OK to go 'Do some other stuff here end If End Sub Darren ----------------- T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 21 September 2007 6:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 ssharkins at gmail.com Thu Sep 20 18:58:28 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 20 Sep 2007 19:58:28 -0400 Subject: [AccessD] Favor In-Reply-To: References: <001701c7fb21$1dc794a0$4b3a8343@SusanOne><003c01c7fb80$5e759ba0$4b3a8343@SusanOne><007501c7fb8a$07070e30$4b3a8343@SusanOne><011501c7fbb6$93ad8270$4b3a8343@SusanOne><018c01c7fbcf$0fbd3a50$4b3a8343@SusanOne> Message-ID: <01d401c7fbe2$24713c90$4b3a8343@SusanOne> You're not a dufus -- I'm so use to working in editor mode that I just took too much for granted -- but thank you for trying. :) Susan H. Ack! Underscore just meant MENU???? OK, time for me to go home.I am obviously WAY TO LITERAL as I was still looking for underscore characters just a little bit ago. HA HA HA . I'm such a doofus. Like you didn't know that ;-) From accessd at shaw.ca Thu Sep 20 20:10:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 20 Sep 2007 18:10:38 -0700 Subject: [AccessD] Drag and Drop In-Reply-To: Message-ID: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> Has anyone had problems with Access using the drag and drop options? This is not actual application work per say but copying components from one database to another. Scenario is as such: Two different copies of MS Access 2003 open on one computer, each with different databases open. New forms are being dragged and dropped (copied) from one database to the other. The system stops.... pause... The contents of the source forms are gone... There are a few warnings like: Form XXXX no available but nothing else. I am allowed to exit but with similar error messages and when returning the form components are still gone. Database Compact and Repair recovers nothing and the MDB is left empty of forms... I did have a backup earlier in the day so the problem is not too serious but what would stop this from not happening again and most importantly why did this happen in the first place? Any similar experiences? Jim From adtp at airtelbroadband.in Fri Sep 21 00:33:33 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 21 Sep 2007 11:03:33 +0530 Subject: [AccessD] Leave Subform References: Message-ID: <002501c7fc11$0744a010$4457a27a@personalec1122> Mark, This has to do with two complementary features: (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state. (b) Exit from subform control can not take final effect so long as the subform is dirty. Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control. Best wishes, A.D.Tejpal ----------- Exit event of subform control on the main form =================================== Private Sub SF_Sub_Exit(Cancel As Integer) Me.SF_Sub("Price") = 100 Me.SF_Sub.Form.Dirty = False End Sub =================================== ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, September 21, 2007 00:51 Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. From max.wanadoo at gmail.com Fri Sep 21 01:56:23 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 07:56:23 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> Message-ID: <003201c7fc1c$86b06720$8119fea9@LTVM> Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! HTH Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 9:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Max -- how do I uninstall SP 3? Max, you said you uninstalled Office 2003's SP3 -- how did you do it? It doesn't show up on mysystem -- none of the service packs do. I don't recall having trouble with my report settings until yesterday, after I installed that service pack -- it might be a coincidence, but I need to find out. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 02:20:10 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 08:20:10 +0100 Subject: [AccessD] Resume command problem In-Reply-To: References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> Message-ID: <003301c7fc1f$d916bc00$8119fea9@LTVM> I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 9:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 Gustav at cactus.dk Fri Sep 21 07:49:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Sep 2007 14:49:36 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From ssharkins at gmail.com Fri Sep 21 07:56:40 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 08:56:40 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <003201c7fc1c$86b06720$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne> <003201c7fc1c$86b06720$8119fea9@LTVM> Message-ID: <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! From max.wanadoo at gmail.com Fri Sep 21 08:11:30 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:11:30 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM> <026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> Message-ID: <001d01c7fc50$ee61ab70$8119fea9@LTVM> Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 08:22:35 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 09:22:35 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <001d01c7fc50$ee61ab70$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> <001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: <027201c7fc52$79de0620$4b3a8343@SusanOne> I should've thought of that on my own -- thank you. Susan H. Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM From max.wanadoo at gmail.com Fri Sep 21 08:41:48 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:41:48 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <027201c7fc52$79de0620$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> <027201c7fc52$79de0620$4b3a8343@SusanOne> Message-ID: <001201c7fc55$2c089c50$8119fea9@LTVM> No worries, Susan. I just wonder how many apps are out there which will start to fail because of this. I bet support desks will be busy. I wonder if they will even think of this as being the problem, because it is unlikely that the client will even suspect it themselves and will probably say "no, I haven't made any changes, it was working okey last time I used it!" Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I should've thought of that on my own -- thank you. Susan H. Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 08:41:49 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 14:41:49 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <001301c7fc55$2d26b680$8119fea9@LTVM> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Sep 21 08:54:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Sep 2007 15:54:17 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From max.wanadoo at gmail.com Fri Sep 21 09:10:09 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:10:09 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <001d01c7fc59$1f58f140$8119fea9@LTVM> replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /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 Sep 21 09:28:01 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 10:28:01 -0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <001d01c7fc59$1f58f140$8119fea9@LTVM> References: <001d01c7fc59$1f58f140$8119fea9@LTVM> Message-ID: <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> ROTFL!!! Although I think "masochist" is more appropriate. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 21 09:32:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 21 Sep 2007 14:32:42 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <004801c7fbc4$a4c20910$6c7aa8c0@M90> References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> <004801c7fbc4$a4c20910$6c7aa8c0@M90> Message-ID: John, >> That is not plain English, that is database speak. With this audience...I'm pretty sure my explanation was simple enough. There is a a form...frmView. It has a subform...sfrmView. sfrmView is set to continuous. sfrmView has a textbox called Color. Color is used for conditional formatting.(1 highlights, 0 UNhighlights) The value stored in color is a number(0,1). When the user moves to a different record...the before update changes COLOR to 0.(which UNhighlights my record) The On Current changes COLOR to 1.(Highlights record) When you leave the subform...the before update fires...(UNhighlights my record) I am trying to find a way for COLOR to be set to 0 before moving to another record...but not when leaving the subform...or have it set to 1 when leaving the subform. Thanks, Mark ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Thu, 20 Sep 2007 16:27:18 -0400> Subject: Re: [AccessD] Leave Subform>> Mark,>>>I just want to change a field in the subform to a certain value when the> user exits the subform.>> That is not plain English, that is database speak.>> I am trying to discover what you are doing so that I can suggest a different> way of doing it. What is the field? Why does it need to be set when the> user leaves the subform? What kind of value will go in the field? Is this> a "trail" of what the user was looking at last?>> A subform tries to save a record being edited when you leave the subform.> You are intentionally editing the subform record when you leave the subform.> The subform tries to save the record that you just edited. A vicious> circle...>> I would suggest that you will need to store the PK of the subform "current"> record, then from up in the main form run code to update that record, some> specific field. NOT EDIT A FIELD ON THE SUBFORM, but rather run SQL that> edits the record back in that table. You should be able to do that from the> OnExit of the subform control because SQL is editing data in a table, not> modifying a control on a subform.>> John 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, September 20, 2007 3:59 PM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] Leave Subform>> John,>> I'm ok with the events in the subform firing...>> Plain English...I just want to change a field in the subform to a certain> value when the user exits the subform. I don't want this to happen when> they just move to another record in the same subform.>> Thanks,>> Mark>>>>From: "jwcolby" >>Reply-To: Access Developers discussion and problem>>solving>>To: "'Access Developers discussion and problem>>solving'">>Subject: Re: [AccessD] Leave Subform>>Date: Thu, 20 Sep 2007 15:42:30 -0400>>>>Mark,>>>>AFAIK this won't work. The problem is that when you change a record on>>the sub form events in the subform will fire.>>>>What are you really trying to do, in plain English?>>>>>>John 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, September 20, 2007 3:21 PM>>To: accessd at databaseadvisors.com>>Subject: [AccessD] Leave Subform>>>>Hello All,>>>>Have an A97 db...I have a subform/continuous...when I leave/exit that>>subform I want to change a value on the current record of the subform.>>I thought I could do this by using the "On Exit" property of the subform.>>The>>problem is when I click out of the subform...the "on Exit" does>>fire...but if I put code in that references the field I want to>>change...the click part is cancelled and the subform maintains focus.>>>>Any suggestions?>>>>Thanks,>>>>Mark>>>>P.S...I can't use the "Before Update" of the subform itself...because>>going to a new record in the form does something different.>>>>_________________________________________________________________>>Kick back and relax with hot games and cool activities at the Messenger>>Cafi. http://www.cafemessenger.com?ocid=TXT_TAGHM_SeptHMtagline1>>>>>>-->>AccessD mailing list>>AccessD at databaseadvisors.com>>http://databaseadvisors.com/mailman/listinfo/accessd>>Website: http://www.databaseadvisors.com>> _________________________________________________________________> Gear up for Halo. 3 with free downloads and an exclusive offer.> http://gethalo3gear.com?ocid=SeptemberWLHalo3_MSNHMTxt_1>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ More photos; more messages; more whatever ? Get MORE with Windows Live? Hotmail?. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 From max.wanadoo at gmail.com Fri Sep 21 09:37:58 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:37:58 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> References: <001d01c7fc59$1f58f140$8119fea9@LTVM> <008401c7fc5b$9e4cdf50$6c7aa8c0@M90> Message-ID: <002701c7fc5d$0322d140$8119fea9@LTVM> replace(replace("That's where the fun comes in!","fun","sadist"),"sadist","masochist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 21, 2007 3:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions ROTFL!!! Although I think "masochist" is more appropriate. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions replace("That's where the fun comes in!","fun","sadist") Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 2:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Max That's where the fun comes in! /gustav >>> max.wanadoo at gmail.com 21-09-2007 15:41 >>> Well I don't! Way, weigh, heavy waheyy over my head. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 21 09:37:57 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 21 Sep 2007 07:37:57 -0700 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <001d01c7fc50$ee61ab70$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne> <001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: I wouldn't count too heavily on its accuracy. My Outlook and other Office apps come up showing as SP3 even though the Update history shows two failed attempts to install it, my own and Automatic Updates. Isn't this fun?? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 6:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 21 09:55:45 2007 From: max.wanadoo at gmail.com (Gmail) Date: Fri, 21 Sep 2007 15:55:45 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> Message-ID: <002801c7fc5f$7e099b80$8119fea9@LTVM> ok, Susan, my last shot (if this doesn't work, I'm out of ideas) Try Control Panel, Add or Remove Programs. See what is updated there. OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 21, 2007 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I wouldn't count too heavily on its accuracy. My Outlook and other Office apps come up showing as SP3 even though the Update history shows two failed attempts to install it, my own and Automatic Updates. Isn't this fun?? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 6:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? Hi Susan, If you go to: http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us (watch for word wrap on the URL) Run the Express check, it will tell you what updates you need. If it doesn't say anything about this update then you have already installed it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 1:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I still can't even determine if I even have it! Can't use System Restore though -- that's out. Thanks! Susan H. Hi Susan, When I auto-installed the Update it created an automatic System Restore point which I rolled back to for the PCs. On my laptop, I had actually created a System Restore point the previous day for some software I had put on (I always create a Restore Point before installing anything) and so I rolled back to that. I will reinstall the software later today. But I will not do the update for now. It is supposed to be for Office 2003 encapsulating all the security measures to-date. However, I think they chucked (technical term) a whole lot of other stuff in there as will. I will wait for the update to the update to come out! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 21 09:59:35 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 10:59:35 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <003e01c7fbbe$62614b90$6c7aa8c0@M90> <004801c7fbc4$a4c20910$6c7aa8c0@M90> Message-ID: <008501c7fc60$070904c0$6c7aa8c0@M90> Well now, that explains the why, which is what I was looking for. You got a response from A.D.Tejpal that indicated you could do what you were trying to do directly through control manipulation back in the subform. Have you tried 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 Mark A Matte Sent: Friday, September 21, 2007 10:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform John, >> That is not plain English, that is database speak. With this audience...I'm pretty sure my explanation was simple enough. There is a a form...frmView. It has a subform...sfrmView. sfrmView is set to continuous. sfrmView has a textbox called Color. Color is used for conditional formatting.(1 highlights, 0 UNhighlights) The value stored in color is a number(0,1). When the user moves to a different record...the before update changes COLOR to 0.(which UNhighlights my record) The On Current changes COLOR to 1.(Highlights record) When you leave the subform...the before update fires...(UNhighlights my record) I am trying to find a way for COLOR to be set to 0 before moving to another record...but not when leaving the subform...or have it set to 1 when leaving the subform. Thanks, Mark ----------------------------------------> From: ----------------------------------------> jwcolby at colbyconsulting.com> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Thu, 20 Sep 2007 ----------------------------------------> 16:27:18 -0400> Subject: Re: ----------------------------------------> [AccessD] Leave Subform>> ----------------------------------------> Mark,>>>I just want to change ----------------------------------------> a field in the subform to a ----------------------------------------> certain value when the> user ----------------------------------------> exits the subform.>> That is ----------------------------------------> not plain English, that is ----------------------------------------> database speak.>> I am trying ----------------------------------------> to discover what you are doing ----------------------------------------> so that I can suggest a ----------------------------------------> different> way of doing it. ----------------------------------------> What is the field? Why does it ----------------------------------------> need to be set when the> user ----------------------------------------> leaves the subform? What kind ----------------------------------------> of value will go in the field? ----------------------------------------> Is this> a "trail" of what the ----------------------------------------> user was looking at last?>> A ----------------------------------------> subform tries to save a record ----------------------------------------> being edited when you leave ----------------------------------------> the subform.> You are ----------------------------------------> intentionally editing the ----------------------------------------> subform record when you leave ----------------------------------------> the subform.> The subform ----------------------------------------> tries to save the record that ----------------------------------------> you just edited. A vicious> ----------------------------------------> circle...>> I would suggest ----------------------------------------> that you will need to store ----------------------------------------> the PK of the subform ----------------------------------------> "current"> record, then from ----------------------------------------> up in the main form run code ----------------------------------------> to update that record, some> ----------------------------------------> specific field. NOT EDIT A ----------------------------------------> FIELD ON THE SUBFORM, but ----------------------------------------> rather run SQL that> edits the ----------------------------------------> record back in that table. You ----------------------------------------> should be able to do that from ----------------------------------------> the> OnExit of the subform ----------------------------------------> control because SQL is editing ----------------------------------------> data in a table, not> ----------------------------------------> modifying a control on a ----------------------------------------> subform.>> John W. Colby> ----------------------------------------> Colby Consulting> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Mark A Matte> Sent: Thursday, ----------------------------------------> September 20, 2007 3:59 PM> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Subject: Re: [AccessD] Leave ----------------------------------------> Subform>> John,>> I'm ok with ----------------------------------------> the events in the subform ----------------------------------------> firing...>> Plain English...I ----------------------------------------> just want to change a field in ----------------------------------------> the subform to a certain> ----------------------------------------> value when the user exits the ----------------------------------------> subform. I don't want this to ----------------------------------------> happen when> they just move to ----------------------------------------> another record in the same ----------------------------------------> subform.>> Thanks,>> ----------------------------------------> Mark>>>>From: "jwcolby" ----------------------------------------> >>Reply-To: Access Developers ----------------------------------------> discussion and ----------------------------------------> problem>>solving>>To: "'Access ----------------------------------------> Developers discussion and ----------------------------------------> problem>>solving'">>Subject: ----------------------------------------> Re: [AccessD] Leave ----------------------------------------> Subform>>Date: Thu, 20 Sep ----------------------------------------> 2007 15:42:30 ----------------------------------------> -0400>>>>Mark,>>>>AFAIK this ----------------------------------------> won't work. The problem is ----------------------------------------> that when you change a record ----------------------------------------> on>>the sub form events in the ----------------------------------------> subform will fire.>>>>What are ----------------------------------------> you really trying to do, in ----------------------------------------> plain English?>>>>>>John W. ----------------------------------------> Colby>>Colby ----------------------------------------> Consulting>>www.ColbyConsultin ----------------------------------------> g.com>>-----Original ----------------------------------------> Message----->>From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com>>[mailto:accessd-bounce ----------------------------------------> s at databaseadvisors.com] On ----------------------------------------> Behalf Of Mark A Matte>>Sent: ----------------------------------------> Thursday, September 20, 2007 ----------------------------------------> 3:21 PM>>To: ----------------------------------------> accessd at databaseadvisors.com>> ----------------------------------------> Subject: [AccessD] Leave ----------------------------------------> Subform>>>>Hello All,>>>>Have ----------------------------------------> an A97 db...I have a ----------------------------------------> subform/continuous...when I ----------------------------------------> leave/exit that>>subform I ----------------------------------------> want to change a value on the ----------------------------------------> current record of the ----------------------------------------> subform.>>I thought I could do ----------------------------------------> this by using the "On Exit" ----------------------------------------> property of the ----------------------------------------> subform.>>The>>problem is when ----------------------------------------> I click out of the ----------------------------------------> subform...the "on Exit" ----------------------------------------> does>>fire...but if I put code ----------------------------------------> in that references the field I ----------------------------------------> want to>>change...the click ----------------------------------------> part is cancelled and the ----------------------------------------> subform maintains ----------------------------------------> focus.>>>>Any ----------------------------------------> suggestions?>>>>Thanks,>>>>Mar ----------------------------------------> k>>>>P.S...I can't use the ----------------------------------------> "Before Update" of the subform ----------------------------------------> itself...because>>going to a ----------------------------------------> new record in the form does ----------------------------------------> something ----------------------------------------> different.>>>>________________ ----------------------------------------> ______________________________ ----------------------------------------> ___________________>>Kick back ----------------------------------------> and relax with hot games and ----------------------------------------> cool activities at the ----------------------------------------> Messenger>>Cafi. ----------------------------------------> http://www.cafemessenger.com?o ----------------------------------------> cid=TXT_TAGHM_SeptHMtagline1>> ----------------------------------------> >>>>-->>AccessD mailing ----------------------------------------> list>>AccessD at databaseadvisors ----------------------------------------> .com>>http://databaseadvisors. ----------------------------------------> com/mailman/listinfo/accessd>> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> ----------------------------------------> ______________________________ ----------------------------------------> ______________________________ ----------------------------------------> _____> Gear up for Halo. 3 ----------------------------------------> with free downloads and an ----------------------------------------> exclusive offer.> ----------------------------------------> http://gethalo3gear.com?ocid=S ----------------------------------------> eptemberWLHalo3_MSNHMTxt_1>>> ----------------------------------------> --> AccessD mailing list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m _________________________________________________________________ More photos; more messages; more whatever - Get MORE with Windows LiveT HotmailR. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migratio n_HM_mini_5G_0907 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Sep 21 10:08:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 21 Sep 2007 15:08:16 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <002501c7fc11$0744a010$4457a27a@personalec1122> References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = False> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From jwcolby at colbyconsulting.com Fri Sep 21 10:31:36 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Sep 2007 11:31:36 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: <008901c7fc64$7fc9f6e0$6c7aa8c0@M90> Mark, If it were me I would just code in the subform to store the PKID of the current record in OnCurrent. Then in OnExit, reach back in to the subform and retrieve the PKID saved there. Now you know what record the subform was on. Run an SQL statement from the OnCurrent updating the flag field back to 0 (or whatever) in that table for that PKID. That should take just a couple of minutes to get working. John 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: Friday, September 21, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = Fals! e> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 11:44:50 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 12:44:50 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <002801c7fc5f$7e099b80$8119fea9@LTVM> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM> <002801c7fc5f$7e099b80$8119fea9@LTVM> Message-ID: <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! Susan H. From pharold at proftesting.com Fri Sep 21 12:47:48 2007 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 21 Sep 2007 13:47:48 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM><002801c7fc5f$7e099b80$8119fea9@LTVM> <02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 21 13:22:25 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 21 Sep 2007 14:22:25 -0400 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> References: <016a01c7fbc6$0270ed00$4b3a8343@SusanOne><003201c7fc1c$86b06720$8119fea9@LTVM><026101c7fc4e$dd5cbec0$4b3a8343@SusanOne><001d01c7fc50$ee61ab70$8119fea9@LTVM><002801c7fc5f$7e099b80$8119fea9@LTVM><02e301c7fc6e$bcfa2260$4b3a8343@SusanOne> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> Message-ID: <003201c7fc7c$5c8c20a0$4b3a8343@SusanOne> I've looked everywhere and I really don't think it installed. Now, if I could figure out why Access 2007 reports won't work. :( Susan H. You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. From max.wanadoo at gmail.com Fri Sep 21 13:32:12 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 21 Sep 2007 19:32:12 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD50DC75@EXCHANGE.ptiorl.local> Message-ID: <005801c7fc7d$ba9cfab0$8119fea9@LTVM> Hmmm, not sure Perry, Where is that located? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Friday, September 21, 2007 6:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Max -- how do I uninstall SP 3? You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? OR: Admin Tools, Component Service, Event Viewer (Local), System. Scroll to Information where the Source is "Windows Update Agent" and see what entries you have there. =========Thank you -- SP 3 isn't there. I'll remember this one. It's very helpful. ps. You can always disable the Automatic Updates from Services (Local) - click on the Automatic Update and set it to Manual under the Proprties. =========That's the setting I use. Thanks! 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 max.wanadoo at gmail.com Fri Sep 21 13:33:53 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 21 Sep 2007 19:33:53 +0100 Subject: [AccessD] Max -- how do I uninstall SP 3? In-Reply-To: <003201c7fc7c$5c8c20a0$4b3a8343@SusanOne> Message-ID: <005901c7fc7d$f6d2a520$8119fea9@LTVM> Now, I definitely cannot help you with that! I am still trying to figure out 2003. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 21, 2007 7:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Max -- how do I uninstall SP 3? I've looked everywhere and I really don't think it installed. Now, if I could figure out why Access 2007 reports won't work. :( Susan H. You probably did this but for general info - To see updates & service packs the check box for show updates has to be checked. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 21 16:09:29 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 22 Sep 2007 01:09:29 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <000301c7fc93$b361ed80$6601a8c0@nant> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Sep 22 00:00:52 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 21 Sep 2007 22:00:52 -0700 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: Gustav; What is it and more importantly why is it? ...Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 5:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 09:01:37 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 10:01:37 -0400 Subject: [AccessD] Current control Message-ID: <46f671a7.0c87460a.3fdb.ffffa12b@mx.google.com> Is there anyway to glean the name of the current control without using Screen? This is one of the spots the case me the most trouble when trying to make a procedure totally dynamic. There really should be a shortcut identifier, like Me, for the current control. ;) Susan H. From shamil at users.mns.ru Sun Sep 23 09:15:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 18:15:28 +0400 Subject: [AccessD] Current control In-Reply-To: <46f671a7.0c87460a.3fdb.ffffa12b@mx.google.com> Message-ID: <000001c7fdec$31a1e070$6401a8c0@nant> Hi Susan, Me.ActiveControl would be good enough? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Current control Is there anyway to glean the name of the current control without using Screen? This is one of the spots the case me the most trouble when trying to make a procedure totally dynamic. There really should be a shortcut identifier, like Me, for the current control. ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 09:27:27 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 10:27:27 -0400 Subject: [AccessD] Current control In-Reply-To: <000001c7fdec$31a1e070$6401a8c0@nant> Message-ID: <46f677b6.0886460a.1e53.ffff977a@mx.google.com> Slapping my head... and you know, it's not like I don't know about it or haven't used it plenty of times. ;( Susan H. Hi Susan, Me.ActiveControl would be good enough? From shamil at users.mns.ru Sun Sep 23 09:35:32 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 18:35:32 +0400 Subject: [AccessD] Current control In-Reply-To: <46f677b6.0886460a.1e53.ffff977a@mx.google.com> Message-ID: <000001c7fdee$ff540a50$6401a8c0@nant> Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 6:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control Slapping my head... and you know, it's not like I don't know about it or haven't used it plenty of times. ;( Susan H. Hi Susan, Me.ActiveControl would be good enough? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Sep 23 10:50:52 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 11:50:52 -0400 Subject: [AccessD] Current control In-Reply-To: <000001c7fdee$ff540a50$6401a8c0@nant> Message-ID: <46f68b43.0986460a.5059.ffffa729@mx.google.com> Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... =========Nah, I'm not working so very hard. I have no excuse. :) I did take a break and went to brunch. Susan H. From shamil at users.mns.ru Sun Sep 23 11:10:50 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 23 Sep 2007 20:10:50 +0400 Subject: [AccessD] Current control In-Reply-To: <46f68b43.0986460a.5059.ffffa729@mx.google.com> Message-ID: <000301c7fdfc$4f93f130$6401a8c0@nant> <<< I have no excuse. :) I did take a break and went to brunch. >>> Susan, IMO brunch could be considered as an excuse :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, September 23, 2007 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control Than happens with everybody Susan - 'blind spot' - is that a correct English title for that phenomena? Maybe it's time to make a break there? :) - I mean 'blind spots' appear more often during hardwork marathons... =========Nah, I'm not working so very hard. I have no excuse. :) I did take a break and went to brunch. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sun Sep 23 11:16:55 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 23 Sep 2007 12:16:55 -0400 Subject: [AccessD] Current control In-Reply-To: <46f68b43.0986460a.5059.ffffa729@mx.google.com> References: <000001c7fdee$ff540a50$6401a8c0@nant> <46f68b43.0986460a.5059.ffffa729@mx.google.com> Message-ID: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> In my experience, Susan and Shamil, I have found it useful to identify the previously active control -- because clicking on a button or other control repositions the ActiveControl. For example, if I have a button the user can click, and she does so, then I have lost track of the control she was previously on. I use a static function for this purpose. But I wish the syntax for this sort of thing were a little more "intelligent". If I open the code window on a control (afterUpdate, say), my natural instincts suggest that "Me" refers to the control, not the form. I have learned to live with this discrepancy between my idea of how self-reference ought to work and MS's idea, but it still irks me. Within the scope of a control, Me ought to refer to the control, not its parent form. Of course, that's merely the opinion of an old man (river). A. On 9/23/07, Susan Harkins wrote: > > > Than happens with everybody Susan - 'blind spot' - is that a correct > English > title for that phenomena? > > Maybe it's time to make a break there? :) - I mean 'blind spots' appear > more > often during hardwork marathons... > > =========Nah, I'm not working so very hard. I have no excuse. :) I did > take > a break and went to brunch. > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Sun Sep 23 11:52:20 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 23 Sep 2007 12:52:20 -0400 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46f699aa.0a86460a.7ddb.ffffc97b@mx.google.com> But I wish the syntax for this sort of thing were a little more "intelligent". If I open the code window on a control (afterUpdate, say), my natural instincts suggest that "Me" refers to the control, not the form. I have learned to live with this discrepancy between my idea of how self-reference ought to work and MS's idea, but it still irks me. Within the scope of a control, Me ought to refer to the control, not its parent form. Of course, that's merely the opinion of an old man (river). ========Arthur, I've often wished for the same thing. Susan H. From stuart at lexacorp.com.pg Sun Sep 23 20:55:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 24 Sep 2007 11:55:26 +1000 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify the > previously active control -- because clicking on a button or other control > repositions the ActiveControl. For example, if I have a button the user can > click, and she does so, then I have lost track of the control she was > previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? From stuart at lexacorp.com.pg Sun Sep 23 20:55:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 24 Sep 2007 11:55:26 +1000 Subject: [AccessD] Current control In-Reply-To: <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> Message-ID: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify the > previously active control -- because clicking on a button or other control > repositions the ActiveControl. For example, if I have a button the user can > click, and she does so, then I have lost track of the control she was > previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? From Gustav at cactus.dk Mon Sep 24 05:20:27 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 24 Sep 2007 12:20:27 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil Thanks! Exactly what I was looking for. Those links will keep me busy for a while ... /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Mon Sep 24 05:28:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 24 Sep 2007 12:28:50 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Jim "Why it is" is a big question and I don't have the answer - but if you browse the nice links provided by Shamil, you should get an idea - I plan to do so. /gustav >>> accessd at shaw.ca 22-09-2007 07:00 >>> Gustav; What is it and more importantly why is it? ...Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 5:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From jimdettman at verizon.net Mon Sep 24 08:04:06 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 24 Sep 2007 09:04:06 -0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: References: Message-ID: <000101c7feab$64bc1920$8abea8c0@XPS> I must be missing something as I don't see what the big deal is. I watched some of the video's on the Beta 2 release and Lambda expressions seemed to be a significant point. To me, it seems they've been added simply to get something else to work (linq). After going through many of the links provided (thanks), I also don't see any great advantage to supply a function in-line. While it does make code more compact, I think it also clouds somewhat what is really going on. There is the potential for more errors as well. For example, with the example that Ken Getz gave, if I had one place where I needed a check for IsSmall for a file based on 50 bytes and in another based on 100 bytes, with the new way my file check code would be in two different places in the app. With the old method, I would do: Function IsSmall(lngUpperLimit as long) as integer and just have a generic function to handle any requirement for checking if a file is too small. To me it seems their use would be limited to things like simple math expressions or checks. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, September 24, 2007 6:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil Thanks! Exactly what I was looking for. Those links will keep me busy for a while ... /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Mon Sep 24 09:26:27 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Mon, 24 Sep 2007 09:26:27 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> I found this at e-week. I know some were having issues with this sp last week. http://www.eweek.com/article2/0,1895,2184443,00.asp?kc=EWKNLBOE092107STR2 Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 cfoust at infostatsystems.com Mon Sep 24 10:41:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Sep 2007 08:41:24 -0700 Subject: [AccessD] Current control In-Reply-To: <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com> <46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> Message-ID: Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 24 11:20:34 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 12:20:34 -0400 Subject: [AccessD] Current control In-Reply-To: References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> Message-ID: <004a01c7fec6$d6d5e430$6c7aa8c0@M90> And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Sep 24 11:45:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Sep 2007 09:45:06 -0700 Subject: [AccessD] Current control In-Reply-To: <004a01c7fec6$d6d5e430$6c7aa8c0@M90> References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg> <004a01c7fec6$d6d5e430$6c7aa8c0@M90> Message-ID: I know, John. My controls are ordinarily bound to a control class that handles this. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 24, 2007 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Sep 24 11:58:23 2007 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 24 Sep 2007 09:58:23 -0700 Subject: [AccessD] Drag and Drop In-Reply-To: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> References: <37DBAD10C0124441B5B7012174AFCC86@creativesystemdesigns.com> Message-ID: <8786a4c00709240958j56e8472fv2bff575027d188cf@mail.gmail.com> Jim, do you have dual monitors by any chance? I was having some weird issues with drag & drop in several programs (Crystal, Ramco, cant remember if Access was too). It ended up either being drivers or physical connection/configuration of the monitors to the ATI dual out connectors. It made no sense to me at the time what was happening. David On 9/20/07, Jim Lawrence wrote: > > Has anyone had problems with Access using the drag and drop options? > > This is not actual application work per say but copying components from > one > database to another. > > Scenario is as such: Two different copies of MS Access 2003 open on one > computer, each with different databases open. New forms are being dragged > and dropped (copied) from one database to the other. The system stops.... > pause... The contents of the source forms are gone... There are a few > warnings like: Form XXXX no available but nothing else. > > I am allowed to exit but with similar error messages and when returning > the > form components are still gone. Database Compact and Repair recovers > nothing > and the MDB is left empty of forms... > > I did have a backup earlier in the day so the problem is not too serious > but > what would stop this from not happening again and most importantly why did > this happen in the first place? > > Any similar experiences? > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Sep 24 12:05:17 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 13:05:17 -0400 Subject: [AccessD] Current control In-Reply-To: References: <000001c7fdee$ff540a50$6401a8c0@nant>, <46f68b43.0986460a.5059.ffffa729@mx.google.com>, <29f585dd0709230916i3401242ep24edc1e9422a3cb8@mail.gmail.com><46F7190E.21772.66588DCC@stuart.lexacorp.com.pg><004a01c7fec6$d6d5e430$6c7aa8c0@M90> Message-ID: <004c01c7fecd$15f420e0$6c7aa8c0@M90> Yep, it wasn't you I was addressing, that would be like preaching to the choir. John 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: Monday, September 24, 2007 12:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control I know, John. My controls are ordinarily bound to a control class that handles this. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, September 24, 2007 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Current control And this is exactly where a framework comes in so handy. As a form loads, it loads classes for controls. These classes can set a pointer to a framework ctlCurrent when the control's OnEnter fires, and set a pointer to the framework ctlPrev in the control's OnExit event. John 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: Monday, September 24, 2007 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control Trouble is, when is either PreviousControl or ActiveControl the right one. Clicking on buttons, option buttons, tab control tabs, etc., mess up the logic. I generally have created a property for the form CurrentControl and set it in the enter event (or whatever's appropriate). Since I don't set it for buttons or tab controls, etc., it's more reliable than the built in methods. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, September 23, 2007 6:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Current control On 23 Sep 2007 at 12:16, Arthur Fuller wrote: > In my experience, Susan and Shamil, I have found it useful to identify > the previously active control -- because clicking on a button or other > control repositions the ActiveControl. For example, if I have a button > the user can click, and she does so, then I have lost track of the > control she was previously on. I use a static function for this purpose. > What's wrong with just using Me.PreviousControl ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Sep 24 12:05:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 13:05:54 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: <002501c7fc11$0744a010$4457a27a@personalec1122> Message-ID: <004d01c7fecd$2bea13a0$6c7aa8c0@M90> Did you ever get this handled? John 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: Friday, September 21, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = Fals! e> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Sep 24 12:35:28 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 12:35:28 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A2584BE82@cpixchng-1.cpiqpc.net> Message-ID: And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 http://news.office-watch.com/t/n.aspx?a=555 GK On 9/24/07, rusty.hammond at cpiqpc.com wrote: > I found this at e-week. I know some were having issues with this sp last > week. > > http://www.eweek.com/article2/0,1895,2184443,00.asp?kc=EWKNLBOE092107STR2 > > > > Rusty Hammond > IT Dept. - B-20 > CPI Qualified Plan Consultants, Inc. > (620) 793-8473 ext. 416 > rusty.hammond at cpiqpc.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 > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Sep 24 12:54:24 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Sep 2007 17:54:24 +0000 Subject: [AccessD] Leave Subform Message-ID: I did thanks... I had to use a number of approaches including setting a variable ON EXIT that was evaluated in the BEFORE UPDATE to determine if the user was moving from record to record...or leaving the subform.. To track down exactly where I need each piece of code: I had a subform(continuous) on an unbound form. I also had a text box and a second subform(more controls but these are enough for the example). I had code in the subform (ON CURRENT and BEFORE UPDATE). I aslo had stuff on the subform(ON ENTER and ON EXIT). In each of these areas I placed a MSGBOX with the name of the area...so I could see in exactly what order everything fired. In the ONCURRENT I requeried the 2nd subform. To my amazement I learned that the BEFORE UPDATE was firing upto 3 times depending on how I was navigating. I finally figured out what I needed...thanks Everyone. It was definetely an education exercise. Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Mon, 24 Sep 2007 13:05:54 -0400> Subject: Re: [AccessD] Leave Subform>> Did you ever get this handled?>>> John 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: Friday, September 21, 2007 11:08 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Leave Subform>>> Thanks A.D.,>> But with using the code below...the Before update still fires.>> Any Ideas?>> Thanks,>> mark>> ----------------------------------------> From: adtp at airtelbroadband.in> To:> accessd at databaseadvisors.com> Date: Fri, 21 Sep 2007 11:03:33 +0530> CC:> adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> This has> to do with two complementary features:>> (a) Prior to final exit from> subform control, current record in the subform gets saved (if the subform is> still dirty) and the subform attains non-dirty state.> (b) Exit from subform> control can not take final effect so long as the subform is dirty.>> Sample> code as given below, should take care of the problem faced by you. SF_Sub is> the name of subform control, while Price is the name of field in the> subform, whose value in current record gets set to 100 whenever exiting the> subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of> subform control on the main form> ===================================>> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100>> Me.SF_Sub.Form.Dirty = Fals!> e> End Sub> ===================================>> ----- Original Message> -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday,> September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>>> Have an A97 db...I have a subform/continuous...when I leave/exit that>> subform I want to change a value on the current record of the subform. I>> thought I could do this by using the "On Exit" property of the subform. The>> problem is when I click out of the subform...the "on Exit" does fire...but>> if I put code in that references the field I want to change...the click> part> is cancelled and the subform maintains focus.>> Any suggestions?>>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform> itself...because going> to a new record in the form does something> different.> --> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> Capture your memories in an online journal!> http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Kick back and relax with hot games and cool activities at the Messenger Caf?. http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline From ssharkins at gmail.com Mon Sep 24 13:00:28 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 24 Sep 2007 14:00:28 -0400 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: Message-ID: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> Yeah, but Woody would say that even if the SP watched his dishes and folded and put away his laundry. :) Personally, I offer no advice period -- can't, Windows apparently didn't install it, although, it said it did. Susan H. And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 http://news.office-watch.com/t/n.aspx?a=555 From jwcolby at colbyconsulting.com Mon Sep 24 13:04:13 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Sep 2007 14:04:13 -0400 Subject: [AccessD] Leave Subform In-Reply-To: References: Message-ID: <004e01c7fed5$50fa5260$6c7aa8c0@M90> Ahh, love those educational experiences. John 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: Monday, September 24, 2007 1:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Leave Subform I did thanks... I had to use a number of approaches including setting a variable ON EXIT that was evaluated in the BEFORE UPDATE to determine if the user was moving from record to record...or leaving the subform.. To track down exactly where I need each piece of code: I had a subform(continuous) on an unbound form. I also had a text box and a second subform(more controls but these are enough for the example). I had code in the subform (ON CURRENT and BEFORE UPDATE). I aslo had stuff on the subform(ON ENTER and ON EXIT). In each of these areas I placed a MSGBOX with the name of the area...so I could see in exactly what order everything fired. In the ONCURRENT I requeried the 2nd subform. To my amazement I learned that the BEFORE UPDATE was firing upto 3 times depending on how I was navigating. I finally figured out what I needed...thanks Everyone. It was definetely an education exercise. Mark A. Matte From garykjos at gmail.com Mon Sep 24 13:26:01 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 13:26:01 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> References: <46f7fb22.2787460a.3db6.ffffb772@mx.google.com> Message-ID: Yeah, they have never met an update they liked I guess. Since I have my home systems to jsut apply all the updates I suppose it's too late for me anyway. I probably already have it. Hope they get the patch to the patch ready soon. GK On 9/24/07, Susan Harkins wrote: > Yeah, but Woody would say that even if the SP watched his dishes and folded > and put away his laundry. :) Personally, I offer no advice period -- can't, > Windows apparently didn't install it, although, it said it did. > > Susan H. > > And I just got an email broadcast today to NOT INSTALL SP3 for OFFICE 2003 > > http://news.office-watch.com/t/n.aspx?a=555 > > > -- > 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 adtp at airtelbroadband.in Mon Sep 24 13:05:26 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Mon, 24 Sep 2007 23:35:26 +0530 Subject: [AccessD] Leave Subform References: <002501c7fc11$0744a 010$4457a27a@personalec1122> Message-ID: <009401c7fed5$b1c55fe0$e057a27a@personalec1122> Mark, From your subsequent posts, it now transpires that your objective is to highlight the current row of a continuous subform, in special color. At the same time, it has to be ensured that even when the user moves out of the subform, to any other control in the parent form, the subform row that was last current, should continue to remain highlighted. The following course of action is suggested. (in complete replacement of whatever you have been attempting so far). This is an interesting solution and does not depend upon any primary key value: (a) Change the name of your bound text box from "Color" to "Rank". This will hold row numbers inserted programmatically via form's Current and BeforeInsert events. Set the locked property of this control to Yes. (b) Place a hidden unbound text box named TxtRef in the header or footer of the subform. It will hold the value of current record inserted programmatically. (c) In form's detail section, for the controls required to be highlighted, use the following expression in conditional formatting dialog box: ([Rank]=[TxtRef]) Or (Fn_NewRec()=True And [Rank] Is Null) (d) Place the code given below, in form's module. Save & compile. (e) Open the form in design view, and make sure that in form's properties dialog box (Event tab), Current and BeforeInsert events carry the entry [Event Procedure]. Save and close the form. With the above measures, current record in the subform will always get highlighted and stay highlighted even when the focus moves away to the parent form. Note: (a) The suggested approach as outlined above, avoids using form's BeforeUpdate event. Moreover, it is not dependent upon any primary key value. (b) This solution has been tested on Access 2K3. You might like to verify whether it works equally well on Access 97. (c) To start with, there is no need to worry even if the Rank field is empty in existing records. The subform will behave correctly as planned, with Rank values getting inserted as & when needed. Best wishes, A.D.Tejpal ----------- Code in form's module ==================================== Private Sub Form_BeforeInsert(Cancel As Integer) ' This event takes care of freshly added record ' Assign row number to Rank (bound control) Me.Rank = Me.CurrentRecord ' Assign current record number to TxtRef Me.TxtRef = Me.CurrentRecord ' This statement is necessary for clean ' display of color highlights (clearing up ' hangover of previous highlights - if any) Me.Recalc End Sub ------------------------------------------------------ Private Sub Form_Current() ' Assign row number to Rank (bound control) ' - if not a new record (This check is meant to ' prevent inadvertant adding of fresh records ' merely by navigating to a new record) If Me.NewRecord = False Then Me.Rank = Me.CurrentRecord End If ' Assign current record number to TxtRef Me.TxtRef = Me.CurrentRecord ' This statement is necessary for clean ' display of color highlights (clearing up ' hangover of previous highlights - if any) Me.Recalc ' Note - TxtRef is an unbond text box in ' form header or footer, while Rank ' is a bound text box holding row number. ' The following expression is used for ' highlighting the current row through ' conditional formatting: ' ([Rank]=[TxtRef]) Or _ ' (Fn_NewRec()=True And [Rank] Is Null) End Sub ------------------------------------------------------ Private Function Fn_NewRec() As Boolean Fn_NewRec = Me.NewRecord End Function ==================================== ----- Original Message ----- From: Mark A Matte To: Access Developers discussion and problem solving Sent: Friday, September 21, 2007 20:38 Subject: Re: [AccessD] Leave Subform Thanks A.D., But with using the code below...the Before update still fires. Any Ideas? Thanks, mark ----- Original Message ----- From: A.D.TEJPAL To: Access Developers discussion and problem solving Cc: A.D.TEJPAL Sent: Friday, September 21, 2007 11:03 Subject: Re: [AccessD] Leave Subform Mark, This has to do with two complementary features: (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state. (b) Exit from subform control can not take final effect so long as the subform is dirty. Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control. Best wishes, A.D.Tejpal ----------- Exit event of subform control on the main form =================================== Private Sub SF_Sub_Exit(Cancel As Integer) Me.SF_Sub("Price") = 100 Me.SF_Sub.Form.Dirty = False End Sub =================================== ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, September 21, 2007 00:51 Subject: [AccessD] Leave Subform Hello All, Have an A97 db...I have a subform/continuous...when I leave/exit that subform I want to change a value on the current record of the subform. I thought I could do this by using the "On Exit" property of the subform. The problem is when I click out of the subform...the "on Exit" does fire...but if I put code in that references the field I want to change...the click part is cancelled and the subform maintains focus. Any suggestions? Thanks, Mark P.S...I can't use the "Before Update" of the subform itself...because going to a new record in the form does something different. From ssharkins at gmail.com Mon Sep 24 13:50:46 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 24 Sep 2007 14:50:46 -0400 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: Message-ID: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> Yeah, they have never met an update they liked I guess. Since I have my home systems to jsut apply all the updates I suppose it's too late for me anyway. I probably already have it. Hope they get the patch to the patch ready soon. ========You might check Gary -- in case you haven't followed the entire thread, Charlotte's failed to install and mine said it installed, but didn't. Well, when I say it "said" it installed, I mean that I got no error messages to the contrary. Susan H. From markamatte at hotmail.com Mon Sep 24 14:05:40 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Sep 2007 19:05:40 +0000 Subject: [AccessD] Leave Subform In-Reply-To: <009401c7fed5$b1c55fe0$e057a27a@personalec1122> References: <002501c7fc11$0744a 010$4457a27a@personalec1122> <009401c7fed5$b1c55fe0$e057a27a@personalec1122> Message-ID: Thanks A.D. I understand all except "...conditional formatting dialog box..." I'm not sure what you mean. Sorry, Mark ----------------------------------------> From: adtp at airtelbroadband.in> To: accessd at databaseadvisors.com> Date: Mon, 24 Sep 2007 23:35:26 +0530> CC: adtejpal at gmail.com> Subject: Re: [AccessD] Leave Subform>> Mark,>> From your subsequent posts, it now transpires that your objective is to highlight the current row of a continuous subform, in special color. At the same time, it has to be ensured that even when the user moves out of the subform, to any other control in the parent form, the subform row that was last current, should continue to remain highlighted.>> The following course of action is suggested. (in complete replacement of whatever you have been attempting so far). This is an interesting solution and does not depend upon any primary key value:>> (a) Change the name of your bound text box from "Color" to "Rank". This will hold row numbers inserted programmatically via form's Current and BeforeInsert events. Set the locked property of this control to Yes.>> (b) Place a hidden unbound text box named TxtRef in the header or footer of the subform. It will hold the value of current record inserted programmatically.>> (c) In form's detail section, for the controls required to be highlighted, use the following expression in conditional formatting dialog box:>> ([Rank]=[TxtRef]) Or (Fn_NewRec()=True And [Rank] Is Null)>> (d) Place the code given below, in form's module. Save & compile.>> (e) Open the form in design view, and make sure that in form's properties dialog box (Event tab), Current and BeforeInsert events carry the entry [Event Procedure]. Save and close the form.>> With the above measures, current record in the subform will always get highlighted and stay highlighted even when the focus moves away to the parent form.>> Note:> (a) The suggested approach as outlined above, avoids using form's BeforeUpdate event. Moreover, it is not dependent upon any primary key value.> (b) This solution has been tested on Access 2K3. You might like to verify whether it works equally well on Access 97.> (c) To start with, there is no need to worry even if the Rank field is empty in existing records. The subform will behave correctly as planned, with Rank values getting inserted as & when needed.>> Best wishes,> A.D.Tejpal> ----------->> Code in form's module> ====================================> Private Sub Form_BeforeInsert(Cancel As Integer)> ' This event takes care of freshly added record>> ' Assign row number to Rank (bound control)> Me.Rank = Me.CurrentRecord>> ' Assign current record number to TxtRef> Me.TxtRef = Me.CurrentRecord>> ' This statement is necessary for clean> ' display of color highlights (clearing up> ' hangover of previous highlights - if any)> Me.Recalc> End Sub> ------------------------------------------------------>> Private Sub Form_Current()> ' Assign row number to Rank (bound control)> ' - if not a new record (This check is meant to> ' prevent inadvertant adding of fresh records> ' merely by navigating to a new record)> If Me.NewRecord = False Then> Me.Rank = Me.CurrentRecord> End If>> ' Assign current record number to TxtRef> Me.TxtRef = Me.CurrentRecord>> ' This statement is necessary for clean> ' display of color highlights (clearing up> ' hangover of previous highlights - if any)> Me.Recalc>> ' Note - TxtRef is an unbond text box in> ' form header or footer, while Rank> ' is a bound text box holding row number.>> ' The following expression is used for> ' highlighting the current row through> ' conditional formatting:> ' ([Rank]=[TxtRef]) Or _> ' (Fn_NewRec()=True And [Rank] Is Null)> End Sub> ------------------------------------------------------>> Private Function Fn_NewRec() As Boolean> Fn_NewRec = Me.NewRecord> End Function> ====================================>> ----- Original Message -----> From: Mark A Matte> To: Access Developers discussion and problem solving> Sent: Friday, September 21, 2007 20:38> Subject: Re: [AccessD] Leave Subform>> Thanks A.D.,>> But with using the code below...the Before update still fires.>> Any Ideas?>> Thanks,>> mark>> ----- Original Message -----> From: A.D.TEJPAL> To: Access Developers discussion and problem solving> Cc: A.D.TEJPAL> Sent: Friday, September 21, 2007 11:03> Subject: Re: [AccessD] Leave Subform>>> Mark,>> This has to do with two complementary features:>> (a) Prior to final exit from subform control, current record in the subform gets saved (if the subform is still dirty) and the subform attains non-dirty state.> (b) Exit from subform control can not take final effect so long as the subform is dirty.>> Sample code as given below, should take care of the problem faced by you. SF_Sub is the name of subform control, while Price is the name of field in the subform, whose value in current record gets set to 100 whenever exiting the subform control.>> Best wishes,> A.D.Tejpal> ----------->> Exit event of subform control on the main form> ===================================> Private Sub SF_Sub_Exit(Cancel As Integer)> Me.SF_Sub("Price") = 100> Me.SF_Sub.Form.Dirty = False> End Sub> ===================================>> ----- Original Message -----> From: Mark A Matte> To: accessd at databaseadvisors.com> Sent: Friday, September 21, 2007 00:51> Subject: [AccessD] Leave Subform>>> Hello All,>> Have an A97 db...I have a subform/continuous...when I leave/exit that> subform I want to change a value on the current record of the subform. I> thought I could do this by using the "On Exit" property of the subform. The> problem is when I click out of the subform...the "on Exit" does fire...but> if I put code in that references the field I want to change...the click part> is cancelled and the subform maintains focus.>> Any suggestions?>> Thanks,>> Mark>> P.S...I can't use the "Before Update" of the subform itself...because going> to a new record in the form does something different.> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Gear up for Halo? 3 with free downloads and an exclusive offer. It?s our way of saying thanks for using Windows Live?. http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2 From garykjos at gmail.com Mon Sep 24 14:31:37 2007 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 24 Sep 2007 14:31:37 -0500 Subject: [AccessD] Office 2003 Service Pack 3 info In-Reply-To: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> References: <46f806ec.2786460a.4a8c.ffffab37@mx.google.com> Message-ID: Yeah, I could at least turn off the autoupdating for a while - switch it back to download but confirm before installing - on my Office 2003 machines. I haven't been doing a lot of office stuff of late thee. GK On 9/24/07, Susan Harkins wrote: > > > Yeah, they have never met an update they liked I guess. Since I have my home > systems to jsut apply all the updates I suppose it's too late for me anyway. > I probably already have it. Hope they get the patch to the patch ready > soon. > > ========You might check Gary -- in case you haven't followed the entire > thread, Charlotte's failed to install and mine said it installed, but > didn't. Well, when I say it "said" it installed, I mean that I got no error > messages to the contrary. > > 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 rockysmolin at bchacc.com Mon Sep 24 16:22:18 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 24 Sep 2007 14:22:18 -0700 Subject: [AccessD] Screen Resizing Problem Message-ID: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? MTIA Rocky From john at winhaven.net Mon Sep 24 22:47:24 2007 From: john at winhaven.net (John Bartow) Date: Mon, 24 Sep 2007 22:47:24 -0500 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007401c7fef0$fca311e0$0301a8c0@HAL9005> References: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Message-ID: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> Tabs controls are supported by that code so it may be that one of the properties to tags is set to make it do that. Can you post the resize code you're using for that form? -----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, September 24, 2007 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? MTIA 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 Tue Sep 25 08:52:38 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 08:52:38 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <003301c7fc1f$d916bc00$8119fea9@LTVM> References: <015901c7fbc5$377349e0$4b3a8343@SusanOne> <003301c7fc1f$d916bc00$8119fea9@LTVM> Message-ID: Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Thursday, September 20, 2007 9:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resume command problem I need some way to go back and check the value in the text box again to see if a valid value has been entered. I may be doing this all the wrong way? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, September 20, 2007 3:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem Resume works as part of an error-handling statement/routine. In the example below, you don't need it. Susan H. I am having trouble using the resume command. Just don't have a good understanding. Here is the code I am using with it. Just generates an error message of "Resume without error" What does it need to look like. Thanks. Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" End If Resume End Sub 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.485 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Sep 25 09:09:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Sep 2007 16:09:20 +0200 Subject: [AccessD] Resume command problem Message-ID: Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max From rockysmolin at bchacc.com Tue Sep 25 08:59:48 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 06:59:48 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> Message-ID: <00de01c7ff7c$562f3370$0301a8c0@HAL9005> John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Monday, September 24, 2007 8:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Tabs controls are supported by that code so it may be that one of the properties to tags is set to make it do that. Can you post the resize code you're using for that form? -----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, September 24, 2007 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From max.wanadoo at gmail.com Tue Sep 25 09:18:47 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Tue, 25 Sep 2007 15:18:47 +0100 Subject: [AccessD] Resume command problem In-Reply-To: Message-ID: <007101c7ff7e$fe3a1510$8119fea9@LTVM> The code assumed that your control was bound to a DATE Field, not a TEXT Field. REgards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 25, 2007 3:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resume command problem Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Tue Sep 25 09:58:38 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 25 Sep 2007 10:58:38 -0400 Subject: [AccessD] Nz() etc. Message-ID: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur From Chester_Kaup at kindermorgan.com Tue Sep 25 10:02:42 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 10:02:42 -0500 Subject: [AccessD] Resume command problem In-Reply-To: <007101c7ff7e$fe3a1510$8119fea9@LTVM> References: <007101c7ff7e$fe3a1510$8119fea9@LTVM> Message-ID: I thought it was bound to a date field by setting the default value to a date/time field in a table with the following default value statement. Although I have been known to be wrong. =DMin("[ProductionDate]","tbl One Manifold Production for a Time Period") I changed the order of the statements in the if then else block to check for the null condition first. I also added CVDate to the date comparison. Everything seems to work correctly now. Thanks everyone. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Tuesday, September 25, 2007 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem The code assumed that your control was bound to a DATE Field, not a TEXT Field. REgards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, September 25, 2007 3:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resume command problem Hi Chester You may try to replace CDate() with CVDate(). /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 15:52 >>> Thanks everyone for your coding ideas. It almost works. The problem is this. If the user does not enter a date it loops through the null error check just fine. However when the user enters a valid date it displays the message that the start date is after the end date when it is not. A check of the code reveals that after a null check the next time a date is entered the code thinks the date is text (puts quotes around it). I tried a cdate on the start date but of course that doesn't work if it is null. Ideas? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gmail Sent: Friday, September 21, 2007 2:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Resume command problem I would change your code to: Private Sub StartDate_Exit(Cancel As Integer) If Forms![frm Manifold Chart]!StartDate > Forms![frm Manifold Chart]!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub Also if "frm Manifold Chart" is your current form where this code exists (and I suspect it is) then change it to Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" cancel = true End If End Sub But, presumably your user will enter the Startdate before the Enddate. I would put some code in the OnCurrent: me!EndDate.enabled = not isnull(me!StartDate) HERE IS AN EXAMPLE of the whole thing: Option Compare Database Option Explicit Private Sub Form_Current() Me!EndDate.Enabled = Not IsNull(Me!StartDate) End Sub Private Sub StartDate_Exit(Cancel As Integer) If Me!StartDate > Me!EndDate Then MsgBox "Invalid Date. Start date must be before end date" Cancel = True ElseIf IsNull(Me!StartDate) Then MsgBox "You must enter a start date" Cancel = True Else Me!EndDate.Enabled = True Me!EndDate.SetFocus End If End Sub Private Sub EndDate_Exit(Cancel As Integer) If Me!EndDate < Me!StartDate Then MsgBox "Your End Date cannot be before the Start Date" Cancel = True ElseIf IsNull(Me!EndDate) Then MsgBox "You must enter an End Date" Cancel = True End If End Sub Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 25 10:04:01 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Sep 2007 17:04:01 +0200 Subject: [AccessD] Nz() etc. Message-ID: Hi Arthur If parm2 is zero, Nz will return zero if parm1 is Null. So parm2 is something else ...? /gustav >>> fuller.artful at gmail.com 25-09-2007 16:58 >>> I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur From Chester_Kaup at kindermorgan.com Tue Sep 25 10:10:43 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 10:10:43 -0500 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> References: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: If I understand correctly you are using Nz on two variables at the same time. I don't think you can do that. I believe you would have to do Nz(parm1) and Nz(Parm2). Also sometimes I have found you have to force it to zero even though that is the default. Example Nz(parm1,0) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 9:59 AM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Sep 25 10:13:58 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Tue, 25 Sep 2007 16:13:58 +0100 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: <008901c7ff86$b3002460$8119fea9@LTVM> The function is nz(var1,default if null), Ie: dim str as string Str = nz(str,"hello") Or dim var1 as variant, var2 as variant Var2 = 0 Var1=nz(var1,var2) Will result in var1 being zero if it is null It is the same as: If isnull(var1) then var1 = var2 Parm2 will not take on a value, it is the default value that you feed in for when your variable is null. But you propably know that? So what is the varType of parm1,parm2? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 3:59 PM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Sep 25 10:13:45 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 25 Sep 2007 11:13:45 -0400 Subject: [AccessD] Nz() etc. In-Reply-To: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> References: <29f585dd0709250758j1d9622a5m6645c8c24d3be8be@mail.gmail.com> Message-ID: <000c01c7ff86$abcfc790$8abea8c0@XPS> <> Nothing. Access in some cases does not return a NULL, but an error. To avoid this, use the function below and wrap whatever calculation you are doing with it. Note that you can easily add a null to zero check in it as well. Jim. Function AvoidError(n As Variant) On Error GoTo Trap AvoidError = n Exit Function Trap: AvoidError = 0 Resume Next End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, September 25, 2007 10:59 AM To: Access Developers discussion and problem solving Subject: [AccessD] Nz() etc. I've got a form that opens when you click a button. Two of the columns are calculated. They use Nz(parm1, parm2) and I would think that this results in zeros in both cases when I am adding new rows, but instead they both come up with #error, which is unbeautiful. What am I doing wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Sep 25 11:05:46 2007 From: john at winhaven.net (John Bartow) Date: Tue, 25 Sep 2007 11:05:46 -0500 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <00de01c7ff7c$562f3370$0301a8c0@HAL9005> References: <007f01c7ff26$c914eb60$6402a8c0@ScuzzPaq> <00de01c7ff7c$562f3370$0301a8c0@HAL9005> Message-ID: <012e01c7ff8d$ef9b4330$6402a8c0@ScuzzPaq> Rocky, Sorry for having you post all that (I have the original code) - I only meant "your call to the code module" should have been more specific. And that is standard code so it should be fine (unless of course you've changed you development PCs monitor resolution). That could cause it to act weird. Do you have the following properties listed in your code (or listed as text in the Tag property of the controls that are misbehaving): FloatIt, SizeIt or ScaleIt? You could do a search for the terms throughout your code (not ADH's) or look on the property sheets for the misbehaving controls. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA Rocky From cfoust at infostatsystems.com Tue Sep 25 11:18:02 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 09:18:02 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <007401c7fef0$fca311e0$0301a8c0@HAL9005> References: <007401c7fef0$fca311e0$0301a8c0@HAL9005> Message-ID: Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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 Tue Sep 25 11:59:41 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 09:59:41 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <012e01c7ff8d$ef9b4330$6402a8c0@ScuzzPaq> Message-ID: <010801c7ff95$775508e0$0301a8c0@HAL9005> John: What are FloatIt, SizeIt and ScaleIt? Never heard of them. They aren't used in my code anywhere. The forms were developed in 800x600. They resize incorrectly only at the highest resolution ion 1280 x ... Up to that point they resize OK. On one of the forms I tracked the problem down to one subform on one tab, that cause the whole tab control to be repositioned incorrectly - too high on the screen. But al the controls within the tab form still resize correctly. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, September 25, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Rocky, Sorry for having you post all that (I have the original code) - I only meant "your call to the code module" should have been more specific. And that is standard code so it should be fine (unless of course you've changed you development PCs monitor resolution). That could cause it to act weird. Do you have the following properties listed in your code (or listed as text in the Tag property of the controls that are misbehaving): FloatIt, SizeIt or ScaleIt? You could do a search for the terms throughout your code (not ADH's) or look on the property sheets for the misbehaving controls. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem John: The code itself is pretty long. Let's see if this goes through. It's straight from the ADH (Getz, Littwin, Gilbert) Here's the call. Call adhScaleForm(Me, 800, 600, 96, 96, rctOriginal) Code's below. TIA 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From rockysmolin at bchacc.com Tue Sep 25 12:02:31 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 10:02:31 -0700 Subject: [AccessD] A2007 misnumbering report pages? Message-ID: <010f01c7ff95$dcf2d420$0301a8c0@HAL9005> Dear List: I have a A2003 app running at a client who is using A2007. A couple of reports show "Page x of 1"; always "of 1". But not on all the reports. Only a couple. Runs fine here on my A2003 box. Any ideas? MTIA Rocky From rockysmolin at bchacc.com Tue Sep 25 12:04:02 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 10:04:02 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <011301c7ff96$130c9f00$0301a8c0@HAL9005> I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From john at winhaven.net Tue Sep 25 12:07:56 2007 From: john at winhaven.net (John Bartow) Date: Tue, 25 Sep 2007 12:07:56 -0500 Subject: [AccessD] Office SP3 purpose, problems, some fixes Message-ID: <017701c7ff96$ae8d6db0$6402a8c0@ScuzzPaq> FYI: http://support.microsoft.com/kb/923618 John B From cfoust at infostatsystems.com Tue Sep 25 12:45:35 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 10:45:35 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <011301c7ff96$130c9f00$0301a8c0@HAL9005> References: <011301c7ff96$130c9f00$0301a8c0@HAL9005> Message-ID: If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Sep 25 13:20:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 11:20:13 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From cfoust at infostatsystems.com Tue Sep 25 13:27:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 11:27:52 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> References: <013501c7ffa0$b71cb2b0$0301a8c0@HAL9005> Message-ID: How is its binding/positioning any different from the other subforms on the tab? 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: Tuesday, September 25, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Tue Sep 25 13:37:18 2007 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Tue, 25 Sep 2007 14:37:18 -0400 Subject: [AccessD] Help with code Message-ID: I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18%20Tue%2025%20Sep%202007 From dwaters at usinternet.com Tue Sep 25 13:59:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 25 Sep 2007 13:59:37 -0500 Subject: [AccessD] Help with code In-Reply-To: References: Message-ID: <00ab01c7ffa6$389c2640$0200a8c0@danwaters> Susan, Could you write a query that first sorts by grade and then sorts by score? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Tuesday, September 25, 2007 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18%20T ue%2025%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Sep 25 14:00:43 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 25 Sep 2007 15:00:43 -0400 Subject: [AccessD] Help with code In-Reply-To: Message-ID: <46f95ac5.2287460a.2889.394b@mx.google.com> I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. =======Are you doing this in Access or Excel? Susan H. From DWUTKA at Marlow.com Tue Sep 25 14:12:30 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 25 Sep 2007 14:12:30 -0500 Subject: [AccessD] Help with code In-Reply-To: Message-ID: No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Tuesday, September 25, 2007 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code I am trying to Rank Student scores within a grade within a school. I got the majority of code from the internet and it worked fine except that I need to loop through the records by grade and I won't know how many records are in each grade. I made a loop to count the records in the grade but then how do I get back to the first record in that grade in order to rank it. I may have my loop in the wrong place I don't know. There are only 2 records in grade 4. The third record starts grade 5 and there are 145 in grade 5 and 161 in grade 6. I can send a spreadsheet for anyone who would like some data to play with. Thanks in advance for the help. Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|14:37:18 %20Tue%2025%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Tue Sep 25 15:30:32 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 13:30:32 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? 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: Tuesday, September 25, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Strangely though (although why we continue to use the word strange with Access I don't know) the subform is correctly positioned on the tab. Te whole tab form is shifted vertically, however. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 10:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem If you're sizing up, I would think so. It's a little hard to tell what's happening, but from your description it sounds like one subform is getting put in the wrong place. 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: Tuesday, September 25, 2007 10:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem I'm not sure how to control that. I'm using canned resizing code from the ADH. So it should resize the tab control first and THEN the subform? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 9:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Are you remembering to resize the subform on the tab control relative to the resized tab control? The tab control can't be any smaller than the subform, but are you resizing the subform and its controls first? I can see where this might get tangled, since subform positions on the tab control are relative to the tab control, not the parent form. 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: Monday, September 24, 2007 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Screen Resizing Problem Dear List: Sorry, I need to revisit this question. I am working on a legacy application which needs screen resizing. I put in the adh code and all's pretty good except for two forms which have tab controls. When they resize the whole tab control gets shifted vertically. On one of the forms (haven't explored the other one yet) there's one tab page with a subform. When I delete this subform the whole form resizes correctly. I tried moving the subform away from the edge of the tab form. No Soap. Does anyone know of a fix for this or an alternative screen resizing module? 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From Chester_Kaup at kindermorgan.com Tue Sep 25 16:32:18 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 25 Sep 2007 16:32:18 -0500 Subject: [AccessD] Problem Updating a Textbox Message-ID: I have a form with a text box that displays the last date in a table. I have another text box the display the last value for the field Oil1 from the same table on the same form. It has its default value set with the following command: =DLast("Oil1","tbl One Manifold Production for a Time Period"). This works fine. When the user enter a new value in the text box with the last date it runs a query to rebuild the table. I run the code below on the on exit event of the last date text box. The problem is that the text box Oil1 value does not update. I am not seeing the problem so any suggestions would be welcome. Thanks all. DoCmd.OpenQuery "qry One Manifold Production for a Time Interval" Me.txtbxOil.Requery Me.Repaint 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 cfoust at infostatsystems.com Tue Sep 25 16:33:01 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Sep 2007 14:33:01 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> References: <015401c7ffb2$ec392ca0$0301a8c0@HAL9005> Message-ID: Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust From rockysmolin at bchacc.com Tue Sep 25 20:21:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 25 Sep 2007 18:21:06 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: Message-ID: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> What do you mean by binding? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 2:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust -- 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 PM From Gustav at cactus.dk Wed Sep 26 02:32:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 09:32:06 +0200 Subject: [AccessD] Problem Updating a Textbox Message-ID: Hi Chester Looks like that your problem is, that while you are editing a record, changing the Default Value for a control will not change the displayed value of that control until you move to a new record. /gustav >>> Chester_Kaup at kindermorgan.com 25-09-2007 23:32 >>> I have a form with a text box that displays the last date in a table. I have another text box the display the last value for the field Oil1 from the same table on the same form. It has its default value set with the following command: =DLast("Oil1","tbl One Manifold Production for a Time Period"). This works fine. When the user enter a new value in the text box with the last date it runs a query to rebuild the table. I run the code below on the on exit event of the last date text box. The problem is that the text box Oil1 value does not update. I am not seeing the problem so any suggestions would be welcome. Thanks all. DoCmd.OpenQuery "qry One Manifold Production for a Time Interval" Me.txtbxOil.Requery Me.Repaint Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 From jwcolby at colbyconsulting.com Wed Sep 26 04:25:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 05:25:42 -0400 Subject: [AccessD] Mucking around Message-ID: <001201c8001f$368ff790$6c7aa8c0@M90> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Wed Sep 26 04:52:27 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 11:52:27 +0200 Subject: [AccessD] Mucking around Message-ID: Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ John W. Colby Colby Consulting www.ColbyConsulting.com From ssharkins at gmail.com Wed Sep 26 07:59:54 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 08:59:54 -0400 Subject: [AccessD] Mucking around In-Reply-To: <001201c8001f$368ff790$6c7aa8c0@M90> Message-ID: <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> It has never occurred to me to store lookup values in one large table - not once. In fact, I am totally surprised that a discussion of this is even necessary. Susan H. I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ From jwcolby at colbyconsulting.com Wed Sep 26 08:26:45 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 09:26:45 -0400 Subject: [AccessD] Mucking around In-Reply-To: <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> References: <001201c8001f$368ff790$6c7aa8c0@M90> <46fa57b6.2786460a.1c4f.ffffe652@mx.google.com> Message-ID: <001a01c80040$e2e255d0$6c7aa8c0@M90> LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. John 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, September 26, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around It has never occurred to me to store lookup values in one large table - not once. In fact, I am totally surprised that a discussion of this is even necessary. Susan H. I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/1464/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 26 08:42:17 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 09:42:17 -0400 Subject: [AccessD] Mucking around In-Reply-To: <001a01c80040$e2e255d0$6c7aa8c0@M90> Message-ID: <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. From jwcolby at colbyconsulting.com Wed Sep 26 08:54:09 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 09:54:09 -0400 Subject: [AccessD] Mucking around In-Reply-To: <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> References: <001a01c80040$e2e255d0$6c7aa8c0@M90> <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> Message-ID: <000301c80044$b6f6e8b0$6c7aa8c0@M90> The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 26 09:05:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:05:14 +0000 Subject: [AccessD] Mucking around In-Reply-To: <000301c80044$b6f6e8b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90> <46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400> Subject: Re: [AccessD] Mucking around>> The general argument is that you have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3 Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place all of your single column "type of something" data into> a single table with another column which allows you to find only the cities,> or states, or types of addresses or (place your list data type here).>> It works, but it causes headaches, but people do 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 Susan Harkins> Sent: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers discussion and problem solving'> Subject: Re: [AccessD] Mucking around>> Except that tables are supposed to store like data, not data that simply> looks similar and happens to have the same structure. I would think the> data's purpose matters more in the decision than the data's structure.>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never the less> there are those who argue vociferously for this method.>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From jwcolby at colbyconsulting.com Wed Sep 26 09:12:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:12:42 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: <000001c80047$4e8cd6b0$6c7aa8c0@M90> >If you had an app with 30 drop downs...would you create 30 separate lookup tables? If I have an app with 10 drop downs for state I would create one state lookup table and use that for all 10 drop downs. If I had an app with 5 different address type drop downs (unlikely) I would create one address type lookup table and use that for all 5 drop downs. Does that answer your question? One lookup table for each "type" or "list" (or whatever you might call these) table. John 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, September 26, 2007 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400> Subject: Re: [AccessD] Mucking around>> The general argument is that you have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3 Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place all of your single column "type of something" data into> a single table with another column which allows you to find only the cities,> or states, or types of addresses or (place your list data type here).>> It works, but it causes headaches, but people do 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 Susan Harkins> Se! nt: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers discussion and problem solving'> Subject: Re: [AccessD] Mucking around>> Except that tables are supposed to store like data, not data that simply> looks similar and happens to have the same structure. I would think the> data's purpose matters more in the decision than the data's structure.>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never the less> there are those who argue vociferously for this method.>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 09:15:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 16:15:29 +0200 Subject: [AccessD] Mucking around Message-ID: Hi Mark If they hold 30 different set of data, yes. /gustav >>> markamatte at hotmail.com 26-09-2007 16:05 >>> I have seen this before(and used it)...but out of curiosity. If you had an app with 30 drop downs...would you create 30 seperate lookup tables? Thanks, Mark A. Matte From john at winhaven.net Wed Sep 26 09:19:23 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 09:19:23 -0500 Subject: [AccessD] Mucking around In-Reply-To: <000301c80044$b6f6e8b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> Message-ID: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Unfortunately, at times one has to work with what has been laid out before hand. This method works fine with views (queries). Its basically a matter hat relies on the of documentation by the original DBA and comprehension by the DBA. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 8:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 26 09:37:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:37:50 -0400 Subject: [AccessD] Mucking around In-Reply-To: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: <000001c8004a$d0f5d1d0$6c7aa8c0@M90> This is definitely a "more work than it is worth to clean up" kind of thing for existing databases. It is also a "don't do that" kind of thing for new databases that you are designing. And having said that, the "I do it that way and this is why" email will now start to flow. John 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: Wednesday, September 26, 2007 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Unfortunately, at times one has to work with what has been laid out before hand. This method works fine with views (queries). Its basically a matter hat relies on the of documentation by the original DBA and comprehension by the DBA. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 8:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around The general argument is that you have THREE columns. PKID TypeOfDataID Data The TypeOfDataID might be: 1 Cities 2 States 3 Name prefixes (Mr. etc) 4 Address Types Etc Etc So you might have data that looks like: 1 2 CA 2 2 AZ 3 3 Mr 4 3 Mrs 5 4 Home 6 4 Work 7 4 Shipping 8 1 San Diego Thus you have place all of your single column "type of something" data into a single table with another column which allows you to find only the cities, or states, or types of addresses or (place your list data type here). It works, but it causes headaches, but people do 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 Susan Harkins Sent: Wednesday, September 26, 2007 9:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Except that tables are supposed to store like data, not data that simply looks similar and happens to have the same structure. I would think the data's purpose matters more in the decision than the data's structure. Susan H. LOL. Proper normalization says that it is not necessary. Never the less there are those who argue vociferously for this method. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Sep 26 09:38:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:38:18 +0000 Subject: [AccessD] Mucking around In-Reply-To: <000001c80047$4e8cd6b0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... Thanks, Mark ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:12:42 -0400> Subject: Re: [AccessD] Mucking around>>>If you had an app with 30 drop downs...would you create 30 separate lookup> tables?>> If I have an app with 10 drop downs for state I would create one state> lookup table and use that for all 10 drop downs.> If I had an app with 5 different address type drop downs (unlikely) I would> create one address type lookup table and use that for all 5 drop downs.>> Does that answer your question?>> One lookup table for each "type" or "list" (or whatever you might call> these) table.>> John 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, September 26, 2007 10:05 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> I have seen this before(and used it)...but out of curiosity. If you had an> app with 30 drop downs...would you create 30 seperate lookup tables?>> Thanks,>> Mark A. Matte>> ----------------------------------------> From: jwcolby at colbyconsulting.com>> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 09:54:09 -0400>> Subject: Re: [AccessD] Mucking around>> The general argument is that you> have THREE columns.>> PKID> TypeOfDataID> Data>> The TypeOfDataID might> be:>> 1 Cities> 2 States> 3 Name prefixes (Mr. etc)> 4 Address Types> Etc>> Etc>> So you might have data that looks like:>> 1 2 CA> 2 2 AZ> 3 3 Mr> 4 3> Mrs> 5 4 Home> 6 4 Work> 7 4 Shipping> 8 1 San Diego>> Thus you have place> all of your single column "type of something" data into> a single table with> another column which allows you to find only the cities,> or states, or> types of addresses or (place your list data type here).>> It works, but it> causes headaches, but people do 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 Susan Harkins>> Se!> nt: Wednesday, September 26, 2007 9:42 AM> To: 'Access Developers> discussion and problem solving'> Subject: Re: [AccessD] Mucking around>>> Except that tables are supposed to store like data, not data that simply>> looks similar and happens to have the same structure. I would think the>> data's purpose matters more in the decision than the data's structure.>>> Susan H.>> LOL. Proper normalization says that it is not necessary. Never> the less> there are those who argue vociferously for this method.>>> -->> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> --> AccessD mailing list>> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> News, entertainment and everything you care about at Live.com. Get it now!> http://www.live.com/getstarted.aspx> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From markamatte at hotmail.com Wed Sep 26 09:43:45 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 14:43:45 +0000 Subject: [AccessD] Mucking around In-Reply-To: <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com> <000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. Ho can I set this in VBA? Thanks, Mark A. Matte _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE From jwcolby at colbyconsulting.com Wed Sep 26 09:51:32 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:51:32 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: <000001c8004c$bb32eb10$6c7aa8c0@M90> Yep. And what is with the ----------------------------------------> thing? Your email is the only one I am seeing this on. Is this your attempt to FORCE users to snip old stuff? ;-) John 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, September 26, 2007 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... Thanks, Mark ----------------------------------------> From: ----------------------------------------> jwcolby at colbyconsulting.com> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Wed, 26 Sep 2007 ----------------------------------------> 10:12:42 -0400> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>>If ----------------------------------------> you had an app with 30 drop ----------------------------------------> downs...would you create 30 ----------------------------------------> separate lookup> tables?>> If ----------------------------------------> I have an app with 10 drop ----------------------------------------> downs for state I would create ----------------------------------------> one state> lookup table and ----------------------------------------> use that for all 10 drop ----------------------------------------> downs.> If I had an app with 5 ----------------------------------------> different address type drop ----------------------------------------> downs (unlikely) I would> ----------------------------------------> create one address type lookup ----------------------------------------> table and use that for all 5 ----------------------------------------> drop downs.>> Does that answer ----------------------------------------> your question?>> One lookup ----------------------------------------> table for each "type" or ----------------------------------------> "list" (or whatever you might ----------------------------------------> call> these) table.>> John W. ----------------------------------------> Colby> Colby Consulting> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From: ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Mark A Matte> Sent: Wednesday, ----------------------------------------> September 26, 2007 10:05 AM> ----------------------------------------> To: Access Developers ----------------------------------------> discussion and problem ----------------------------------------> solving> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>> I ----------------------------------------> have seen this before(and used ----------------------------------------> it)...but out of curiosity. If ----------------------------------------> you had an> app with 30 drop ----------------------------------------> downs...would you create 30 ----------------------------------------> seperate lookup tables?>> ----------------------------------------> Thanks,>> Mark A. Matte>> ----------------------------------------> ------------------------------ ----------------------------------------> ----------> From: ----------------------------------------> jwcolby at colbyconsulting.com>> ----------------------------------------> To: ----------------------------------------> accessd at databaseadvisors.com> ----------------------------------------> Date: Wed, 26 Sep 2007 ----------------------------------------> 09:54:09 -0400>> Subject: Re: ----------------------------------------> [AccessD] Mucking around>> The ----------------------------------------> general argument is that you> ----------------------------------------> have THREE columns.>> PKID> ----------------------------------------> TypeOfDataID> Data>> The ----------------------------------------> TypeOfDataID might> be:>> 1 ----------------------------------------> Cities> 2 States> 3 Name ----------------------------------------> prefixes (Mr. etc)> 4 Address ----------------------------------------> Types> Etc>> Etc>> So you ----------------------------------------> might have data that looks ----------------------------------------> like:>> 1 2 CA> 2 2 AZ> 3 3 ----------------------------------------> Mr> 4 3> Mrs> 5 4 Home> 6 4 ----------------------------------------> Work> 7 4 Shipping> 8 1 San ----------------------------------------> Diego>> Thus you have place> ----------------------------------------> all of your single column ----------------------------------------> "type of something" data into> ----------------------------------------> a single table with> another ----------------------------------------> column which allows you to ----------------------------------------> find only the cities,> or ----------------------------------------> states, or> types of addresses ----------------------------------------> or (place your list data type ----------------------------------------> here).>> It works, but it> ----------------------------------------> causes headaches, but people ----------------------------------------> do it.>> John W. Colby> Colby ----------------------------------------> Consulting>> ----------------------------------------> www.ColbyConsulting.com> ----------------------------------------> -----Original Message-----> ----------------------------------------> From:> ----------------------------------------> accessd-bounces at databaseadviso ----------------------------------------> rs.com>> ----------------------------------------> [mailto:accessd-bounces at databa ----------------------------------------> seadvisors.com] On Behalf Of ----------------------------------------> Susan Harkins>> Se!> nt: ----------------------------------------> Wednesday, September 26, 2007 ----------------------------------------> 9:42 AM> To: 'Access ----------------------------------------> Developers> discussion and ----------------------------------------> problem solving'> Subject: Re: ----------------------------------------> [AccessD] Mucking around>>> ----------------------------------------> Except that tables are ----------------------------------------> supposed to store like data, ----------------------------------------> not data that simply>> looks ----------------------------------------> similar and happens to have ----------------------------------------> the same structure. I would ----------------------------------------> think the>> data's purpose ----------------------------------------> matters more in the decision ----------------------------------------> than the data's structure.>>> ----------------------------------------> Susan H.>> LOL. Proper ----------------------------------------> normalization says that it is ----------------------------------------> not necessary. Never> the ----------------------------------------> less> there are those who ----------------------------------------> argue vociferously for this ----------------------------------------> method.>>> -->> AccessD ----------------------------------------> mailing list> ----------------------------------------> AccessD at databaseadvisors.com>> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website:> ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> --> AccessD mailing list>> ----------------------------------------> AccessD at databaseadvisors.com>> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website:> ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> ----------------------------------------> ______________________________ ----------------------------------------> ______________________________ ----------------------------------------> _____> News, entertainment and ----------------------------------------> everything you care about at ----------------------------------------> Live.com. Get it now!> ----------------------------------------> http://www.live.com/getstarted ----------------------------------------> .aspx> --> AccessD mailing ----------------------------------------> list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m>> --> AccessD mailing list> ----------------------------------------> AccessD at databaseadvisors.com> ----------------------------------------> http://databaseadvisors.com/ma ----------------------------------------> ilman/listinfo/accessd> ----------------------------------------> Website: ----------------------------------------> http://www.databaseadvisors.co ----------------------------------------> m _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=w lmailtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Sep 26 09:53:17 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 10:53:17 -0400 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> Message-ID: <000101c8004c$f972bd60$6c7aa8c0@M90> Open any module Click tools / references. Find and check the dao reference. That database will now reference DAO. AFAIK there is no way to force all new databases to reference DAO automatically. John 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, September 26, 2007 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. Ho can I set this in VBA? Thanks, Mark A. Matte _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Sep 26 10:05:04 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:05:04 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: <000101c8004c$f972bd60$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>> Open any module> Click tools / references.> Find and check the dao reference.>> That database will now reference DAO. AFAIK there is no way to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte> _________________________________________________________________> Discover the new Windows Vista> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From rockysmolin at bchacc.com Wed Sep 26 10:13:53 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 08:13:53 -0700 Subject: [AccessD] You Canceled the Previous Operation Message-ID: <001c01c8004f$da727650$0301a8c0@HAL9005> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From john at winhaven.net Wed Sep 26 10:10:38 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 10:10:38 -0500 Subject: [AccessD] Mucking around In-Reply-To: <000001c8004a$d0f5d1d0$6c7aa8c0@M90> References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000001c8004a$d0f5d1d0$6c7aa8c0@M90> Message-ID: <002601c8004f$65bd2490$6402a8c0@ScuzzPaq> Agree. LOL! - my thoughts too :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, September 26, 2007 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around This is definitely a "more work than it is worth to clean up" kind of thing for existing databases. It is also a "don't do that" kind of thing for new databases that you are designing. And having said that, the "I do it that way and this is why" email will now start to flow. From cfoust at infostatsystems.com Wed Sep 26 10:11:30 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:11:30 -0700 Subject: [AccessD] Screen Resizing Problem In-Reply-To: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> References: <019c01c7ffdb$83910af0$0301a8c0@HAL9005> Message-ID: master/child links, top and left properties, etc. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, September 25, 2007 6:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem What do you mean by binding? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 2:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem Is all the binding done in code? If not, you'll need to check design view also. 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: Tuesday, September 25, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Screen Resizing Problem Don't know. I guess I'll have to step through the code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, September 25, 2007 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Screen Resizing Problem How is its binding/positioning any different from the other subforms on the tab? Charlotte Foust -- 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.488 / Virus Database: 269.13.30/1029 - Release Date: 9/24/2007 7:09 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 Sep 26 10:16:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:16:03 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte From rockysmolin at bchacc.com Wed Sep 26 10:18:09 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 08:18:09 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <001c01c8004f$da727650$0301a8c0@HAL9005> Message-ID: <002401c80050$72ba3a10$0301a8c0@HAL9005> P.S. When I put in a breakpoint and step through the code with the F8 key, it works! Maybe a clue? Rocky -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM From cfoust at infostatsystems.com Wed Sep 26 10:16:16 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:16:16 -0700 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: You'd be better off doing it manually. You can set references but if your code depends on them, you have to put the reference handling code in a module that runs before anything else and that references the VBEIDE. I've done it for a different reason, but believe me, it's far easier to set it manually. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, September 26, 2007 8:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] DAO References in New DBs Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte ----------------------------------------> From: jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date: Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>> Open any module> Click tools / references.> Find and check the dao reference.>> That database will now reference DAO. AFAIK there is no way to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers discussion and problem solving> Subject: Re: [AccessD] Mucking around>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte> _________________________________________________________________> Discover the new Windows Vista> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour ce=wlmailtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Sep 26 10:18:44 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:18:44 -0700 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: Remember our long thread discussing IsBroken and setting references? Have you tried this in a database with a broken reference? Not being a skeptic, just curious. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DAO References in New DBs Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 10:22:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:22:50 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From jwcolby at colbyconsulting.com Wed Sep 26 10:24:43 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2007 11:24:43 -0400 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: <000201c80051$5e007b60$6c7aa8c0@M90> Wow! John 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, September 26, 2007 11:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DAO References in New DBs Hi Mark You can run a function to do this: ' Length of GUID string per definition. Private Const clngGUID As Long = 38 Type GuidDefinition Guid As String * clngGUID Major As Integer Minor As Integer End Type Public Function RefAddDao() As Boolean Dim typGuid As GuidDefinition With typGuid .Guid = "{00025E01-0000-0000-C000-000000000046}" End With RefAddDao = ReferenceAddFromGuid(typGuid) End Function Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As Boolean ' Add a reference from its GUID and verify it. ' ' 2001-08-20. Cactus Data ApS, CPH. ' Reference Guid not registered or registered with a lower version. Const clngErrorGuidNotRegistered As Long = -2147319779 Dim ref As Reference Dim booSuccess As Boolean On Error Resume Next With typGuid References.AddFromGuid .Guid, .Major, .Minor End With If Not Err = clngErrorGuidNotRegistered Then ' The reference is registered but it may have been tampered with. ' Find it and check that it is not broken. For Each ref In References With ref If .BuiltIn = True Then ' no need to study built in references. ElseIf .Guid = typGuid.Guid Then ' This is the added reference. booSuccess = Not IsBroken97(ref) If booSuccess = True Then ' Return actual GUID version. typGuid.Major = .Major typGuid.Minor = .Minor End If End If End With Next End If Set ref = Nothing ReferenceAddFromGuid = booSuccess End Function Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If Len(Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> markamatte at hotmail.com 26-09-2007 17:05 >>> Sorry I forgot to change the Subject...Any ideas on how to get around this...other than manually doing it everytime? ORIGINAL QUESTION: Hello All, I just converted a db to XP that used Ted Avery's front end updater. The problem I am having is the temp db that is created does not have a DAO reference...actually any new db I create does not have a DAO reference. How can I set this in VBA? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Sep 26 10:20:56 2007 From: john at winhaven.net (John Bartow) Date: Wed, 26 Sep 2007 10:20:56 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90> <000001c80047$4e8cd6b0$6c7aa8c0@M90> Message-ID: <002701c80050$d607d3c0$6402a8c0@ScuzzPaq> Simply put -yes. Another question is "how to handle the populating and maintenance of these lookup table's values"? 3 distinct variations come to mind: 1-a entry/edit form for each (typical but often redundant) 2-one entry edit form which is generic and filled via code depending on which lookup table is chosen to have values entered/edited (saves form layout time in the long run) 3-initially filling of tables with existing data - from there using the NotInList event of forms to enter new values (works for simple lookups, often requires DBA intervention depending on user trustworthiness(rare) and/or security levels - often combined with either option 1 or 2) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From cfoust at infostatsystems.com Wed Sep 26 10:29:01 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 08:29:01 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: References: Message-ID: And to piggyback on Gustav's reply, the second call to me.RecordsetClone creates a new clone, it doesn't use the one you just ran a find on. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Sep 26 10:34:08 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 26 Sep 2007 11:34:08 -0400 Subject: [AccessD] Mucking around In-Reply-To: <002701c80050$d607d3c0$6402a8c0@ScuzzPaq> Message-ID: <46fa7bd4.2486460a.7e7f.0c93@mx.google.com> I would too, but mostly because the dogmatic Sagittarian in me likes it that way. ;) Susan H. Simply put -yes. I meant if you had 30 completely different, not related drop downs...would you create 30 lookup tables? Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From Gustav at cactus.dk Wed Sep 26 10:35:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:35:53 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Charlotte Certainly. But forgot to tell about it, sorry. Mark, the database code must be compiled in full after tampering with the references. You can do that with a macro which - converted - looks like this: DoCmd.Echo False, "" DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" DoCmd.Echo True, "" where USysReferencesCheck is an empty module created for the purpose. /gustav >>> cfoust at infostatsystems.com 26-09-2007 17:18 >>> Remember our long thread discussing IsBroken and setting references? Have you tried this in a database with a broken reference? Not being a skeptic, just curious. Charlotte Foust From markamatte at hotmail.com Wed Sep 26 10:57:10 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:57:10 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: <001a01c80040$e2e255d0$6c7aa8c0@M90><46fa61a1.2387460a.2263.ffffeaf1@mx.google.com><000301c80044$b6f6e8b0$6c7aa8c0@M90><00fa01c80048$3d50a600$6402a8c0@ScuzzPaq> <000101c8004c$f972bd60$6c7aa8c0@M90> Message-ID: I don't really have the 'manual' choice in using the updater...since it creates a new MDB... ----------------------------------------> Date: Wed, 26 Sep 2007 08:16:16 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> You'd be better off doing it manually. You can set references but if> your code depends on them, you have to put the reference handling code> in a module that runs before anything else and that references the> VBEIDE. I've done it for a different reason, but believe me, it's far> easier to set it manually.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte> Sent: Wednesday, September 26, 2007 8:05 AM> To: Access Developers discussion and problem solving> Subject: [AccessD] DAO References in New DBs>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte> ----------------------------------------> From:> jwcolby at colbyconsulting.com> To: accessd at databaseadvisors.com> Date:> Wed, 26 Sep 2007 10:53:17 -0400> Subject: Re: [AccessD] Mucking around>>> Open any module> Click tools / references.> Find and check the dao> reference.>> That database will now reference DAO. AFAIK there is no way> to force all> new databases to reference DAO automatically.>>> John 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, September 26, 2007 10:44 AM> To: Access Developers> discussion and problem solving> Subject: Re: [AccessD] Mucking around>>>> Hello All,>> I just converted a db to XP that used Ted Avery's front end> updater. The> problem I am having is the temp db that is created does> not have a DAO> reference...actually any new db I create does not have a> DAO reference. Ho> can I set this in VBA?>> Thanks,>> Mark A. Matte>> _________________________________________________________________>> Discover the new Windows Vista>> http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE>> --> AccessD mailing list> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> --> AccessD mailing list>> AccessD at databaseadvisors.com>> http://databaseadvisors.com/mailman/listinfo/accessd> Website:> http://www.databaseadvisors.com>> _________________________________________________________________> Connect to the next generation of MSN Messenger> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour> ce=wlmailtagline> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From markamatte at hotmail.com Wed Sep 26 10:58:01 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Sep 2007 15:58:01 +0000 Subject: [AccessD] DAO References in New DBs In-Reply-To: References: Message-ID: It actually doesn't chow as broken. ----------------------------------------> Date: Wed, 26 Sep 2007 08:18:44 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Remember our long thread discussing IsBroken and setting references?> Have you tried this in a database with a broken reference? Not being a> skeptic, just curious.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock> Sent: Wednesday, September 26, 2007 8:16 AM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Hi Mark>> You can run a function to do this:>> >> ' Length of GUID string per definition.> Private Const clngGUID As Long = 38>> Type GuidDefinition> Guid As String * clngGUID> Major As Integer> Minor As Integer> End Type>> Public Function RefAddDao() As Boolean>> Dim typGuid As GuidDefinition>> With typGuid> .Guid = "{00025E01-0000-0000-C000-000000000046}"> End With>> RefAddDao = ReferenceAddFromGuid(typGuid)>> End Function>> Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As> Boolean>> ' Add a reference from its GUID and verify it.> '> ' 2001-08-20. Cactus Data ApS, CPH.>>> ' Reference Guid not registered or registered with a lower version.> Const clngErrorGuidNotRegistered As Long = -2147319779>> Dim ref As Reference>> Dim booSuccess As Boolean>> On Error Resume Next>> With typGuid> References.AddFromGuid .Guid, .Major, .Minor> End With>> If Not Err = clngErrorGuidNotRegistered Then> ' The reference is registered but it may have been tampered with.> ' Find it and check that it is not broken.> For Each ref In References> With ref> If .BuiltIn = True Then> ' no need to study built in references.> ElseIf .Guid = typGuid.Guid Then> ' This is the added reference.> booSuccess = Not IsBroken97(ref)> If booSuccess = True Then> ' Return actual GUID version.> typGuid.Major = .Major> typGuid.Minor = .Minor> End If> End If> End With> Next> End If>> Set ref = Nothing>> ReferenceAddFromGuid = booSuccess>> End Function>> Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean>> ' Alternative method to check if a reference is broken ' as the IsBroken> property cannot be used in Access97.> '> ' 2000-03-19. Gustav Brock. Cactus Data ApS.>> ' Refer to this article at Microsoft Technet:> '> ' Article ID: Q186720> '> ' The information in this article applies to:> ' Microsoft Access 97> '> ' SYMPTOMS> ' In Microsoft Access, IsBroken is a property of the References> collection.> ' The Microsoft Access Help topic on the Isbroken property states the> following:> '> ' The IsBroken property returns a Boolean value indicating whether a '> Reference object points to a valid reference in the Windows Registry.> '> ' Although this statement is correct, to receive this Boolean value '> you must trap for errors that are generated by the broken reference.> ' Also, the IsBroken property becomes True only when the file being> referenced ' is deleted and the Microsoft Windows Recycle Bin is> emptied.> ' This article details the steps necessary to receive the Boolean value.>> Dim booRefOK As Boolean> On Error GoTo Err_IsBroken97>> If Len(Dir(ref.FullPath, vbNormal))> 0 Then> booRefOK = Not ref.IsBroken> End If>> Exit_IsBroken97:> IsBroken97 = Not booRefOK> Exit Function>> Err_IsBroken97:> ' Ignore non existing servers, drives, and paths.> Resume Exit_IsBroken97>> End Function>> >> /gustav>>>>> markamatte at hotmail.com 26-09-2007 17:05>>>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte>>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From Gustav at cactus.dk Wed Sep 26 10:58:56 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 17:58:56 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9-0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9-0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Wed Sep 26 11:05:04 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 18:05:04 +0200 Subject: [AccessD] DAO References in New DBs Message-ID: Hi Mark No, but if the database contains a code module it will change status to not compiled. /gustav PS: Couldn't you have a look on how your mailer quotes the mail you reply? >>> markamatte at hotmail.com 26-09-2007 17:58 >>> It actually doesn't chow as broken. ----------------------------------------> Date: Wed, 26 Sep 2007 08:18:44 -0700> From: cfoust at infostatsystems.com> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Remember our long thread discussing IsBroken and setting references?> Have you tried this in a database with a broken reference? Not being a> skeptic, just curious.>> Charlotte Foust>> -----Original Message-----> From: accessd-bounces at databaseadvisors.com> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock> Sent: Wednesday, September 26, 2007 8:16 AM> To: accessd at databaseadvisors.com> Subject: Re: [AccessD] DAO References in New DBs>> Hi Mark>> You can run a function to do this:>> >> ' Length of GUID string per definition.> Private Const clngGUID As Long = 38>> Type GuidDefinition> Guid As String * clngGUID> Major As Integer> Minor As Integer> End Type>> Public Function RefAddDao() As Boolean>> Dim typGuid As GuidDefinition>> With typGuid> .Guid = "{00025E01-0000-0000-C000-000000000046}"> End With>> RefAddDao = ReferenceAddFromGuid(typGuid)>> End Function>> Public Function ReferenceAddFromGuid(ByRef typGuid As GuidDefinition) As> Boolean>> ' Add a reference from its GUID and verify it.> '> ' 2001-08-20. Cactus Data ApS, CPH.>>> ' Reference Guid not registered or registered with a lower version.> Const clngErrorGuidNotRegistered As Long = -2147319779>> Dim ref As Reference>> Dim booSuccess As Boolean>> On Error Resume Next>> With typGuid> References.AddFromGuid .Guid, .Major, .Minor> End With>> If Not Err = clngErrorGuidNotRegistered Then> ' The reference is registered but it may have been tampered with.> ' Find it and check that it is not broken.> For Each ref In References> With ref> If .BuiltIn = True Then> ' no need to study built in references.> ElseIf .Guid = typGuid.Guid Then> ' This is the added reference.> booSuccess = Not IsBroken97(ref)> If booSuccess = True Then> ' Return actual GUID version.> typGuid.Major = .Major> typGuid.Minor = .Minor> End If> End If> End With> Next> End If>> Set ref = Nothing>> ReferenceAddFromGuid = booSuccess>> End Function>> Public Function IsBroken97(ByVal ref As Access.Reference) As Boolean>> ' Alternative method to check if a reference is broken ' as the IsBroken> property cannot be used in Access97.> '> ' 2000-03-19. Gustav Brock. Cactus Data ApS.>> ' Refer to this article at Microsoft Technet:> '> ' Article ID: Q186720> '> ' The information in this article applies to:> ' Microsoft Access 97> '> ' SYMPTOMS> ' In Microsoft Access, IsBroken is a property of the References> collection.> ' The Microsoft Access Help topic on the Isbroken property states the> following:> '> ' The IsBroken property returns a Boolean value indicating whether a '> Reference object points to a valid reference in the Windows Registry.> '> ' Although this statement is correct, to receive this Boolean value '> you must trap for errors that are generated by the broken reference.> ' Also, the IsBroken property becomes True only when the file being> referenced ' is deleted and the Microsoft Windows Recycle Bin is> emptied.> ' This article details the steps necessary to receive the Boolean value.>> Dim booRefOK As Boolean> On Error GoTo Err_IsBroken97>> If Len(Dir(ref.FullPath, vbNormal))> 0 Then> booRefOK = Not ref.IsBroken> End If>> Exit_IsBroken97:> IsBroken97 = Not booRefOK> Exit Function>> Err_IsBroken97:> ' Ignore non existing servers, drives, and paths.> Resume Exit_IsBroken97>> End Function>> >> /gustav>>>>> markamatte at hotmail.com 26-09-2007 17:05>>>>> Sorry I forgot to change the Subject...Any ideas on how to get around> this...other than manually doing it everytime?>>> ORIGINAL QUESTION:> Hello All,> I just converted a db to XP that used Ted Avery's front end updater. The> problem I am having is the temp db that is created does not have a DAO> reference...actually any new db I create does not have a DAO reference.> How can I set this in VBA?> Thanks,> Mark A. Matte>>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> 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 Wed Sep 26 11:06:43 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 09:06:43 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <002801c80057$3b8cff30$0301a8c0@HAL9005> Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM From cfoust at infostatsystems.com Wed Sep 26 11:25:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 09:25:09 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <002801c80057$3b8cff30$0301a8c0@HAL9005> References: <002801c80057$3b8cff30$0301a8c0@HAL9005> Message-ID: Try checking for NoMatch on a DAO recordset or Not .EOF and Not .BOF on an ADO recordset. Even though the value is there, it might provide enough of a pause to keep Access from falling over its feet. 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, September 26, 2007 9:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 11:44:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 18:44:52 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky Then, I guess, you perform some operation just ahead of looking up the bookmark - like an afterupdate event following the choice in the Listbox. /gustav >>> rockysmolin at bchacc.com 26-09-2007 18:06 >>> Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From max.wanadoo at gmail.com Wed Sep 26 12:38:47 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Wed, 26 Sep 2007 18:38:47 +0100 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <013201c80064$1928e820$8119fea9@LTVM> Rocky, It may just be that your recordset is not bookmarkable. I suggest you test if me.bookmarkable then The sort of code I use (aircode) is: Dim rst as dao.recorset, sqlFind as string If me.bookmarkable then Strfind = "yourteststringhere", ie: strfind = "RecordID=" & lngID set rst = me.recordsetclone Rst.findfirst strfind If not rst.nomatch then Me.bookmark = rst.bookmark Else Msgbox "Not found" Endif Set rst = nothing Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, September 26, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] You Canceled the Previous Operation Try checking for NoMatch on a DAO recordset or Not .EOF and Not .BOF on an ADO recordset. Even though the value is there, it might provide enough of a pause to keep Access from falling over its feet. 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, September 26, 2007 9:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Gustav: I added DIM rst as Recordset because rst was undefined and changed rst = Me.RecordsetClone to Set rst = Me.RecordsetClone. Hope that's right. Anyway, I still get the error on the Me.Bookmark = rst.Bookmark. Again, if I use a breakpoint and step through the code, it works. Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 8:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky Try to hold the Recordset: rst = Me.RecordsetClone rst.FindFirst "PersonID = " & Me.lstShortList.Column(0) If rst.NoMatch = False Then Me.Bookmark = rst.Bookmark End If rst.Close /gustav >>> rockysmolin at bchacc.com 26-09-2007 17:13 >>> Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.30/1030 - Release Date: 9/25/2007 8:02 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 Susan.Klos at fldoe.org Wed Sep 26 12:52:00 2007 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Wed, 26 Sep 2007 13:52:00 -0400 Subject: [AccessD] Help with code Message-ID: =======Are you doing this in Access or Excel? Susan H. Susan: I am in Accesst. <> No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew Drew, the query would work fine except I need it to rank the lowest score as 1. I tried sorting the score but neither ascending or descending seems to make a difference. <> Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|13:52:00%20Wed%2026%20Sep%202007 From shamil at users.mns.ru Wed Sep 26 13:28:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 26 Sep 2007 22:28:40 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <000301c8006b$117d8ac0$6401a8c0@nant> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Sep 26 13:51:21 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Wed, 26 Sep 2007 19:51:21 +0100 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <000301c8006b$117d8ac0$6401a8c0@nant> Message-ID: <019101c8006e$3b906320$8119fea9@LTVM> Hi Shamil, I have to say that I do agree with Gustav. It just (to me) appears to be a more complicated way to achieve the same effect (albeit with less code, but with a full dose of obfuscation). I say this not to generate any flames, but merely to state that this (to me) falls into the same area as APIs. I use them, but don't really understand them, so I will not be moving to use these any time soon. The example that Getz posts on his blog just left me saying "so what". Of course, it is "horses for courses". What suits one doesn't necessarily suit another and may be great for others. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 26, 2007 7:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Sep 26 13:53:14 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 20:53:14 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil It was just a bad joke. With Lambda Expressions you can create powerful one-liners which - due to their obtuse nature - can be hard to comprehend. Of course, the polite programmer will add sufficient comments in those cases. But again, I found those links very useful, and everyone dealing with dotNet and SQL should really read up the stuff on LINQ - and thus Lambda Expressions and the lovely "yield". Most of the code is in C# which I'm not so familiar with but I feel you just have to learn this language - at least I have decided to use it for future work. I miss the With .. End With constructs but that's it. /gustav >>> shamil at users.mns.ru 26-09-2007 20:28 >>> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9-0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9-0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav From Gustav at cactus.dk Wed Sep 26 14:04:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2007 21:04:06 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Max Quite right - no reason to complicate things. However - for everyone else who might find the time to at least browse the links from Shamil - don't judge the complete concept on the example from Ken Getz; it seems a bit artificial. The series on Functional Programming is much more informative. /gustav >>> max.wanadoo at gmail.com 26-09-2007 20:51 >>> Hi Shamil, I have to say that I do agree with Gustav. It just (to me) appears to be a more complicated way to achieve the same effect (albeit with less code, but with a full dose of obfuscation). I say this not to generate any flames, but merely to state that this (to me) falls into the same area as APIs. I use them, but don't really understand them, so I will not be moving to use these any time soon. The example that Getz posts on his blog just left me saying "so what". Of course, it is "horses for courses". What suits one doesn't necessarily suit another and may be great for others. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, September 26, 2007 7:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday fun: Lambda Expressions <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav From DWUTKA at Marlow.com Wed Sep 26 15:26:59 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 26 Sep 2007 15:26:59 -0500 Subject: [AccessD] Help with code In-Reply-To: Message-ID: To reverse the ranking: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA<=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The change is AND GPA<=T1.GPA instead of >= . Just a note, the way this is going to calculate the 'rank', will have some people with the same number: Ie, Student GPA Bob 2.1 Sue 3.8 Drew 3.8 This would return 1 2 2 Just a note. It should have the same number for students with a 'tie' grade. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Wednesday, September 26, 2007 12:52 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with code =======Are you doing this in Access or Excel? Susan H. Susan: I am in Accesst. <> No code necessary. Here's an example of how to do this with a query, on tblGrades. There are three fields. Student, GradeLevel and GPA: SELECT T1.Student, T1.GradeLevel, T1.GPA, (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel) AS [Kids in Grade], (SELECT Count(*) FROM tblGrades WHERE GradeLevel=T1.GradeLevel and GPA>=T1.GPA) AS [Rank in Grade] FROM tblGrades AS T1; The last two columns will return the number of students in that grade, and the rank of that student within that grade. Drew Drew, the query would work fine except I need it to rank the lowest score as 1. I tried sorting the score but neither ascending or descending seems to make a difference. <> Susan Klos Evaluation and Reporting 325 W. Gaines Street Tallahassee, FL 32399 850-245-0708 susan.klos at fldoe.org Please take a few minutes to provide feedback on the quality of service you received from our staff. The Department of Education values your feedback as a customer. Commissioner of Education Jeanine Blomberg is committed to continuously assessing and improving the level and quality of services provided to you.Simply use the link below. Thank you in advance for completing the survey. http://data.fldoe.org/cs/default.cfm?staff=Susan.Klos at fldoe.org|13:52:00 %20Wed%2026%20Sep%202007 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From shamil at users.mns.ru Wed Sep 26 16:16:08 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 27 Sep 2007 01:16:08 +0400 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: Message-ID: <001801c80082$753ba210$6401a8c0@nant> Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 10:53 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil It was just a bad joke. With Lambda Expressions you can create powerful one-liners which - due to their obtuse nature - can be hard to comprehend. Of course, the polite programmer will add sufficient comments in those cases. But again, I found those links very useful, and everyone dealing with dotNet and SQL should really read up the stuff on LINQ - and thus Lambda Expressions and the lovely "yield". Most of the code is in C# which I'm not so familiar with but I feel you just have to learn this language - at least I have decided to use it for future work. I miss the With .. End With constructs but that's it. /gustav >>> shamil at users.mns.ru 26-09-2007 20:28 >>> <<< It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! >>> Hello Gustav, I must say I didn't get what do you mean by this sentence - could you please clarify? Thanks. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 7:59 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday fun: Lambda Expressions Hi Shamil et al These links are really good. That for the FP tutorial covers mostly an example showing the power of LINQ and how lambda expressions can be used. However, like Jim I don't see lambda expressions - for us database people - as much more than just another tool. It may be very useful while it at the same time will be a must-have for writing uncomprehensive code! /gustav >>> shamil at users.mns.ru 21-09-2007 23:09 >>> Hello Gustav, Below is the set of good IMO URLs to LINQ and lambda expressions info, discussions and samples (watch URL's line wraps). Statt with the first one, which gives really practical sample: http://www.code-magazine.com/Article.aspx?quickid=0709101 http://community.bartdesmet.net/blogs/bart/archive/2007/09/05/visual-basic-9 -0-feature-focus-linq-queries.aspx http://community.bartdesmet.net/blogs/bart/archive/2007/08/28/visual-basic-9 -0-feature-focus-expression-trees.aspx http://blogs.msdn.com/ericwhite/pages/Lambda-Expressions.aspx http://blogs.msdn.com/ericwhite/pages/FP-Tutorial.aspx http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iq ueryable.aspx http://msdn2.microsoft.com/en-us/vbasic/bb688088.aspx http://msdn2.microsoft.com/en-us/vbasic/bb330936.aspx http://msdn2.microsoft.com/ru-ru/netframework/aa904594.aspx -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 21, 2007 4:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Friday fun: Lambda Expressions Hi all I think I understand this clever topic: http://msdn.microsoft.com/msdnmag/issues/07/09/BasicInstincts/ but I just can't find a good example where it would be useful. Anyone having a good idea? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 26 19:04:49 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Sep 2007 10:04:49 +1000 Subject: [AccessD] Friday fun: Lambda Expressions References: <001801c80082$753ba210$6401a8c0@nant> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From cfoust at infostatsystems.com Wed Sep 26 19:07:40 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Sep 2007 17:07:40 -0700 Subject: [AccessD] Friday fun: Lambda Expressions In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> References: <001801c80082$753ba210$6401a8c0@nant> <59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Message-ID: I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Sep 26 21:08:50 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Sep 2007 19:08:50 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: <001c01c8004f$da727650$0301a8c0@HAL9005> Message-ID: Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Sep 26 21:48:07 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Sep 2007 12:48:07 +1000 Subject: [AccessD] Friday fun: Lambda Expressions References: <001801c80082$753ba210$6401a8c0@nant><59A61174B1F5B54B97FD4ADDE71E7D01289E23@ddi-01.DDI.local> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01289E27@ddi-01.DDI.local> Sorry, should have mentioned I'm using C#. Michael M I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- 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 rockysmolin at bchacc.com Wed Sep 26 22:03:33 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Sep 2007 20:03:33 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <006a01c800b2$fd632110$0301a8c0@HAL9005> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1032 - Release Date: 9/26/2007 8:20 PM From Gustav at cactus.dk Thu Sep 27 02:44:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:44:11 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From Gustav at cactus.dk Thu Sep 27 02:48:24 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:48:24 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Shamil Yes the Intellisense is very helpful as it not only explains the syntax but also gives a brief explanation of the method or property. /gustav >>> shamil at users.mns.ru 26-09-2007 23:16 >>> Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From Gustav at cactus.dk Thu Sep 27 02:55:54 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 09:55:54 +0200 Subject: [AccessD] Friday fun: Lambda Expressions Message-ID: Hi Charlotte So do I, but in C# a similar construct does not exist and I really don't understand why - if you don't like that construct you could just choose not to use it. /gustav >>> cfoust at infostatsystems.com 27-09-2007 02:07 >>> I use With...End With all the time in .Net because I'm working with things like the current row of a dataset, or the cells of a grid, or some such, and I can still use intellisense once I've created the With ... End With shell. In a complicated routine, why not reduce some of the references you have to read?? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, September 26, 2007 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday fun: Lambda Expressions Absolutely correct. I have not found myself missing With... , with Intellisense you generally only have to type the first character or 2 anyway. I had to do some maint programming in VB6 this week and it just felt clunky. The only feature I miss is being able to break into the code from a MessageBox [CTL+Break]. Is there some shortcut I'm missing? cheers Michael M Hi Gustav, Thank you for your clarifications. <<< I miss the With .. End With constructs but that's it. >>> I'd bet you'll quickly forget about 'With ... End With' block and what for it was needed when you'll see how "smart" VS2005 IDE's Intellisense is for C#... -- Shamil From rockysmolin at bchacc.com Thu Sep 27 09:09:25 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 07:09:25 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <002c01c80110$02ad8590$0301a8c0@HAL9005> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1032 - Release Date: 9/26/2007 8:20 PM From Gustav at cactus.dk Thu Sep 27 09:21:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 16:21:26 +0200 Subject: [AccessD] You Canceled the Previous Operation Message-ID: Hi Rocky OK, that makes sense. /gustav >>> rockysmolin at bchacc.com 27-09-2007 16:09 >>> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. MTIA Rocky From cjlabs at worldnet.att.net Thu Sep 27 09:25:47 2007 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 27 Sep 2007 09:25:47 -0500 Subject: [AccessD] Cannot export to RTF from Access2007 References: <002c01c80110$02ad8590$0301a8c0@HAL9005> Message-ID: <003301c80112$4c976b10$6401a8c0@XPcomputer> I have a compiled Access2000 database running on Vista/Access2007. When I try to export any report to RTF, I get an error that Access is shutting down. On a second computer running Vista/Access2007, I get the error "Object variable or With block variable not set". (Not sure why there are different responses.) Non-compiled version of the database exports without an error on Vista/Access2007 machine. Either compiled or non-compiled database on the same computer in Access2003 exports fine. Either compiled or non-compiled database on a WindowsXP/Access2000 machine exports fine. Unfortunately, I don't have Access2007 on a non-Vista computer at the moment. Does anyone have any experience with this? TIA, Carolyn Johnson From robert at webedb.com Thu Sep 27 10:44:16 2007 From: robert at webedb.com (Robert L. Stewart) Date: Thu, 27 Sep 2007 10:44:16 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709271550.l8RFoGPl006078@databaseadvisors.com> Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > From jimdettman at verizon.net Thu Sep 27 11:11:24 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 27 Sep 2007 12:11:24 -0400 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <000d01c80121$0e2abe90$8abea8c0@XPS> Hermaphrodite. Guess you need another table. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Thu Sep 27 11:18:34 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 27 Sep 2007 11:18:34 -0500 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Sep 27 11:36:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 27 Sep 2007 11:36:19 -0500 Subject: [AccessD] Mucking around In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> <3918C60D59E7D84BBE11101EB0FDEF6F0197B6@karta-exc-int.Karta.com> Message-ID: <002f01c80124$88281dc0$0200a8c0@danwaters> A good name example is Merry. Always thought that was a girl's name until we learned about the names of Hobbits! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Thursday, September 27, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 27 11:47:40 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 27 Sep 2007 12:47:40 -0400 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <005301c80126$1e9f23b0$6c7aa8c0@M90> Robert, >About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) UNK (unknown) which is actually in the data I import regularly. But even in this I use a table for the simple reason that a table provides ONE place to look for the code. If you don't provide a table then the combo selector has to be hard coded. It may be M in one combo and Male in another (and in this day and age MAIL in another). Thus if you want to be able to compare fruits to nuts you pretty much have to have a common denominator. PKID, Code. Every time! John 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 L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it >that way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop >downs...would you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Sep 27 12:16:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2007 19:16:19 +0200 Subject: [AccessD] Gender (was: Mucking around) Message-ID: Hi Jim et al Further, you may have to handle people who have been through a gender change. For these you may operate with an original or biological gender (for the doctor and the health care) and the legal or official (new or current) gender for anyone else. Now, as you only can change gender from M to F or from F to M (or back in rare cases), all that is needed is a Boolean field, GenderChange, which normally is False but will have to be set to True for those in question. Then, as the biological gender is fixed, you have: GenderLegal = GenderChange Xor GenderBiological which even leaves the subtle choice wether to handle Male as True and Female as False - or vice versa - to you, while Unknown as Null always will return Null. /gustav >>> JHewson at karta.com 27-09-2007 18:18 >>> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... From max.wanadoo at gmail.com Thu Sep 27 12:36:33 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 18:36:33 +0100 Subject: [AccessD] Gender (was: Mucking around) In-Reply-To: Message-ID: <00be01c8012c$f31dbba0$8119fea9@LTVM> Hi all, Just to add to the list of Genders. I also have B(oth) and (E)ither. For example, a person comes on with Title of Dr (Doctor). Gender can be E(ither). A list of Mr & Mrs at the same address can be B(oth). Depends on what your database is serving up. SQL can then include (for example) all Males and include those where Gender = "E" or "B" if your circumstances require it. A person marked as U(nknown) would - in some circumstances - not be included. Also, for me a Lookup Table is a discrete list of items which are seldom changed (almost static if you like) referenced for many main records as a PKID. A non-lookup table is user data comprising the main purpose of the mdb. When I clear down user-data, I leave the lookup tables as they are not user-specific. Examples are: Titles, Genders, Prefixes, Suffixes I always have a single maintenace form for these type of lookup tables (simple LupID, DataDesc) which is populated depending on the reason why it is being called. It also has an "Accept" button which is hidden when in maint mode but visible when called from a NonInList function. Does that make sense? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 6:16 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Gender (was: Mucking around) Hi Jim et al Further, you may have to handle people who have been through a gender change. For these you may operate with an original or biological gender (for the doctor and the health care) and the legal or official (new or current) gender for anyone else. Now, as you only can change gender from M to F or from F to M (or back in rare cases), all that is needed is a Boolean field, GenderChange, which normally is False but will have to be set to True for those in question. Then, as the biological gender is fixed, you have: GenderLegal = GenderChange Xor GenderBiological which even leaves the subtle choice wether to handle Male as True and Female as False - or vice versa - to you, while Unknown as Null always will return Null. /gustav >>> JHewson at karta.com 27-09-2007 18:18 >>> I put gender in a lookup table, because in several databases, the person who enters the data is unsure of the gender of the person. Sometimes the name gives a clue to the gender of the person, but not always. Hence, the third choice is Unknown and I can make it the default. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 10:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop downs...would >you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Sep 27 13:10:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 19:10:54 +0100 Subject: [AccessD] Mucking around In-Reply-To: <000d01c80121$0e2abe90$8abea8c0@XPS> Message-ID: <00c001c80131$bf5827b0$8119fea9@LTVM> No, use B(oth) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, September 27, 2007 5:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Hermaphrodite. Guess you need another table. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, September 27, 2007 11:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Mark, Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? Also a dogmatic Sagittarian, and a normalization purist. And, yes, I have separate tables for things as simple as Name Suffix. I do not care if there are only 3 or 4 records in the table. About the only thing I do not put in a lookup is gender. And if someone comes up with a 3rd alternative, I will probably change that to a table also. :-) Robert At 11:05 AM 9/26/2007, you wrote: >Date: Wed, 26 Sep 2007 11:34:08 -0400 >From: "Susan Harkins" >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <46fa7bd4.2486460a.7e7f.0c93 at mx.google.com> >Content-Type: text/plain; charset="US-ASCII" > >I would too, but mostly because the dogmatic Sagittarian in me likes it that >way. ;) > >Susan H. > >Simply put -yes. > > >I meant if you had 30 completely different, not related drop >downs...would you create 30 lookup tables? >Example of dropdowns: State,Phone Type,Status,Name Prefix,ect... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Sep 27 13:33:59 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 27 Sep 2007 13:33:59 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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 jwcolby at colbyconsulting.com Thu Sep 27 13:33:54 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 27 Sep 2007 14:33:54 -0400 Subject: [AccessD] Use Regex - Create Camel Case Message-ID: <005801c80134$f60b9320$6c7aa8c0@M90> Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. John W. Colby Colby Consulting www.ColbyConsulting.com From max.wanadoo at gmail.com Thu Sep 27 13:46:52 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 19:46:52 +0100 Subject: [AccessD] [dba-VB] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <00c401c80136$c66049c0$8119fea9@LTVM> John, Why not just poke the string into a function - at least it is understandable/readable. (Aircode) Public function pfDropBadChars(str2Parse as string) as string const conBadChars as string = "!"?$%^" Dim lng as long,strTemp as string For lng = 1 to len(str2Parse) If instr(mid(str2Parse,lng,1),conBadChars) = 0 then ' or is this the otherway around - can't remember! strTemp=strTemp & mid(str2Parse,lng,1 Endif Next lng pfDropBadChars=strtemp End function Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 7:34 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [dba-VB] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 27 14:20:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 12:20:42 -0700 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Sep 27 14:29:54 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 12:29:54 -0700 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 max.wanadoo at gmail.com Thu Sep 27 14:39:57 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 20:39:57 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <00d101c8013e$3079fc00$8119fea9@LTVM> John, Or flip it viz: Function dbc() MsgBox pfGetGoodChars("APN SEQUENCE #$%NUMBER") End Function Public Function pfGetGoodChars(str2Parse As String) As String Const conGoodChars As String = "abcdefghijklmnopqrstuvwxyz" ' valid characters Const conQuote As String = """" Dim lng As Long, strTemp As String, bFlipCase As Boolean str2Parse = UCase(Left(str2Parse, 1)) & LCase(Mid(str2Parse, 2)) For lng = 1 To Len(str2Parse) If InStr(conGoodChars, Mid(str2Parse, lng, 1)) > 0 Then If bFlipCase = True Then strTemp = strTemp & UCase(Mid(str2Parse, lng, 1)) bFlipCase = False Else strTemp = strTemp & Mid(str2Parse, lng, 1) End If Else bFlipCase = True End If Next lng pfGetGoodChars = strTemp End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 7:34 PM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 max.wanadoo at gmail.com Thu Sep 27 14:42:17 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 20:42:17 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: Message-ID: <00d201c8013e$83cd5050$8119fea9@LTVM> Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. John colby becomes JohnColby %idiotic_Field*name becomes IdioticFieldName Etc. It appears that Regex is the key (I am doing this in VB.Net) but until today I have never really tried to use RegEx and it ain't pretty! Any help in this would be much appreciated. 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 Thu Sep 27 15:04:32 2007 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 27 Sep 2007 15:04:32 -0500 Subject: [AccessD] Data Visualization Message-ID: <004801c80141$9eb149a0$0200a8c0@danwaters> Has anyone tried this? Or any thoughts on how it could be used? Very interesting data visualization and analysis. http://www.fmsasg.com/products/SentinelVisualizer/ Dan From cfoust at infostatsystems.com Thu Sep 27 15:03:25 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 13:03:25 -0700 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <00d201c8013e$83cd5050$8119fea9@LTVM> References: <00d201c8013e$83cd5050$8119fea9@LTVM> Message-ID: The idea was to use RegEx to see if any processing was required on the string. If not, it saves a lot of time, since not every string will have to be stepped through. John was also struggling with Regex. You can do this if you want to process every string and if you don't need the Ucase: Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex("[""'|\\/*?><~]", _ System.Text.RegularExpressions.RegexOptions.None) ' Replace invalid character with empty strings. Dim strOut As String = rex.Replace(strCompany, "") In this situation John might be better off using the approach you suggested in actually handling the replacement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Thursday, September 27, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. From max.wanadoo at gmail.com Thu Sep 27 15:22:06 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Thu, 27 Sep 2007 21:22:06 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: Message-ID: <00d301c80144$13f18b60$8119fea9@LTVM> Yes, this is definitely one for my own goodie-bag. Like most things, there will be situation where this RegEx is spot-on. I don't think the code I posted was particularly good (in purist terms) and people on this list will be able to improve on it no end, I am sure. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 9:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case The idea was to use RegEx to see if any processing was required on the string. If not, it saves a lot of time, since not every string will have to be stepped through. John was also struggling with Regex. You can do this if you want to process every string and if you don't need the Ucase: Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex("[""'|\\/*?><~]", _ System.Text.RegularExpressions.RegexOptions.None) ' Replace invalid character with empty strings. Dim strOut As String = rex.Replace(strCompany, "") In this situation John might be better off using the approach you suggested in actually handling the replacement. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Thursday, September 27, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Charlotte, I don't think this is what John wants. He needs to camelcase it based on the valid character following the invalid one. I think that is what he wants - might be wrong. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Here's a routine to determine if there are invalid characters in a string using RegEx. Maybe that will help. Private Function HasInvalidChars(ByVal strIn As String) As Boolean Dim strInvalid As String = "[""'|\\/*?><~]" Try Dim rex As System.Text.RegularExpressions.Regex ' the double backslash is required to indicate ' that the single backslash is a part of the pattern to search rex = New System.Text.RegularExpressions.Regex(strInvalid, _ System.Text.RegularExpressions.RegexOptions.IgnorePatternWhitespace) If InStr(rex.ToString, strIn) <> 0 Then Return True End If Catch ex As Exception UIExceptionHandler.ProcessException(ex) End Try End Function Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, September 27, 2007 11:34 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com; VBA Subject: [AccessD] Use Regex - Create Camel Case Folks, I am looking for a regex expression (preferably with explanation) for taking an expression and creating a camel case (or PascalCase) expression. I get CSV files with headers in them. All too often the eejits that created the databases they came from used embedded spaces or other special use characters (!@#$%^&* etc) in their field names. I need to strip these special characters out completely. I also need to upper case the valid alpha character that follows any of these special characters. -- 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 Sep 27 15:55:55 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 27 Sep 2007 15:55:55 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: But is it normalized? Seems to me that fldType has the same problems as described in the list box article. As a practical matter I would NOT create separate tables since different rollups are needed all the time and the programmers would poison my coffee if I proposed separate tables. I have already lost too many tasters that way. Along the same vein you COULD add a type field to the general ledger balance file to represent plan, actual or statistics but I would never combine those disimilar types of data. So the line beween correct normalization and practicality often blurs for me. I think there is some grey and judgement in creating truly normalized table schema. After all who can truly say what is Normal? :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cfoust at infostatsystems.com Thu Sep 27 16:07:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 27 Sep 2007 14:07:29 -0700 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: Depends on the level of normalization. Star schemas are normalized but make use of dimension tables that contain the possible values for a query/filter on the field to which they're joined, like every date in a period, for instance. You don't bother with a rollup table, since the data can be rolled up quickly and simply by running a query. And you're asking about Normal in THIS list??? ROFTL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 1:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around But is it normalized? Seems to me that fldType has the same problems as described in the list box article. As a practical matter I would NOT create separate tables since different rollups are needed all the time and the programmers would poison my coffee if I proposed separate tables. I have already lost too many tasters that way. Along the same vein you COULD add a type field to the general ledger balance file to represent plan, actual or statistics but I would never combine those disimilar types of data. So the line beween correct normalization and practicality often blurs for me. I think there is some grey and judgement in creating truly normalized table schema. After all who can truly say what is Normal? :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, September 27, 2007 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around You're talking about creating a star schema, which is commonly used for this purpose in data warehouses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, September 27, 2007 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around I agree on lookup tables but how about "rollup" tables? Here is an example I happen to be working on at the moment. Assume a table with general ledger amounts. fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept fldAmount. All the accts for a given month,year and company create the trial balance. Now suppose you don't want to see every account in your report but would prefer summary accounts, ie "Sales" is comprised of Accounts "product sales","labor Sales" ,"Service Sales",etc., "General and administrative expense" is comprised of "salaries", "travel and entertainment", "rent", etc. You certainly wouldn't just tack a rollup field onto the general ledger balance file but would create a file with fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this table to the GL balance file on fldAcctnumber, create a groupby query and voila, you have a summary trial balance. This works so well you realize that many other rollups exist, ie you might want to create a "tax books" rollup or "cashflow" rollup all using the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription structure to add together different GL accounts together to produce the desired result. You can create separate tables for each rollup structure or add a type code to the one rollup table and filter based on the desired rollup required for a particular report. Which choice is properly normalized? Which is most practical? Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2007 4:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Hi John Thanks. He is my man, I've always handled "lookup" tables as any other table. /gustav >>> jwcolby at colbyconsulting.com 26-09-2007 11:25 >>> I found an interesting article on SQL Server central. The subject has been discussed in these hallowed halls so I thought I'd throw this out. http://www.sqlservercentral.com/articles/Advanced/lookuptablemadness/146 4/ 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Sep 27 20:11:01 2007 From: john at winhaven.net (John Bartow) Date: Thu, 27 Sep 2007 20:11:01 -0500 Subject: [AccessD] Mucking around In-Reply-To: <200709271550.l8RFoGPl006078@databaseadvisors.com> References: <200709271550.l8RFoGPl006078@databaseadvisors.com> Message-ID: <001b01c8016c$6f45cbc0$6402a8c0@ScuzzPaq> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Actually "mucking it up" if you do it any other way. It is called normalization. Let me guess, you wanted to put all of the lookups into a single table and use something like a category and then queries at each combobox to limit them to a category. Why has this design not died the death it deserves? Why do people continue to try and use it? From accessd at shaw.ca Thu Sep 27 20:29:06 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 18:29:06 -0700 Subject: [AccessD] sequel question In-Reply-To: Message-ID: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> Can a sequence of numbers be created in a sequel list? Example: Given a list like: George Sally Robert Henry John Mary Can the piece of sequel code be modified to produce/create the following list? George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 TIA Jim From fuller.artful at gmail.com Thu Sep 27 23:38:25 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 00:38:25 -0400 Subject: [AccessD] sequel question In-Reply-To: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> References: <5C04C62079BA46628B7D8AC44D533BEE@creativesystemdesigns.com> Message-ID: <29f585dd0709272138l769d08ectcb2afa47a063f35e@mail.gmail.com> I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Sep 27 23:48:57 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 21:48:57 -0700 Subject: [AccessD] You Canceled the Previous Operation In-Reply-To: Message-ID: <009c01c8018a$e13683a0$0301a8c0@HAL9005> That makes sense??!! I don't know what the hell I'm talkin' about! :) Access. Ya gotta love it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 7:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky OK, that makes sense. /gustav >>> rockysmolin at bchacc.com 27-09-2007 16:09 >>> The list box with the short list is not visible. When the user clicks the "Short List" command button, the list box becomes visible. I had some code in the lost focus event of the list box to make it disappear in case the user left the list box without making a selection. But if they did make a selection I got the error. Removed the Lost Focus code and it works. And since the Current event is triggered by the Bookmark, I disappear the list box in the current event. It was only left to figure out how to disappear the list box if they didn't make a selection. So I made the "Short List" command button toggle the list box on and off. Best I could figure out. If they hit the short list command button then decide they don't want to make a selection they have to hit the command button again to make it go away. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, September 27, 2007 12:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You Canceled the Previous Operation Hi Rocky So what was the real problem? /gustav >>> rockysmolin at bchacc.com 27-09-2007 05:03 >>> Yeah, found. What I have found from searching the Internet is that the error I'm getting generally has little to do with what the real problem is. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, September 26, 2007 7:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You Canceled the Previous Operation Rocky: Maybe late for this discussion but have you checked to see whether a match was indeed found? Jim -----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, September 26, 2007 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] You Canceled the Previous Operation Dear List: Does anyone know why the code: Me.RecordsetClone.FindFirst "PersonID = " & Me.lstShortList.Column(0) Me.Bookmark = Me.RecordsetClone.Bookmark generates an error 2001 - You Canceled the Previous Operation? The value in Me.lstShortList.Column(0) is a valid PersonID. It happens on the second line. 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.488 / Virus Database: 269.13.32/1033 - Release Date: 9/27/2007 11:06 AM From rockysmolin at bchacc.com Thu Sep 27 23:54:34 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Sep 2007 21:54:34 -0700 Subject: [AccessD] Cannot export to RTF from Access2007 In-Reply-To: <003301c80112$4c976b10$6401a8c0@XPcomputer> Message-ID: <009d01c8018b$aa123120$0301a8c0@HAL9005> I have encountered differences between mdbs and mdes on A2K3 and WXP where the mdb would run and the mde would fail. The only way I was able to trace it down was to put message boxes in the code after every line - MsgBox "Point 1", MsgBox "Point 2", MsgBox "Point 3", etc. Eventually I found a problem in the code that DIDN'T (!) raise an error in the mdb but failed in the mde. Access. Ya gotta love it. Not much help I know but that's my only experience with this. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Thursday, September 27, 2007 7:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cannot export to RTF from Access2007 I have a compiled Access2000 database running on Vista/Access2007. When I try to export any report to RTF, I get an error that Access is shutting down. On a second computer running Vista/Access2007, I get the error "Object variable or With block variable not set". (Not sure why there are different responses.) Non-compiled version of the database exports without an error on Vista/Access2007 machine. Either compiled or non-compiled database on the same computer in Access2003 exports fine. Either compiled or non-compiled database on a WindowsXP/Access2000 machine exports fine. Unfortunately, I don't have Access2007 on a non-Vista computer at the moment. Does anyone have any experience with this? TIA, Carolyn Johnson -- 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.488 / Virus Database: 269.13.32/1033 - Release Date: 9/27/2007 11:06 AM From fuller.artful at gmail.com Fri Sep 28 00:05:49 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 01:05:49 -0400 Subject: [AccessD] Friday (You Know) Message-ID: <29f585dd0709272205s2a3b0e4ay86f5c3db71a8e5fe@mail.gmail.com> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From accessd at shaw.ca Fri Sep 28 00:26:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 22:26:30 -0700 Subject: [AccessD] sequel question In-Reply-To: <29f585dd0709272138l769d08ectcb2afa47a063f35e@mail.gmail.com> Message-ID: <09BA612BDB304E349EAB6137545B2982@creativesystemdesigns.com> Hi Arthur: I was trying to make a complex problem simple but it does not seem to render down that easily. The problem is that there ended up being some duplicates in a table. They could be grouped out but I needed to be able to delete only the second duplicate. The solution was to select the matched data, put into a temp table sorted in descending order. Using half the record count of the temp table, used 'select top xx...' to create a sub-table in conjunction with In and Delete the records could be easily removed. DELETE * FROM RosterReportTemplate WHERE (RosterReportTemplate.RecNum In (select top " & intRecords & " recnum " from tblRecord ORDER BY recnum desc;));" Thanks for your help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 9:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] sequel question I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > 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 accessd at shaw.ca Fri Sep 28 00:34:45 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Sep 2007 22:34:45 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709272205s2a3b0e4ay86f5c3db71a8e5fe@mail.gmail.com> Message-ID: <7A41EE3974BD4911AF9F3CB97E8DAB4B@creativesystemdesigns.com> Hi Arthur: > If you think there are no bugs in your software, bet against it. Before > > the week is out, a user will prove your bet correct. You are correct Arthur and I will be working all night to make a client happy, I mean happier.... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 10:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday (You Know) Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 00:37:32 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 06:37:32 +0100 Subject: [AccessD] Create a BarGram from data Message-ID: <001b01c80191$ab761f30$8119fea9@LTVM> Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max From Gustav at cactus.dk Fri Sep 28 05:15:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 12:15:40 +0200 Subject: [AccessD] sequel question Message-ID: Hi Jim I read your original post again, and I must admit it did require a level of imagination well beyond mine to guess that this was what you tried to accomplish! /gustav >>> accessd at shaw.ca 28-09-2007 07:26 >>> Hi Arthur: I was trying to make a complex problem simple but it does not seem to render down that easily. The problem is that there ended up being some duplicates in a table. They could be grouped out but I needed to be able to delete only the second duplicate. The solution was to select the matched data, put into a temp table sorted in descending order. Using half the record count of the temp table, used 'select top xx...' to create a sub-table in conjunction with In and Delete the records could be easily removed. DELETE * FROM RosterReportTemplate WHERE (RosterReportTemplate.RecNum In (select top " & intRecords & " recnum " from tblRecord ORDER BY recnum desc;));" Thanks for your help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, September 27, 2007 9:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] sequel question I think that your question encoded several nested questions. 1. Your example in no way resembles a true Sequence. In fact, I have no idea what it resembles. What does this mean: George 0 Sally 1 Robert 0 Henry 1 John 0 Mary 1 I have no idea what you intend by suppling this example data. However, in the absence of clarity I have never been one to refuse to plunge on. The concept "Sequence" has a precise meaning in DB theory, and perhaps that's not the meaning you intend. In Oracle, for example, you create an object called a Sequence and give it a beginning and ending number. Judging by your sample data, that is not at all what you mean. I don't mean that as a put-down; I simply don't understand what you are after. One possibility is that you want a nested-sequence: Parent Key = 135 Child Key = 135, 1 Child Key = 135, 2 Parent Key = 136 Child Key = 136, 1 Child Key = 136, 2 I could be missing your point by a large slice, but AFAICS your sample data is wobbly, so either I am wobbly or your sample data is insufficiently precise. What is your definition of a sequence? I don't really care to beat the bush about the official relational definition of a sequence, I would prefer to know more precisely what you're after. A. On 9/27/07, Jim Lawrence wrote: > > Can a sequence of numbers be created in a sequel list? > > Example: > Given a list like: > > George > Sally > Robert > Henry > John > Mary > > Can the piece of sequel code be modified to produce/create the following > list? > > George 0 > Sally 1 > Robert 0 > Henry 1 > John 0 > Mary 1 > > TIA > Jim From Gustav at cactus.dk Fri Sep 28 05:20:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 12:20:48 +0200 Subject: [AccessD] Friday (You Know) Message-ID: Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From max.wanadoo at gmail.com Fri Sep 28 05:35:59 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 11:35:59 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <00c701c801bb$5c82d790$8119fea9@LTVM> Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur -- 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 Sep 28 05:54:55 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 28 Sep 2007 11:54:55 +0100 Subject: [AccessD] Friday (You Know) Message-ID: <20070928105459.0B1594C87D@smtp.nildram.co.uk> Gustav, doesn't this prove Arthur's theory rather than oppose it? You would have bet against the wall coming down, therefore it did. "Whatever you imagine will happen will almost certainly not happen." - and vice-versa. -- 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] Friday (You Know) Date: 28/09/07 10:38 Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. 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 ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Sep 28 06:09:58 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Sep 2007 13:09:58 +0200 Subject: [AccessD] Friday (You Know) Message-ID: Hi Andy Well, if you state that something happens even when nothing happens (= "what happens is that nothing happens"). If so, Null has a value ... /gustav >>> andy at minstersystems.co.uk 28-09-2007 12:54 >>> Gustav, doesn't this prove Arthur's theory rather than oppose it? You would have bet against the wall coming down, therefore it did. "Whatever you imagine will happen will almost certainly not happen." - and vice-versa. -- 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] Friday (You Know) Date: 28/09/07 10:38 Well, I go along with this Gustav as far a Berlin is concerned. I was in Berlin in 1979 and there was definitely no sign of what was to come. Checkpoint Charlie was in its heyday! Max Ps. There are no bugs in any software I have written today (so far) - Guaranteed! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, September 28, 2007 11:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Friday (You Know) Hi Arthur Sorry to break your theory, but no one (zero) believed in 1979 that the Berlin wall would fall in 1989. Further, on this Friday, no bugs exist in my software (at least it will take more than a week for the users to discover it). /gustav >>> fuller.artful at gmail.com 28-09-2007 07:05 >>> Several great fragments from Stephen Pinker's "How the Mind Works". 1. Rocks are smarter than cats. (Why?) When you kick them, they don't come back. 2. "Fifty years hence, we shall escape the absurdity of growing a whole chicken in order to eat the breast or wing, by growing these parts separately under a suitable medium." -- Winston Churchill, 1932 3. "Man will never reach the moon, regardless of all future scientific advances." -- Lee DeForest, inventor of the vacuum tube, 1957. If there's anything we can be sure of, it's that the futurists of our decade and century will be laughable a century hence. Unfortunately, this leads to a strange conclusion. Whatever you imagine will happen will almost certainly not happen. If you think that there will be pollution-free cars in five years, bet against your feeling. If you think that Iran and the USA will have a nuclear contest within a few years, bet against it. If your best guess is that somehow Quebec and the rest of Canada will magically reconcile their centuries-old differences, bet against it. The rude crude law is this: whatever you hope might happen, bet against it. In a final attempt to make this theory relevant to this newsgroup, If you think there are no bugs in your software, bet against it. Before the week is out, a user will prove your bet correct. Arthur From cjlabs at worldnet.att.net Fri Sep 28 06:35:38 2007 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Fri, 28 Sep 2007 06:35:38 -0500 Subject: [AccessD] Cannot export to RTF from Access2007 References: <009d01c8018b$aa123120$0301a8c0@HAL9005> Message-ID: <003501c801c3$b2c20790$6401a8c0@XPcomputer> Thanks Rocky. I talked (!) to Microsoft last night and the database seems to be corrupted in some way that's only showing up in the compiled version running in 2007. I converted the 2000 database to 2002-2003 and compiled that (all on the Vista machine), and it now appears to be exporting to Word without crashing. However, when I imported all the 2000 version database objects to a new 2000 database and converted that to 2002-2003 on my XP machine, the compiled version will not work in 2007 on the Vista machine. So, I'm still working trying to understand what's going on and make sure I have a true working version. I was surprised to find out this is a corruption issue. Carolyn Johnson ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, September 27, 2007 11:54 PM Subject: Re: [AccessD] Cannot export to RTF from Access2007 >I have encountered differences between mdbs and mdes on A2K3 and WXP where > the mdb would run and the mde would fail. > > The only way I was able to trace it down was to put message boxes in the > code after every line - MsgBox "Point 1", MsgBox "Point 2", MsgBox "Point > 3", etc. Eventually I found a problem in the code that DIDN'T (!) raise > an > error in the mdb but failed in the mde. > > Access. Ya gotta love it. > > Not much help I know but that's my only experience with this. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson > Sent: Thursday, September 27, 2007 7:26 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Cannot export to RTF from Access2007 > > I have a compiled Access2000 database running on Vista/Access2007. > > When I try to export any report to RTF, I get an error that Access is > shutting down. On a second computer running Vista/Access2007, I get the > error "Object variable or With block variable not set". (Not sure why > there > are different responses.) > > Non-compiled version of the database exports without an error on > Vista/Access2007 machine. > > Either compiled or non-compiled database on the same computer in > Access2003 > exports fine. > > Either compiled or non-compiled database on a WindowsXP/Access2000 machine > exports fine. > > Unfortunately, I don't have Access2007 on a non-Vista computer at the > moment. > > > Does anyone have any experience with this? > > > TIA, > Carolyn Johnson > > > > > -- > 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.488 / Virus Database: 269.13.32/1033 - Release Date: > 9/27/2007 > 11:06 AM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Fri Sep 28 06:43:28 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 28 Sep 2007 07:43:28 -0400 Subject: [AccessD] Friday (You Know) References: Message-ID: <002801c801c4$caade170$0202a8c0@Laptop> You know, of course, that based upon conclusions from probability and statistics that the universe and life now exist. They 'prove' Arthur's theory :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, September 28, 2007 7:09 AM Subject: Re: [AccessD] Friday (You Know) > Hi Andy > > Well, if you state that something happens even when nothing happens (= > "what happens is that nothing happens"). If so, Null has a value ... > > /gustav From robert at webedb.com Fri Sep 28 07:06:17 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 07:06:17 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281212.l8SCCIJ2001793@databaseadvisors.com> Jim, This is a fact table in a data warehouse.mart. That is exactly what they are designed for. I am glad I got some conversation started on this. I think it has been good for others to hear how we all do things. And, FYI, I generally do use a lookup for gender also, and unknown is one of the choices. It is also updatable by the end users as are all my lookups. I think that using tables for the lookup allows the end user to "customize" the application to how they want to use it. And, not necessarily just use it the way I originally planned. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 13:33:59 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >I agree on lookup tables but how about "rollup" tables? Here is an >example I happen to be working on at the moment. >Assume a table with general ledger amounts. >fldAcctNumber fldAcctdescription fldMonth fldYear fldCompany fldDept >fldAmount. > >All the accts for a given month,year and company create the trial >balance. Now suppose you don't want to see every account in your report >but would prefer summary accounts, ie "Sales" is comprised of Accounts >"product sales","labor Sales" ,"Service Sales",etc., "General and >administrative expense" is comprised of "salaries", "travel and >entertainment", "rent", etc. You certainly wouldn't just tack a rollup >field onto the general ledger balance file but would create a file with >fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription. Join this >table to the GL balance file on fldAcctnumber, create a groupby query >and voila, you have a summary trial balance. >This works so well you realize that many other rollups exist, ie you >might want to create a "tax books" rollup or "cashflow" rollup all using >the fldAcctNumber fldSummaryAcctNumber fldSummaryAcctdescription >structure to add together different GL accounts together to produce the >desired result. You can create separate tables for each rollup structure >or add a type code to the one rollup table and filter based on the >desired rollup required for a particular report. Which choice is >properly normalized? Which is most practical? > >Jim Hale From robert at webedb.com Fri Sep 28 07:25:12 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 07:25:12 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281227.l8SCRIoR013237@databaseadvisors.com> Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale From max.wanadoo at gmail.com Fri Sep 28 07:41:35 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 13:41:35 +0100 Subject: [AccessD] Mucking around In-Reply-To: <200709281227.l8SCRIoR013237@databaseadvisors.com> Message-ID: <011c01c801cc$e8a717c0$8119fea9@LTVM> Hi Robert, Believe it or not, I can actually understand it the way you described it. So, using your example, the sales would feed into the Fact Table and Reports would be run on the Fact table and pull info from the Customer Table. Is this correct? Am I also correct in saying that this schema is highly inefficient in terms of data storage but highly efficient in terms of speed of reports? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 1:25 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 07:51:00 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 13:51:00 +0100 Subject: [AccessD] FW: Create a BarGram from data Message-ID: <011e01c801ce$392f96d0$8119fea9@LTVM> Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 28 08:00:12 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Sep 2007 09:00:12 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <00c701c801bb$5c82d790$8119fea9@LTVM> Message-ID: <46fcfad1.1387460a.3848.6372@mx.google.com> Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) Susan H. From jwcolby at colbyconsulting.com Fri Sep 28 08:07:10 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 09:07:10 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <46fcfad1.1387460a.3848.6372@mx.google.com> References: <00c701c801bb$5c82d790$8119fea9@LTVM> <46fcfad1.1387460a.3848.6372@mx.google.com> Message-ID: <001f01c801d0$7ec368a0$6c7aa8c0@M90> And I put that theory into effect many days! John 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: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 28 08:09:12 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:09:12 -0400 Subject: [AccessD] Object variable or With block variable not set Message-ID: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur From carbonnb at gmail.com Fri Sep 28 08:19:04 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 28 Sep 2007 09:19:04 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: On 9/28/07, Arthur Fuller wrote: > I'm getting this message in running some code in Excel. Everything appears > to work fine but I get this message at the end of the run. No idea why. Any > suggestions? Can we see the 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 max.wanadoo at gmail.com Fri Sep 28 08:19:36 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:19:36 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <001f01c801d0$7ec368a0$6c7aa8c0@M90> Message-ID: <012a01c801d2$3866f2d0$8119fea9@LTVM> The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) And I put that theory into effect many days! John 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: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Ps. There are no bugs in any software I have written today (so far) - Guaranteed! ====I say, if they don't want bugs, just don't write any software! ;) 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 max.wanadoo at gmail.com Fri Sep 28 08:23:49 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:23:49 +0100 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: <013101c801d2$cea244c0$8119fea9@LTVM> This *normally* means that you are referencing an object which has not been SET or that if it has been SET that it has lost its focus and gone out of existence. When I had this error recently, it was because I had Set Rst = nothing in the code and then in the exit section tried to set it to nothing again. If neither is the case for you, then something else is setting the object to nothing. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Object variable or With block variable not set I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Sep 28 08:27:18 2007 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Sep 2007 09:27:18 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <012a01c801d2$3866f2d0$8119fea9@LTVM> Message-ID: <46fd011b.2887460a.2c91.675a@mx.google.com> I think that qualifies for a government grant, right????? Susan H. The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" From fuller.artful at gmail.com Fri Sep 28 08:28:11 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:28:11 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: <012a01c801d2$3866f2d0$8119fea9@LTVM> References: <001f01c801d0$7ec368a0$6c7aa8c0@M90> <012a01c801d2$3866f2d0$8119fea9@LTVM> Message-ID: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > From fuller.artful at gmail.com Fri Sep 28 08:29:45 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:29:45 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <013101c801d2$cea244c0$8119fea9@LTVM> References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> <013101c801d2$cea244c0$8119fea9@LTVM> Message-ID: <29f585dd0709280629v7b6b510cocd03c0968f51fd9c@mail.gmail.com> That's interesting. Thanks, Max. I will check my sweet nothings at the end of the code. Arthur On 9/28/07, max.wanadoo at gmail.com wrote: > > This *normally* means that you are referencing an object which has not > been > SET or that if it has been SET that it has lost its focus and gone out of > existence. When I had this error recently, it was because I had Set Rst = > nothing in the code and then in the exit section tried to set it to > nothing > again. If neither is the case for you, then something else is setting the > object to nothing. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, September 28, 2007 2:09 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Object variable or With block variable not set > > I'm getting this message in running some code in Excel. Everything appears > to work fine but I get this message at the end of the run. No idea why. > Any > suggestions? > > TIA, > 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 max.wanadoo at gmail.com Fri Sep 28 08:40:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:40:54 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <46fd011b.2887460a.2c91.675a@mx.google.com> Message-ID: <013d01c801d5$31f8f440$8119fea9@LTVM> Too true, Susan. Will you be kind enough to sponsor it through for me. When you have successfully recived the dosh, keep half for yourself and send the rest to me. No rush, by the end of next week will be fine. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, September 28, 2007 2:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) I think that qualifies for a government grant, right????? Susan H. The reason they are not bugs is because in my software they are known as "Hidden Easter Egg Features" and the person who finds them gets a prize. First prize being the ability to be the first to test the update. Problems are merely "challenges" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 08:43:02 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 14:43:02 +0100 Subject: [AccessD] Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: <014401c801d5$7e907f80$8119fea9@LTVM> Arthur, That is just so easy to do. My code is riddled with them. All subtle and all designed to pop-up at the least opportune moment. In fact, I am not even going to enter the competition cos I will win hands down! On second thoughs - what prize are you offering? Max Ps. I used to subscribe to that publication and to the Foxpro one and the Access one. No wonder I developed such bad habits (grin). Pps. When you find the reason why your "Object Variable not set" is not working, you are forbidden to submit it as one of the entries. Ok? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known > as "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ConstanceBurke at oasas.state.ny.us Fri Sep 28 08:46:27 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 09:46:27 -0400 Subject: [AccessD] error message when running a subreport Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 From fuller.artful at gmail.com Fri Sep 28 08:49:44 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 09:49:44 -0400 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: References: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: <29f585dd0709280649l5e539cc4j7dcb6ebd3b9a65ea@mail.gmail.com> The code is way too long for a message here, Bryan. The up-side is that it runs and does what it's supposed to. It opens about 100 Excel files, grabs information from them and creates a new file with 50-odd pages. All the things the code does are encapsulated in subs; it's the outermost one that breaks. It's weird but it must have to do with the "set x = nothing" statements at the end. Breakpoints are in order, I guess, and single-stepping. Arthur On 9/28/07, Bryan Carbonnell wrote: > > On 9/28/07, Arthur Fuller wrote: > > I'm getting this message in running some code in Excel. Everything > appears > > to work fine but I get this message at the end of the run. No idea why. > Any > > suggestions? > > Can we see the code? > From andy at minstersystems.co.uk Fri Sep 28 08:49:46 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 28 Sep 2007 14:49:46 +0100 Subject: [AccessD] Friday (You Know) Message-ID: <20070928134950.8F3AC308603@smtp.nildram.co.uk> Cliiper Advisor eh. Blimey Arthur, I was one of your readers. -- 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] Friday (You Know) Date: 28/09/07 13:29 Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- 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 reuben at gfconsultants.com Fri Sep 28 08:54:07 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 09:54:07 -0400 Subject: [AccessD] A2K - Locking Problem Message-ID: I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 From max.wanadoo at gmail.com Fri Sep 28 09:02:21 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:02:21 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: Message-ID: <016e01c801d8$3104eff0$8119fea9@LTVM> Hi Reuben, When I get this, it is because my system thinks (or actually has) two versions of the same mdb open running simultaneously, matching each of my keystrokes. It might be a memory leak or similar. If I reboot the PC the problem disappears. Sometimes looking at the Task Manager give a clue. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 2:54 PM To: AccessD Subject: [AccessD] A2K - Locking Problem I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 09:04:26 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:04:26 +0100 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280649l5e539cc4j7dcb6ebd3b9a65ea@mail.gmail.com> Message-ID: <018701c801d8$7b6501c0$8119fea9@LTVM> Given what you have just said, it might be that the first sub down actually uses the SAME object set in the main code, then releases it on exiting, thus the main code no longer has the object. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Object variable or With block variable not set The code is way too long for a message here, Bryan. The up-side is that it runs and does what it's supposed to. It opens about 100 Excel files, grabs information from them and creates a new file with 50-odd pages. All the things the code does are encapsulated in subs; it's the outermost one that breaks. It's weird but it must have to do with the "set x = nothing" statements at the end. Breakpoints are in order, I guess, and single-stepping. Arthur On 9/28/07, Bryan Carbonnell wrote: > > On 9/28/07, Arthur Fuller wrote: > > I'm getting this message in running some code in Excel. Everything > appears > > to work fine but I get this message at the end of the run. No idea why. > Any > > suggestions? > > Can we see the code? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at webedb.com Fri Sep 28 09:05:34 2007 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 28 Sep 2007 09:05:34 -0500 Subject: [AccessD] Mucking around In-Reply-To: References: Message-ID: <200709281407.l8SE7JxW015012@databaseadvisors.com> Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and Reports >would be run on the Fact table and pull info from the Customer Table. Is >this correct? >Am I also correct in saying that this schema is highly inefficient in terms >of data storage but highly efficient in terms of speed of reports? > >Ta > >Max From max.wanadoo at gmail.com Fri Sep 28 09:21:10 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:21:10 +0100 Subject: [AccessD] Mucking around In-Reply-To: <200709281407.l8SE7JxW015012@databaseadvisors.com> Message-ID: <019601c801da$d1b69000$8119fea9@LTVM> Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 09:21:22 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:21:22 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <016e01c801d8$3104eff0$8119fea9@LTVM> Message-ID: The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of my > keystrokes. It might be a memory leak or similar. If I reboot the PC the > problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically > trying to say > that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This is > occurring even if only one person is using the app. And even then the ldb > is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From robin at musicalmemories.co.uk Fri Sep 28 09:12:17 2007 From: robin at musicalmemories.co.uk (Robin ) Date: Fri, 28 Sep 2007 15:12:17 +0100 Subject: [AccessD] A2K - Locking Problem Message-ID: <560E2B80EC8F624B93A87B943B7A9CD55307CB@rgiserv.rg.local> Hi Reuben, I've had this caused by a corrupt record - especially when I used to use memofields. Check the underlying table to see if there are any field containing #error Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: 28 September 2007 15:21 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give > a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 09:29:35 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 15:29:35 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: Message-ID: <01a401c801db$fea45fb0$8119fea9@LTVM> What about rebooting the pc that the problem appears on. In my case, it never affected the backend (server), just the pc. Or are you saying that the user does not have a frontend/backend setup and that each pc uses the same single mdb over the network? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 3:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 09:42:00 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:42:00 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <01a401c801db$fea45fb0$8119fea9@LTVM> Message-ID: There is one data file and they each have a FE. The local PC's reboot every morning (shut down every evening). Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > What about rebooting the pc that the problem appears on. In my case, it > never affected the backend (server), just the pc. > Or are you saying that the user does not have a frontend/backend setup and > that each pc uses the same single mdb over the network? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 3:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > The IT department refuses to reboot the server the mdb resides on. They > want to complain about a problem, but won't do one thing I've > asked them to > do. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > max.wanadoo at gmail.com > > Sent: Friday, September 28, 2007 10:02 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] A2K - Locking Problem > > > > > > Hi Reuben, > > When I get this, it is because my system thinks (or actually has) two > > versions of the same mdb open running simultaneously, matching each of > > my keystrokes. It might be a memory leak or similar. If I reboot the > > PC the problem disappears. Sometimes looking at the Task Manager give a > clue. > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > > Cummings > > Sent: Friday, September 28, 2007 2:54 PM > > To: AccessD > > Subject: [AccessD] A2K - Locking Problem > > > > I have a client that is receiving messages stating "The Microsoft Jet > > Database engine stopped the process because you..." Basically trying > > to say that the record has been edited by someone else. > > > > This has happened several times lately. There is always a .ldb hangin > > around after closing the app (by all users - there are 4 users). This > > is occurring even if only one person is using the app. And even then > > the ldb is still not deleted. > > > > Any ideas? > > > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Fri Sep 28 09:42:00 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 10:42:00 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD55307CB@rgiserv.rg.local> Message-ID: I am having the db sent to me again right now so that I can look at this very thing, Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robin > Sent: Friday, September 28, 2007 10:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > I've had this caused by a corrupt record - especially when I used to use > memofields. > Check the underlying table to see if there are any field containing > #error > Rgds > Robin Lawrence > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: 28 September 2007 15:21 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K - Locking Problem > > > The IT department refuses to reboot the server the mdb resides on. They > want to complain about a problem, but won't do one thing I've asked them > to do. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > max.wanadoo at gmail.com > > Sent: Friday, September 28, 2007 10:02 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] A2K - Locking Problem > > > > > > Hi Reuben, > > When I get this, it is because my system thinks (or actually has) two > > versions of the same mdb open running simultaneously, matching each of > > > my keystrokes. It might be a memory leak or similar. If I reboot the > > PC the problem disappears. Sometimes looking at the Task Manager give > > > a clue. > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > > Cummings > > Sent: Friday, September 28, 2007 2:54 PM > > To: AccessD > > Subject: [AccessD] A2K - Locking Problem > > > > I have a client that is receiving messages stating "The Microsoft Jet > > Database engine stopped the process because you..." Basically trying > > to say that the record has been edited by someone else. > > > > This has happened several times lately. There is always a .ldb hangin > > > around after closing the app (by all users - there are 4 users). This > > > is occurring even if only one person is using the app. And even then > > the ldb is still not deleted. > > > > Any ideas? > > > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sep 28 09:54:20 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 28 Sep 2007 10:54:20 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: References: <016e01c801d8$3104eff0$8119fea9@LTVM> Message-ID: <000a01c801df$74308210$8abea8c0@XPS> Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of my > keystrokes. It might be a memory leak or similar. If I reboot the PC the > problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically > trying to say > that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This is > occurring even if only one person is using the app. And even then the ldb > is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Sep 28 10:19:58 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 10:19:58 -0500 Subject: [AccessD] error message when running a subreport In-Reply-To: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> References: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3323@ALBMX2K3.rt.oasas.state.ny.us> Message-ID: Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ConstanceBurke at oasas.state.ny.us Fri Sep 28 10:28:31 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 11:28:31 -0400 Subject: [AccessD] error message when running a subreport In-Reply-To: Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD3421@ALBMX2K3.rt.oasas.state.ny.us> Thanks - I caught that one - I had just written it wrong in the e-mail... in trying to figure this out I realized I had changed a variable name in one of the queries which resulted in Access renaming it as an .mdb file - I ran the auto correct and also updated the default file format to Access 2002-2003. (I am using Access2003 version.) I am now going to see of that makes any difference. Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] error message when running a subreport Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:28:36 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 10:28:36 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: How about one that misses a negative zero? (obviously not an issue in VB or VBA) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 10:33:11 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:33:11 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data Message-ID: <01ce01c801e4$e258f0b0$8119fea9@LTVM> Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 10:33:11 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:33:11 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <000a01c801df$74308210$8abea8c0@XPS> Message-ID: <01cf01c801e4$e35a8230$8119fea9@LTVM> Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:34:42 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 28 Sep 2007 10:34:42 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> References: <001f01c801d0$7ec368a0$6c7aa8c0@M90><012a01c801d2$3866f2d0$8119f ea9@LTVM> <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: Those are more along the lines of dragons than bugs, as in "I be dragon my sorry butt in on Saturday to try and figure out what broke before they fire me" :-) Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Back in the days of DOS, Pinnacle Publications had a Clipper Advisor magazine, for which I wrote a column called Seek And Destroy. The idea was that I would present some code containing a bug and challenge the reader to detect the bug. The first few columns were easy, but as the months passed I found it increasingly difficult to come up with a non-obvious bug. This may not be further proof of my conjecture, but it is an interesting exercise. Try to write a buggy routine. Nothing obvious like an a misspelled variable name or an array-boundary error. It's got to be subtle. A. On 9/28/07, max.wanadoo at gmail.com wrote: > > The reason they are not bugs is because in my software they are known as > "Hidden Easter Egg Features" and the person who finds them gets a prize. > First prize being the ability to be the first to test the update. > > Problems are merely "challenges" > > Max > -- 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 ConstanceBurke at oasas.state.ny.us Fri Sep 28 10:48:26 2007 From: ConstanceBurke at oasas.state.ny.us (Burke, Constance) Date: Fri, 28 Sep 2007 11:48:26 -0400 Subject: [AccessD] error message when running a subreport In-Reply-To: Message-ID: <0DC2E47D597D8E4AA7007D5912E5FF5CDD345D@ALBMX2K3.rt.oasas.state.ny.us> Revised question - when I try to run my report, why am I getting an error message that says it can't find the queryname.mdb? The proper query exists in the database. Why is Access looking for the query with the .mdb extension? Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] error message when running a subreport Connie, Might be a typo in your message, or maybe in your app. In either case, check the name of the target file carefully - the default extension for an Access database file is .mdb, not .mbd. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Burke, Constance Sent: Friday, September 28, 2007 6:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] error message when running a subreport Hi - I was referred to this site by my supervisor Ed Tesiny - he thought you could help. I am working on a report in Access. When I try to preview a subreport I am getting an error message that says 'could not find file 'F:\qry_ReportCard.mbd' when that query does exist and it's there!! Help!! Thanks in advance. Connie Constance Burke MATS - Program Coordinator Bureau of Evaluation and Performance Improvement NYS OASAS 518.485.0501 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:46:18 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 08:46:18 -0700 Subject: [AccessD] Mucking around In-Reply-To: <011c01c801cc$e8a717c0$8119fea9@LTVM> References: <200709281227.l8SCRIoR013237@databaseadvisors.com> <011c01c801cc$e8a717c0$8119fea9@LTVM> Message-ID: It's not inefficient for data STORAGE because that's what a data warehouse does. It would be inefficient to use this schema for data ENTRY. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 5:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Hi Robert, Believe it or not, I can actually understand it the way you described it. So, using your example, the sales would feed into the Fact Table and Reports would be run on the Fact table and pull info from the Customer Table. Is this correct? Am I also correct in saying that this schema is highly inefficient in terms of data storage but highly efficient in terms of speed of reports? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 1:25 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Jim, When you are dealing with data marts/warehouses, most normalization rules go out the window. A fact table is highly normalized. A dimension table is highly denormalized. It is simply how they work and how they are correctly designed. For instance in a customer dimension table, you would store all the information about the customer. You would denormalize it to put the address and phone information in the same table with the customer name. The same with the shipping terms for the customer. Essentially, all the information that you might ever want about a customer will be in the one table. The dimension tables are then linked to the fact table with the PK. The fact table is extremely specific data at a specific granularity. For example, sales by customer for a specific product on a weekly basis. The weekly is the granularity of the fact. There would be at least 3 columns in the PK of this fact table, customer ID, product ID, and Date ID. The last one would be used to identify the week the sales occurred in. If the granularity of the fact is the same for your data, having a Entry type of actual or trial as part of the fact is perfectly fine. It has to be part of the PK for the fact. Robert At 11:54 PM 9/27/2007, you wrote: >Date: Thu, 27 Sep 2007 15:55:55 -0500 >From: "Hale, Jim" >Subject: Re: [AccessD] Mucking around >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset=us-ascii > > >But is it normalized? Seems to me that fldType has the same problems as >described in the list box article. As a practical matter I would NOT >create separate tables since different rollups are needed all the time >and the programmers would poison my coffee if I proposed separate >tables. I have already lost too many tasters that way. Along the same >vein you COULD add a type field to the general ledger balance file to >represent plan, actual or statistics but I would never combine those >disimilar types of data. So the line beween correct normalization and >practicality often blurs for me. I think there is some grey and >judgement in creating truly normalized table schema. After all who can >truly say what is Normal? :-) > >Jim Hale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Sep 28 10:51:02 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 11:51:02 -0400 Subject: [AccessD] Friday (You Know) In-Reply-To: References: <29f585dd0709280628t19f3b79ard7516d849e4b60ee@mail.gmail.com> Message-ID: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > From Donald.A.McGillivray at sprint.com Fri Sep 28 10:51:04 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 10:51:04 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01ce01c801e4$e258f0b0$8119fea9@LTVM> References: <01ce01c801e4$e258f0b0$8119fea9@LTVM> Message-ID: Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 10:51:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 08:51:43 -0700 Subject: [AccessD] Mucking around In-Reply-To: <019601c801da$d1b69000$8119fea9@LTVM> References: <200709281407.l8SE7JxW015012@databaseadvisors.com> <019601c801da$d1b69000$8119fea9@LTVM> Message-ID: Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 10:59:41 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 16:59:41 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <01e101c801e8$954ea9a0$8119fea9@LTVM> I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:01:50 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:01:50 +0100 Subject: [AccessD] Mucking around In-Reply-To: Message-ID: <01e501c801e8$e2621ba0$8119fea9@LTVM> Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:06:14 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:06:14 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Message-ID: <01eb01c801e9$7f737560$8119fea9@LTVM> Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Sep 28 11:06:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 09:06:49 -0700 Subject: [AccessD] Mucking around In-Reply-To: <01e501c801e8$e2621ba0$8119fea9@LTVM> References: <01e501c801e8$e2621ba0$8119fea9@LTVM> Message-ID: Robert is the person to answer your questions, but a data warehouse is for reporting, nothing else. So it's set up to allow you to slice and dice and examine information in all sorts of ways at top speed. It is NOT designed for you to enter data. In fact, the data doesn't even have to come from the same database, when you get right down to it. So you could build a data warehouse, move data into it from your existing database, and then analyze and report on the data from the data warehouse. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Mucking around Transactional systems are separate. The transformation loads the data from the transactional system into the data warehouse/mart. If you try and mix the two systems, you'll have a mess. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Robert, be careful now. You are starting to drift away... Snowflake: This to me is a miltary policeman (RMP) so called because they wore white hats. True Stars: I can understand this cos my staff often say "Max you are a true star" (costs me a fortune each time). But, I *think* I am still with you. So, we have a Form which captures data. (Is this the transactional system you mention). The code then writes each entry into a Transaction Table (flat file) all data written regardless of duplication in other data entries. The Transaction Table then forms part of the data mart. There is no lookup or linked tables. Everything is in the Transaction Table. Have I got it right so far? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Friday, September 28, 2007 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Mucking around Max, What you would normally have is an ETL (Extract-Transform-Load) process that would get the data from the transactional system and load it into the mart/warehouse. The data is usually transformed in some way. In the dimension tables, all of the associated tables to the main dimension are used to feed in the additional de-normalized data into the single dimension table. If you do not do this, it is called snowflaking. And, this causes poor performance from the mart/warehouse. Marts/warehouses are not designed for efficient data storage. They are designed for the most effective reporting possible. In some cases, summarizing years of data into a few thousand records. No data entry would ever be done to the mart/warehouse tables. They are always loaded via the ETL processes defined as part of the overall strategy the business wants to use for reporting. I am also glad that I was able to explain it so that you were able to get the concepts. It is usually difficult for "transactional" people to get the concepts of a true star schema design. And they almost always want to build snowflake schemas instead of true stars. Robert At 08:42 AM 9/28/2007, you wrote: >Date: Fri, 28 Sep 2007 13:41:35 +0100 >From: >Subject: Re: [AccessD] Mucking around >To: "'Access Developers discussion and problem solving'" > >Message-ID: <011c01c801cc$e8a717c0$8119fea9 at LTVM> >Content-Type: text/plain; charset="us-ascii" > > >Hi Robert, >Believe it or not, I can actually understand it the way you described it. >So, using your example, the sales would feed into the Fact Table and >Reports would be run on the Fact table and pull info from the Customer >Table. Is this correct? >Am I also correct in saying that this schema is highly inefficient in >terms of data storage but highly efficient in terms of speed of reports? > >Ta > >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 11:08:15 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 09:08:15 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: <01eb01c801e9$7f737560$8119fea9@LTVM> References: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> <01eb01c801e9$7f737560$8119fea9@LTVM> Message-ID: The problem I've always had with zeroes is when a floating point error nudges zero just a bit waaaaaay over to the right of the decimal point. Thank goodness for current/money types. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew From DWUTKA at Marlow.com Fri Sep 28 11:17:50 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:17:50 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <29f585dd0709280851h2323121bm10359af8b2945377@mail.gmail.com> Message-ID: Well, zero is still zero, but if you work with a signed integer, it is possible to have the sign as negative, and the value as zero. In doing a comparison, the process sees that as unequal, even though the value is technically the same. My boss loves to tell his 'negative zero' story....it would take 3 pages to share, so I'll spare ya'll the boredom! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Fri Sep 28 11:21:47 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:21:47 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <01eb01c801e9$7f737560$8119fea9@LTVM> Message-ID: VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Jim.Hale at FleetPride.com Fri Sep 28 11:28:28 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 28 Sep 2007 11:28:28 -0500 Subject: [AccessD] FW: Create a BarGram from data In-Reply-To: <011e01c801ce$392f96d0$8119fea9@LTVM> References: <011e01c801ce$392f96d0$8119fea9@LTVM> Message-ID: I am sending you an Excel sheet with example progress meters. Maybe the code will give you some hints. HTH Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 max.wanadoo at gmail.com Fri Sep 28 11:31:56 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:31:56 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <01f201c801ed$169c5440$8119fea9@LTVM> Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Sep 28 11:31:35 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 11:31:35 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01e101c801e8$954ea9a0$8119fea9@LTVM> References: <01e101c801e8$954ea9a0$8119fea9@LTVM> Message-ID: Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 11:36:13 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 17:36:13 +0100 Subject: [AccessD] FW: Create a BarGram from data In-Reply-To: Message-ID: <01f601c801ed$afea6470$8119fea9@LTVM> Thanks Jim, you're a champ! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, September 28, 2007 5:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Create a BarGram from data I am sending you an Excel sheet with example progress meters. Maybe the code will give you some hints. HTH Jim Hale -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 7:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Sep 28 11:39:04 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 11:39:04 -0500 Subject: [AccessD] Continuous Form Issue Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> A2003 I have a bound continuous form that has an Option Group and a Combo Box. What I would like to do is to update the Option Group and change the rowsource of the Combo Box without changing the other records. The purpose of the continuous form is to represent hardware and software line items on a purchase order form. The Option Group has two option buttons labeled HW and SW. I need to change the rowsource using the option group buttons between two different queries without changing the other combo boxes on the continuous form. Is this possible? MTIA Jim From DWUTKA at Marlow.com Fri Sep 28 11:39:55 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 11:39:55 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <01f201c801ed$169c5440$8119fea9@LTVM> Message-ID: Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 12:02:17 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 18:02:17 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <01fd01c801f1$53b69580$8119fea9@LTVM> It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 12:08:36 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 18:08:36 +0100 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <020301c801f2$35c38aa0$8119fea9@LTVM> Sorry Drew, What I meant was: Arthur said: Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Is this going to happy when a Currency Type is used? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Sep 28 12:11:28 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 12:11:28 -0500 Subject: [AccessD] Mucking around In-Reply-To: <01e501c801e8$e2621ba0$8119fea9@LTVM> References: <01e501c801e8$e2621ba0$8119fea9@LTVM> Message-ID: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> Max, I think of it this way (this is not a technical explanation): -Normalized data (in a normalized data structure) is the basis for how one enters, stores and maintains data. -Queries, reports, labels, graphs, web data, data streams, transactional systems, data warehouse/marts, etc. are all products of efficiently entered and stored data. They are _derived_ from the normalized data. In theory, the more efficiently stored (normalized) the more precise. Some of the arguments you will see here are based on efficiency of accessing/maintaining/editing the data more so than efficient storage of the data. There will be compromises made due to the complexity of dealing with normalized data to scenarios that do not allow for full normalization of data and/or those who do not fully understand the ideology (yes, I purposefully stated it that way) of normalization (this means almost all programmers who are not first DBAs ;o) This doesn't infer that anyone is doing anything wrong, just that some things aren't done according to the rules of normalization. As for the technical explanations I will not venture into that realm as we have people much more adept here than I. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max From Donald.A.McGillivray at sprint.com Fri Sep 28 12:34:24 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 28 Sep 2007 12:34:24 -0500 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <01fd01c801f1$53b69580$8119fea9@LTVM> References: <01fd01c801f1$53b69580$8119fea9@LTVM> Message-ID: Max, Or more simply: MaxRectangleHeight = 4 * 1440 NewRectangleHeight = (Raised / Target) * MaxRectangleHeight Me!rctRaised.Height = NewRectangleHeight That's about the way I've done it. Good luck! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 12:52:37 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 28 Sep 2007 10:52:37 -0700 Subject: [AccessD] Object variable or With block variable not set In-Reply-To: <29f585dd0709280609k30c5a533h8073329734c1f814@mail.gmail.com> Message-ID: Hi Arthur: Had a similar error some time ago and it was due to an out-of-scope error. Either the variable/object being addressed is not sufficiently global; the snippet/object that spawned the variable/object is closed/being closed or is unreachable. It may be just an error caused by not closing objects in the correct order... an Excel thing. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 6:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Object variable or With block variable not set I'm getting this message in running some code in Excel. Everything appears to work fine but I get this message at the end of the run. No idea why. Any suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 12:47:08 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 13:47:08 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> Message-ID: Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > Jim > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Fri Sep 28 13:11:04 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:11:04 +0100 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: Message-ID: <020d01c801fa$f0230da0$8119fea9@LTVM> Thanks Don, that is Ace! I will use that as it looks nice and simple. Jim: Thanks for sending the Excel Code. It is appreciated. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 6:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Or more simply: MaxRectangleHeight = 4 * 1440 NewRectangleHeight = (Raised / Target) * MaxRectangleHeight Me!rctRaised.Height = NewRectangleHeight That's about the way I've done it. Good luck! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data It does Don, Thanks very much. You see, what I can do is use an Access report/form or whatever, which is scaled correctley for the actual v target and the use the PntScrn button on the keyboard, past it into Paint and save as a jpeg. This I can then drop onto the web page on, say, a weekly basis. I just need the code to generate the correct "picture" in Access so that it is accurate. So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 twips) and we have raised ?20,000 to date then the corresponding bar is: Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) 5760*(20/100)=1152 Twips Excel give me: =(4*1440)*((Raised/Target)*100)/100 Have I got this right or is there a better way of scaling it? Ta very much Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, The way I did it was to establish a position on the page, bar width, and a maximum bar height for the rectangles. If you have only two values to compare (walked v target) just make the rectangle representing the target the maximum size and whatever color you want it. Then you can superimpose a rectangle of a different color over the target, and set its height value according to the ratio of walked to target. Just apply the same ratio to the max height, set that as the height value, and redraw. Note that the properties sheet expresses the rectangle's dimensions in inches, but your code must use twips. 1 inch = 1440 twips, if my memory serves. I've also done this by positioning different sized rectangles next to each other when I had more than two metrics to compare to the whole. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: FW: Create a BarGram from data I have never done this Don, Can you Scale a range so that it, say, fits a given size and then, say, colour the increasing element, say blue, and the bit still to go, say red? It would be a start. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: FW: Create a BarGram from data Max, Well, you probably already have this part figured out, but it's the only part I have an idea about. I've created "bar charts" on Access reports and forms using retrieved values to describe the dimensions of rectangle controls. But I suspect that your question is aimed more at creating the graphic externally using Access data and moving it into your website, presumably in an automated way. That's beyond my ken, for sure. I've never used Access pages, but maybe there's some potential there? Good luck . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 8:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: FW: Create a BarGram from data Sorry for the repeat posting, but I have to try one more time to see if anybody can help me with this. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Create a BarGram from data Hi folks, just re-posting this hoping that somebody will be able to help me out here. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 6:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Create a BarGram from data Hi Folks, I have to do something which I have never done before and would really appreciate your help and feedback. The charity I support is doing a charity walk and we need to have a guage generated showing progress (something like you see on the side of a church to show how the restoration fund for the new church roof is progressing). My Access tables will capture the MilesWalked v MilesTarget and FundsRaised v FundsTarget. Somehow I have to generate a "picture" of each from these values which I can then drop onto the web site as two graphics. I will need to "scale" the MilesWalked to the MilesTarget and create the "picture" from that. And then do the same with the funds. A sort of Progress Bar thingie but for the web site. All input is captured into an MDB, but how on earth do I do the rest? Any help would be most appreciated. Evan a start point. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 13:23:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 28 Sep 2007 11:23:08 -0700 Subject: [AccessD] Friday (You Know) In-Reply-To: Message-ID: <2D8FCD192A434711B558560DF9DD8288@creativesystemdesigns.com> ...or times a hundred into an integer and divide by a hundred back into a long. (The old techniques.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, September 28, 2007 9:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) The problem I've always had with zeroes is when a floating point error nudges zero just a bit waaaaaay over to the right of the decimal point. Thank goodness for current/money types. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Sep 28 13:18:32 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:18:32 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: References: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 max.wanadoo at gmail.com Fri Sep 28 13:21:39 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:21:39 +0100 Subject: [AccessD] Mucking around In-Reply-To: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> Message-ID: <020e01c801fc$6ad269a0$8119fea9@LTVM> Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, September 28, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, I think of it this way (this is not a technical explanation): -Normalized data (in a normalized data structure) is the basis for how one enters, stores and maintains data. -Queries, reports, labels, graphs, web data, data streams, transactional systems, data warehouse/marts, etc. are all products of efficiently entered and stored data. They are _derived_ from the normalized data. In theory, the more efficiently stored (normalized) the more precise. Some of the arguments you will see here are based on efficiency of accessing/maintaining/editing the data more so than efficient storage of the data. There will be compromises made due to the complexity of dealing with normalized data to scenarios that do not allow for full normalization of data and/or those who do not fully understand the ideology (yes, I purposefully stated it that way) of normalization (this means almost all programmers who are not first DBAs ;o) This doesn't infer that anyone is doing anything wrong, just that some things aren't done according to the rules of normalization. As for the technical explanations I will not venture into that realm as we have people much more adept here than I. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Ha, Chalotte, thought so, "a mess" is usually where I end up anyway. So, if I wanted to do this in MS Access, what are the major steps, or is this something that should not be considered in Access? I guess I don't really comprehend what is meant by "from the Transaction System", or what is a "Transactional System", or what is a "Mart" or what is meant by "loads data from" - why cannot the data entry just post straight to the "Mart". Big leaning curve here. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 13:29:27 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 19:29:27 +0100 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: <020f01c801fd$815a46b0$8119fea9@LTVM> Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 reuben at gfconsultants.com Fri Sep 28 13:31:23 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 14:31:23 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: Are these bound combo boxes? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Thanks... I tried it and it didn't work. > I have also tried the following: > 1. after update event of the Option group to refresh the combo box > 2. on enter event of the Combo Box to refresh combo box > 3. put everything into one table with a filter on a field > referencing the Option Group - using either 1 or 2 above > 4. used requery > 5. used repaint > 6. I've tried locking each one if it has a value but that really > doesn't work... it locks the entire form > > What occurs after the refresh/requery/repaint the combo box drop > down changes as required.... however, each combo box on each > continuous form changes to what was clicked in the Option Group > regardless of the Option Group on the form it resides. > > For example: > Three "rows" (continuous forms [CF]) > 1 - HW > 2 - SW > 3 - HW > > If a new record (CF) is added the Option Group is clicked the > previous CFs change to reflect the value. In this case if SW > option is chosen 1 and 3 above changes. > > Does that make sense? > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 12:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Do you mean the combo box recordsource should change based on the Option > Group for that record? > > If so, then just change the recordsource on the On_Current event. > This will > change it everytime someone changes records. > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 12:39 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Continuous Form Issue > > > > > > A2003 > > > > I have a bound continuous form that has an Option Group and a Combo Box. > > What I would like to do is to update the Option Group and change the > > rowsource of the Combo Box without changing the other records. > > The purpose of the continuous form is to represent hardware and software > > line items on a purchase order form. > > The Option Group has two option buttons labeled HW and SW. > > I need to change the rowsource using the option group buttons between > > two different queries without changing the other combo boxes on the > > continuous form. > > Is this possible? > > > > MTIA > > > > 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 jedi at charm.net Fri Sep 28 13:24:46 2007 From: jedi at charm.net (Michael Bahr) Date: Fri, 28 Sep 2007 14:24:46 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <005801c80134$f60b9320$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> Message-ID: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking > an expression and creating a camel case (or PascalCase) expression. > > I get CSV files with headers in them. All too often the eejits that > created > the databases they came from used embedded spaces or other special use > characters (!@#$%^&* etc) in their field names. I need to strip these > special characters out completely. I also need to upper case the valid > alpha character that follows any of these special characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today > I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 JHewson at karta.com Fri Sep 28 13:48:56 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:48:56 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: <020f01c801fd$815a46b0$8119fea9@LTVM> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> <020f01c801fd$815a46b0$8119fea9@LTVM> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 JHewson at karta.com Fri Sep 28 13:49:20 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 13:49:20 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197C7@karta-exc-int.Karta.com> Yes. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 1:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Are these bound combo boxes? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Thanks... I tried it and it didn't work. > I have also tried the following: > 1. after update event of the Option group to refresh the combo box > 2. on enter event of the Combo Box to refresh combo box > 3. put everything into one table with a filter on a field > referencing the Option Group - using either 1 or 2 above > 4. used requery > 5. used repaint > 6. I've tried locking each one if it has a value but that really > doesn't work... it locks the entire form > > What occurs after the refresh/requery/repaint the combo box drop > down changes as required.... however, each combo box on each > continuous form changes to what was clicked in the Option Group > regardless of the Option Group on the form it resides. > > For example: > Three "rows" (continuous forms [CF]) > 1 - HW > 2 - SW > 3 - HW > > If a new record (CF) is added the Option Group is clicked the > previous CFs change to reflect the value. In this case if SW > option is chosen 1 and 3 above changes. > > Does that make sense? > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 12:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Do you mean the combo box recordsource should change based on the Option > Group for that record? > > If so, then just change the recordsource on the On_Current event. > This will > change it everytime someone changes records. > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 12:39 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Continuous Form Issue > > > > > > A2003 > > > > I have a bound continuous form that has an Option Group and a Combo Box. > > What I would like to do is to update the Option Group and change the > > rowsource of the Combo Box without changing the other records. > > The purpose of the continuous form is to represent hardware and software > > line items on a purchase order form. > > The Option Group has two option buttons labeled HW and SW. > > I need to change the rowsource using the option group buttons between > > two different queries without changing the other combo boxes on the > > continuous form. > > Is this possible? > > > > MTIA > > > > 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 john at winhaven.net Fri Sep 28 13:48:33 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:48:33 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <003f01c80200$2bf98ed0$6402a8c0@ScuzzPaq> It goes through "transformation" from normalized data into the data warehouse. Basic data elements into product. Think of it as similar to using tables to create a query. In turn the query may be used to create a report. The data is the same but presented in the format needed for the purpose of creating a report and then being observed by people. The query is no way to store data but is a way to combine data into the use it serves at that moment. The report is no way to store data but is a way to present it in a format that is human friendly. Likewise a data warehouse is a specific use (product) of the basic data that presents it - or transforms it - into a different format. Not a format that you would want to store it in but one that allows for the analysis done via data warehousing. I feel like I'm starting to sound like one of Drew's analogies ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com What I don't understand is how we get from that to Data Marts. From john at winhaven.net Fri Sep 28 13:53:38 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:53:38 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004001c80200$e1441490$6402a8c0@ScuzzPaq> Use a normalized data structure. It is the flexible and efficient way of entering/storing/maintaining data. Creating a flat file derived from the data in a normalized data structure can be as easy as creating a select query. Don't use flat file for data storage. That would create redundancy, inefficiency and well, eventually a mess. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. From jwcolby at colbyconsulting.com Fri Sep 28 14:01:50 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 15:01:50 -0400 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <003901c80202$07724aa0$6c7aa8c0@M90> Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max From john at winhaven.net Fri Sep 28 13:58:46 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 13:58:46 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004101c80201$98d1faa0$6402a8c0@ScuzzPaq> Not for reports. You can use other products but there is rarely a need for that. For data transformation into a data warehouse - more than likely. I would imagine there are some on this list that have coded transformation into an Access module though. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com When it then comes to pulling the data out into reports are we talking about using software other than Access? From max.wanadoo at gmail.com Fri Sep 28 14:06:30 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:06:30 +0100 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> Message-ID: <021c01c80202$ae9fd680$8119fea9@LTVM> Oh, just re-read your requirement. You are using continuous forms. I recently posted something for Arthur based on datasheets. The same *may* work for continuous forms. You can download it here: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip It will be the second option you require, but have a look at it all. As I say, it was written for a datasheet but may help you. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 john at winhaven.net Fri Sep 28 14:03:50 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 14:03:50 -0500 Subject: [AccessD] Mucking around In-Reply-To: <020e01c801fc$6ad269a0$8119fea9@LTVM> References: <002c01c801f2$9bf77b60$6402a8c0@ScuzzPaq> <020e01c801fc$6ad269a0$8119fea9@LTVM> Message-ID: <004201c80202$4e451700$6402a8c0@ScuzzPaq> Terminology happens :o) Conceptually I think the easiest way to understand it is using the Query/Report analogy. You create a Query which makes it possible/easier/more efficient to create a specific Report. Its a means to produce a product. Remember, rarely does any lay person care about HOW data is stored, they generally only care about how it is presented (product). Its up to the DBA to store it correctly so that it can be presented in any one of the myriad of ways it can be used/presented in the future. The granularity of a properly normalized data structure allows for the most flexibility in this regards. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" From jimdettman at verizon.net Fri Sep 28 14:08:52 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 28 Sep 2007 15:08:52 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <01cf01c801e4$e35a8230$8119fea9@LTVM> References: <000a01c801df$74308210$8abea8c0@XPS> <01cf01c801e4$e35a8230$8119fea9@LTVM> Message-ID: <001d01c80203$0315d8e0$8abea8c0@XPS> Works here. Did you cut & paste or click on it directly? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 14:11:24 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:11:24 +0100 Subject: [AccessD] Mucking around In-Reply-To: <003901c80202$07724aa0$6c7aa8c0@M90> Message-ID: <021d01c80203$5d337530$8119fea9@LTVM> Thanks John (and all those who posted). I will go through all of the posts over the weekend. Lots to get my head around. Have a good weekend, all of you great guys. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Sep 28 14:10:37 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 28 Sep 2007 15:10:37 -0400 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C7@karta-exc-int.Karta.com> Message-ID: So the SW and HW options are stored in two different tables? Are the "ID's" in these two tables the same? For example,... HW Item HW ID HW 1 1 HW 2 2 HW 3 3 SW Item SW ID SW 1 1 SW 2 2 SW 3 3 If this is roughly the case then as the combo's change it is seeing the new idea from the wrong table and returns the item from the wrong table. If the ID of HW 1 is stored (1) then when the rowsource is changed to match the SW option the rowsource now runs using 1 as the ID which returns SW 1 because you changed tables, but are still using 1 as the ID to search on. Changing rowsources on a combo on a continuos form is tricky if you are trying to change completely what you are showing. I think you will always have a problem of some sort with this. I think even if you get it to NOT show the "wrong" item it may very well be blank if the current record is the other type. What I mean is if you select SW then the HW combos may be blank at best. Combos on a continous form are tricky. Cany you use a "static" continuous form that only "shows" the selections and allow a double-click (or other) starting option that gets the user to entry portion? This way you could use queries to put the correct description with the correct ID number based on the Type selected. The form would show SW SW2 SW SW3 HW HW1 , for example But these would all be listed in text boxes because you have already set the text correctly. A double click on the type field would pop up a form to edit this record or add a new record. Your combo changing would be eliminated because you are only showing one record at a time on the add/edit form. I'll be back Monday to help out if I can. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > > Yes. > > Jim > jhewson at karta.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, September 28, 2007 1:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Continuous Form Issue > > Are these bound combo boxes? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > Sent: Friday, September 28, 2007 2:19 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Continuous Form Issue > > > > > > Thanks... I tried it and it didn't work. > > I have also tried the following: > > 1. after update event of the Option group to refresh the combo box > > 2. on enter event of the Combo Box to refresh combo box > > 3. put everything into one table with a filter on a field > > referencing the Option Group - using either 1 or 2 above > > 4. used requery > > 5. used repaint > > 6. I've tried locking each one if it has a value but that really > > doesn't work... it locks the entire form > > > > What occurs after the refresh/requery/repaint the combo box drop > > down changes as required.... however, each combo box on each > > continuous form changes to what was clicked in the Option Group > > regardless of the Option Group on the form it resides. > > > > For example: > > Three "rows" (continuous forms [CF]) > > 1 - HW > > 2 - SW > > 3 - HW > > > > If a new record (CF) is added the Option Group is clicked the > > previous CFs change to reflect the value. In this case if SW > > option is chosen 1 and 3 above changes. > > > > Does that make sense? > > > > Jim > > jhewson at karta.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > > Sent: Friday, September 28, 2007 12:47 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Continuous Form Issue > > > > Do you mean the combo box recordsource should change based on the Option > > Group for that record? > > > > If so, then just change the recordsource on the On_Current event. > > This will > > change it everytime someone changes records. > > Reuben Cummings > > GFC, LLC > > 812.523.1017 > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > > > Sent: Friday, September 28, 2007 12:39 PM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Continuous Form Issue > > > > > > > > > A2003 > > > > > > I have a bound continuous form that has an Option Group and a > Combo Box. > > > What I would like to do is to update the Option Group and change the > > > rowsource of the Combo Box without changing the other records. > > > The purpose of the continuous form is to represent hardware > and software > > > line items on a purchase order form. > > > The Option Group has two option buttons labeled HW and SW. > > > I need to change the rowsource using the option group buttons between > > > two different queries without changing the other combo boxes on the > > > continuous form. > > > Is this possible? > > > > > > MTIA > > > > > > 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 jwcolby at colbyconsulting.com Fri Sep 28 14:11:42 2007 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Sep 2007 15:11:42 -0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Message-ID: <006d01c80203$68689160$6c7aa8c0@M90> Michael, The problem with doing this is that each object has to be examined character by character, EVERY line. In this specific case I could certainly do this however I am under the impression that RegEx is optimized to do this kind of thing. Kind of the difference between a similar function to look at every character and remove it if it matches something and using the replace to remove a character. Replace is written in a highly optimized (perhaps even in assembler) whereas the "loop and search" is not optimized at all. John 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 Bahr Sent: Friday, September 28, 2007 2:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking an expression and creating a camel case (or PascalCase) > expression. > > I get CSV files with headers in them. All too often the eejits that > created the databases they came from used embedded spaces or other > special use characters (!@#$%^&* etc) in their field names. I need to > strip these special characters out completely. I also need to upper > case the valid alpha character that follows any of these special > characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 JHewson at karta.com Fri Sep 28 14:11:50 2007 From: JHewson at karta.com (Jim Hewson) Date: Fri, 28 Sep 2007 14:11:50 -0500 Subject: [AccessD] Continuous Form Issue In-Reply-To: <021c01c80202$ae9fd680$8119fea9@LTVM> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197C6@karta-exc-int.Karta.com> <021c01c80202$ae9fd680$8119fea9@LTVM> Message-ID: <3918C60D59E7D84BBE11101EB0FDEF6F0197CA@karta-exc-int.Karta.com> Thanks, Max I'll take a look at it. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Oh, just re-read your requirement. You are using continuous forms. I recently posted something for Arthur based on datasheets. The same *may* work for continuous forms. You can download it here: http://www.peoplelinks.co.uk/msaccess/downloads/DataSheetComboBoxes.zip It will be the second option you require, but have a look at it all. As I say, it was written for a datasheet but may help you. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue That didn't work. It changed all the combo boxes at the same time. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 1:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous Form Issue Jim, In the option group using the onclick put this (Aircode). Assuming the option values are 1,2,3 etc Select case Case 1 Me!cboboxname.rowsource = "select * from tblHardware" Case 2 Me!cboboxname.rowsource = "select * from tblSoftware" Case else ' keep putting your options here End select Me!cboboxname.requery MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 7:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 DWUTKA at Marlow.com Fri Sep 28 14:12:35 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Sep 2007 14:12:35 -0500 Subject: [AccessD] Friday (You Know) In-Reply-To: <020301c801f2$35c38aa0$8119fea9@LTVM> Message-ID: No. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Sorry Drew, What I meant was: Arthur said: Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Is this going to happy when a Currency Type is used? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Currency Data Type (from the MSDN): Currency variables are stored as 64-bit (8-byte) numbers in an integer format, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right. This representation provides a range of -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Note the last digits are 8 and 7 again. So the sign bit represents a number other then -0 when it is on alone. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Drew, What about "Currency", which is what I am using in this program. That can have minus and plus(es)? MAx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, September 28, 2007 5:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) VB/VBA shouldn't have this problem. A long Integer is 'signed', but there is no -0. Here's the def of a Long Integer from the MSDN: Long (long integer) variables are stored as signed 32-bit (4-byte) numbers ranging in value from -2,147,483,648 to 2,147,483,647. Note that the absolute value of the negative number is 1 more then the positive number? If it was -2,147,483,647 to 2,147,483,647, then there could be a negative zero. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday (You Know) Wow! Is this a candidate for your subtle bugs or what? I never knew that and I bet not many other people did either. Thinking about it, I actually have this problem on our Daily Cash Book entry system - I will revisit it with this in mind. Gosh, I learno soooo much from this list. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, September 28, 2007 4:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday (You Know) Actually that was one of my first columns. It had this message box that said "The balance is not zero. The balance is 0.00". It all came about because if you put in a credit (minus) value first, the result would be minus zero. Simple enough to fix with ABS(), but until then I didn't realize that there were two values for zero. Arthur On 9/28/07, Drew Wutka wrote: > > How about one that misses a negative zero? (obviously not an issue in > VB or VBA) > > Drew > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI BusinessSensitve material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Fri Sep 28 14:25:42 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:25:42 +0100 Subject: [AccessD] Mucking around In-Reply-To: <004201c80202$4e451700$6402a8c0@ScuzzPaq> Message-ID: <021e01c80205$5ce36e80$8119fea9@LTVM> Hi John, >Terminology happens :o) Yes, but sometime what is really simple becomes difficult to understand because the terminogy is not understood. I can remember when I was at school (albeit a long time ago, but I have a good memory), I had great difficulty understanding English Grammar. I just couldn't understand what the teacher was saying Verbs, Adverbs, Adjectives, past participle, etc. This lasted for many years until, in the Army, I was posted to Germany and had to learn German. Then I picked it up in a flash and became quite good in a short time, reading, writing and (accent excepted), speaking German. Much of it gone now, sadly. What I realised was that when I was learning German the teacher was using English to explain German grammar and I was able to differentiate between the German word and what the explanation of what the word meant when spoken in English. I then realised that the reason I couldn't understand English Grammar at school was because the teacher was using English words to explain English words and I couldn't differentiate between the word and the explanations all mixed in with his general speech, whereas when I was learning German, the difference was obvious. I actually learnt English Grammar by learning to speak German! All because of terminology. I learnt that "To boldly go where no man has gone before" is a split infinite and I (now) know why. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, September 28, 2007 8:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Terminology happens :o) Conceptually I think the easiest way to understand it is using the Query/Report analogy. You create a Query which makes it possible/easier/more efficient to create a specific Report. Its a means to produce a product. Remember, rarely does any lay person care about HOW data is stored, they generally only care about how it is presented (product). Its up to the DBA to store it correctly so that it can be presented in any one of the myriad of ways it can be used/presented in the future. The granularity of a properly normalized data structure allows for the most flexibility in this regards. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Sep 28 14:29:54 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Fri, 28 Sep 2007 20:29:54 +0100 Subject: [AccessD] A2K - Locking Problem In-Reply-To: <001d01c80203$0315d8e0$8abea8c0@XPS> Message-ID: <021f01c80205$f30df790$8119fea9@LTVM> Clicked directly, but hey! Just tried again and now it works! (are you sure you didn't give MS a quick csll and tell them to put it up there again!) Thanks Jim Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 8:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Works here. Did you cut & paste or click on it directly? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 11:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Jim, The link doesn't seem to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, September 28, 2007 3:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2K - Locking Problem Reuben, That can be caused by a few things, but the first thing is to check and make sure that there are no open locks and kill them if there are. This can be done by rebooting the server or: 1. Get all the users out. 2. On the server, right click on My Computer, select manage. Go to Shared Folders, then open files. See if any references exist to the MDB file. If so right click on the correct file and then select close. Now see if you can delete the .LDB file. 3. If nothing shows, then the network session that had the lock may already be closed, but the lock may still be there. Use the utility here: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx to check for open handles against the MDB and close them if they exist. You now can delete the .LDB file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Locking Problem The IT department refuses to reboot the server the mdb resides on. They want to complain about a problem, but won't do one thing I've asked them to do. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Locking Problem > > > Hi Reuben, > When I get this, it is because my system thinks (or actually has) two > versions of the same mdb open running simultaneously, matching each of > my keystrokes. It might be a memory leak or similar. If I reboot the > PC the problem disappears. Sometimes looking at the Task Manager give > a clue. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben > Cummings > Sent: Friday, September 28, 2007 2:54 PM > To: AccessD > Subject: [AccessD] A2K - Locking Problem > > I have a client that is receiving messages stating "The Microsoft Jet > Database engine stopped the process because you..." Basically trying > to say that the record has been edited by someone else. > > This has happened several times lately. There is always a .ldb hangin > around after closing the app (by all users - there are 4 users). This > is occurring even if only one person is using the app. And even then > the ldb is still not deleted. > > Any ideas? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sep 28 14:45:04 2007 From: john at winhaven.net (John Bartow) Date: Fri, 28 Sep 2007 14:45:04 -0500 Subject: [AccessD] Mucking around In-Reply-To: <021e01c80205$5ce36e80$8119fea9@LTVM> References: <004201c80202$4e451700$6402a8c0@ScuzzPaq> <021e01c80205$5ce36e80$8119fea9@LTVM> Message-ID: <005801c80208$1123ec60$6402a8c0@ScuzzPaq> Ah! I think you have relation data theory and data warehousing theory down now ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com I learnt that "To boldly go where no man has gone before" is a split infinite and I (now) know why. From cfoust at infostatsystems.com Fri Sep 28 15:56:58 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 13:56:58 -0700 Subject: [AccessD] Continuous Form Issue In-Reply-To: <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> References: <3918C60D59E7D84BBE11101EB0FDEF6F0197BF@karta-exc-int.Karta.com> <3918C60D59E7D84BBE11101EB0FDEF6F0197C4@karta-exc-int.Karta.com> Message-ID: The problem is that there is really only one set of controls on the form, no matter how many rows you see. You can fake the combobox stuff with a textbox bound to the same form behind the combobox and the combox's backstyle set to transparent. That lets you see the actual value in the field even when that value isn't in the combobox's list. Option Groups aren't really appropriate controls for a continuous form. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, September 28, 2007 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Thanks... I tried it and it didn't work. I have also tried the following: 1. after update event of the Option group to refresh the combo box 2. on enter event of the Combo Box to refresh combo box 3. put everything into one table with a filter on a field referencing the Option Group - using either 1 or 2 above 4. used requery 5. used repaint 6. I've tried locking each one if it has a value but that really doesn't work... it locks the entire form What occurs after the refresh/requery/repaint the combo box drop down changes as required.... however, each combo box on each continuous form changes to what was clicked in the Option Group regardless of the Option Group on the form it resides. For example: Three "rows" (continuous forms [CF]) 1 - HW 2 - SW 3 - HW If a new record (CF) is added the Option Group is clicked the previous CFs change to reflect the value. In this case if SW option is chosen 1 and 3 above changes. Does that make sense? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous Form Issue Do you mean the combo box recordsource should change based on the Option Group for that record? If so, then just change the recordsource on the On_Current event. This will change it everytime someone changes records. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson > Sent: Friday, September 28, 2007 12:39 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Continuous Form Issue > > > A2003 > > I have a bound continuous form that has an Option Group and a Combo Box. > What I would like to do is to update the Option Group and change the > rowsource of the Combo Box without changing the other records. > The purpose of the continuous form is to represent hardware and software > line items on a purchase order form. > The Option Group has two option buttons labeled HW and SW. > I need to change the rowsource using the option group buttons between > two different queries without changing the other combo boxes on the > continuous form. > Is this possible? > > MTIA > > 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 cfoust at infostatsystems.com Fri Sep 28 16:02:05 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Sep 2007 14:02:05 -0700 Subject: [AccessD] Mucking around In-Reply-To: <021d01c80203$5d337530$8119fea9@LTVM> References: <003901c80202$07724aa0$6c7aa8c0@M90> <021d01c80203$5d337530$8119fea9@LTVM> Message-ID: If you want a good book on Data Warehousing concepts, Ralph Kimball has "The Data Warehous Toolkit", which does a pretty good job of explaining the concepts. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John (and all those who posted). I will go through all of the posts over the weekend. Lots to get my head around. Have a good weekend, all of you great guys. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 28, 2007 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Max, Data as most of us understand it is "highly normalized", with that term meaning more to some than others! ;-) We tend to think of data entry systems and "normal" reporting systems. Somehow we have to get the data entered, and in order to do that and minimize errors we build many tables, each table holding data about only a single "subject", people, companies, checks, banks, etc. That works well for data entry, there is one and only one "bank of america" in our bank table, and when we mean "bank of america" we go into that table and pull info for it, or pull it's PK to place in some other record than needs to record (for example) accounts for bank of america. Again, all that works well for its intended purpose - which is COLLECTING information about objects. REPORTING data about such objects can get real slow real quick. Bank of america has millions of "transactions" a day, trying to report on all of the transactions for a given region by week can cause the normalized database to go nuts. It involves sorting through potentially billions of transactions, with multiple joins between various tables, and multiple where clauses on various fields. Running a report can take hours or days even on mainframes. So in order to make such reporting faster such data may be intentionally denormalized, the how and why of the denormalization being an entirely different study from our "normal" normalization stuff. But the concept is simply that once the data exists and is verified and WILL NEVER (or rarely) CHANGE, then the denormalization can be done without fear. The data is rearranged into tables different from our normalized tables. Perhaps (and this is ONLY an example) all of the data for each region is pulled out into a separate table with ALL of the fields for all the banks, accounts, customers and transactions (in that region) placed into a single table. BAD practice for transactional data (adding / deleting / modifiying data) but GOOD practice for reporting quickly on a specific region. Now before anyone jumps on me for this example or what you might or might not actually do in the process of denormalization, I do NOT understand the actual mechanics of such data storage / denormalization, or the how and the why, only THAT such things exist and why. The point is simply that because the joins between branch / account / people / transactions were done ONE TIME, the WHERE CLAUSE to select data for a specific branch was done ONE time, and even though it took days or weeks to get the data and write it out to a table, it only has to be done once because the data behind the denormalized table is static. The branch will never change, the account will never change, the transactions will never change so a "snap shot" can be taken and stored permanently. Then that snapshot is used to report against. In fact even this snap shot may be too large, they might very well do summations such as "the sums and counts of all deposits made" for each day or each month etc and store that info. Since the deposits were made and can't be unmade, the data is valid forever. Do it once, then just report off of the snapshots. Those "snapshots" are the concept of if not the actual realization of a data mart. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Friday, September 28, 2007 2:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Mucking around Thanks John, Normalised data I understand. What I don't understand is how we get from that to Data Marts. Q1: What do I do with my normalised tables. If the answer is to leave the data in the normalised table and then re-post it to a flat table, then why could that not have been done at data entry. Q2: If the answer to Q1 is go straight to flat tables, then what do I do AFTER that. When it then comes to pulling the data out into reports are we talking about using software other than Access? The terminology is throwing me a bit too (well, to be honest, it is throwing me a lot). With the help of you guys, I will undertand it eventually. What is conceptually throwing me at the moment though is this: If the reason people use datamarts (Star/Snow) to quickly create reports which dice/slice down through the data, then are we or are we not just moving the "time Taken" from the report stage to the data input stage (which would make sense to me). But if I am completely wrong here, then I really am "all at sea!" Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Sep 28 16:55:44 2007 From: robert at servicexp.com (Robert) Date: Fri, 28 Sep 2007 17:55:44 -0400 Subject: [AccessD] A2K - Locking Problem In-Reply-To: References: Message-ID: <002301c8021a$52a5c520$0801a8c0@roberts> Reuben, I struggled for a looooooong time with what sounds like the same error. I just happened across a MS KB about the problem. Had my users install the patches and problem solved. http://support.microsoft.com/kb/895751 If you need the patch's (Win 2003 & XP) I believe I still have them.. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, September 28, 2007 9:54 AM To: AccessD Subject: [AccessD] A2K - Locking Problem I have a client that is receiving messages stating "The Microsoft Jet Database engine stopped the process because you..." Basically trying to say that the record has been edited by someone else. This has happened several times lately. There is always a .ldb hangin around after closing the app (by all users - there are 4 users). This is occurring even if only one person is using the app. And even then the ldb is still not deleted. Any ideas? Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jedi at charm.net Fri Sep 28 16:55:12 2007 From: jedi at charm.net (Michael Bahr) Date: Fri, 28 Sep 2007 17:55:12 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <006d01c80203$68689160$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <006d01c80203$68689160$6c7aa8c0@M90> Message-ID: <4544.24.35.45.228.1191016512.squirrel@mail.expedient.net> John, you are correct that a regex would be a good choice however you did make the requirement that the first letter of each word had to be capitalized. Right?? So a regex really could not do this particular job very well if at all. Regular expressions are great for finding and manipulating patterns of characters in one felled swoop, for example if you only wanted to remove those pesky "extra" characters then something like the following would do the trick: Perl: my $line =~ s/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\.//g; means to substitute all matching delimiters (g switch) with a nothing on the contents of $line. The s/pattern/replace/ expression is the construct. TCL: regsub -all {:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\.} $line "" line this may be a little more clear to that replace all matches found (-all switch) in $line with "" and put the new value in line. VB.net I believe: line = Regex.Replace(line, delimiters, "") The old way would be to let VB loop through each delimiter one at a time for each line whereas the regex engine does all the dirty work when you specify all the delimiters at one time. Make sense?? Mike... > Michael, > > The problem with doing this is that each object has to be examined > character > by character, EVERY line. In this specific case I could certainly do this > however I am under the impression that RegEx is optimized to do this kind > of > thing. Kind of the difference between a similar function to look at every > character and remove it if it matches something and using the replace to > remove a character. Replace is written in a highly optimized (perhaps even > in assembler) whereas the "loop and search" is not optimized at all. > > > > > John 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 Bahr > Sent: Friday, September 28, 2007 2:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough > to get you going. You will need to create the main loop within your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the > line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten > at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} > {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 fuller.artful at gmail.com Fri Sep 28 17:07:02 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 18:07:02 -0400 Subject: [AccessD] FW: FW: Create a BarGram from data In-Reply-To: <020d01c801fa$f0230da0$8119fea9@LTVM> References: <020d01c801fa$f0230da0$8119fea9@LTVM> Message-ID: <29f585dd0709281507i4b997035n1a84a7a39849a6fe@mail.gmail.com> If it were me, I would do it in Excel not Access. It's simple to export the data to Excel. hth, Arthur On 9/28/07, max.wanadoo at gmail.com wrote: > > Thanks Don, that is Ace! > I will use that as it looks nice and simple. > > Jim: Thanks for sending the Excel Code. It is appreciated. > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 6:34 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > Or more simply: > > MaxRectangleHeight = 4 * 1440 > NewRectangleHeight = (Raised / Target) * MaxRectangleHeight > Me!rctRaised.Height = NewRectangleHeight > > That's about the way I've done it. > > Good luck! > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > It does Don, > Thanks very much. You see, what I can do is use an Access report/form or > whatever, which is scaled correctley for the actual v target and the use > the > PntScrn button on the keyboard, past it into Paint and save as a > jpeg. This > I can then drop onto the web page on, say, a weekly basis. > > I just need the code to generate the correct "picture" in Access so that > it > is accurate. > > So if target = 100% and equals ?100,000 and equals 4inches (4 x 1440 > twips) > > and > > we have raised ?20,000 to date then the corresponding bar is: > > Raised = ((20000/10000) * 100)=20% of 4inches (=5760 Twips) > 5760*(20/100)=1152 Twips > > Excel give me: =(4*1440)*((Raised/Target)*100)/100 > > Have I got this right or is there a better way of scaling it? > > > Ta very much > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 5:32 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > The way I did it was to establish a position on the page, bar width, and a > maximum bar height for the rectangles. If you have only two values to > compare (walked v target) just make the rectangle representing the target > the maximum size and whatever color you want it. Then you can superimpose > a > rectangle of a different color over the target, and set its height value > according to the ratio of walked to target. Just apply the same ratio to > the max height, set that as the height value, and redraw. Note that the > properties sheet expresses the rectangle's dimensions in inches, but your > code must use twips. 1 inch = 1440 twips, if my memory serves. I've also > done this by positioning different sized rectangles next to each other > when > I had more than two metrics to compare to the whole. > > Hope this helps . . . > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 9:00 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > I have never done this Don, > Can you Scale a range so that it, say, fits a given size and then, say, > colour the increasing element, say blue, and the bit still to go, say red? > > It would be a start. > Thanks > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don > [IT] > Sent: Friday, September 28, 2007 4:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: FW: Create a BarGram from data > > Max, > > Well, you probably already have this part figured out, but it's the only > part I have an idea about. I've created "bar charts" on Access reports > and > forms using retrieved values to describe the dimensions of rectangle > controls. But I suspect that your question is aimed more at creating the > graphic externally using Access data and moving it into your website, > presumably in an automated way. That's beyond my ken, for sure. I've > never > used Access pages, but maybe there's some potential there? > > Good luck . . . > > Don > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 8:33 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: FW: Create a BarGram from data > > Sorry for the repeat posting, but I have to try one more time to see if > anybody can help me with this. > Thanks > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 1:51 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Create a BarGram from data > > Hi folks, just re-posting this hoping that somebody will be able to help > me > out here. > Ta > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > max.wanadoo at gmail.com > Sent: Friday, September 28, 2007 6:38 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Create a BarGram from data > > Hi Folks, > I have to do something which I have never done before and would really > appreciate your help and feedback. > The charity I support is doing a charity walk and we need to have a guage > generated showing progress (something like you see on the side of a church > to show how the restoration fund for the new church roof is progressing). > > My Access tables will capture the MilesWalked v MilesTarget and > FundsRaised > v FundsTarget. > > Somehow I have to generate a "picture" of each from these values which I > can > then drop onto the web site as two graphics. > > I will need to "scale" the MilesWalked to the MilesTarget and create the > "picture" from that. > > And then do the same with the funds. A sort of Progress Bar thingie but > for > the web site. > > All input is captured into an MDB, but how on earth do I do the rest? > > Any help would be most appreciated. Evan a start point. > > Thanks > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From erbachs at gmail.com Fri Sep 28 18:39:43 2007 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 28 Sep 2007 18:39:43 -0500 Subject: [AccessD] SQL Server 2005 and Access 2003 interaction Message-ID: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> Dear Group, Is what I've heard correct: that the very nice Access-to-SQL Server connectivity ain't quite the same any more with SQL Server 2005? That is, coding stored procedures or creating tables from the Access interface, things like that? I'm hoping to be able to use Access 2003 to convert the queries contained in an Access application to views and sp's in SQL Server 2005. Am I going to be out of luck? Regards, Steve Erbach Neenah, WI From dwaters at usinternet.com Fri Sep 28 19:54:31 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 28 Sep 2007 19:54:31 -0500 Subject: [AccessD] SQL Server 2005 and Access 2003 interaction In-Reply-To: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> References: <39cb22f30709281639y5fab1d61j4006cbae3e0cbdcb@mail.gmail.com> Message-ID: <003b01c80233$4c529f90$0200a8c0@danwaters> Steve, SQL Server 2005 (Express) has a very nice separate application called SQL Server Management Studio (Express) for managing tables, view, sp's, etc. The Express version is a free download. To convert queries to view and sp's, can you use an upsizing wizard? MS has a new one called SQL Server Migration Assistant (SSMA) for Access. I think someone on this list has already used it. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Friday, September 28, 2007 6:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] SQL Server 2005 and Access 2003 interaction Dear Group, Is what I've heard correct: that the very nice Access-to-SQL Server connectivity ain't quite the same any more with SQL Server 2005? That is, coding stored procedures or creating tables from the Access interface, things like that? I'm hoping to be able to use Access 2003 to convert the queries contained in an Access application to views and sp's in SQL Server 2005. Am I going to be out of luck? Regards, Steve Erbach Neenah, WI -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Sep 28 16:49:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 29 Sep 2007 01:49:40 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> Message-ID: <004001c80219$794df810$6501a8c0@nant> Hi All, I wanted to note: I have seen somewhere an article about RegEx being considerably slower than a mere strings comparison etc. I cannot find this article now, can you? Here is a similar article on ColdFusion and Java (watch line wraps) - http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht m The info above should be also true for C#/VB.NET (just remember there are no miracles in this world)... John, this could be critical information for you because of your computers processing zillion gigabytes of data - if that slowness of RegEx vs. string comparison operation proves to be true then mere chars/strings comparison and simple iteration over source string's char array could be the most effective solution, which will save you hours and hours of computing time: - define a 256 bytes long table (I guess you use extended ASCII (256 chars max) only John - right?) with to be stripped out chars marked by 1; - define upperCase flag; - allocate destination string, which is as long as the source one - use StringBuilder; - iterate source string and use current char's ASCII code as an index of a cell of array mentioned above: a) if the array's cell has value > 0 then the source char should be stripped out/skipped; set uppercase flag = true; b) if the array's cell has zero value and uppercase flag = true then uppercase current source char and copy it to the destination StringBuilder's; set uppercase flag = false; c) if the array's cell has zero value and uppercase flag = false then lower case current source char and copy it to the destination StringBuilder's string; Here is C# code: private static string[] delimiters = " |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); private static byte[] sieve = new byte[255]; private static bool initialized = false; static void JamOutBadChars() { if (!initialized) { sieve.Initialize(); foreach (string delimiter in delimiters) { sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; } initialized = true; } string[] test = {"John colby ", "%idiotic_Field*name&!@", " # hey#hey#Hey,hello_world$%#", "@#$this#is_a_test_of_the-emergency-broadcast-system "}; foreach (string source in test) { StringBuilder result = new StringBuilder(source.Length); bool upperCase = true; foreach (char c in source.ToCharArray()) { if (sieve[(int)c] > 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } Console.WriteLine(source + " => {" + result + "}"); } } -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Friday, September 28, 2007 10:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi John, here is one way to do it (although there are many ways to get the same end result). Mind you this is air code but hopefully should be enough to get you going. You will need to create the main loop within your code. Create a list of all delimiters that are used in your CSV files such as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' then run through your CSV files line by line evaluating the line saving the line into an array thisarray = Split(line, delimiters) then run through the array performing a Ucase on the first letter of each word newline = "" For item=1 to ubound newline = newline & whatEverToCapFirstChar(item) Next item where ubound is the array size Now here are two scripts that do the same thing, one is Perl and the other is TCL. Both of these languages are open source and free and can be gotten at http://www.activestate.com/Products/languages.plex Perl: my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; my @test = ("John colby", "%idiotic_Field*name", "hey#hey#Hey,hello_world", "this#is_a_test_of_the-emergency-broadcast-system"); foreach my $item (@test) { my $temp = ""; my @list = split ($delimiters, $item); foreach my $thing (@list) { $temp .= ucfirst($thing); } print "$temp\n"; } Result d:\Perl>pascalcase.pl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem TCL: set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} {this#is_a_test_of_the-emergency-broadcast-system}] foreach item $test { set str "" set mylist [split $item, $delimiters] foreach thing $mylist { set s [string totitle $thing] set str "$str$s" } puts $str } Results D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem hth, Mike... > Folks, > > I am looking for a regex expression (preferably with explanation) for > taking > an expression and creating a camel case (or PascalCase) expression. > > I get CSV files with headers in them. All too often the eejits that > created > the databases they came from used embedded spaces or other special use > characters (!@#$%^&* etc) in their field names. I need to strip these > special characters out completely. I also need to upper case the valid > alpha character that follows any of these special characters. > > John colby becomes JohnColby > %idiotic_Field*name becomes IdioticFieldName > > Etc. > > It appears that Regex is the key (I am doing this in VB.Net) but until > today > I have never really tried to use RegEx and it ain't pretty! > > Any help in this would be much appreciated. > > 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 fuller.artful at gmail.com Fri Sep 28 21:30:19 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 28 Sep 2007 19:30:19 -0700 (PDT) Subject: [AccessD] Invitation to connect on LinkedIn Message-ID: <928531235.1191033019322.JavaMail.app@com03.prod> Access, I'd like to add you to my professional network on LinkedIn. -Arthur Learn more: https://www.linkedin.com/e/isd/145190009/aKZxC6jd/ ------------------------------------------ "Increasingly, if you're not LinkedIn, you're left out." --Business 2.0 ------ (c) 2007, LinkedIn Corporation From shamil at users.mns.ru Sat Sep 29 02:50:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 29 Sep 2007 11:50:59 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <4544.24.35.45.228.1191016512.squirrel@mail.expedient.net> Message-ID: <000601c8026d$79cb5a40$6501a8c0@nant> Hi All, Here is some more weekend coding for the subject task: two different not-RegEx based strategies, which result in about 3 times execution time difference: Project -> Build -> Allow Unsafe Code Project -> Build -> Optimize Code // 1st case - not optimized by C# compiler code + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 11:26:21 - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 11:26:50 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 11:26:50 - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 11:26:59 // 2nd case - optimized by C# compiler code + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 11:29:47 - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 11:30:15 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 11:30:15 - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 11:30:22 And here is the code (watch line wraps for string constants! All the rest wrapped code lines should be OK because of semicolon and curved brackets used in C# - another advantage of posting C# code): To run it from VS IDE set: Project -> Build -> Allow Unsafe Code Project -> Build -> Optimize Code If anybody has time to write and test run RegEx equivalent or any other variants of "strings jamming/camel casing" code that would be very interesting to see here - I'd not get surprised if there could be even more speedy ways to jam strings without switching to C++ and assembler. And my current hypothesis based on the article I referenced here yesterday is that RegEx should run (considerably) slower: it would be great if this hypothesis will fail. Thanks. ------ cut here ---- using System; using System.Collections.Generic; using System.Text; namespace StringJammerTestConsoleApplication { /// /// StringJammer abstract class /// public abstract class StringJammer { protected static byte[] sieve = new byte[255]; protected void Init() { sieve.Initialize(); for (int i = (int)'A'; i <= (int)'Z'; i++) sieve[i] = 1; for (int i = (int)'a'; i <= (int)'z'; i++) sieve[i] = 1; } public abstract void Jam(ref string stringToJam); } /// /// StringJammer1 class - first string jamming strategy /// public class StringJammer1 : StringJammer { public StringJammer1() { Init(); } public override void Jam(ref string stringToJam) { StringBuilder result = new StringBuilder(stringToJam.Length); bool upperCase = true; foreach (char c in stringToJam.ToCharArray()) { if (sieve[(int)c] == 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } stringToJam = result.ToString().Trim(); } } /// /// StringJammer2 class - second string jamming strategy /// public class StringJammer2 : StringJammer { public StringJammer2() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { if (sieve[c[i]] == 0) { c[i++] = ' '; upperCase = true; } else if (upperCase) { c[j++] = Char.ToUpper(c[i++]); upperCase = false; } else { c[j++] = Char.ToLower(c[i++]); } } while (j < stringToJam.Length) c[j++] = ' '; } stringToJam = stringToJam.Trim(); } } } /// /// Test /// class Program { static void Main(string[] args) { const long MAX_CYCLES = 1000000; string[] test = {"John colby ", "%idiotic_Field*name&!@", " # hey#hey#Hey,hello_world$%#", "@#$this#is_a_test_of_the-emergency-broadcast-system $()# "}; StringJammer[] jummers = { new StringJammer1(), new StringJammer2() }; for (int k = 0; k < jummers.Length; k++) { long cyclesQty = MAX_CYCLES; Console.WriteLine("+ {0} {1:D} cycles started at {2}", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); while (cyclesQty > 0) { for (int i = 0; i < test.Length; i++) { string result = new StringBuilder(test[i]).ToString(); jummers[k].Jam(ref result); if (cyclesQty == MAX_CYCLES) { Console.WriteLine(test[i] + " => {" + result + "}"); } } --cyclesQty; } Console.WriteLine("- {0} {1:D} cycles finished at {2}\n", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); } } } } ------ cut here ---- -- Shamil >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> From jedi at charm.net Sat Sep 29 21:33:54 2007 From: jedi at charm.net (Michael Bahr) Date: Sat, 29 Sep 2007 22:33:54 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <006d01c80203$68689160$6c7aa8c0@M90> References: <005801c80134$f60b9320$6c7aa8c0@M90> <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <006d01c80203$68689160$6c7aa8c0@M90> Message-ID: <1393.24.35.45.228.1191119634.squirrel@mail.expedient.net> > Michael, > > The problem with doing this is that each object has to be examined > character > by character, EVERY line. In this specific case I could certainly do this > however I am under the impression that RegEx is optimized to do this kind > of > thing. Kind of the difference between a similar function to look at every > character and remove it if it matches something and using the replace to > remove a character. Replace is written in a highly optimized (perhaps even > in assembler) whereas the "loop and search" is not optimized at all. > > > > > John 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 Bahr > Sent: Friday, September 28, 2007 2:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough > to get you going. You will need to create the main loop within your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the > line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten > at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} > {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need to >> strip these special characters out completely. I also need to upper >> case the valid alpha character that follows any of these special >> characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 jedi at charm.net Sat Sep 29 21:41:50 2007 From: jedi at charm.net (Michael Bahr) Date: Sat, 29 Sep 2007 22:41:50 -0400 (EDT) Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <004001c80219$794df810$6501a8c0@nant> References: <43974.198.118.127.182.1191003886.squirrel@mail.expedient.net> <004001c80219$794df810$6501a8c0@nant> Message-ID: <1402.24.35.45.228.1191120110.squirrel@mail.expedient.net> Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find this > article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there are > no > miracles in this world)... > > John, this could be critical information for you because of your computers > processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings comparison > and simple iteration over source string's char array could be the most > effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - use > StringBuilder; > - iterate source string and use current char's ASCII code as an index of a > cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should be > stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true then > uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false then > lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; > private static bool initialized = false; > static void JamOutBadChars() > { > if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); > } > } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough to get you going. You will need to create the main loop within > your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the line into an array > thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word > newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) > Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten at > http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} > set test [list {John colby} {%idiotic_Field*name} > {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking >> an expression and creating a camel case (or PascalCase) expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created >> the databases they came from used embedded spaces or other special use >> characters (!@#$%^&* etc) in their field names. I need to strip these >> special characters out completely. I also need to upper case the valid >> alpha character that follows any of these special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today >> I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 shamil at users.mns.ru Sun Sep 30 03:01:03 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 30 Sep 2007 12:01:03 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <1402.24.35.45.228.1191120110.squirrel@mail.expedient.net> Message-ID: <003901c80338$0c3f5c30$6501a8c0@nant> <<< However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. >>> Hi Mike, That's clear, and the John's task is to get the speediest solution. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Sunday, September 30, 2007 6:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find this > article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there are > no > miracles in this world)... > > John, this could be critical information for you because of your computers > processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings comparison > and simple iteration over source string's char array could be the most > effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - use > StringBuilder; > - iterate source string and use current char's ASCII code as an index of a > cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should be > stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true then > uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false then > lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; > private static bool initialized = false; > static void JamOutBadChars() > { > if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); > } > } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get the > same end result). Mind you this is air code but hopefully should be > enough to get you going. You will need to create the main loop within > your code. > > Create a list of all delimiters that are used in your CSV files such as > delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line saving > the line into an array > thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of each > word > newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) > Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the other > is TCL. Both of these languages are open source and free and can be > gotten at > http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} > set test [list {John colby} {%idiotic_Field*name} > {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking >> an expression and creating a camel case (or PascalCase) expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created >> the databases they came from used embedded spaces or other special use >> characters (!@#$%^&* etc) in their field names. I need to strip these >> special characters out completely. I also need to upper case the valid >> alpha character that follows any of these special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but until >> today >> I have never really tried to use RegEx and it ain't pretty! >> >> Any help in this would be much appreciated. >> >> 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 max.wanadoo at gmail.com Sun Sep 30 03:52:58 2007 From: max.wanadoo at gmail.com (max.wanadoo at gmail.com) Date: Sun, 30 Sep 2007 09:52:58 +0100 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <003901c80338$0c3f5c30$6501a8c0@nant> Message-ID: <000301c8033f$4db48bc0$8119fea9@LTVM> Hi Shamil, Clearly your compiled solution is by way and far the quickest solution. I have tried all sorts of VBA solutions including looking at XOR, IMP, EQV, bitwise solutions, but there overheads were considerable. The best I can come up with in VBA is below. One million iterations on my Dell Inspiron comes in at 3 min 52 secs. If John didn't want to Hump it, then RegExpr appears to be the answer within pure VBA Max Function dbc2() Const conGoodChars As String = "abcdefghijklmnopqrstuvwxyz" ' valid characters Const conBadChars As String = "?$%^&*()_-+@'#~?><|\, " ' space also in this string Const conLoops As Long = 1000000 Dim tStartTime As Date, tEndTime As Date, tLapsedTime As Date, iLoop As Long, iVars As Integer, iVarLoop As Integer Dim iLen As Integer, strTemp As String, bFlipCase As Boolean, str2Parse As String, strResult As String, strBit As String Dim varStr(5) varStr(1) = "John colby " varStr(2) = "%idiotic_Field*name&!@" varStr(3) = " # hey#hey#Hey,hello_world$%#" varStr(4) = "@#$this#is_a_test_of_the-emerGency-broadcast-system" varStr(5) = "thisisastringwithnobadchars" iVars = 5 tStartTime = Now For iLoop = 1 To conLoops For iVarLoop = 1 To iVars strResult = "" str2Parse = LCase(varStr(iVarLoop)) str2Parse = UCase(Left(str2Parse, 1)) & Mid(str2Parse, 2) For iLen = 1 To Len(str2Parse) strBit = Mid(str2Parse, iLen, 1) If InStr(conBadChars, strBit) = 0 Then If bFlipCase = True Then strBit = UCase(strBit): bFlipCase = False strResult = strResult & strBit Else bFlipCase = True End If Next iLen 'Debug.Print strResult Next iVarLoop Next iLoop tEndTime = Now tLapsedTime = tEndTime - tStartTime MsgBox tLapsedTime: Debug.Print tLapsedTime End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, September 30, 2007 9:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case <<< However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. >>> Hi Mike, That's clear, and the John's task is to get the speediest solution. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Sunday, September 30, 2007 6:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, yes regex's are slower in .Net due to I believe all the objects overhead. For simple string operations regexes would probrably not be effiecent BUT would be easier to write. However for more complicated string operations like validating an email address, a regex would be very suitable and doable in one line vs. many, many lines the other way. Mike... > Hi All, > > I wanted to note: I have seen somewhere an article about RegEx being > considerably slower than a mere strings comparison etc. I cannot find > this article now, can you? > > Here is a similar article on ColdFusion and Java (watch line wraps) - > > http://www.bennadel.com/blog/410-Regular-Expression-Finds-vs-String-Finds.ht > m > > The info above should be also true for C#/VB.NET (just remember there > are no miracles in this world)... > > John, this could be critical information for you because of your > computers processing zillion gigabytes of data - if that slowness of RegEx vs. > string > comparison operation proves to be true then mere chars/strings > comparison and simple iteration over source string's char array could > be the most effective solution, which will save you hours and hours of computing time: > > - define a 256 bytes long table (I guess you use extended ASCII (256 > chars > max) only John - right?) with to be stripped out chars marked by 1; > - define upperCase flag; > - allocate destination string, which is as long as the source one - > use StringBuilder; > - iterate source string and use current char's ASCII code as an index > of a cell of array mentioned above: > a) if the array's cell has value > 0 then the source char should > be stripped out/skipped; set uppercase flag = true; > b) if the array's cell has zero value and uppercase flag = true > then uppercase current source char and copy it to the destination > StringBuilder's; set uppercase flag = false; > c) if the array's cell has zero value and uppercase flag = false > then lower case current source char and copy it to the destination > StringBuilder's string; > > > Here is C# code: > > > private static string[] delimiters = " > |%|*|$|@|!|#|&|^|_|-|,|.|;|:|(|)".Split('|'); > private static byte[] sieve = new byte[255]; private static bool > initialized = false; static void JamOutBadChars() { if (!initialized) > { > sieve.Initialize(); > foreach (string delimiter in delimiters) > { > sieve[(int)delimiter.Substring(0, 1).ToCharArray()[0]] = 1; > } > initialized = true; > } > string[] test = {"John colby ", > "%idiotic_Field*name&!@", > " # hey#hey#Hey,hello_world$%#", > "@#$this#is_a_test_of_the-emergency-broadcast-system "}; > > foreach (string source in test) > { > StringBuilder result = new StringBuilder(source.Length); > bool upperCase = true; > foreach (char c in source.ToCharArray()) > { > if (sieve[(int)c] > 0) upperCase = true; > else if (upperCase) > { > result.Append(c.ToString().ToUpper()); > upperCase = false; > } > else result.Append(c.ToString().ToLower()); > } > Console.WriteLine(source + " => {" + result + "}"); } } > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Bahr > Sent: Friday, September 28, 2007 10:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Use Regex - Create Camel Case > > Hi John, here is one way to do it (although there are many ways to get > the same end result). Mind you this is air code but hopefully should > be enough to get you going. You will need to create the main loop > within your code. > > Create a list of all delimiters that are used in your CSV files such > as delimiters = '%|*|$|@|!|#|&|^|_|-|,|.|;|:| ' > > then run through your CSV files line by line evaluating the line > saving the line into an array thisarray = Split(line, delimiters) > > then run through the array performing a Ucase on the first letter of > each word newline = "" > For item=1 to ubound > newline = newline & whatEverToCapFirstChar(item) Next item > > where ubound is the array size > > > Now here are two scripts that do the same thing, one is Perl and the > other is TCL. Both of these languages are open source and free and > can be gotten at http://www.activestate.com/Products/languages.plex > > Perl: > > my $delimiters = '/:| |\%|\*|\$|\@|\!|\#|\&|^|_|-|,|\./'; > my @test = ("John colby", > "%idiotic_Field*name", > "hey#hey#Hey,hello_world", > "this#is_a_test_of_the-emergency-broadcast-system"); > > foreach my $item (@test) { > my $temp = ""; > my @list = split ($delimiters, $item); > foreach my $thing (@list) { > $temp .= ucfirst($thing); > } > print "$temp\n"; > > } > > Result > d:\Perl>pascalcase.pl > JohnColby > IdioticFieldName > HeyHeyHeyHelloWorld > ThisIsATestOfTheEmergencyBroadcastSystem > > TCL: > > set delimiters {%|*|$|@|!|#|&|^|_|-|,|.|;|:|\ "} set test [list {John > colby} {%idiotic_Field*name} {hey#hey#Hey,hello_world} > {this#is_a_test_of_the-emergency-broadcast-system}] > > > foreach item $test { > set str "" > set mylist [split $item, $delimiters] > foreach thing $mylist { > set s [string totitle $thing] > set str "$str$s" > } > puts $str > > } > > Results > D:\VisualTcl\Projects>tclsh pascalcase.tcl JohnColby IdioticFieldName > HeyHeyHeyHelloWorld ThisIsATestOfTheEmergencyBroadcastSystem > > > hth, Mike... > > >> Folks, >> >> I am looking for a regex expression (preferably with explanation) for >> taking an expression and creating a camel case (or PascalCase) >> expression. >> >> I get CSV files with headers in them. All too often the eejits that >> created the databases they came from used embedded spaces or other >> special use characters (!@#$%^&* etc) in their field names. I need >> to strip these special characters out completely. I also need to >> upper case the valid alpha character that follows any of these >> special characters. >> >> John colby becomes JohnColby >> %idiotic_Field*name becomes IdioticFieldName >> >> Etc. >> >> It appears that Regex is the key (I am doing this in VB.Net) but >> until today I have never really tried to use RegEx and it ain't >> pretty! >> >> Any help in this would be much appreciated. >> >> 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 shamil at users.mns.ru Sun Sep 30 08:43:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 30 Sep 2007 17:43:01 +0400 Subject: [AccessD] Use Regex - Create Camel Case In-Reply-To: <000301c8033f$4db48bc0$8119fea9@LTVM> Message-ID: <001801c80367$d1ceb980$6501a8c0@nant> Hi Max, I have programmed some more string jamming strategies, code is below. It?s interesting to note that the most obvious programming (StringJammer4), which assumes that only alphabetic chars should be left and all the other should be stripped out, is running as quick as the most generic one (StringJammer3), which can use whatever set will be defined as the set of the chars to be left in the result string. It?s also interesting to note that when millions iterations are ?at stake? then very subtle code differences can result in clearly visible/countable time execution gains, e.g. checking that a char is in uppercase and NOT calling ToUpper function works about 1 second faster on one million iterations than the code, which just always calls ToUpper function. I expect that the most generic solution (StringJammer3) can be made even faster without going to C++ or Assmebler if somehow implement it using inline coding instead of delegate function calls ? of course this generic solution has to be considerably refactored to achieve this goal: the gain I?d expect could be about 2 sec for one million iterations (it?s about 4 sec now). From practical point of view this gain looks very small(?) to take into account but such kind of ?manual coding optimization exercises? are rather valuable to polish programming skills. Your VBA code runs here 3 min 24 seconds under MS Access VBA IDE for the same set of the test strings, which is used in the below C# code: - 4 sec vs. 204 sec. (3 min. 24 sec.) => 51 times quicker Shamil P.S. the code: using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace StringJammerTestConsoleApplication { /// /// StringJammer abstract class /// public unsafe abstract class StringJammer { protected static byte[] sieve = new byte[256]; protected void Init() { sieve.Initialize(); for (uint i = (int)'A'; i <= (int)'Z'; i++) sieve[i] = 1; for (uint i = (int)'a'; i <= (int)'z'; i++) sieve[i] = 1; copyProcs.Initialize(); for (int i = 0; i < copyProcs.Length; i++) { if ((i >= (int)'A') && (i <= (int)'Z') || (i >= (int)'a') && (i <= (int)'z')) copyProcs[i] = copyChar; else copyProcs[i] = dummyCopyChar; } } public abstract void Jam(ref string stringToJam); protected static copyCharDelegate[] copyProcs = new copyCharDelegate[256]; protected delegate void copyCharDelegate(char* c, ref int i, ref int j, ref bool upperCase); protected static void copyChar(char* c, ref int i, ref int j, ref bool upperCase) { Char cc = c[i++]; if (upperCase) { if (Char.IsUpper(cc)) c[j++] = cc; else c[j++] = Char.ToUpper(cc); upperCase = false; } else { if (char.IsLower(cc)) c[j++] = cc; else c[j++] = Char.ToLower(cc); } } protected static void dummyCopyChar(char* c, ref int i, ref int j, ref bool upperCase) { c[i++] = Char.MinValue; if (!upperCase ) upperCase = true; } } /// /// StringJammer1 class - first string jamming strategy /// public class StringJammer1 : StringJammer { public StringJammer1() { Init(); } public override void Jam(ref string stringToJam) { StringBuilder result = new StringBuilder(stringToJam.Length); bool upperCase = true; foreach (char c in stringToJam.ToCharArray()) { if (sieve[(int)c] == 0) upperCase = true; else if (upperCase) { result.Append(c.ToString().ToUpper()); upperCase = false; } else result.Append(c.ToString().ToLower()); } stringToJam = result.ToString().Trim(); } } /// /// StringJammer2 class - second string jamming strategy /// public class StringJammer2 : StringJammer { public StringJammer2() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { if (sieve[c[i]] == 0) { c[i++] = ' '; upperCase = true; } else if (upperCase) { c[j++] = Char.ToUpper(c[i++]); upperCase = false; } else { c[j++] = Char.ToLower(c[i++]); } } while (j < stringToJam.Length) c[j++] = ' '; } stringToJam = stringToJam.Trim(); } } } /// /// StringJammer3 class - third string jamming strategy /// public class StringJammer3 : StringJammer { public StringJammer3() { Init(); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) copyProcs[c[i]](c, ref i, ref j, ref upperCase); while (j < stringToJam.Length) c[j++] = Char.MinValue; } stringToJam = stringToJam.Trim(Char.MinValue); } } } /// /// StringJammer4 class - fourth string jamming strategy /// public class StringJammer4 : StringJammer { public StringJammer4() { Init(); } private bool isNotJammable(char c) { return Char.IsLetter(c); } public override void Jam(ref string stringToJam) { unsafe { fixed (char* c = stringToJam) { bool upperCase = true; int i = 0, j = 0; while (i < stringToJam.Length) { char cc = c[i++]; //if (Char.IsLetter(cc)) if (isNotJammable(cc)) { if (upperCase) { if (Char.IsUpper(cc)) c[j++] = cc; else c[j++] = Char.ToUpper(cc); upperCase = false; } else { if (Char.IsLower(cc)) c[j++] = cc; else c[j++] = Char.ToLower(cc); } } else upperCase = true; } while (j < stringToJam.Length) c[j++] = Char.MinValue; } stringToJam = stringToJam.Trim(Char.MinValue); } } } /// /// Test /// class Program { static void Main(string[] args) { const long MAX_CYCLES = 1000000; string[] test = { " # hey#hey#Hey,hello_world$%#=======", "@#$this#is_a_test_of_the-emer=======", "gency-broadcast-system $()# " }; StringJammer[] jummers = { new StringJammer1(), new StringJammer2(), new StringJammer3(), new StringJammer4() }; for (int k = 0; k < jummers.Length; k++) { long cyclesQty = MAX_CYCLES; Console.WriteLine("+ {0}\n {1:D} cycles started at {2}", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); while (cyclesQty > 0) { for (int i = 0; i < test.Length; i++) { string result = new StringBuilder(test[i]).ToString(); jummers[k].Jam(ref result); if (cyclesQty == MAX_CYCLES) { Console.WriteLine(test[i] + " => {" + result + "}"); } } --cyclesQty; } Console.WriteLine("- {0}\n {1:D} cycles finished at {2}\n", jummers[k].GetType().ToString(), MAX_CYCLES, DateTime.Now.ToLongTimeString()); } Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } } + StringJammerTestConsoleApplication.StringJammer1 1000000 cycles started at 13:09:56 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer1 1000000 cycles finished at 13:10:15 + StringJammerTestConsoleApplication.StringJammer2 1000000 cycles started at 13:10:15 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer2 1000000 cycles finished at 13:10:21 + StringJammerTestConsoleApplication.StringJammer3 1000000 cycles started at 13:10:21 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer3 1000000 cycles finished at 13:10:25 + StringJammerTestConsoleApplication.StringJammer4 1000000 cycles started at 13:10:25 # hey#hey#Hey,hello_world$%#======= => {HeyHeyHeyHelloWorld} @#$this#is_a_test_of_the-emer======= => {ThisIsATestOfTheEmer} gency-broadcast-system $()# => {GencyBroadcastSystem} - StringJammerTestConsoleApplication.StringJammer4 1000000 cycles finished at 13:10:29 -- Shamil -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of max.wanadoo at gmail.com Sent: Sunday, September 30, 2007 12:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Use Regex - Create Camel Case Hi Shamil, Clearly your compiled solution is by way and far the quickest solution. I have tried all sorts of VBA solutions including looking at XOR, IMP, EQV, bitwise solutions, but there overheads were considerable. The best I can come up with in VBA is below. One million iterations on my Dell Inspiron comes in at 3 min 52 secs. If John didn't want to Hump it, then RegExpr appears to be the answer within pure VBA Max <<>> From fuller.artful at gmail.com Sun Sep 30 09:08:18 2007 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 30 Sep 2007 10:08:18 -0400 Subject: [AccessD] Totals on a crosstab query Message-ID: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.com> The xtab in question lists horses on the rows and lesson types on the columns (i.e. private, semi-private, group), then populates the columns with counts for the number of lessons per horse per lesson type. No problem so far. But the specs call for vertical totals of the columns, and I cannot figure out how to do them with the xtab wizard. What I need is a sum of each of the columns to be presented as the bottom row (i.e sum of private, semi-private and group columns, including all horses). Any suggestions gratefully accepted. Arthur From dajomigo at dgsolutions.net.au Sun Sep 30 18:13:02 2007 From: dajomigo at dgsolutions.net.au (David and Joanne Gould) Date: Mon, 01 Oct 2007 09:13:02 +1000 Subject: [AccessD] Access runtime In-Reply-To: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.co m> References: <29f585dd0709300708i192982d9v426188a44db3fdb3@mail.gmail.com> Message-ID: <7.0.0.16.2.20071001091010.02392bb0@dgsolutions.net.au> I have a client who has staff that may not be able to run Access on their computers or install any programs to their computers. Does a runtime version need to be installed or can it run off a memory stick? The database is being created in Access 2003. TIA David