From carbonnb at gmail.com Thu Dec 30 08:50:48 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:50:48 -0500 Subject: [AccessD] Test Message-ID: Just checking to see if we are back up and running. -- 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 listmaster at databaseadvisors.com Thu Dec 30 08:59:57 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:59:57 -0500 Subject: [AccessD] Administrivia - Server Upgrade - UPDATE - Dec 30 @ 0955 Message-ID: Good Morning folks, I hope you didn't suffer too many withdrawals from not having your favourite lists yesterday and this morning. The Server upgrade was a challenge to say the least. A Royal PITA to say it closer to what it really was. There are still lots of things to work out, like putting the archives back online. Have no fear, your words of wisdom are being archived (for those lists that have archiving turned on), but the archives aren't available yet. The main goal was to get the lists back up and running, which it appears they are. If you encounter any abnormalities, please let me know ASAP so I can look into it. Things will slowly become normal again over the remainder of the week. Thanks for your patience. during the upgrade. -- Bryan Carbonnell - listmaster at databaseadvisors.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 30 08:18:34 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:18:34 -0500 Subject: [AccessD] Testing In-Reply-To: References: Message-ID: Just checking to see if we are back up and configured correctly -- 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 shamil at smsconsulting.spb.ru Thu Dec 30 10:39:57 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 30 Dec 2010 19:39:57 +0300 Subject: [AccessD] Test In-Reply-To: References: Message-ID: <5F8B5059BCBF47EC8B86D25EE33F2CE2@nant> Hi Bryan -- Yes, it works! Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 30 ??????? 2010 ?. 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking to see if we are back up and running. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 11:21:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 09:21:10 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Message-ID: Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From davidmcafee at gmail.com Thu Dec 30 11:56:00 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 30 Dec 2010 09:56:00 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Dec 30 12:01:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:01:21 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I just converted the A2K3 mdb to A2K7 accdb to see if it would make a difference but got the same behavior. The txt box descriptions below, BTW, did not get formatted well. This might be easier to read: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 12:16:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:16:12 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Dec 30 12:33:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 13:33:43 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Dec 30 12:44:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:44:07 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Dec 30 13:07:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Dec 2010 14:07:58 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: <4D1CD88E.4080106@colbyconsulting.com> LOL, yea, Office 2007 is causing this. But you knew that I suppose. ;) The nice part is that they have pretty tool bars to look at when they can't see the actual data for the application. I KNEW those tool bars would be good for SOMETHING!!! John W. Colby www.ColbyConsulting.com On 12/30/2010 12:21 PM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > From Lambert.Heenan at chartisinsurance.com Thu Dec 30 15:33:56 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 16:33:56 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Yay! Something works in Access 2007! Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 smsconsulting.spb.ru Fri Dec 31 06:13:44 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 31 Dec 2010 15:13:44 +0300 Subject: [AccessD] Ded Moroz sends you links on sample projects... :) Message-ID: <88C8330964FC47F7A753561E66B42346@nant> Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Fri Dec 31 09:32:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 10:32:52 -0500 Subject: [AccessD] Ya know they tell ya to remove power... Message-ID: <4D1DF7A4.5070308@colbyconsulting.com> A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com From robert at servicexp.com Fri Dec 31 13:19:40 2010 From: robert at servicexp.com (Robert) Date: Fri, 31 Dec 2010 14:19:40 -0500 Subject: [AccessD] Ya know they tell ya to remove power... In-Reply-To: <4D1DF7A4.5070308@colbyconsulting.com> References: <4D1DF7A4.5070308@colbyconsulting.com> Message-ID: <001301cba91f$af2774b0$0d765e10$@com> I just love stories with happy endings.... :-) especially at the end of the year. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 31, 2010 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Ya know they tell ya to remove power... A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 20:56:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 21:56:06 -0500 Subject: [AccessD] Happy new year Message-ID: <4D1E97C6.3060000@colbyconsulting.com> To all our members around the world, may the new year be a good one. I am about to go down stairs and watch a movie with my wife, and ring in the new year with a glass of sparkling cider. If you party, do so with restraint. This is a particularly dangerous night to be out on the roads. Happy new year. -- John W. Colby www.ColbyConsulting.com From carbonnb at gmail.com Thu Dec 30 08:50:48 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:50:48 -0500 Subject: [AccessD] Test Message-ID: Just checking to see if we are back up and running. -- 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 listmaster at databaseadvisors.com Thu Dec 30 08:59:57 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:59:57 -0500 Subject: [AccessD] Administrivia - Server Upgrade - UPDATE - Dec 30 @ 0955 Message-ID: Good Morning folks, I hope you didn't suffer too many withdrawals from not having your favourite lists yesterday and this morning. The Server upgrade was a challenge to say the least. A Royal PITA to say it closer to what it really was. There are still lots of things to work out, like putting the archives back online. Have no fear, your words of wisdom are being archived (for those lists that have archiving turned on), but the archives aren't available yet. The main goal was to get the lists back up and running, which it appears they are. If you encounter any abnormalities, please let me know ASAP so I can look into it. Things will slowly become normal again over the remainder of the week. Thanks for your patience. during the upgrade. -- Bryan Carbonnell - listmaster at databaseadvisors.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 30 08:18:34 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:18:34 -0500 Subject: [AccessD] Testing In-Reply-To: References: Message-ID: Just checking to see if we are back up and configured correctly -- 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 shamil at smsconsulting.spb.ru Thu Dec 30 10:39:57 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 30 Dec 2010 19:39:57 +0300 Subject: [AccessD] Test In-Reply-To: References: Message-ID: <5F8B5059BCBF47EC8B86D25EE33F2CE2@nant> Hi Bryan -- Yes, it works! Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 30 ??????? 2010 ?. 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking to see if we are back up and running. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 11:21:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 09:21:10 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Message-ID: Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From davidmcafee at gmail.com Thu Dec 30 11:56:00 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 30 Dec 2010 09:56:00 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Dec 30 12:01:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:01:21 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I just converted the A2K3 mdb to A2K7 accdb to see if it would make a difference but got the same behavior. The txt box descriptions below, BTW, did not get formatted well. This might be easier to read: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 12:16:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:16:12 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Dec 30 12:33:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 13:33:43 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Dec 30 12:44:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:44:07 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Dec 30 13:07:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Dec 2010 14:07:58 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: <4D1CD88E.4080106@colbyconsulting.com> LOL, yea, Office 2007 is causing this. But you knew that I suppose. ;) The nice part is that they have pretty tool bars to look at when they can't see the actual data for the application. I KNEW those tool bars would be good for SOMETHING!!! John W. Colby www.ColbyConsulting.com On 12/30/2010 12:21 PM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > From Lambert.Heenan at chartisinsurance.com Thu Dec 30 15:33:56 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 16:33:56 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Yay! Something works in Access 2007! Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 smsconsulting.spb.ru Fri Dec 31 06:13:44 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 31 Dec 2010 15:13:44 +0300 Subject: [AccessD] Ded Moroz sends you links on sample projects... :) Message-ID: <88C8330964FC47F7A753561E66B42346@nant> Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Fri Dec 31 09:32:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 10:32:52 -0500 Subject: [AccessD] Ya know they tell ya to remove power... Message-ID: <4D1DF7A4.5070308@colbyconsulting.com> A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com From robert at servicexp.com Fri Dec 31 13:19:40 2010 From: robert at servicexp.com (Robert) Date: Fri, 31 Dec 2010 14:19:40 -0500 Subject: [AccessD] Ya know they tell ya to remove power... In-Reply-To: <4D1DF7A4.5070308@colbyconsulting.com> References: <4D1DF7A4.5070308@colbyconsulting.com> Message-ID: <001301cba91f$af2774b0$0d765e10$@com> I just love stories with happy endings.... :-) especially at the end of the year. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 31, 2010 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Ya know they tell ya to remove power... A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 20:56:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 21:56:06 -0500 Subject: [AccessD] Happy new year Message-ID: <4D1E97C6.3060000@colbyconsulting.com> To all our members around the world, may the new year be a good one. I am about to go down stairs and watch a movie with my wife, and ring in the new year with a glass of sparkling cider. If you party, do so with restraint. This is a particularly dangerous night to be out on the roads. Happy new year. -- John W. Colby www.ColbyConsulting.com From carbonnb at gmail.com Thu Dec 30 08:50:48 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:50:48 -0500 Subject: [AccessD] Test Message-ID: Just checking to see if we are back up and running. -- 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 listmaster at databaseadvisors.com Thu Dec 30 08:59:57 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:59:57 -0500 Subject: [AccessD] Administrivia - Server Upgrade - UPDATE - Dec 30 @ 0955 Message-ID: Good Morning folks, I hope you didn't suffer too many withdrawals from not having your favourite lists yesterday and this morning. The Server upgrade was a challenge to say the least. A Royal PITA to say it closer to what it really was. There are still lots of things to work out, like putting the archives back online. Have no fear, your words of wisdom are being archived (for those lists that have archiving turned on), but the archives aren't available yet. The main goal was to get the lists back up and running, which it appears they are. If you encounter any abnormalities, please let me know ASAP so I can look into it. Things will slowly become normal again over the remainder of the week. Thanks for your patience. during the upgrade. -- Bryan Carbonnell - listmaster at databaseadvisors.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 30 08:18:34 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:18:34 -0500 Subject: [AccessD] Testing In-Reply-To: References: Message-ID: Just checking to see if we are back up and configured correctly -- 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 shamil at smsconsulting.spb.ru Thu Dec 30 10:39:57 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 30 Dec 2010 19:39:57 +0300 Subject: [AccessD] Test In-Reply-To: References: Message-ID: <5F8B5059BCBF47EC8B86D25EE33F2CE2@nant> Hi Bryan -- Yes, it works! Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 30 ??????? 2010 ?. 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking to see if we are back up and running. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 11:21:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 09:21:10 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Message-ID: Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From davidmcafee at gmail.com Thu Dec 30 11:56:00 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 30 Dec 2010 09:56:00 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Dec 30 12:01:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:01:21 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I just converted the A2K3 mdb to A2K7 accdb to see if it would make a difference but got the same behavior. The txt box descriptions below, BTW, did not get formatted well. This might be easier to read: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 12:16:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:16:12 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Dec 30 12:33:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 13:33:43 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Dec 30 12:44:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:44:07 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Dec 30 13:07:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Dec 2010 14:07:58 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: <4D1CD88E.4080106@colbyconsulting.com> LOL, yea, Office 2007 is causing this. But you knew that I suppose. ;) The nice part is that they have pretty tool bars to look at when they can't see the actual data for the application. I KNEW those tool bars would be good for SOMETHING!!! John W. Colby www.ColbyConsulting.com On 12/30/2010 12:21 PM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > From Lambert.Heenan at chartisinsurance.com Thu Dec 30 15:33:56 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 16:33:56 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Yay! Something works in Access 2007! Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 smsconsulting.spb.ru Fri Dec 31 06:13:44 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 31 Dec 2010 15:13:44 +0300 Subject: [AccessD] Ded Moroz sends you links on sample projects... :) Message-ID: <88C8330964FC47F7A753561E66B42346@nant> Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Fri Dec 31 09:32:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 10:32:52 -0500 Subject: [AccessD] Ya know they tell ya to remove power... Message-ID: <4D1DF7A4.5070308@colbyconsulting.com> A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com From robert at servicexp.com Fri Dec 31 13:19:40 2010 From: robert at servicexp.com (Robert) Date: Fri, 31 Dec 2010 14:19:40 -0500 Subject: [AccessD] Ya know they tell ya to remove power... In-Reply-To: <4D1DF7A4.5070308@colbyconsulting.com> References: <4D1DF7A4.5070308@colbyconsulting.com> Message-ID: <001301cba91f$af2774b0$0d765e10$@com> I just love stories with happy endings.... :-) especially at the end of the year. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 31, 2010 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Ya know they tell ya to remove power... A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 20:56:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 21:56:06 -0500 Subject: [AccessD] Happy new year Message-ID: <4D1E97C6.3060000@colbyconsulting.com> To all our members around the world, may the new year be a good one. I am about to go down stairs and watch a movie with my wife, and ring in the new year with a glass of sparkling cider. If you party, do so with restraint. This is a particularly dangerous night to be out on the roads. Happy new year. -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Wed Dec 1 13:08:47 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Wed, 1 Dec 2010 13:08:47 -0600 Subject: [AccessD] Access 2007 Application running under Access 2010 Runtime References: <4CEF48B9.80204@colbyconsulting.com> <3286.24.35.23.165.1290793744.squirrel@mail.expedient.net> <3676.24.35.23.165.1290794899.squirrel@mail.expedient.net> <4CF173C8.7050509@colbyconsulting.com><1573.24.35.23.165.1291053515.squirrel@mail.expedient.net><4CF3F996.7010007@colbyconsulting.com> <3543.24.35.23.165.1291138826.squirrel@mail.expedient.net> Message-ID: Are there any issues to be aware of when considering running an Access 2007 application under Access 2010 Runtime? Thanks, Brad From pedro at plex.nl Thu Dec 2 12:54:45 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2010 12:54:45 (CET) Subject: [AccessD] MS-Word import into Access Message-ID: <201012021154.oB2BsjJV028171@mailhostC.plex.net> I have to import data from MS-Word documents into Acces. The data in the documents are four text-parts, and between them are one ore more tabs. Because of the difference in tabs, i can use replace, but i have many documents, so it would take days to do that. Is there a code that i could use as a macro in MS-Word to delete one ore more tabs and replace them with ";". Not really an Access problem, i'll hope that it is no problem to post it here Thanks Pedro From shamil at smsconsulting.spb.ru Thu Dec 2 06:33:15 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 2 Dec 2010 15:33:15 +0300 Subject: [AccessD] MS-Word import into Access In-Reply-To: <201012021154.oB2BsjJV028171@mailhostC.plex.net> References: <201012021154.oB2BsjJV028171@mailhostC.plex.net> Message-ID: <9E4BFE8AB5994BB4AD220F350B17E602@nant> Hi Pedro -- Just "quick&dirty - extend it yourself" sample - mainly recorded in MS Word then wrapped into a sub: Public Sub ReplaceTabs(ByRef rdoc As Word.Document) Dim wapp As Word.Application Set wapp = rdoc.Application rdoc.Select With wapp.Selection.Find .Text = "^t" .Replacement.Text = ";" .Forward = True .Wrap = 1 'wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With wapp.Selection.Find.Execute Replace:=2 'wdReplaceAll Set wapp = Nothing End Sub Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 2 ??????? 2010 ?. 12:55 To: accessd at databaseadvisors.com Subject: [AccessD] MS-Word import into Access I have to import data from MS-Word documents into Acces. The data in the documents are four text-parts, and between them are one ore more tabs. Because of the difference in tabs, i can use replace, but i have many documents, so it would take days to do that. Is there a code that i could use as a macro in MS-Word to delete one ore more tabs and replace them with ";". Not really an Access problem, i'll hope that it is no problem to post it here Thanks Pedro -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Dec 2 14:38:32 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2010 14:38:32 (CET) Subject: [AccessD] MS-Word import into Access Message-ID: <201012021338.oB2DcWoo003808@mailhostC.plex.net> Hello Shamil, Thanks for the code. when i make a new macro from your code. The code is not accepted as a macro. When using the sub ReplaceTabs name, or another sub name, closing the visual basic editor, and go to macro's, the macro is not present. I has something to do with the reference: (ByRef rdoc As Word.Document) When using it after the sub-name the macro isn't recognized a macro, and i can't start the macro (also not from within the visual basic editor). When i don't use it after the sub-name, i get an error: object not present. and Set wapp = rdoc.Application is highlighted. Any suggestions? Pedro In antwoord op: > From: "Shamil Salakhetdinov" > To: "'Access Developers discussion and problem solving'" > Date: Thu, 2 Dec 2010 15:33:15 +0300 > Subject: Re: [AccessD] MS-Word import into Access > > > Hi Pedro -- > > Just "quick&dirty - extend it yourself" sample - mainly recorded in MS Word > then wrapped into a sub: > > Public Sub ReplaceTabs(ByRef rdoc As Word.Document) > Dim wapp As Word.Application > Set wapp = rdoc.Application > rdoc.Select > With wapp.Selection.Find > .Text = "^t" > .Replacement.Text = ";" > .Forward = True > .Wrap = 1 'wdFindContinue > .Format = False > .MatchCase = False > .MatchWholeWord = False > .MatchAllWordForms = False > .MatchSoundsLike = False > .MatchWildcards = True > End With > wapp.Selection.Find.Execute Replace:=2 'wdReplaceAll > > Set wapp = Nothing > End Sub > > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: 2 ??????? 2010 ?. 12:55 > To: accessd at databaseadvisors.com > Subject: [AccessD] MS-Word import into Access > > I have to import data from MS-Word documents into Acces. > The data in the documents are four text-parts, and between them are one ore > more tabs. > > Because of the difference in tabs, i can use replace, but i have many > documents, so it would take days to do that. > Is there a code that i could use as a macro in MS-Word to delete one ore > more tabs and replace them with ";". > > Not really an Access problem, i'll hope that it is no problem to post it > here > > Thanks > > Pedro > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Thu Dec 2 14:38:53 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2010 14:38:53 (CET) Subject: [AccessD] MS-Word import into Access Message-ID: <201012021338.oB2Dcr7e003837@mailhostC.plex.net> Hello Shamil, Thanks for the code. when i make a new macro from your code. The code is not accepted as a macro. When using the sub ReplaceTabs name, or another sub name, closing the visual basic editor, and go to macro's, the macro is not present. I has something to do with the reference: (ByRef rdoc As Word.Document) When using it after the sub-name the macro isn't recognized a macro, and i can't start the macro (also not from within the visual basic editor). When i don't use it after the sub-name, i get an error: object not present. and Set wapp = rdoc.Application is highlighted. Any suggestions? Pedro In antwoord op: > From: "Shamil Salakhetdinov" > To: "'Access Developers discussion and problem solving'" > Date: Thu, 2 Dec 2010 15:33:15 +0300 > Subject: Re: [AccessD] MS-Word import into Access > > > Hi Pedro -- > > Just "quick&dirty - extend it yourself" sample - mainly recorded in MS Word > then wrapped into a sub: > > Public Sub ReplaceTabs(ByRef rdoc As Word.Document) > Dim wapp As Word.Application > Set wapp = rdoc.Application > rdoc.Select > With wapp.Selection.Find > .Text = "^t" > .Replacement.Text = ";" > .Forward = True > .Wrap = 1 'wdFindContinue > .Format = False > .MatchCase = False > .MatchWholeWord = False > .MatchAllWordForms = False > .MatchSoundsLike = False > .MatchWildcards = True > End With > wapp.Selection.Find.Execute Replace:=2 'wdReplaceAll > > Set wapp = Nothing > End Sub > > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: 2 ??????? 2010 ?. 12:55 > To: accessd at databaseadvisors.com > Subject: [AccessD] MS-Word import into Access > > I have to import data from MS-Word documents into Acces. > The data in the documents are four text-parts, and between them are one ore > more tabs. > > Because of the difference in tabs, i can use replace, but i have many > documents, so it would take days to do that. > Is there a code that i could use as a macro in MS-Word to delete one ore > more tabs and replace them with ";". > > Not really an Access problem, i'll hope that it is no problem to post it > here > > Thanks > > Pedro > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 smsconsulting.spb.ru Thu Dec 2 07:55:43 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 2 Dec 2010 16:55:43 +0300 Subject: [AccessD] MS-Word import into Access In-Reply-To: <201012021338.oB2Dcr7e003837@mailhostC.plex.net> References: <201012021338.oB2Dcr7e003837@mailhostC.plex.net> Message-ID: <9B38615AE6C949A8B070A7082EB5789A@nant> Pedro, Do you use proposed VBA code from within MS Access VBE? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 2 ??????? 2010 ?. 14:39 To: AccessD at databaseadvisors.com Subject: Re: [AccessD] MS-Word import into Access Hello Shamil, Thanks for the code. when i make a new macro from your code. The code is not accepted as a macro. When using the sub ReplaceTabs name, or another sub name, closing the visual basic editor, and go to macro's, the macro is not present. I has something to do with the reference: (ByRef rdoc As Word.Document) When using it after the sub-name the macro isn't recognized a macro, and i can't start the macro (also not from within the visual basic editor). When i don't use it after the sub-name, i get an error: object not present. and Set wapp = rdoc.Application is highlighted. Any suggestions? Pedro From pedro at plex.nl Thu Dec 2 15:34:04 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2010 15:34:04 (CET) Subject: [AccessD] MS-Word import into Access Message-ID: <201012021434.oB2EY46W007073@mailhostC.plex.net> Hello Shamil, i would like to use your proposed vba code as a macro in the word document, not from within access. Pedro In antwoord op: > From: "Shamil Salakhetdinov" > To: "'Access Developers discussion and problem solving'" > Date: Thu, 2 Dec 2010 16:55:43 +0300 > Subject: Re: [AccessD] MS-Word import into Access > > > Pedro, > > Do you use proposed VBA code from within MS Access VBE? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: 2 ??????? 2010 ?. 14:39 > To: AccessD at databaseadvisors.com > Subject: Re: [AccessD] MS-Word import into Access > > Hello Shamil, > > Thanks for the code. > when i make a new macro from your code. > The code is not accepted as a macro. > > When using the sub ReplaceTabs name, or another sub name, closing the visual > basic editor, and go to macro's, the macro is not present. > > I has something to do with the reference: (ByRef rdoc As Word.Document) When > using it after the sub-name the macro isn't recognized a macro, and i can't > start the macro (also not from within the visual basic editor). > When i don't use it after the sub-name, i get an error: object not present. > and Set wapp = rdoc.Application is highlighted. > Any suggestions? > > Pedro > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Thu Dec 2 09:39:37 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 2 Dec 2010 18:39:37 +0300 Subject: [AccessD] MS-Word import into Access In-Reply-To: <201012021434.oB2EY46W007073@mailhostC.plex.net> References: <201012021434.oB2EY46W007073@mailhostC.plex.net> Message-ID: Pedro, Then you can use it like that: 1. Start MS Word 2. Create empty doc 3. Switch to VBE 4. Insert module into blank doc modules 5. Copy and paste the following code into module: Option Explicit Public Sub ReplaceTabsInActiveDoc() ReplaceTabs Application.ActiveDocument End Sub Public Sub ReplaceTabs(ByRef rdoc As Word.Document) Dim wapp As Word.Application Set wapp = rdoc.Application rdoc.Select With wapp.Selection.Find .Text = "^t" .Replacement.Text = ";" .Forward = True .Wrap = 1 'wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With wapp.Selection.Find.Execute Replace:=2 'wdReplaceAll Set wapp = Nothing End Sub 6. Open test document 7. Switch back to VBE 8. Put cursor on code line Public Sub ReplaceTabsInActiveDoc() 9. Push [F5] ... You can also save macro within normal.dot (MS Word 97 - 2003) but better not do that. If you're going to use the above code by opening every document manually then you don't need that code at all - just use in MS Word: - Ctrl+H - char to be replaced - ^t - char to replace with - ; - [Replace All] Application of the above code makes sense to automate tabs replacement in a (large) set of docs - if somebody here have time to help Pedro to write the code iterating through a folder with MS Word docs, opening docs, substituting tabs using above code, saving changes, closing current doc, opening another one ... please jump in... I have quite some work to do here, sorry.... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: 2 ??????? 2010 ?. 15:34 To: " 'AccessDevelopersdiscussionandproblemsolving'" at mailhostC.plex.net Cc: AccessD at databaseadvisors.com Subject: Re: [AccessD] MS-Word import into Access Hello Shamil, i would like to use your proposed vba code as a macro in the word document, not from within access. Pedro In antwoord op: > From: "Shamil Salakhetdinov" > To: "'Access Developers discussion and problem solving'" > Date: Thu, 2 Dec 2010 16:55:43 +0300 > Subject: Re: [AccessD] MS-Word import into Access > > > Pedro, > > Do you use proposed VBA code from within MS Access VBE? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > pedro at plex.nl > Sent: 2 ??????? 2010 ?. 14:39 > To: AccessD at databaseadvisors.com > Subject: Re: [AccessD] MS-Word import into Access > > Hello Shamil, > > Thanks for the code. > when i make a new macro from your code. > The code is not accepted as a macro. > > When using the sub ReplaceTabs name, or another sub name, closing the > visual basic editor, and go to macro's, the macro is not present. > > I has something to do with the reference: (ByRef rdoc As > Word.Document) When using it after the sub-name the macro isn't > recognized a macro, and i can't start the macro (also not from within the visual basic editor). > When i don't use it after the sub-name, i get an error: object not present. > and Set wapp = rdoc.Application is highlighted. > Any suggestions? > > Pedro > > From pedro at plex.nl Thu Dec 2 17:07:37 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 02 Dec 2010 17:07:37 (CET) Subject: [AccessD] MS-Word import into Access Message-ID: <201012021607.oB2G7bGB012000@mailhostC.plex.net> Hello Shamil, the code works. Thanks. I will adjust the code for the proper use and it isn't necessary to help me with a code for itering trough a folder. That i can do myself. Thanks again. Pedro if somebody here have time to help Pedro to write the > code iterating through a folder with MS Word docs, opening docs, > substituting tabs using above code, saving changes, closing current doc, > opening another one ... please jump in. In antwoord op: > From: "Shamil Salakhetdinov" > To: "'Access Developers discussion and problem solving'" > Date: Thu, 2 Dec 2010 18:39:37 +0300 > Subject: Re: [AccessD] MS-Word import into Access > > > Pedro, > > Then you can use it like that: > > 1. Start MS Word > 2. Create empty doc > 3. Switch to VBE > 4. Insert module into blank doc modules > 5. Copy and paste the following code into module: > > Option Explicit > > Public Sub ReplaceTabsInActiveDoc() > ReplaceTabs Application.ActiveDocument > End Sub > > Public Sub ReplaceTabs(ByRef rdoc As Word.Document) > Dim wapp As Word.Application > Set wapp = rdoc.Application > rdoc.Select > With wapp.Selection.Find > .Text = "^t" > .Replacement.Text = ";" > .Forward = True > .Wrap = 1 'wdFindContinue > .Format = False > .MatchCase = False > .MatchWholeWord = False > .MatchAllWordForms = False > .MatchSoundsLike = False > .MatchWildcards = True > End With > wapp.Selection.Find.Execute Replace:=2 'wdReplaceAll > > Set wapp = Nothing > End Sub > > 6. Open test document > 7. Switch back to VBE > 8. Put cursor on code line > > Public Sub ReplaceTabsInActiveDoc() > > 9. Push [F5] > .... > > You can also save macro within normal.dot (MS Word 97 - 2003) but better not > do that. > > If you're going to use the above code by opening every document manually > then you don't need that code at all - just use in MS Word: > > - Ctrl+H > - char to be replaced - ^t > - char to replace with - ; > - [Replace All] > > Application of the above code makes sense to automate tabs replacement in a > (large) set of docs - if somebody here have time to help Pedro to write the > code iterating through a folder with MS Word docs, opening docs, > substituting tabs using above code, saving changes, closing current doc, > opening another one ... please jump in... > > I have quite some work to do here, sorry.... > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: 2 ??????? 2010 ?. 15:34 > To: &quot; > 'AccessDevelopersdiscussionandproblemsolving'&quot at mailhostC.plex.net > Cc: AccessD at databaseadvisors.com > Subject: Re: [AccessD] MS-Word import into Access > > Hello Shamil, > > i would like to use your proposed vba code as a macro in the word document, > not from within access. > > Pedro > > > > In antwoord op: > > > From: "Shamil Salakhetdinov" > > To: "'Access Developers discussion and problem solving'" > > Date: Thu, 2 Dec 2010 16:55:43 +0300 > > Subject: Re: [AccessD] MS-Word import into Access > > > > > > Pedro, > > > > Do you use proposed VBA code from within MS Access VBE? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > pedro at plex.nl > > Sent: 2 ??????? 2010 ?. 14:39 > > To: AccessD at databaseadvisors.com > > Subject: Re: [AccessD] MS-Word import into Access > > > > Hello Shamil, > > > > Thanks for the code. > > when i make a new macro from your code. > > The code is not accepted as a macro. > > > > When using the sub ReplaceTabs name, or another sub name, closing the > > visual basic editor, and go to macro's, the macro is not present. > > > > I has something to do with the reference: (ByRef rdoc As > > Word.Document) When using it after the sub-name the macro isn't > > recognized a macro, and i can't start the macro (also not from within the > visual basic editor). > > When i don't use it after the sub-name, i get an error: object not > present. > > and Set wapp = rdoc.Application is highlighted. > > Any suggestions? > > > > Pedro > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From rockysmolin at bchacc.com Thu Dec 2 11:11:28 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 2 Dec 2010 09:11:28 -0800 Subject: [AccessD] Merging data to Word using Bookmarks Message-ID: <97005FF6308246E4AF2E9F46797996ED@HAL9005> Dear List: This is a legal app - they wanted to be able to merge data from the app into many different legal forms. I used bookmarks in the legal form where the bookmark is the name of the field in the table. Set qdf = db.QueryDefs("qryAllLoanFields") mobjWord.WordBasic.FileOpen Name:="" & Me.txtmergeDocument & "" On Error GoTo IsIt5102: For Each fld In qdf.Fields strFieldName = fld.Name fExists = True mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=strFieldName If fExists = True Then mobjWord.WordBasic.Insert "" & Forms!frmLoans(fld.Name) & "" End If Next fld mobjWord.WordBasic.AppShow Set mobjWord = Nothing Set qdf = Nothing Set db = Nothing This worked OK until they required one field to appear more than once in a document and Word does not allow duplicate bookmrk names. So I'm looking for a workaround. If I could cycle through the bookmarks in the doc I could have them append somethinf like '_DUPx' to the bookmark name and still find the data field by stripping off the '_DUPx'. But I'm uncertain how to cycle through bookmarks in a word doc like you do all the fields in a table. Does anybody have any slick ideas for a different approach to this problem? My current backup plan is to just pur the duplicate fields into he table, maintiain them transparently to the user - then insert those names as unique bookmarks. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From shamil at smsconsulting.spb.ru Thu Dec 2 11:54:50 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 2 Dec 2010 20:54:50 +0300 Subject: [AccessD] Merging data to Word using Bookmarks In-Reply-To: <97005FF6308246E4AF2E9F46797996ED@HAL9005> References: <97005FF6308246E4AF2E9F46797996ED@HAL9005> Message-ID: <239BDC5E1FCC40D8B9DF26D1C96D529B@nant> Hi Rocky -- You can enumerate bookmarks of an MS Word document the following way: Dim bmk As Word.Bookmark For Each bmk In Application.ActiveDocument.Bookmarks Debug.Print bmk.Name Next bmk Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 2 ??????? 2010 ?. 20:11 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merging data to Word using Bookmarks Dear List: This is a legal app - they wanted to be able to merge data from the app into many different legal forms. I used bookmarks in the legal form where the bookmark is the name of the field in the table. Set qdf = db.QueryDefs("qryAllLoanFields") mobjWord.WordBasic.FileOpen Name:="" & Me.txtmergeDocument & "" On Error GoTo IsIt5102: For Each fld In qdf.Fields strFieldName = fld.Name fExists = True mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=strFieldName If fExists = True Then mobjWord.WordBasic.Insert "" & Forms!frmLoans(fld.Name) & "" End If Next fld mobjWord.WordBasic.AppShow Set mobjWord = Nothing Set qdf = Nothing Set db = Nothing This worked OK until they required one field to appear more than once in a document and Word does not allow duplicate bookmrk names. So I'm looking for a workaround. If I could cycle through the bookmarks in the doc I could have them append somethinf like '_DUPx' to the bookmark name and still find the data field by stripping off the '_DUPx'. But I'm uncertain how to cycle through bookmarks in a word doc like you do all the fields in a table. Does anybody have any slick ideas for a different approach to this problem? My current backup plan is to just pur the duplicate fields into he table, maintiain them transparently to the user - then insert those names as unique bookmarks. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 2 13:29:08 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 2 Dec 2010 11:29:08 -0800 Subject: [AccessD] FW: Merging data to Word using Bookmarks Message-ID: _____ From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Thursday, December 02, 2010 9:11 AM To: 'Access Developers discussion and problem solving' Subject: Merging data to Word using Bookmarks Dear List: This is a legal app - they wanted to be able to merge data from the app into many different legal forms. I used bookmarks in the legal form where the bookmark is the name of the field in the table. Set qdf = db.QueryDefs("qryAllLoanFields") mobjWord.WordBasic.FileOpen Name:="" & Me.txtmergeDocument & "" On Error GoTo IsIt5102: For Each fld In qdf.Fields strFieldName = fld.Name fExists = True mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=strFieldName If fExists = True Then mobjWord.WordBasic.Insert "" & Forms!frmLoans(fld.Name) & "" End If Next fld mobjWord.WordBasic.AppShow Set mobjWord = Nothing Set qdf = Nothing Set db = Nothing This worked OK until they required one field to appear more than once in a document and Word does not allow duplicate bookmrk names. So I'm looking for a workaround. If I could cycle through the bookmarks in the doc I could have them append somethinf like '_DUPx' to the bookmark name and still find the data field by stripping off the '_DUPx'. But I'm uncertain how to cycle through bookmarks in a word doc like you do all the fields in a table. Does anybody have any slick ideas for a different approach to this problem? My current backup plan is to just pur the duplicate fields into he table, maintiain them transparently to the user - then insert those names as unique bookmarks. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Thu Dec 2 17:41:28 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 2 Dec 2010 15:41:28 -0800 Subject: [AccessD] Merging data to Word using Bookmarks In-Reply-To: <239BDC5E1FCC40D8B9DF26D1C96D529B@nant> References: <97005FF6308246E4AF2E9F46797996ED@HAL9005> <239BDC5E1FCC40D8B9DF26D1C96D529B@nant> Message-ID: <016B7652B06F489BA91FC005A0303B46@HAL9005> Shamil: That's what I needed. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, December 02, 2010 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Merging data to Word using Bookmarks Hi Rocky -- You can enumerate bookmarks of an MS Word document the following way: Dim bmk As Word.Bookmark For Each bmk In Application.ActiveDocument.Bookmarks Debug.Print bmk.Name Next bmk Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 2 ??????? 2010 ?. 20:11 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merging data to Word using Bookmarks Dear List: This is a legal app - they wanted to be able to merge data from the app into many different legal forms. I used bookmarks in the legal form where the bookmark is the name of the field in the table. Set qdf = db.QueryDefs("qryAllLoanFields") mobjWord.WordBasic.FileOpen Name:="" & Me.txtmergeDocument & "" On Error GoTo IsIt5102: For Each fld In qdf.Fields strFieldName = fld.Name fExists = True mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=strFieldName If fExists = True Then mobjWord.WordBasic.Insert "" & Forms!frmLoans(fld.Name) & "" End If Next fld mobjWord.WordBasic.AppShow Set mobjWord = Nothing Set qdf = Nothing Set db = Nothing This worked OK until they required one field to appear more than once in a document and Word does not allow duplicate bookmrk names. So I'm looking for a workaround. If I could cycle through the bookmarks in the doc I could have them append somethinf like '_DUPx' to the bookmark name and still find the data field by stripping off the '_DUPx'. But I'm uncertain how to cycle through bookmarks in a word doc like you do all the fields in a table. Does anybody have any slick ideas for a different approach to this problem? My current backup plan is to just pur the duplicate fields into he table, maintiain them transparently to the user - then insert those names as unique bookmarks. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Dec 2 20:02:05 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 02 Dec 2010 21:02:05 -0500 Subject: [AccessD] Observations on AC 2007 (not good)...more..and more... In-Reply-To: <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS> References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS> <45C34E0C852148ED8EEF38058E7A48EA@creativesystemdesigns.com> <016e01cb9038$d15f8ea0$0401a8c0@MSIMMSWS> <4CF4696A.9040201@colbyconsulting.com> <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS> Message-ID: <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS> Opened an AC2003 MDB that had a form using MSCOMCTL's "Listview" control. Environment: Windows 7 64 Bit with AC2007 / SP2. I try to debug the VBA code where the Listview control population was occuring. Access IGNORED my STOP statement; ignored all BREAKPOINTS. However, the code did compile cleanly (go figure). This was driving me crazy (we've all been there with Access, right ?) So I fire-up REGEDIT and find the reference to the MSCOMCTL.OCX. There are TWO of them...one in \Windows\System32....the other in \Windows\SysWow64. So I pull up the References dialog box within the VBA environment.....and note there are no references to MSCOMCTL showing ! I browse to SysWow64, find the MSCOMCTL.OCX which was dated 2008, add it, and move it up in priority. I close AC2007, re-open....and ALL IS WELL. I can now debug again ! But more importantly.....Hey.... I like that Listview control with the sortable column headers....why didn't MSFT make that a native control in 2007 ? From jwcolby at colbyconsulting.com Thu Dec 2 21:33:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 02 Dec 2010 22:33:12 -0500 Subject: [AccessD] Observations on AC 2007 (not good)...more..and more... In-Reply-To: <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS> References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS> <45C34E0C852148ED8EEF38058E7A48EA@creativesystemdesigns.com> <016e01cb9038$d15f8ea0$0401a8c0@MSIMMSWS> <4CF4696A.9040201@colbyconsulting.com> <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS> <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS> Message-ID: <4CF864F8.704@colbyconsulting.com> > I like that Listview control with the sortable column headers....why didn't MSFT make that a native control in 2007 ? Silly boy, they were much too busy with more important things like pretty tool bars. John W. Colby www.ColbyConsulting.com On 12/2/2010 9:02 PM, Mark Simms wrote: > Opened an AC2003 MDB that had a form using MSCOMCTL's "Listview" control. > Environment: Windows 7 64 Bit with AC2007 / SP2. > > I try to debug the VBA code where the Listview control population was > occuring. > Access IGNORED my STOP statement; ignored all BREAKPOINTS. > However, the code did compile cleanly (go figure). > This was driving me crazy (we've all been there with Access, right ?) > > So I fire-up REGEDIT and find the reference to the MSCOMCTL.OCX. > There are TWO of them...one in \Windows\System32....the other in > \Windows\SysWow64. > > So I pull up the References dialog box within the VBA environment.....and > note there are no references to MSCOMCTL showing ! > I browse to SysWow64, find the MSCOMCTL.OCX which was dated 2008, add it, > and move it up in priority. > I close AC2007, re-open....and ALL IS WELL. I can now debug again ! > But more importantly.....Hey.... > I like that Listview control with the sortable column headers....why didn't > MSFT make that a native control in 2007 ? > > From marksimms at verizon.net Fri Dec 3 10:40:01 2010 From: marksimms at verizon.net (Mark Simms) Date: Fri, 03 Dec 2010 11:40:01 -0500 Subject: [AccessD] Observations on AC 2007 (not good)...more..and more... In-Reply-To: <4CF864F8.704@colbyconsulting.com> References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS> <45C34E0C852148ED8EEF38058E7A48EA@creativesystemdesigns.com> <016e01cb9038$d15f8ea0$0401a8c0@MSIMMSWS> <4CF4696A.9040201@colbyconsulting.com> <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS> <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS> <4CF864F8.704@colbyconsulting.com> Message-ID: <00ac01cb9308$bb5e9330$0401a8c0@MSIMMSWS> Exactly right John. And the focus on those crazy macros has driven me to the brink. I mean wow, having that ListView as a bound control would have been so cool.... has anyone attempted to emulate this in VBA ? Re: a generalized set of functions to build and populate a ListView ? From BradM at blackforestltd.com Fri Dec 3 15:15:03 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 3 Dec 2010 15:15:03 -0600 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access 2002? References: <965C3D2997974F2BB665A8651F684D65@HAL9005><33E83999E40348458EF59D605A332AFA@DanWaters> <9CB721227DA549248E7A712263492509@nant> Message-ID: Can VBA be used to "UnHide" columns in a Query in Access 2002? Thanks, Brad From davidmcafee at gmail.com Fri Dec 3 15:24:23 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 3 Dec 2010 13:24:23 -0800 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access 2002? In-Reply-To: References: <965C3D2997974F2BB665A8651F684D65@HAL9005> <33E83999E40348458EF59D605A332AFA@DanWaters> <9CB721227DA549248E7A712263492509@nant> Message-ID: If the query is used in a datasheet subform you can. You can tag certain fields so base the visibility on other fields, such as a status, if needed. On Fri, Dec 3, 2010 at 1:15 PM, Brad Marks wrote: > Can VBA be used to "UnHide" columns in a Query in Access 2002? > > Thanks, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at smsconsulting.spb.ru Fri Dec 3 15:51:08 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 4 Dec 2010 00:51:08 +0300 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access2002? In-Reply-To: References: <965C3D2997974F2BB665A8651F684D65@HAL9005><33E83999E40348458EF59D605A332AFA@DanWaters><9CB721227DA549248E7A712263492509@nant> Message-ID: Hi Brad, The following VBA code will toggle second column's visiblity: - On Screen.ActiveDatasheet.Controls(1).ColumnHidden = false - Off Screen.ActiveDatasheet.Controls(1).ColumnHidden = true provided your query is opened in normal view and has focus Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: 4 ??????? 2010 ?. 0:15 To: Access Developers discussion and problem solving Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access2002? Can VBA be used to "UnHide" columns in a Query in Access 2002? Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Fri Dec 3 16:31:39 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 3 Dec 2010 16:31:39 -0600 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query inAccess2002? References: <965C3D2997974F2BB665A8651F684D65@HAL9005><33E83999E40348458EF59D605A332AFA@DanWaters><9CB721227DA549248E7A712263492509@nant> Message-ID: Shamil, Thanks for the assistance. Your code worked nicely. Sincerely, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, December 03, 2010 3:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Can VBA be used to "UnHide" columns in a Query inAccess2002? Hi Brad, The following VBA code will toggle second column's visiblity: - On Screen.ActiveDatasheet.Controls(1).ColumnHidden = false - Off Screen.ActiveDatasheet.Controls(1).ColumnHidden = true provided your query is opened in normal view and has focus Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: 4 ??????? 2010 ?. 0:15 To: Access Developers discussion and problem solving Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access2002? Can VBA be used to "UnHide" columns in a Query in Access 2002? Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From davidmcafee at gmail.com Fri Dec 3 16:40:01 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 3 Dec 2010 14:40:01 -0800 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in Access2002? In-Reply-To: References: <965C3D2997974F2BB665A8651F684D65@HAL9005> <33E83999E40348458EF59D605A332AFA@DanWaters> <9CB721227DA549248E7A712263492509@nant> Message-ID: That is nice! It works on views in ADPs too. On Fri, Dec 3, 2010 at 1:51 PM, Shamil Salakhetdinov wrote: > Hi Brad, > > The following VBA code will toggle second column's visiblity: > > - On > > Screen.ActiveDatasheet.Controls(1).ColumnHidden = false > > - Off > > Screen.ActiveDatasheet.Controls(1).ColumnHidden = true > > provided your query is opened in normal view and has focus > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: 4 ??????? 2010 ?. 0:15 > To: Access Developers discussion and problem solving > Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in > Access2002? > > Can VBA be used to "UnHide" columns in a Query in Access 2002? > > Thanks, > Brad > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 smsconsulting.spb.ru Fri Dec 3 16:59:30 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 4 Dec 2010 01:59:30 +0300 Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query inAccess2002? In-Reply-To: References: <965C3D2997974F2BB665A8651F684D65@HAL9005><33E83999E40348458EF59D605A332AFA@DanWaters><9CB721227DA549248E7A712263492509@nant> Message-ID: <3BB1AC024D784AD3B049EB0036CBD83A@nant> Yes, David, that works starting at least Access 97: In fact a Query (a Table) opened in normal view is a form instance in datasheet view. It's not listed in Forms collection but it can be accessed via Application.Screen.ActiveDatasheet object: Public Sub EnumerateQueryControls() ' Enumerate controls of a table/query ' opened in normal view Dim app As Access.Application Dim frm As Form Dim ctl As Control Set app = Access.Application Set frm = app.Screen.ActiveDatasheet.Form debug.print frm.Name For Each ctl In frm.Controls Debug.Print ctl.Name & " - " & ctl.ColumnHidden Next ctl End Sub Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: 4 ??????? 2010 ?. 1:40 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can VBA be used to "UnHide" columns in a Query inAccess2002? That is nice! It works on views in ADPs too. On Fri, Dec 3, 2010 at 1:51 PM, Shamil Salakhetdinov wrote: > Hi Brad, > > The following VBA code will toggle second column's visiblity: > > - On > > Screen.ActiveDatasheet.Controls(1).ColumnHidden = false > > - Off > > Screen.ActiveDatasheet.Controls(1).ColumnHidden = true > > provided your query is opened in normal view and has focus > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: 4 ??????? 2010 ?. 0:15 > To: Access Developers discussion and problem solving > Subject: [AccessD] Can VBA be used to "UnHide" columns in a Query in > Access2002? > > Can VBA be used to "UnHide" columns in a Query in Access 2002? > > Thanks, > Brad > From shamil at smsconsulting.spb.ru Sat Dec 4 06:26:19 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 4 Dec 2010 15:26:19 +0300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: References: <781407956D494B5C93E5BB7D66F6B8F3@nant> Message-ID: <575DC5DE1ABE407BB1992FC289B6E4E0@nant> This week it was a "Jupiterian" sunset one day here :) http://sms-web.biz/nature/JupiterianSunSet1.jpg (41KB) http://sms-web.biz/nature/JupiterianSunSet2.jpg (40KB) The photos are just zoomed and "squeezed" copies of originals to keep them relatively small. The original photo is here http://sms-web.biz/nature/js.jpg (2.3MB). Pity that is just a "soap" Kodak PowerShot I have here, and the quality isn't that good. BTW, one can see three black dots on the right side, on the top-right (45') and on the far top left (25') side. Are that birds or planes, or maybe "UFOs"? :) Last week photo didn't have such "defects" - http://sms-web.biz/nature/ss.jpg (2.4MB) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, November 28, 2010 1:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: It's quiet here today... Cold Quiet Sunset http://sms-web.biz/nature/sunset.jpg (46KB) This is just a clip from a picture taken here this afternoon from my home/office window. Daylight time is short here these days - it was 4 o'clock when that picture was taken. Within five minutes the sun has got under the horizon line but it took almost another hour until it has got dark... Thank you. -- 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 ssharkins at gmail.com Sat Dec 4 08:00:16 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 4 Dec 2010 09:00:16 -0500 Subject: [AccessD] OT: It's quiet here today... References: <781407956D494B5C93E5BB7D66F6B8F3@nant> <575DC5DE1ABE407BB1992FC289B6E4E0@nant> Message-ID: <6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p> I like the second one best -- it tells an interesting story! Susan H. > > http://sms-web.biz/nature/JupiterianSunSet2.jpg (40KB) > > The photos are just zoomed and "squeezed" copies of originals to keep them > relatively small. From shamil at smsconsulting.spb.ru Sat Dec 4 08:33:10 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 4 Dec 2010 17:33:10 +0300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: <6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p> References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant> <6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p> Message-ID: <664D9C61E6484BEB92EE69D7300B4EC2@nant> Thank you, Susan, What story it tells you - a very talented story-teller I'm lucky to be acquainted with? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 4 ??????? 2010 ?. 17:00 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: It's quiet here today... I like the second one best -- it tells an interesting story! Susan H. > > http://sms-web.biz/nature/JupiterianSunSet2.jpg (40KB) > > The photos are just zoomed and "squeezed" copies of originals to keep > them relatively small. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sat Dec 4 09:10:23 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 4 Dec 2010 10:10:23 -0500 Subject: [AccessD] OT: It's quiet here today... References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant><6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p> <664D9C61E6484BEB92EE69D7300B4EC2@nant> Message-ID: > Thank you, Susan, > > What story it tells you - a very talented story-teller I'm lucky to be > acquainted with? ======Well, somewhat bleak of course -- struggle of man against the elements. Someone walking, head-bent through the snow and wind to reach home, warmth, love, food. ;) Now why s/he was out in the first place, there's your real story. :) Thank you Shamil. :) Susan H. From accessd at shaw.ca Sat Dec 4 10:41:11 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 4 Dec 2010 08:41:11 -0800 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: <575DC5DE1ABE407BB1992FC289B6E4E0@nant> References: <781407956D494B5C93E5BB7D66F6B8F3@nant> <575DC5DE1ABE407BB1992FC289B6E4E0@nant> Message-ID: Awesome pictures...powerful landscape. The landscape reminds of the bald prairie. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, December 04, 2010 4:26 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: It's quiet here today... This week it was a "Jupiterian" sunset one day here :) http://sms-web.biz/nature/JupiterianSunSet1.jpg (41KB) http://sms-web.biz/nature/JupiterianSunSet2.jpg (40KB) The photos are just zoomed and "squeezed" copies of originals to keep them relatively small. The original photo is here http://sms-web.biz/nature/js.jpg (2.3MB). Pity that is just a "soap" Kodak PowerShot I have here, and the quality isn't that good. BTW, one can see three black dots on the right side, on the top-right (45') and on the far top left (25') side. Are that birds or planes, or maybe "UFOs"? :) Last week photo didn't have such "defects" - http://sms-web.biz/nature/ss.jpg (2.4MB) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, November 28, 2010 1:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: It's quiet here today... Cold Quiet Sunset http://sms-web.biz/nature/sunset.jpg (46KB) This is just a clip from a picture taken here this afternoon from my home/office window. Daylight time is short here these days - it was 4 o'clock when that picture was taken. Within five minutes the sun has got under the horizon line but it took almost another hour until it has got dark... Thank you. -- 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 From steve at datamanagementsolutions.biz Sat Dec 4 15:39:22 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sun, 5 Dec 2010 10:39:22 +1300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: <781407956D494B5C93E5BB7D66F6B8F3@nant> References: <781407956D494B5C93E5BB7D66F6B8F3@nant> Message-ID: <88B5E0335B1947D88BD73465EEF81E6B@stevelaptop> That is a great picture, Shamil. Thanks a lot for sharing it. Regards Steve -----Original Message----- From: Shamil Salakhetdinov Sent: Monday, November 29, 2010 10:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: It's quiet here today... Cold Quiet Sunset http://sms-web.biz/nature/sunset.jpg (46KB) This is just a clip from a picture taken here this afternoon from my home/office window. Daylight time is short here these days - it was 4 o'clock when that picture was taken. Within five minutes the sun has got under the horizon line but it took almost another hour until it has got dark... Thank you. From shamil at smsconsulting.spb.ru Sun Dec 5 12:23:56 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 5 Dec 2010 21:23:56 +0300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant> Message-ID: Thank you, Jim, In fact the photo is made in the direction of Peterhof (http://en.wikipedia.org/wiki/Petergof) - it's on the opposite side of the Finnish Gulf, on the South-West... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 4 ??????? 2010 ?. 19:41 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: It's quiet here today... Awesome pictures...powerful landscape. The landscape reminds of the bald prairie. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, December 04, 2010 4:26 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: It's quiet here today... This week it was a "Jupiterian" sunset one day here :) http://sms-web.biz/nature/JupiterianSunSet1.jpg (41KB) http://sms-web.biz/nature/JupiterianSunSet2.jpg (40KB) The photos are just zoomed and "squeezed" copies of originals to keep them relatively small. The original photo is here http://sms-web.biz/nature/js.jpg (2.3MB). Pity that is just a "soap" Kodak PowerShot I have here, and the quality isn't that good. BTW, one can see three black dots on the right side, on the top-right (45') and on the far top left (25') side. Are that birds or planes, or maybe "UFOs"? :) Last week photo didn't have such "defects" - http://sms-web.biz/nature/ss.jpg (2.4MB) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, November 28, 2010 1:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: It's quiet here today... Cold Quiet Sunset http://sms-web.biz/nature/sunset.jpg (46KB) This is just a clip from a picture taken here this afternoon from my home/office window. Daylight time is short here these days - it was 4 o'clock when that picture was taken. Within five minutes the sun has got under the horizon line but it took almost another hour until it has got dark... Thank you. -- 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 shamil at smsconsulting.spb.ru Sun Dec 5 12:23:55 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 5 Dec 2010 21:23:55 +0300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant><6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p><664D9C61E6484BEB92EE69D7300B4EC2@nant> Message-ID: <<< Now why s/he was out in the first place, there's your real story. :) >>> OK. That was just everyday routine jogging exercise, may I say that? :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 4 ??????? 2010 ?. 18:10 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: It's quiet here today... > Thank you, Susan, > > What story it tells you - a very talented story-teller I'm lucky to be > acquainted with? ======Well, somewhat bleak of course -- struggle of man against the elements. Someone walking, head-bent through the snow and wind to reach home, warmth, love, food. ;) Now why s/he was out in the first place, there's your real story. :) Thank you Shamil. :) 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 Dec 5 12:34:13 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 5 Dec 2010 13:34:13 -0500 Subject: [AccessD] OT: It's quiet here today... References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant><6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p><664D9C61E6484BEB92EE69D7300B4EC2@nant> Message-ID: > <<< > Now why s/he was out in the first place, there's your real story. :) >>>> > OK. That was just everyday routine jogging exercise, may I say that? :) > > Thank you. ==========Of course! :) Susan H. From jwcolby at colbyconsulting.com Sun Dec 5 14:07:22 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 05 Dec 2010 15:07:22 -0500 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant><6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p><664D9C61E6484BEB92EE69D7300B4EC2@nant> Message-ID: <4CFBF0FA.7030605@colbyconsulting.com> > Now why s/he was out in the first place, there's your real story. :) >>>> > OK. That was just everyday routine jogging exercise, may I say that? :) Well... you ruin the story. I prefer... She was plotting how to (get her man / kill her man / get her groceries home / ...) ;) John W. Colby www.ColbyConsulting.com On 12/5/2010 1:23 PM, Shamil Salakhetdinov wrote: > <<< > Now why s/he was out in the first place, there's your real story. :) >>>> > OK. That was just everyday routine jogging exercise, may I say that? :) > > Thank you. > > -- > Shamil From shamil at smsconsulting.spb.ru Sun Dec 5 15:11:40 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 6 Dec 2010 00:11:40 +0300 Subject: [AccessD] OT: It's quiet here today... In-Reply-To: <4CFBF0FA.7030605@colbyconsulting.com> References: <781407956D494B5C93E5BB7D66F6B8F3@nant><575DC5DE1ABE407BB1992FC289B6E4E0@nant><6A0C80F104E142B1B2E0B18B399C7F43@salvationomc4p><664D9C61E6484BEB92EE69D7300B4EC2@nant> <4CFBF0FA.7030605@colbyconsulting.com> Message-ID: <<< Well... you ruin the story. >>> No, I didn't. The reason/goal for "his/her routine jogging excercise head-bent through the snow and wind" was so exciting - I did imply that, didn't I? :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 5 ??????? 2010 ?. 23:07 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: It's quiet here today... > Now why s/he was out in the first place, there's your real story. :) >>>> > OK. That was just everyday routine jogging exercise, may I say that? :) Well... you ruin the story. I prefer... She was plotting how to (get her man / kill her man / get her groceries home / ...) ;) John W. Colby www.ColbyConsulting.com On 12/5/2010 1:23 PM, Shamil Salakhetdinov wrote: > <<< > Now why s/he was out in the first place, there's your real story. :) >>>> > OK. That was just everyday routine jogging exercise, may I say that? > :) > > Thank you. > > -- > Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sun Dec 5 15:17:20 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sun, 5 Dec 2010 14:17:20 -0700 Subject: [AccessD] Observations on AC 2007 (not good)...more..and more... In-Reply-To: <00ac01cb9308$bb5e9330$0401a8c0@MSIMMSWS> References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS>, <45C34E0C852148ED8EEF38058E7A48EA@creativesystemdesigns.com>, <016e01cb9038$d15f8ea0$0401a8c0@MSIMMSWS>, <4CF4696A.9040201@colbyconsulting.com>, <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS>, <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS>, <4CF864F8.704@colbyconsulting.com>, <00ac01cb9308$bb5e9330$0401a8c0@MSIMMSWS> Message-ID: In what ways does the listbox control fall short? I fill most listboxes with callback functions and use an array quicksort algorithm to sort, toggling ascending and descending. I use an image control with arrow over a label control for each column that you click at the top of a regular listbox. At the bottom of multi-select list boxes I add select 'All', 'Invert' and 'None' labels. The individual controls are laid out so it looks like a single control. On mouse down, the label shows depressed and returns on mouse up. I've also added drag and drop adding items to the list and built a drag within list sorting capability. For my file lists, you can even drag files and the drag/drop operations are reflected in the file system. For multi format capabilities, the array of data includes format attribute columns and I build the list as an array of label or text controls embedded in a sub form that I can place on any form. You can multi-instance these on any form and they all have their own properties and data encapsulated within their own form class. I've never used anything but the built in controls as that's all there is in my environment. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: marksimms at verizon.net > To: accessd at databaseadvisors.com > Date: Fri, 3 Dec 2010 11:40:01 -0500 > Subject: Re: [AccessD] Observations on AC 2007 (not good)...more..and more... > > Exactly right John. And the focus on those crazy macros has driven me to the > brink. > > I mean wow, having that ListView as a bound control would have been so > cool.... > has anyone attempted to emulate this in VBA ? Re: a generalized set of > functions to build and populate a ListView ? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Dec 6 13:36:20 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Mon, 06 Dec 2010 13:36:20 (CET) Subject: [AccessD] group min - max Message-ID: <201012061236.oB6CaKka025889@mailhostC.plex.net> Dear list, normally i use Group by and min max, to create a list of min or max (or first-last) dates per Patient. But when there is a third column which has different values, I'll make a key from date and patient-number and then ad the extra value. How can i do this in one simple query? I have 001 1-1-10 5 001 2-2-10 7 002 3-2-10 8 002 3-2-10 6 i need 001 1-1-10 5 002 3-2-10 6 Thanks Pedro From marksimms at verizon.net Mon Dec 6 07:45:07 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 06 Dec 2010 08:45:07 -0500 Subject: [AccessD] Observations on AC 2007 (not good)...more..and more... In-Reply-To: References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS>, <45C34E0C852148ED8EEF38058E7A48EA@creativesystemdesigns.com>, <016e01cb9038$d15f8ea0$0401a8c0@MSIMMSWS>, <4CF4696A.9040201@colbyconsulting.com>, <01dd01cb9093$c423bda0$0401a8c0@MSIMMSWS>, <021101cb928e$168ef4f0$0401a8c0@MSIMMSWS>, <4CF864F8.704@colbyconsulting.com>, <00ac01cb9308$bb5e9330$0401a8c0@MSIMMSWS> Message-ID: <00b801cb954b$cbd1a0f0$0401a8c0@MSIMMSWS> Good stuff Jurgen....very nice.....can you show some screen prints of this ? I especially want to see the drag-and-drop file capability. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Sunday, December 05, 2010 4:17 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Observations on AC 2007 (not > good)...more..and more... From marksimms at verizon.net Mon Dec 6 07:48:27 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 06 Dec 2010 08:48:27 -0500 Subject: [AccessD] Memo/Attachment fields Message-ID: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> I saw a recommendation to always place memo fields into separate tables linked to the main table by an FK. Does anyone employee this technique ? I wonder if the same applies to attachment fields (AC2007) as well ? From ssharkins at gmail.com Mon Dec 6 07:56:02 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 6 Dec 2010 08:56:02 -0500 Subject: [AccessD] Memo/Attachment fields References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> Message-ID: Mark, memo fields are prone to corruption, that's why some developers drag them into a table of their own. I would do it. Don't know about 07 Attachment fields -- I don't have any experience with them. Susan H. >I saw a recommendation to always place memo fields into separate tables > linked to the main table by an FK. > Does anyone employee this technique ? > I wonder if the same applies to attachment fields (AC2007) as well ? > From drawbridgej at sympatico.ca Mon Dec 6 09:09:28 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 6 Dec 2010 10:09:28 -0500 Subject: [AccessD] group min - max In-Reply-To: <201012061236.oB6CaKka025889@mailhostC.plex.net> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> Message-ID: Pedro, In your test data, you couldn't have a key of Patient-number + Date with Patient 002 and 3-2-10.(duplicate??) I changed the data a little and this is based on 2 queries. PedroTbl: patient_number PDate AdditionalFld 1 1/1/2010 5 1 2/2/2010 7 2 3/2/2010 8 2 3/3/2010 6 2 3/4/2010 9 I created a query#1 PedroGrp as SELECT PedroTbl.patient_number, Min(PedroTbl.AdditionalFld) AS MinOfAdditionalFld FROM PedroTbl GROUP BY PedroTbl.patient_number; And this query #2 based on the table PedroTbl and the first query PedroGrp SELECT PedroTbl.patient_number , PedroTbl.PDate , PedroTbl.AdditionalFld FROM PedroTbl INNER JOIN PedroGrp ON (PedroTbl.AdditionalFld = PedroGrp.MinOfAdditionalFld) AND (PedroTbl.patient_number = PedroGrp.patient_number); Hope this is useful. jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Monday, December 06, 2010 1:36 PM To: accessd at databaseadvisors.com Subject: [AccessD] group min - max Dear list, normally i use Group by and min max, to create a list of min or max (or first-last) dates per Patient. But when there is a third column which has different values, I'll make a key from date and patient-number and then ad the extra value. How can i do this in one simple query? I have 001 1-1-10 5 001 2-2-10 7 002 3-2-10 8 002 3-2-10 6 i need 001 1-1-10 5 002 3-2-10 6 Thanks Pedro -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Mon Dec 6 09:13:33 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 06 Dec 2010 10:13:33 -0500 Subject: [AccessD] AC2007 security "workaround" Message-ID: <000501cb9558$25edc030$0401a8c0@MSIMMSWS> I thought John might enjoy this....someone has developed API wrappers to secure an Access 2007 database via ActiveDirectory calls: http://www.accesssecurityblog.com/post/Securing-Access-databases-using-Activ e-Directory.aspx However, given the hassle of working with the IT department for almost task, I wonder if it wouldn't be better to have an admin Access user maintain the list of users, groups, and roles within an Access table ? In that manner, changes could be made instantly instead of waiting in the IT security queue. From drawbridgej at sympatico.ca Mon Dec 6 09:21:58 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 6 Dec 2010 10:21:58 -0500 Subject: [AccessD] group min - max #2 In-Reply-To: <201012061236.oB6CaKka025889@mailhostC.plex.net> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> Message-ID: Pedro, I redid the query in original response as a single query SELECT pt.patient_number , pt.PDate ,pt.AdditionalFld FROM ( SELECT Patient_Number , Min(AdditionalFld) AS min_AF FROM PedroTbl GROUP BY Patient_Number ) AS m INNER JOIN PedroTbl AS pt ON ( pt.Patient_number = m.Patient_Number AND pt.AdditionalFld = m.min_AF ) jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Monday, December 06, 2010 1:36 PM To: accessd at databaseadvisors.com Subject: [AccessD] group min - max Dear list, normally i use Group by and min max, to create a list of min or max (or first-last) dates per Patient. But when there is a third column which has different values, I'll make a key from date and patient-number and then ad the extra value. How can i do this in one simple query? I have 001 1-1-10 5 001 2-2-10 7 002 3-2-10 8 002 3-2-10 6 i need 001 1-1-10 5 002 3-2-10 6 Thanks Pedro -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Mon Dec 6 13:00:48 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 06 Dec 2010 14:00:48 -0500 Subject: [AccessD] Citrix environment Message-ID: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? From Chester_Kaup at kindermorgan.com Mon Dec 6 13:05:35 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 6 Dec 2010 13:05:35 -0600 Subject: [AccessD] Citrix environment In-Reply-To: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C19730E6831@houex1.kindermorgan.com> Seems to run just the same as outside the Citrix environment. Runtime or full version ? Both AC2007 or earlier ? Access 2077 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, December 06, 2010 1:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Dec 6 13:37:02 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 6 Dec 2010 13:37:02 -0600 Subject: [AccessD] Citrix environment In-Reply-To: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> Message-ID: <7892AD1BF160431F9C8FDD553EE8F71C@DanWaters> One of my clients uses Access 2003 on Citrix. Works well - no unique issues other than they had to learn Citrix. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, December 06, 2010 1:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Dec 6 14:30:12 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 06:30:12 +1000 Subject: [AccessD] group min - max In-Reply-To: <201012061236.oB6CaKka025889@mailhostC.plex.net> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> Message-ID: <4CFD47D4.17649.6CA2751@stuart.lexacorp.com.pg> How do you decide which record to use here: > 002 3-2-10 8 > 002 3-2-10 6 If there only one entry per day per patient, you can use Order By and First/Last. Select pID, First(pDate),First(POtherValue) from tblPatientData Group By pID Order by pID,pDate. It would be a good idea to index the table on pID,pDate :-) If there are multiple entries per day, you need a way to identify which record you want. For the data and results given, this would work ... Order by pID,pDate,pOtherValue If you want the maximum value on the first date, use ... Order by pID,pDate,pOtherValue DESC -- Stuart On 6 Dec 2010 at 13:36, pedro at plex.nl wrote: > Dear list, > > normally i use Group by and min max, to create a list of min or max > (or first-last) dates per Patient. > > But when there is a third column which has different values, I'll make > a key from date and patient-number and then ad the extra value. How > can i do this in one simple query? > > I have > > 001 1-1-10 5 > 001 2-2-10 7 > 002 3-2-10 8 > 002 3-2-10 6 > > i need > > 001 1-1-10 5 > 002 3-2-10 6 > > Thanks > > Pedro > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Dec 6 14:40:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 06:40:33 +1000 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> Message-ID: <4CFD4A41.26929.6D3A0C4@stuart.lexacorp.com.pg> The idea of storing memo fields in separate tables is to help prevent record/page locking problems in a multi-user environment. Based on this statement from Microsoft: "By default, each field in a relational database contains only one piece of data. For example, if an address field contained more than one address, finding addresses would be difficult, if not impossible. So at first glance, attachments seem to break the rules of database design because you can attach more than one file - one piece of data - to a field. However, attachments do not break any design rules, because as you attach files to a record, Office Access 2007 creates one or more system tables and uses those tables behind the scenes to normalize your data. You cannot view or work with those tables.", it appreas that the attachments are in fact stored in separate tables. I really don't see any other way they could be doing it. If that is so, the recommendation doesn't apply. -- Stuart -- Stuart On 6 Dec 2010 at 8:48, Mark Simms wrote: > I saw a recommendation to always place memo fields into separate > tables linked to the main table by an FK. Does anyone employee this > technique ? I wonder if the same applies to attachment fields (AC2007) > as well ? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Mon Dec 6 14:47:51 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 6 Dec 2010 14:47:51 -0600 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <4CFD4A41.26929.6D3A0C4@stuart.lexacorp.com.pg> References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> <4CFD4A41.26929.6D3A0C4@stuart.lexacorp.com.pg> Message-ID: <7C04570F69D3450788890E3FE51501EF@DanWaters> IIRC, I tried to prevent excessive locking by moving several memo fields to a one-to-one related table. It didn't make a difference. I tried several scenarios and multiple records in the main table still locked up while editing a single memo field in the related table. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, December 06, 2010 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo/Attachment fields The idea of storing memo fields in separate tables is to help prevent record/page locking problems in a multi-user environment. Based on this statement from Microsoft: "By default, each field in a relational database contains only one piece of data. For example, if an address field contained more than one address, finding addresses would be difficult, if not impossible. So at first glance, attachments seem to break the rules of database design because you can attach more than one file - one piece of data - to a field. However, attachments do not break any design rules, because as you attach files to a record, Office Access 2007 creates one or more system tables and uses those tables behind the scenes to normalize your data. You cannot view or work with those tables.", it appreas that the attachments are in fact stored in separate tables. I really don't see any other way they could be doing it. If that is so, the recommendation doesn't apply. -- Stuart -- Stuart On 6 Dec 2010 at 8:48, Mark Simms wrote: > I saw a recommendation to always place memo fields into separate > tables linked to the main table by an FK. Does anyone employee this > technique ? I wonder if the same applies to attachment fields (AC2007) > as well ? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Dec 6 14:54:51 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 06:54:51 +1000 Subject: [AccessD] AC2007 security "workaround" In-Reply-To: <000501cb9558$25edc030$0401a8c0@MSIMMSWS> References: <000501cb9558$25edc030$0401a8c0@MSIMMSWS> Message-ID: <4CFD4D9B.15185.6E0B647@stuart.lexacorp.com.pg> Not just 2007. It works with 2000 onwards. The big advantage of using AD groups rather than an Access table of users is security. It's much easier to gain access to an Access table than to AD. Of course, there are ways to make it harder, such as encrypting the usernames in the table - I sometimes use that approach. -- Stuart On 6 Dec 2010 at 10:13, Mark Simms wrote: > I thought John might enjoy this....someone has developed API wrappers > to secure an Access 2007 database via ActiveDirectory calls: > > > g-Acti ve-Directory.aspx> > http://www.accesssecurityblog.com/post/Securing-Access-databases-using > -Activ e-Directory.aspx > > However, given the hassle of working with the IT department for almost > task, I wonder if it wouldn't be better to have an admin Access > user maintain the list of users, groups, and roles within an Access > table ? In that manner, changes could be made instantly instead of > waiting in the IT security queue. -- AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > From steve at datamanagementsolutions.biz Mon Dec 6 14:56:50 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Tue, 7 Dec 2010 09:56:50 +1300 Subject: [AccessD] Citrix environment In-Reply-To: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> Message-ID: <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop> Mark, One issue that some system admins seem to have difficulty getting their heads around is the need to install a separate copy of the frontend application under the user profile for each user. Regards Steve -----Original Message----- From: Mark Simms Sent: Tuesday, December 07, 2010 8:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? From stuart at lexacorp.com.pg Mon Dec 6 14:58:59 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 06:58:59 +1000 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <7C04570F69D3450788890E3FE51501EF@DanWaters> References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS>, <4CFD4A41.26929.6D3A0C4@stuart.lexacorp.com.pg>, <7C04570F69D3450788890E3FE51501EF@DanWaters> Message-ID: <4CFD4E93.27332.6E47F41@stuart.lexacorp.com.pg> I only said "The idea ...is to help...". I didn't say it actually worked :-) -- Stuart On 6 Dec 2010 at 14:47, Dan Waters wrote: > IIRC, I tried to prevent excessive locking by moving several memo > fields to a one-to-one related table. It didn't make a difference. I > tried several scenarios and multiple records in the main table still > locked up while editing a single memo field in the related table. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Monday, December 06, 2010 2:41 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Memo/Attachment fields > > The idea of storing memo fields in separate tables is to help prevent > record/page locking problems in a multi-user environment. > From df.waters at comcast.net Mon Dec 6 15:01:28 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 6 Dec 2010 15:01:28 -0600 Subject: [AccessD] Citrix environment In-Reply-To: <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop> Message-ID: Yes! The FE folders/files will go into each users' Home Directory. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Monday, December 06, 2010 2:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Citrix environment Mark, One issue that some system admins seem to have difficulty getting their heads around is the need to install a separate copy of the frontend application under the user profile for each user. Regards Steve -----Original Message----- From: Mark Simms Sent: Tuesday, December 07, 2010 8:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Dec 6 15:03:16 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 6 Dec 2010 15:03:16 -0600 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <4CFD4E93.27332.6E47F41@stuart.lexacorp.com.pg> References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS>, <4CFD4A41.26929.6D3A0C4@stuart.lexacorp.com.pg>, <7C04570F69D3450788890E3FE51501EF@DanWaters> <4CFD4E93.27332.6E47F41@stuart.lexacorp.com.pg> Message-ID: LOL!! Repeat!! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, December 06, 2010 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo/Attachment fields I only said "The idea ...is to help...". I didn't say it actually worked :-) -- Stuart On 6 Dec 2010 at 14:47, Dan Waters wrote: > IIRC, I tried to prevent excessive locking by moving several memo > fields to a one-to-one related table. It didn't make a difference. I > tried several scenarios and multiple records in the main table still > locked up while editing a single memo field in the related table. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Monday, December 06, 2010 2:41 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Memo/Attachment fields > > The idea of storing memo fields in separate tables is to help prevent > record/page locking problems in a multi-user environment. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Dec 6 16:16:41 2010 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 06 Dec 2010 23:16:41 +0100 Subject: [AccessD] group min - max In-Reply-To: <4CFD47D4.17649.6CA2751@stuart.lexacorp.com.pg> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> <4CFD47D4.17649.6CA2751@stuart.lexacorp.com.pg> Message-ID: Dear Stuart and Jack, thanks for the help. Best Wishes Pedro At 21:30 6-12-2010, you wrote: >How do you decide which record to use here: > > 002 3-2-10 8 > > 002 3-2-10 6 > >If there only one entry per day per patient, you can use Order By >and First/Last. > >Select pID, First(pDate),First(POtherValue) >from tblPatientData >Group By pID >Order by pID,pDate. > >It would be a good idea to index the table on pID,pDate :-) > >If there are multiple entries per day, you need a way to identify >which record you want. For >the data and results given, this would work > >... >Order by pID,pDate,pOtherValue > >If you want the maximum value on the first date, use > >... >Order by pID,pDate,pOtherValue DESC > > >-- >Stuart > >On 6 Dec 2010 at 13:36, pedro at plex.nl wrote: > > > Dear list, > > > > normally i use Group by and min max, to create a list of min or max > > (or first-last) dates per Patient. > > > > But when there is a third column which has different values, I'll make > > a key from date and patient-number and then ad the extra value. How > > can i do this in one simple query? > > > > I have > > > > 001 1-1-10 5 > > 001 2-2-10 7 > > 002 3-2-10 8 > > 002 3-2-10 6 > > > > i need > > > > 001 1-1-10 5 > > 002 3-2-10 6 > > > > Thanks > > > > Pedro > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Mon Dec 6 16:58:55 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 7 Dec 2010 09:58:55 +1100 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> Message-ID: <201012062259.oB6MwwrX007671@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Mark, I have personally experienced corruption issues with Memo fields in the 'main' table. Since then I always put them into a separate table and link on the key. That seems to work well. I have notice no performace hit. Actually it might even speed things up if you are playing with the main table RS and don't need to reference the data in the memo field. Just my thoughts. cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, 7 December 2010 12:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Memo/Attachment fields I saw a recommendation to always place memo fields into separate tables linked to the main table by an FK. Does anyone employee this technique ? I wonder if the same applies to attachment fields (AC2007) as well ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From marksimms at verizon.net Mon Dec 6 17:21:59 2010 From: marksimms at verizon.net (Mark Simms) Date: Mon, 06 Dec 2010 18:21:59 -0500 Subject: [AccessD] Citrix environment In-Reply-To: <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop> Message-ID: <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS> Ah....I see. It appears as though Tony Toew's AutoFEUpdater solution will not work ? It was great to be able to place the updated FE on the network, and then everyone receives it locally....automatically on the next open. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Schapel > Sent: Monday, December 06, 2010 3:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Citrix environment > > Mark, > > One issue that some system admins seem to have difficulty > getting their heads around is the need to install a separate > copy of the frontend application under the user profile for each user. > > Regards > Steve > > -----Original Message----- > From: Mark Simms > Sent: Tuesday, December 07, 2010 8:00 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Citrix environment > > Has anyone had any experience running Access in a Citrix environment ? > Runtime or full version ? > AC2007 or earlier ? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Dec 6 17:34:14 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 09:34:14 +1000 Subject: [AccessD] Citrix environment In-Reply-To: <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS>, <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop>, <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS> Message-ID: <4CFD72F6.25990.772A1E0@stuart.lexacorp.com.pg> I just put a two line batchfile somewhere in each user's personal storage area: @copy \\Server\Share\ApplicationFE.mde @Start ApplicationFE.mde Then put a shortcut to that file on their desktop. I don't worry about whether there is a new version available, I just grab a fresh copy every time they run the application. It doesn't put much load on the network generally. One advantage is that you don't get the FE starting to bloat if you are using local Temp tables for batch input, complex data manipulations etc. -- Stuart On 6 Dec 2010 at 18:21, Mark Simms wrote: > Ah....I see. It appears as though Tony Toew's AutoFEUpdater solution > will not work ? It was great to be able to place the updated FE on the > network, and then everyone receives it locally....automatically on the > next open. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Steve Schapel > > Sent: Monday, December 06, 2010 3:57 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Citrix environment > > > > Mark, > > > > One issue that some system admins seem to have difficulty > > getting their heads around is the need to install a separate > > copy of the frontend application under the user profile for each > > user. > > > > Regards > > Steve > > > > -----Original Message----- > > From: Mark Simms > > Sent: Tuesday, December 07, 2010 8:00 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Citrix environment > > > > Has anyone had any experience running Access in a Citrix environment > > ? Runtime or full version ? AC2007 or earlier ? > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Mon Dec 6 17:54:35 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Mon, 6 Dec 2010 16:54:35 -0700 Subject: [AccessD] Citrix environment In-Reply-To: <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS>, <24782CFE0C3D4620AB55D7B2F31158E8@stevelaptop>, <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS> Message-ID: I'm in a terminal server environment. There is a script that runs on the shortcut to our application that takes a copy of the frontend from the deployment folder to the user folder and then launches it. I've got 65 concurrent users on 7 terminal servers in 4 timezones. If I want to deploy an update, I just drop it in the deployment folder replacing the previous file. Each user logs in and a load balancer picks the server in the correct time zone. If the admin guys know what they're doing, it's a doddle. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: marksimms at verizon.net > To: accessd at databaseadvisors.com > Date: Mon, 6 Dec 2010 18:21:59 -0500 > Subject: Re: [AccessD] Citrix environment > > Ah....I see. It appears as though Tony Toew's AutoFEUpdater solution will > not work ? > It was great to be able to place the updated FE on the network, and then > everyone receives it locally....automatically on the next open. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Steve Schapel > > Sent: Monday, December 06, 2010 3:57 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Citrix environment > > > > Mark, > > > > One issue that some system admins seem to have difficulty > > getting their heads around is the need to install a separate > > copy of the frontend application under the user profile for each user. > > > > Regards > > Steve > > > > -----Original Message----- > > From: Mark Simms > > Sent: Tuesday, December 07, 2010 8:00 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Citrix environment > > > > Has anyone had any experience running Access in a Citrix environment ? > > Runtime or full version ? > > AC2007 or earlier ? > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Mon Dec 6 18:08:38 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Dec 2010 10:08:38 +1000 Subject: [AccessD] Citrix environment In-Reply-To: <4CFD72F6.25990.772A1E0@stuart.lexacorp.com.pg> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS>, <006801cb959c$61ce54e0$0401a8c0@MSIMMSWS>, <4CFD72F6.25990.772A1E0@stuart.lexacorp.com.pg> Message-ID: <4CFD7B06.15476.7922449@stuart.lexacorp.com.pg> As an additional thought, if \\Server is both the Terminal Services server and the file server that holds the deployment directory, there is no network load involved in grabbing a new copy of the FE every time it is opened, -- Stuart On 7 Dec 2010 at 9:34, Stuart McLachlan wrote: > I just put a two line batchfile somewhere in each user's personal > storage area: > > @copy \\Server\Share\ApplicationFE.mde > @Start ApplicationFE.mde > > Then put a shortcut to that file on their desktop. > > I don't worry about whether there is a new version available, I just > grab a fresh copy every time they run the application. It doesn't put > much load on the network generally. > > One advantage is that you don't get the FE starting to bloat if you > are using local Temp tables for batch input, complex data > manipulations etc. > > > -- > Stuart > > > On 6 Dec 2010 at 18:21, Mark Simms wrote: > > > Ah....I see. It appears as though Tony Toew's AutoFEUpdater solution > > will not work ? It was great to be able to place the updated FE on > > the network, and then everyone receives it locally....automatically > > on the next open. > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Steve Schapel > > > Sent: Monday, December 06, 2010 3:57 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Citrix environment > > > > > > Mark, > > > > > > One issue that some system admins seem to have difficulty > > > getting their heads around is the need to install a separate > > > copy of the frontend application under the user profile for each > > > user. > > > > > > Regards > > > Steve > > > > > > -----Original Message----- > > > From: Mark Simms > > > Sent: Tuesday, December 07, 2010 8:00 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] Citrix environment > > > > > > Has anyone had any experience running Access in a Citrix > > > environment ? Runtime or full version ? AC2007 or earlier ? > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at iag.com.au Mon Dec 6 18:17:18 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 7 Dec 2010 11:17:18 +1100 Subject: [AccessD] Citrix environment In-Reply-To: <4CFD72F6.25990.772A1E0@stuart.lexacorp.com.pg> Message-ID: <201012070017.oB70HLVh006810@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ I like this approach, I can see a lot of upside to grabbing a clean copy each time. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, 7 December 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Citrix environment I just put a two line batchfile somewhere in each user's personal storage area: @copy \\Server\Share\ApplicationFE.mde @Start ApplicationFE.mde Then put a shortcut to that file on their desktop. I don't worry about whether there is a new version available, I just grab a fresh copy every time they run the application. It doesn't put much load on the network generally. One advantage is that you don't get the FE starting to bloat if you are using local Temp tables for batch input, complex data manipulations etc. -- Stuart On 6 Dec 2010 at 18:21, Mark Simms wrote: > Ah....I see. It appears as though Tony Toew's AutoFEUpdater solution > will not work ? It was great to be able to place the updated FE on the > network, and then everyone receives it locally....automatically on the > next open. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Steve Schapel > > Sent: Monday, December 06, 2010 3:57 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Citrix environment > > > > Mark, > > > > One issue that some system admins seem to have difficulty > > getting their heads around is the need to install a separate > > copy of the frontend application under the user profile for each > > user. > > > > Regards > > Steve > > > > -----Original Message----- > > From: Mark Simms > > Sent: Tuesday, December 07, 2010 8:00 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Citrix environment > > > > Has anyone had any experience running Access in a Citrix environment > > ? Runtime or full version ? AC2007 or earlier ? > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From marksimms at verizon.net Mon Dec 6 23:09:32 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 07 Dec 2010 00:09:32 -0500 Subject: [AccessD] Memo/Attachment fields In-Reply-To: <201012062259.oB6MwwrX007671@databaseadvisors.com> References: <00b901cb954c$42866c30$0401a8c0@MSIMMSWS> <201012062259.oB6MwwrX007671@databaseadvisors.com> Message-ID: <009301cb95cc$ef56c7e0$0401a8c0@MSIMMSWS> Thanks Darryl and that makes sense. > > Hi Mark, > > I have personally experienced corruption issues with Memo > fields in the 'main' table. Since then I always put them > into a separate table and link on the key. That seems to > work well. I have notice no performace hit. Actually it > might even speed things up if you are playing with the main > table RS and don't need to reference the data in the memo field. > > Just my thoughts. > > cheers > Darryl From jimdettman at verizon.net Mon Dec 6 23:36:56 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 7 Dec 2010 00:36:56 -0500 Subject: [AccessD] Citrix environment In-Reply-To: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> Message-ID: <8038BC48CB7A43BBABB720CD83F0AC67@LaptopII> Mark, Outside of the separate copy of the FE in the users home directory, one gotcha is the use of library DB's that you do a reference to. Even with a separate copy for each user, typically all the references are still C:\...\ and conflicts can result. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, December 06, 2010 2:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Dec 7 14:38:14 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 07 Dec 2010 14:38:14 (CET) Subject: [AccessD] group min - max Message-ID: <201012071338.oB7DcETB008414@mailhostC.plex.net> Hello Jack, i used your query, but it gives the max-min value of the additional-field (last Column), and with many the same dates and additional-field values, i have more then one record. It is more important to me to have the max or min date, with the additional-field value. Let me explain more for example. i have 001 2-2-2010 2 001 3-3-2010 3 001 3-3-2010 4 001 2-3-2010 4 Your query (max) result gives: 001 3-3-2010 4 001 2-3-2010 4 I'll need 001 3-3-2010 4 (in one query) the example can give you a wrong image of the data, because the dataset for the years needed is 750000 records and patients can have up to a few hundred records each. Pedro >From: Jack and Pat >To: "'Access Developers discussion and problem solving'" > >Date: Mon, 6 Dec 2010 10:21:58 -0500 >Pedro, > >I redid the query in original response as a single query > >SELECT pt.patient_number > , pt.PDate > ,pt.AdditionalFld > FROM ( SELECT Patient_Number > , Min(AdditionalFld) AS min_AF > FROM PedroTbl > GROUP > BY Patient_Number ) AS m >INNER > JOIN PedroTbl AS pt > ON ( > pt.Patient_number = m.Patient_Number > AND pt.AdditionalFld = m.min_AF > ) > >jack >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >pedro at plex.nl >Sent: Monday, December 06, 2010 1:36 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] group min - max > >Dear list, > >normally i use Group by and min max, to create a list of min or max (or >first-last) dates per Patient. > >But when there is a third column which has different values, I'll make >a key from date and patient-number and then ad the extra value. >How can i do this in one simple query? > >I have > >001 1-1-10 5 >001 2-2-10 7 >002 3-2-10 8 >002 3-2-10 6 > >i need > >001 1-1-10 5 >002 3-2-10 6 > >Thanks > >Pedro >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Dec 7 07:58:21 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 7 Dec 2010 08:58:21 -0500 Subject: [AccessD] group min - max In-Reply-To: <201012071338.oB7DcETB008414@mailhostC.plex.net> References: <201012071338.oB7DcETB008414@mailhostC.plex.net> Message-ID: Why obsess over using a single query? Use two like Jack originally suggested. For one this Access/JET really sucks with sub-queries run against large record sets like you have. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, December 07, 2010 9:38 AM To: pedro at plex.nl Cc: AccessD at databaseadvisors.com Subject: Re: [AccessD] group min - max Hello Jack, i used your query, but it gives the max-min value of the additional-field (last Column), and with many the same dates and additional-field values, i have more then one record. It is more important to me to have the max or min date, with the additional-field value. Let me explain more for example. From df.waters at comcast.net Tue Dec 7 08:00:26 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 7 Dec 2010 08:00:26 -0600 Subject: [AccessD] Citrix environment In-Reply-To: <8038BC48CB7A43BBABB720CD83F0AC67@LaptopII> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> <8038BC48CB7A43BBABB720CD83F0AC67@LaptopII> Message-ID: <0D1CC6ED4EAF47689B3A7D07A7C3632E@DanWaters> Jim, Do you mean an Access library DB that I would have created? I do use these, but include them in what is installed in each client's home directory. Or do you mean other references that are under Tools | References? I would hope that Citrix could manage single files on the C drive being referenced by multiple users. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, December 06, 2010 11:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Citrix environment Mark, Outside of the separate copy of the FE in the users home directory, one gotcha is the use of library DB's that you do a reference to. Even with a separate copy for each user, typically all the references are still C:\...\ and conflicts can result. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, December 06, 2010 2:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Tue Dec 7 09:35:37 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Tue, 7 Dec 2010 10:35:37 -0500 Subject: [AccessD] group min - max In-Reply-To: <201012071338.oB7DcETB008414@mailhostC.plex.net> References: <201012071338.oB7DcETB008414@mailhostC.plex.net> Message-ID: Pedro, You indicated you were making a key out of patient-number and Date. That means you can't have more than one record with the same patient-number and Date. I'm confused-- what is the key to the record? As Stuart mentioned, How to you identify specific records? I made up some data yesterday, but wasn't sure of your structures and real requirements. Sorry about that. jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, December 07, 2010 2:38 PM To: pedro at plex.nl Cc: AccessD at databaseadvisors.com Subject: Re: [AccessD] group min - max Hello Jack, i used your query, but it gives the max-min value of the additional-field (last Column), and with many the same dates and additional-field values, i have more then one record. It is more important to me to have the max or min date, with the additional-field value. Let me explain more for example. i have 001 2-2-2010 2 001 3-3-2010 3 001 3-3-2010 4 001 2-3-2010 4 Your query (max) result gives: 001 3-3-2010 4 001 2-3-2010 4 I'll need 001 3-3-2010 4 (in one query) the example can give you a wrong image of the data, because the dataset for the years needed is 750000 records and patients can have up to a few hundred records each. Pedro >From: Jack and Pat >To: "'Access Developers discussion and problem solving'" > >Date: Mon, 6 Dec 2010 10:21:58 -0500 >Pedro, > >I redid the query in original response as a single query > >SELECT pt.patient_number > , pt.PDate > ,pt.AdditionalFld > FROM ( SELECT Patient_Number > , Min(AdditionalFld) AS min_AF > FROM PedroTbl > GROUP > BY Patient_Number ) AS m >INNER > JOIN PedroTbl AS pt > ON ( > pt.Patient_number = m.Patient_Number > AND pt.AdditionalFld = m.min_AF > ) > >jack >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >pedro at plex.nl >Sent: Monday, December 06, 2010 1:36 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] group min - max > >Dear list, > >normally i use Group by and min max, to create a list of min or max (or >first-last) dates per Patient. > >But when there is a third column which has different values, I'll make >a key from date and patient-number and then ad the extra value. >How can i do this in one simple query? > >I have > >001 1-1-10 5 >001 2-2-10 7 >002 3-2-10 8 >002 3-2-10 6 > >i need > >001 1-1-10 5 >002 3-2-10 6 > >Thanks > >Pedro >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Dec 7 10:00:45 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 07 Dec 2010 11:00:45 -0500 Subject: [AccessD] Citrix environment In-Reply-To: <0D1CC6ED4EAF47689B3A7D07A7C3632E@DanWaters> References: <000001cb9577$e5460810$0401a8c0@MSIMMSWS> <8038BC48CB7A43BBABB720CD83F0AC67@LaptopII> <0D1CC6ED4EAF47689B3A7D07A7C3632E@DanWaters> Message-ID: Yes. Take a look at your references in VBA. If any are C:\, then they are being shared in a Citrix environment. Sometimes, that can be problematic as not all library DB's are written with multi-user access in mind. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, December 07, 2010 9:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Citrix environment Jim, Do you mean an Access library DB that I would have created? I do use these, but include them in what is installed in each client's home directory. Or do you mean other references that are under Tools | References? I would hope that Citrix could manage single files on the C drive being referenced by multiple users. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, December 06, 2010 11:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Citrix environment Mark, Outside of the separate copy of the FE in the users home directory, one gotcha is the use of library DB's that you do a reference to. Even with a separate copy for each user, typically all the references are still C:\...\ and conflicts can result. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Monday, December 06, 2010 2:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Citrix environment Has anyone had any experience running Access in a Citrix environment ? Runtime or full version ? AC2007 or earlier ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Dec 7 17:18:17 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 07 Dec 2010 17:18:17 (CET) Subject: [AccessD] group min - max Message-ID: <201012071618.oB7GIH0A017096@mailhostC.plex.net> Hello Jack, i have no uniek key in this data, but i can change the table so that i have one. Then i could make a normal max or min query on the date with a group by on Patientnumber and use an update query to ad the additional field with value. Or do you have a better idea? Pedro In antwoord op: > From: Jack and Pat > To: "'Access Developers discussion and problem solving'" > Date: Tue, 7 Dec 2010 10:35:37 -0500 > Subject: Re: [AccessD] group min - max > > > Pedro, > You indicated you were making a key out of patient-number and Date. That > means you can't have more than one record with the same patient-number and > Date. I'm confused-- what is the key to the record? As Stuart mentioned, How > to you identify specific records? > I made up some data yesterday, but wasn't sure of your structures and real > requirements. > > Sorry about that. > > jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: Tuesday, December 07, 2010 2:38 PM > To: pedro at plex.nl > Cc: AccessD at databaseadvisors.com > Subject: Re: [AccessD] group min - max > > Hello Jack, > > i used your query, but it gives the max-min value of the additional-field > (last Column), and with many the same dates and additional-field values, i > have more then one record. > It is more important to me to have the max or min date, with the > additional-field value. > > Let me explain more > for example. > > i have > > 001 2-2-2010 2 > 001 3-3-2010 3 > 001 3-3-2010 4 > 001 2-3-2010 4 > > Your query (max) result gives: > > 001 3-3-2010 4 > 001 2-3-2010 4 > > I'll need > > 001 3-3-2010 4 > (in one query) > > the example can give you a wrong image of the data, because the dataset for > the years needed is 750000 records and patients can have up to a few hundred > records each. > > Pedro > > > > > > > > > > > >From: Jack and Pat > >To: "'Access Developers discussion and problem solving'" > > > >Date: Mon, 6 Dec 2010 10:21:58 -0500 > > > >Pedro, > > > >I redid the query in original response as a single query > > > >SELECT pt.patient_number > > , pt.PDate > > ,pt.AdditionalFld > > FROM ( SELECT Patient_Number > > , Min(AdditionalFld) AS min_AF > > FROM PedroTbl > > GROUP > > BY Patient_Number ) AS m > >INNER > > JOIN PedroTbl AS pt > > ON ( > > pt.Patient_number = m.Patient_Number > > AND pt.AdditionalFld = m.min_AF > > ) > > > >jack > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >pedro at plex.nl > >Sent: Monday, December 06, 2010 1:36 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] group min - max > > > >Dear list, > > > >normally i use Group by and min max, to create a list of min or max (or > >first-last) dates per Patient. > > > >But when there is a third column which has different values, I'll make > >a key from date and patient-number and then ad the extra value. > >How can i do this in one simple query? > > > >I have > > > >001 1-1-10 5 > >001 2-2-10 7 > >002 3-2-10 8 > >002 3-2-10 6 > > > >i need > > > >001 1-1-10 5 > >002 3-2-10 6 > > > >Thanks > > > >Pedro > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From drawbridgej at sympatico.ca Tue Dec 7 10:33:18 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Tue, 7 Dec 2010 11:33:18 -0500 Subject: [AccessD] group min - max In-Reply-To: <201012071618.oB7GIH0A017096@mailhostC.plex.net> References: <201012071618.oB7GIH0A017096@mailhostC.plex.net> Message-ID: Pedro, I don't have any specific ideas, but I did remove the key I had on my test data. I added a field called ID (autonumber) and made it PK but only for testing. I don't use The Id field in the query. I wasn't sure if you were using Min or Max. I adjusted my table to include your data. When I used it for Max pDate and just selected the additional field, I got 2 responses - 1 for each value of additional field. TO remove that problem I adjusted the query to use Max (PDate) and Max(AdditionalField) Here's my data and query: PedroTbl (data) patient_number PDate AdditionalFld id 1 1/1/2010 5 1 2 2/2/2010 3 2 2 3/3/2010 3 3 2 3/3/2010 4 4 2 2/3/2010 4 5 Query: SELECT pt.patient_number, pt.PDate,pt.AdditionalFld FROM (SELECT Patient_Number , Max(pDate) AS min_PDt , max(AdditionalFld) as min_AF FROM PedroTbl GROUP BY Patient_Number ) AS m INNER JOIN PedroTbl AS pt ON (m.Patient_Number = pt.patient_number) AND (m.min_PDt = pt.PDate) and (m.min_AF = pt.AdditionalFld) Query result: patient_number PDate AdditionalFld 1 1/1/2010 5 2 3/3/2010 4 Hope this is useful to you. You can just replace Max with Min to get the Minimums if that's what you're doing. Good luck Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl Sent: Tuesday, December 07, 2010 5:18 PM To: AccessD at databaseadvisors.com Subject: Re: [AccessD] group min - max Hello Jack, i have no uniek key in this data, but i can change the table so that i have one. Then i could make a normal max or min query on the date with a group by on Patientnumber and use an update query to ad the additional field with value. Or do you have a better idea? Pedro In antwoord op: > From: Jack and Pat > To: "'Access Developers discussion and problem solving'" > Date: Tue, 7 Dec 2010 10:35:37 -0500 > Subject: Re: [AccessD] group min - max > > > Pedro, > You indicated you were making a key out of patient-number and Date. That > means you can't have more than one record with the same patient-number and > Date. I'm confused-- what is the key to the record? As Stuart mentioned, How > to you identify specific records? > I made up some data yesterday, but wasn't sure of your structures and real > requirements. > > Sorry about that. > > jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: Tuesday, December 07, 2010 2:38 PM > To: pedro at plex.nl > Cc: AccessD at databaseadvisors.com > Subject: Re: [AccessD] group min - max > > Hello Jack, > > i used your query, but it gives the max-min value of the additional-field > (last Column), and with many the same dates and additional-field values, i > have more then one record. > It is more important to me to have the max or min date, with the > additional-field value. > > Let me explain more > for example. > > i have > > 001 2-2-2010 2 > 001 3-3-2010 3 > 001 3-3-2010 4 > 001 2-3-2010 4 > > Your query (max) result gives: > > 001 3-3-2010 4 > 001 2-3-2010 4 > > I'll need > > 001 3-3-2010 4 > (in one query) > > the example can give you a wrong image of the data, because the dataset for > the years needed is 750000 records and patients can have up to a few hundred > records each. > > Pedro > > > > > > > > > > > >From: Jack and Pat > >To: "'Access Developers discussion and problem solving'" > > > >Date: Mon, 6 Dec 2010 10:21:58 -0500 > > > >Pedro, > > > >I redid the query in original response as a single query > > > >SELECT pt.patient_number > > , pt.PDate > > ,pt.AdditionalFld > > FROM ( SELECT Patient_Number > > , Min(AdditionalFld) AS min_AF > > FROM PedroTbl > > GROUP > > BY Patient_Number ) AS m > >INNER > > JOIN PedroTbl AS pt > > ON ( > > pt.Patient_number = m.Patient_Number > > AND pt.AdditionalFld = m.min_AF > > ) > > > >jack > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >pedro at plex.nl > >Sent: Monday, December 06, 2010 1:36 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] group min - max > > > >Dear list, > > > >normally i use Group by and min max, to create a list of min or max (or > >first-last) dates per Patient. > > > >But when there is a third column which has different values, I'll make > >a key from date and patient-number and then ad the extra value. > >How can i do this in one simple query? > > > >I have > > > >001 1-1-10 5 > >001 2-2-10 7 > >002 3-2-10 8 > >002 3-2-10 6 > > > >i need > > > >001 1-1-10 5 > >002 3-2-10 6 > > > >Thanks > > > >Pedro > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Tue Dec 7 12:59:41 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Tue, 7 Dec 2010 12:59:41 -0600 Subject: [AccessD] Access 2007 Kicked Off once per day In-Reply-To: <201012061236.oB6CaKka025889@mailhostC.plex.net> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> Message-ID: <04e801cb9640$e851cf20$b8f56d60$@com> Hi folks: I have one user reporting that the Access 2007 application on his desktop will kick him off (crashes) once per day, when he opens a report. After the initial crash, if he restarts the application, it works fine, reports print, etc. This isn't happening to other users on the network. I'm not getting any good error messages from this ... anyone seen anything similar or have an idea of how to troubleshoot? (I've compacted, repaired, etc. ... no luck) Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 From jimdettman at verizon.net Tue Dec 7 13:41:11 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 07 Dec 2010 14:41:11 -0500 Subject: [AccessD] Access 2007 Kicked Off once per day In-Reply-To: <04e801cb9640$e851cf20$b8f56d60$@com> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> <04e801cb9640$e851cf20$b8f56d60$@com> Message-ID: /decompile or better yet, import everything into a fresh DB container. Then do a compile to check for errors. If it still errors, then your probably tripping over a bug. Make sure their service packed to date. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, December 07, 2010 2:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 Kicked Off once per day Hi folks: I have one user reporting that the Access 2007 application on his desktop will kick him off (crashes) once per day, when he opens a report. After the initial crash, if he restarts the application, it works fine, reports print, etc. This isn't happening to other users on the network. I'm not getting any good error messages from this ... anyone seen anything similar or have an idea of how to troubleshoot? (I've compacted, repaired, etc. ... no luck) Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Dec 7 15:10:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 7 Dec 2010 13:10:18 -0800 Subject: [AccessD] Access 2007 Kicked Off once per day In-Reply-To: <04e801cb9640$e851cf20$b8f56d60$@com> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> <04e801cb9640$e851cf20$b8f56d60$@com> Message-ID: <5AE6E88171D04B27863E74DD8DBF0C12@HAL9005> Same report? Can be replicated on demand? Or random? If it's his machine only then I'd suspect either a flaky NIC or a missing patch to Office. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, December 07, 2010 11:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 Kicked Off once per day Hi folks: I have one user reporting that the Access 2007 application on his desktop will kick him off (crashes) once per day, when he opens a report. After the initial crash, if he restarts the application, it works fine, reports print, etc. This isn't happening to other users on the network. I'm not getting any good error messages from this ... anyone seen anything similar or have an idea of how to troubleshoot? (I've compacted, repaired, etc. ... no luck) Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Tue Dec 7 17:31:21 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 07 Dec 2010 18:31:21 -0500 Subject: [AccessD] Access 2007 Kicked Off once per day In-Reply-To: <04e801cb9640$e851cf20$b8f56d60$@com> References: <201012061236.oB6CaKka025889@mailhostC.plex.net> <04e801cb9640$e851cf20$b8f56d60$@com> Message-ID: <002d01cb9666$dbfaabe0$0401a8c0@MSIMMSWS> I would definitely have him reinstall AC2007. Is he using the full-version or run-time version ? First, chkdsk all hard drives: Chkdsk /f /r > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Lawrence Mrazek > Sent: Tuesday, December 07, 2010 2:00 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 Kicked Off once per day > > Hi folks: > > I have one user reporting that the Access 2007 application on > his desktop will kick him off (crashes) once per day, when he > opens a report. After the initial crash, if he restarts the > application, it works fine, reports print, etc. > > This isn't happening to other users on the network. From ssharkins at gmail.com Wed Dec 8 15:01:10 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 8 Dec 2010 16:01:10 -0500 Subject: [AccessD] Nevermind (#Func! in Access 2010) Message-ID: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p> Nevermind. Susan H. Does anyone know what #Func! means? I can't find a reference to it anywhere. In Access 2010, I'm using a simple parsing expression: FirstName: Left([Name],InStr([name]," ")-1) and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. Anybody know what this is? Susan H. From davidmcafee at gmail.com Wed Dec 8 18:48:30 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 8 Dec 2010 16:48:30 -0800 Subject: [AccessD] Nevermind (#Func! in Access 2010) In-Reply-To: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p> References: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p> Message-ID: I think they got the last two letters wrong ;) On Wed, Dec 8, 2010 at 1:01 PM, Susan Harkins wrote: > Nevermind. > > Susan H. > > > Does anyone know what #Func! means? I can't find a reference to it anywhere. > > In Access 2010, I'm using a simple parsing expression: > > FirstName: Left([Name],InStr([name]," ")-1) > > and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. > > Anybody know what this is? > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From charlotte.foust at gmail.com Wed Dec 8 18:49:16 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 8 Dec 2010 16:49:16 -0800 Subject: [AccessD] Nevermind (#Func! in Access 2010) In-Reply-To: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p> References: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p> Message-ID: Offhand, I'd say the minus one is trying to return a negative value on a field with nothing in it. Charlotte Foust On Wed, Dec 8, 2010 at 1:01 PM, Susan Harkins wrote: > Nevermind. > > Susan H. > > > Does anyone know what #Func! means? I can't find a reference to it anywhere. > > In Access 2010, I'm using a simple parsing expression: > > FirstName: Left([Name],InStr([name]," ")-1) > > and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. > > Anybody know what this is? > > 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 Dec 8 14:37:13 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 8 Dec 2010 15:37:13 -0500 Subject: [AccessD] #Func! in Access 2010 Message-ID: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> Does anyone know what #Func! means? I can't find a reference to it anywhere. In Access 2010, I'm using a simple parsing expression: FirstName: Left([Name],InStr([name]," ")-1) and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. Anybody know what this is? Susan H. From charlotte.foust at gmail.com Wed Dec 8 20:04:35 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Wed, 8 Dec 2010 18:04:35 -0800 Subject: [AccessD] #Func! in Access 2010 In-Reply-To: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> References: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> Message-ID: IIRC it means Access doesn't recognize the function you're calling of doesn't recognize a argument. It could come up with a bad reference, but since removing the -1 from the function allows it to evaluate, I think it's telling you it can't process the value. Way back in the day, those cryptic messages were at the front of the index in the manuals ... back when they published manuals. If you still have a 97 reference, check there. Charlotte Foust On Wed, Dec 8, 2010 at 12:37 PM, Susan Harkins wrote: > Does anyone know what #Func! means? I can't find a reference to it anywhere. > > In Access 2010, I'm using a simple parsing expression: > > FirstName: Left([Name],InStr([name]," ")-1) > > and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. > > Anybody know what this is? > > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lmrazek at lcm-res.com Wed Dec 8 20:11:10 2010 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 8 Dec 2010 20:11:10 -0600 Subject: [AccessD] Access 2007 Kicked Off once per day In-Reply-To: References: <201012061236.oB6CaKka025889@mailhostC.plex.net> <04e801cb9640$e851cf20$b8f56d60$@com> Message-ID: <068401cb9746$59ccccd0$0d666670$@com> Thanks Jim: I'll try those again ... I've had problems with his system before, so we'll see what happens. Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, December 07, 2010 1:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 Kicked Off once per day /decompile or better yet, import everything into a fresh DB container. Then do a compile to check for errors. If it still errors, then your probably tripping over a bug. Make sure their service packed to date. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, December 07, 2010 2:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 Kicked Off once per day Hi folks: I have one user reporting that the Access 2007 application on his desktop will kick him off (crashes) once per day, when he opens a report. After the initial crash, if he restarts the application, it works fine, reports print, etc. This isn't happening to other users on the network. I'm not getting any good error messages from this ... anyone seen anything similar or have an idea of how to troubleshoot? (I've compacted, repaired, etc. ... no luck) Larry Mrazek lmrazek at lcm-res.com ph. 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Dec 8 20:23:05 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Dec 2010 12:23:05 +1000 Subject: [AccessD] Nevermind (#Func! in Access 2010) In-Reply-To: References: <0FBD7EA5B4514384BEB6A96100A3217E@salvationomc4p>, Message-ID: <4D003D89.2818.1259E417@stuart.lexacorp.com.pg> If [Name] doesn't contain a space, the function will return an error. -- Stuart On 8 Dec 2010 at 16:49, Charlotte Foust wrote: > Offhand, I'd say the minus one is trying to return a negative value on > a field with nothing in it. > > Charlotte Foust > > On Wed, Dec 8, 2010 at 1:01 PM, Susan Harkins > wrote: > Nevermind. > > Susan H. > > > Does anyone know what > #Func! means? I can't find a reference to it anywhere. > > In Access > 2010, I'm using a simple parsing expression: > > FirstName: > Left([Name],InStr([name]," ")-1) > > and this value shows up just > below the field header in Datasheet view. If I remove the -1 > component, #Func! disappears. > > Anybody know what this is? > > 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 garykjos at gmail.com Thu Dec 9 08:22:25 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2010 08:22:25 -0600 Subject: [AccessD] #Func! in Access 2010 In-Reply-To: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> References: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> Message-ID: I wonder if your field name "Name" might be a problem? Reserved word maybe? Try renaming to FullName? It does work fine in A2007 in my testing. GK On Wed, Dec 8, 2010 at 2:37 PM, Susan Harkins wrote: > Does anyone know what #Func! means? I can't find a reference to it anywhere. > > In Access 2010, I'm using a simple parsing expression: > > FirstName: Left([Name],InStr([name]," ")-1) > > and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. > > Anybody know what this is? > > 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 garykjos at gmail.com Thu Dec 9 08:27:19 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 9 Dec 2010 08:27:19 -0600 Subject: [AccessD] #Func! in Access 2010 In-Reply-To: References: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> Message-ID: I do get a #Error on records with no space in the Name field though. On Thu, Dec 9, 2010 at 8:22 AM, Gary Kjos wrote: > I wonder if your field name "Name" might be a problem? ?Reserved word > maybe? ?Try renaming to FullName? > > It does work fine in A2007 in my testing. > > GK > > On Wed, Dec 8, 2010 at 2:37 PM, Susan Harkins wrote: >> Does anyone know what #Func! means? I can't find a reference to it anywhere. >> >> In Access 2010, I'm using a simple parsing expression: >> >> FirstName: Left([Name],InStr([name]," ")-1) >> >> and this value shows up just below the field header in Datasheet view. If I remove the -1 component, #Func! disappears. >> >> Anybody know what this is? >> >> 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 > -- Gary Kjos garykjos at gmail.com From ssharkins at gmail.com Thu Dec 9 08:58:31 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 9 Dec 2010 09:58:31 -0500 Subject: [AccessD] #Func! in Access 2010 References: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> Message-ID: <5F153CA1A5DE407C85C9C9D9E64E7CC0@salvationomc4p> Yes, that was exactly it Gary. I had two fields, Name and I don't remember the second, but in the Name field, I somehow managed to enter "Name" as the first entry -- and the second field, the one with the expression, returned that error. The expression does return #Error if the name entry doesn't contain a space, but in that first record, it return #FUNC!, which I don't recall ever seeing before. This only happens in 2010 and interestingly, the query displays #FUNC! in both fields, the Name field and the expression field. In addition, it happens with any one-word entry, not just "Name." So, interesting, and does seem to be related to the no-space error, but why it behaves so different in 2010 is a puzzle to me. Changing the Name field name didn't resolve it. So, now you know as much as me -- I stopped exploring. I don't mind a new error value -- learn new stuff every day. The true puzzle is why it won't display the actual name entry in the Name field when there's no space -- it too displays the #FUNC! error value instead of the actual entry -- which is really curious. Susan H. >I wonder if your field name "Name" might be a problem? Reserved word > maybe? Try renaming to FullName? > > It does work fine in A2007 in my testing. > > GK > > On Wed, Dec 8, 2010 at 2:37 PM, Susan Harkins wrote: >> Does anyone know what #Func! means? I can't find a reference to it >> anywhere. >> >> In Access 2010, I'm using a simple parsing expression: >> >> FirstName: Left([Name],InStr([name]," ")-1) >> >> and this value shows up just below the field header in Datasheet view. If >> I remove the -1 component, #Func! disappears. >> >> Anybody know what this is? >> >> 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 From cjlabs at att.net Thu Dec 9 08:58:30 2010 From: cjlabs at att.net (Carolyn Johnson) Date: Thu, 9 Dec 2010 08:58:30 -0600 Subject: [AccessD] #Func! in Access 2010 References: <6BE7B3E65EF64FD9A2CE3FBA95976B1A@salvationomc4p> <5F153CA1A5DE407C85C9C9D9E64E7CC0@salvationomc4p> Message-ID: <6CFA3A36E1694D7AA852A4113062D1EF@Dell> Does the database have a reference to DAO? Carolyn Johnson St Louis, MO ----- Original Message ----- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Thursday, December 09, 2010 8:58 AM Subject: Re: [AccessD] #Func! in Access 2010 Yes, that was exactly it Gary. I had two fields, Name and I don't remember the second, but in the Name field, I somehow managed to enter "Name" as the first entry -- and the second field, the one with the expression, returned that error. The expression does return #Error if the name entry doesn't contain a space, but in that first record, it return #FUNC!, which I don't recall ever seeing before. This only happens in 2010 and interestingly, the query displays #FUNC! in both fields, the Name field and the expression field. In addition, it happens with any one-word entry, not just "Name." So, interesting, and does seem to be related to the no-space error, but why it behaves so different in 2010 is a puzzle to me. Changing the Name field name didn't resolve it. So, now you know as much as me -- I stopped exploring. I don't mind a new error value -- learn new stuff every day. The true puzzle is why it won't display the actual name entry in the Name field when there's no space -- it too displays the #FUNC! error value instead of the actual entry -- which is really curious. Susan H. >I wonder if your field name "Name" might be a problem? Reserved word > maybe? Try renaming to FullName? > > It does work fine in A2007 in my testing. > > GK > > On Wed, Dec 8, 2010 at 2:37 PM, Susan Harkins wrote: >> Does anyone know what #Func! means? I can't find a reference to it >> anywhere. >> >> In Access 2010, I'm using a simple parsing expression: >> >> FirstName: Left([Name],InStr([name]," ")-1) >> >> and this value shows up just below the field header in Datasheet view. If >> I remove the -1 component, #Func! disappears. >> >> Anybody know what this is? >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Dec 9 14:30:11 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 9 Dec 2010 15:30:11 -0500 Subject: [AccessD] Office API's Message-ID: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> I'm writing about Office APIs -- if you have a favorite one you'd like to see showcased, let me know. Thanks! Susan H. From marksimms at verizon.net Thu Dec 9 16:43:36 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 09 Dec 2010 17:43:36 -0500 Subject: [AccessD] Office API's In-Reply-To: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> Message-ID: <012301cb97f2$84475be0$0401a8c0@MSIMMSWS> Susan - did you mean to say "add-ins" ? I'm not sure what you are referring to.... > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: Thursday, December 09, 2010 3:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Office API's > > I'm writing about Office APIs -- if you have a favorite one > you'd like to see showcased, let me know. > > Thanks! > Susan H. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Dec 9 16:58:26 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Dec 2010 08:58:26 +1000 Subject: [AccessD] Office API's In-Reply-To: <012301cb97f2$84475be0$0401a8c0@MSIMMSWS> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <012301cb97f2$84475be0$0401a8c0@MSIMMSWS> Message-ID: <4D015F12.28289.16C4E44D@stuart.lexacorp.com.pg> I'm with Mark here. Can you give a few examples of what you call Office APIs? Do you mean COM libraries or ActiveX controls or...? -- Stuart On 9 Dec 2010 at 17:43, Mark Simms wrote: > Susan - did you mean to say "add-ins" ? > I'm not sure what you are referring to.... > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Susan Harkins > > Sent: Thursday, December 09, 2010 3:30 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Office API's > > > > I'm writing about Office APIs -- if you have a favorite one > > you'd like to see showcased, let me know. > > > > 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 ab-mi at post3.tele.dk Thu Dec 9 18:58:27 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 10 Dec 2010 01:58:27 +0100 Subject: [AccessD] OT: Excel Application.WorksheetFunction Message-ID: Hi group, In an Excel app I want to look up a value for two conditions using Application.WorksheetFunction.SumProduct Say I have this in a worksheet: A B C 1 Lookup matrix: 2 100 2 20 3 200 3 30 4 500 2 50 5 500 4 80 6 7 Input for lookup: 8 500 2 9 10 Result: 11 50 I could get the result for cell A11 typing in this formula for cell A11: =SUMPRODUCT(($A$2:$A$5=A8)*($B$2:$B$5=B8)*$C$2:$C$5) Now in my app I don't want formulas but only plain values because the sheet contains huge amounts of data and formulas would hurt performance. And I don't want to copy a formula and then paste it as value because this too would hurt performance. So I would like to use Application.WorksheetFunction.SumProduct in VBA to get the lookup values and then insert the values into the sheet. I have done this successfully using Application.WorksheetFunction.VLookup in VBA to fill an array of cells feeding the VLookup-function with input-arrays. But Application.WorksheetFunction.SumProduct is troubling me. Somehow it don?t accept the same kind of syntax as Application.WorksheetFunction.VLookup does and I keep getting runtime errors telling "type mismatch". Any suggestion appreciated Asger From ssharkins at gmail.com Thu Dec 9 19:10:32 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 9 Dec 2010 20:10:32 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> <012301cb97f2$84475be0$0401a8c0@MSIMMSWS> Message-ID: <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> Windows API functions. Susan H. > Susan - did you mean to say "add-ins" ? > I'm not sure what you are referring to.... >> >> I'm writing about Office APIs -- if you have a favorite one >> you'd like to see showcased, let me know. From stuart at lexacorp.com.pg Thu Dec 9 20:27:58 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Dec 2010 12:27:58 +1000 Subject: [AccessD] Office API's In-Reply-To: <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> Message-ID: <4D01902E.14452.6B140E@stuart.lexacorp.com.pg> On 9 Dec 2010 at 20:10, Susan Harkins wrote: > Windows API functions. > Susan H. > > > Susan - did you mean to say "add-ins" ? > > I'm not sure what you are referring to.... > >> > >> I'm writing about Office APIs -- if you have a favorite one > >> you'd like to see showcased, let me know. > Ah Windows APIs. I use quite a few of them. Here's a few API calls and functions that I use in most systems that I build (I keep them along with a number of other functions in a module of general functions that I just plug in to new apps by default, Listing from the simplest to the most complex: 1 Sleep (suspend execute for a while a.k.a Wait() Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 2. Get User - Get the name of the current user for logging purposes/access control Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _ "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Function GetUser() Dim Response As Long Dim uname As String * 32 Response = GetUserName(uname, 32) GetUser = Left(uname, InStr(uname, Chr$(0)) - 1) End Function 3. Temp Directory (If you need to build and run a batch file or a set of FTP commands etc) Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" _ (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long Public Function TempDir() As String Dim strPath As String strPath = Space(MAX_PATH) GetTempPath Len(strPath), strPath TempDir = Left(strPath, InStr(1, strPath, vbNullChar) - 1) End Function 4. Desktop Directory ( so that I can drop files onto it or look for files on it) Private Declare Function SHGetSpecialFolderLocation _ Lib "shell32" (ByVal hwnd As Long, _ ByVal nFolder As Long, ppidl As Long) As Long Private Declare Function SHGetPathFromIDList _ Lib "shell32" Alias "SHGetPathFromIDListA" _ (ByVal Pidl As Long, ByVal pszPath As String) As Long Private Declare Sub CoTaskMemFree Lib "ole32" (ByVal pvoid As Long) Public Function Desktop() As String Dim lngPidlFound As Long Dim lngFolderFound As Long Dim lngPidl As Long Dim strPath As String Const CSIDL_DESKTOPDIRECTORY = &H10 Const MAX_PATH = 260 Const NOERROR = 0 strPath = Space(MAX_PATH) lngPidlFound = SHGetSpecialFolderLocation(0, CSIDL_DESKTOPDIRECTORY, lngPidl) If lngPidlFound = NOERROR Then lngFolderFound = SHGetPathFromIDList(lngPidl, strPath) If lngFolderFound Then Desktop = Left$(strPath, _ InStr(1, strPath, vbNullChar) - 1) & "\" End If End If CoTaskMemFree lngPidl End Function 5. GetOpenFileName - no need to embed a control on a form to get an openfile dialog. Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Type OPENFILENAME lStructSize As Long hwndOwner As Long hInstance As Long lpstrFilter As String lpstrCustomFilter As String nMaxCustFilter As Long nFilterIndex As Long lpstrFile As String nMaxFile As Long lpstrFileTitle As String nMaxFileTitle As Long lpstrInitialDir As String lpstrTitle As String flags As Long nFileOffset As Integer nFileExtension As Integer lpstrDefExt As String lCustData As Long lpfnHook As Long lpTemplateName As String End Type Function GetFileName(Directory As String) As String Dim OpenFile As OPENFILENAME Dim lReturn As Long Dim sFilter As String OpenFile.lStructSize = Len(OpenFile) OpenFile.hwndOwner = 0 OpenFile.hInstance = 0 sFilter = "" & Chr(0) OpenFile.lpstrFilter = sFilter OpenFile.nFilterIndex = 0 OpenFile.lpstrFile = String(257, 0) OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1 OpenFile.lpstrFileTitle = OpenFile.lpstrFile OpenFile.nMaxFileTitle = OpenFile.nMaxFile OpenFile.lpstrInitialDir = Directory OpenFile.lpstrTitle = "Select File" OpenFile.flags = 0 lReturn = GetOpenFileName(OpenFile) GetFileName = Left$(OpenFile.lpstrFile, InStr(OpenFile.lpstrFile, Chr$(0)) - 1) End Function 6. ShellWait - Shell out to an application and wait for it to finish before continuing (synchronous shell) Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) As Long Declare Function CreateProcessA Lib "kernel32" (ByVal lpApplicationName As Long, _ ByVal lpCommandLine As String, ByVal lpProcessAttributes As Long, _ ByVal lpThreadAttributes As Long, ByVal bInheritHandles As Long, _ ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, _ ByVal lpCurrentDirectory As Long, lpStartupInfo As STARTUPINFO, _ lpProcessInformation As PROCESS_INFORMATION) As Long Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Private Const STARTF_USESHOWWINDOW& = &H1 Private Const NORMAL_PRIORITY_CLASS = &H20& Private Const INFINITE = -1& Private Type STARTUPINFO cb As Long lpReserved As String lpDesktop As String lpTitle As String dwX As Long dwY As Long dwXSize As Long dwYSize As Long dwXCountChars As Long dwYCountChars As Long dwFillAttribute As Long dwFlags As Long wShowWindow As Integer cbReserved2 As Integer lpReserved2 As Long hStdInput As Long hStdOutput As Long hStdError As Long End Type Private Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessID As Long dwThreadID As Long End Type Public Sub ShellWait(Pathname As String, Optional WindowStyle As Long) On Error GoTo Err_Handler Dim proc As PROCESS_INFORMATION Dim start As STARTUPINFO Dim ret As Long ' Initialize the STARTUPINFO structure: With start .cb = Len(start) If Not IsMissing(WindowStyle) Then .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = WindowStyle End If End With ' Start the shelled application: ret& = CreateProcessA(0&, Pathname, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc) ' Wait for the shelled application to finish: ret& = WaitForSingleObject(proc.hProcess, INFINITE) ret& = CloseHandle(proc.hProcess) Exit_Here: Exit Sub Err_Handler: MsgBox Err.Description, vbExclamation, "E R R O R" Resume Exit_Here End Sub -- Stuart From darren at activebilling.com.au Thu Dec 9 22:21:30 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Fri, 10 Dec 2010 15:21:30 +1100 Subject: [AccessD] WAY OT: Reporting Services - Publically available Message-ID: <009601cb9821$bd94a810$38bdf830$@activebilling.com.au> Hi Team Apologies for the OT Post - It's a brains trust question. Feel free to respond to my personal address. We use reporting services over SQL 2005 dBs here at the office. People VPN in and they can then essentially spark up the reporting services webpage using http://localdbname/reports All good as the VPN logons are the active directory logons so they use the same credentials So they are presented with a reporting services logon and it's the same as their VPN logon - So off they go Simple We now need to make Reporting Services available publically. So the http://someserver/reports need to be available from any machine in the world. Then when it's entered we need the standard logon reporting services screens need to be presented I have no clue on this stuff - it's way over my head and I suppose I need a network gurus assistance Can anyone advise what's required to make the reporting services pages we have here available publically rather than through a VPN? I appreciate my descriptions on environment etc. are vague Thanks heaps in advance Darren From stuart at lexacorp.com.pg Fri Dec 10 03:41:28 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 10 Dec 2010 19:41:28 +1000 Subject: [AccessD] WAY OT: Reporting Services - Publically available In-Reply-To: <009601cb9821$bd94a810$38bdf830$@activebilling.com.au> References: <009601cb9821$bd94a810$38bdf830$@activebilling.com.au> Message-ID: <4D01F5C8.12261.1F7F560@stuart.lexacorp.com.pg> In general: 1. Make sure that your in house web server is NOT configured to only accept connection from local IP addresses. 2. Set up Port forwarding on your internet facing router to forward port 80 to your in house web server. 3. Set up an A record on your S.O.A DNS server pointing something like reports.activebilling.com.au to the public IP address of your internet facing router. Your current A and MX records point to 122.201.83.166 which is your public web host and your mustang.turboservers.com.au mail server. If these are both hosted internally, that is the address you need to point reports.activebilling.com.au to. If your mail and web site are both hosted externally, you will have to find the external address of your internet router ( note tha if your ISP provides a dynamic IP address for you, you may need to pay them a bit extra to provide a static address which you can point to.) -- Stuart On 10 Dec 2010 at 15:21, Darren - Active Billing wrote: > Hi Team > > > > Apologies for the OT Post - It's a brains trust question. Feel free to > respond to my personal address. > > > > We use reporting services over SQL 2005 dBs here at the office. > > People VPN in and they can then essentially spark up the reporting > services webpage using http://localdbname/reports > > All good as the VPN logons are the active directory logons so they use > the same credentials > > So they are presented with a reporting services logon and it's the > same as their VPN logon - So off they go > > Simple > > > > We now need to make Reporting Services available publically. > > So the http://someserver/reports need to be available from any machine > in the world. > > Then when it's entered we need the standard logon reporting services > screens need to be presented > > > > I have no clue on this stuff - it's way over my head and I suppose I > need a network gurus assistance > > Can anyone advise what's required to make the reporting services pages > we have here available publically rather than through a VPN? I > appreciate my descriptions on environment etc. are vague > > > > Thanks heaps in advance > > > > Darren > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Dec 10 08:04:55 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 09:04:55 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> <4D01902E.14452.6B140E@stuart.lexacorp.com.pg> Message-ID: <565F12B05CDA406EBEF83352C1599278@salvationomc4p> I apologize to everyone and appreciate your patience. :) My editor brain went into high gear. One of my personal grammar issues is placing the modifier as close to the noun as possible, so when I started to write, API's for Office, the brain just kicked in and I wrote Office API's -- I apologize. What I should have said was Windows API's for Office applications! ;) Thank you Stuart! Susan H. ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, December 09, 2010 9:27 PM Subject: Re: [AccessD] Office API's > On 9 Dec 2010 at 20:10, Susan Harkins wrote: > >> Windows API functions. >> Susan H. >> >> > Susan - did you mean to say "add-ins" ? >> > I'm not sure what you are referring to.... >> >> >> >> I'm writing about Office APIs -- if you have a favorite one >> >> you'd like to see showcased, let me know. >> > > > Ah Windows APIs. I use quite a few of them. Here's a few API calls > and functions that I > use in most systems that I build (I keep them along with a number of other > functions in a > module of general functions that I just plug in to new apps by default, > Listing from the > simplest to the most complex: > > 1 Sleep (suspend execute for a while a.k.a Wait() > > Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) > > > 2. Get User - Get the name of the current user for logging > purposes/access control > > Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _ > "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) > As Long > Function GetUser() > Dim Response As Long > Dim uname As String * 32 > Response = GetUserName(uname, 32) > GetUser = Left(uname, InStr(uname, Chr$(0)) - 1) > End Function > > > 3. Temp Directory (If you need to build and run a batch file or a set of > FTP commands etc) > > Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" _ > (ByVal nBufferLength As Long, ByVal lpBuffer As > String) As Long > Public Function TempDir() As String > Dim strPath As String > strPath = Space(MAX_PATH) > GetTempPath Len(strPath), strPath > TempDir = Left(strPath, InStr(1, strPath, vbNullChar) - 1) > End Function > > > 4. Desktop Directory ( so that I can drop files onto it or look for > files on it) > > Private Declare Function SHGetSpecialFolderLocation _ > Lib "shell32" (ByVal hwnd As Long, _ > ByVal nFolder As Long, ppidl As > Long) As Long > Private Declare Function SHGetPathFromIDList _ > Lib "shell32" Alias "SHGetPathFromIDListA" _ > (ByVal Pidl As Long, ByVal pszPath As String) > As Long > Private Declare Sub CoTaskMemFree Lib "ole32" (ByVal pvoid As Long) > Public Function Desktop() As String > Dim lngPidlFound As Long > Dim lngFolderFound As Long > Dim lngPidl As Long > Dim strPath As String > Const CSIDL_DESKTOPDIRECTORY = &H10 > Const MAX_PATH = 260 > Const NOERROR = 0 > > strPath = Space(MAX_PATH) > lngPidlFound = SHGetSpecialFolderLocation(0, CSIDL_DESKTOPDIRECTORY, > lngPidl) > If lngPidlFound = NOERROR Then > lngFolderFound = SHGetPathFromIDList(lngPidl, strPath) > If lngFolderFound Then > Desktop = Left$(strPath, _ > InStr(1, strPath, vbNullChar) - 1) & "\" > End If > End If > CoTaskMemFree lngPidl > End Function > > > 5. GetOpenFileName - no need to embed a control on a form to get an > openfile dialog. > > Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ > "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long > > Type OPENFILENAME > lStructSize As Long > hwndOwner As Long > hInstance As Long > lpstrFilter As String > lpstrCustomFilter As String > nMaxCustFilter As Long > nFilterIndex As Long > lpstrFile As String > nMaxFile As Long > lpstrFileTitle As String > nMaxFileTitle As Long > lpstrInitialDir As String > lpstrTitle As String > flags As Long > nFileOffset As Integer > nFileExtension As Integer > lpstrDefExt As String > lCustData As Long > lpfnHook As Long > lpTemplateName As String > End Type > > Function GetFileName(Directory As String) As String > Dim OpenFile As OPENFILENAME > Dim lReturn As Long > Dim sFilter As String > OpenFile.lStructSize = Len(OpenFile) > OpenFile.hwndOwner = 0 > OpenFile.hInstance = 0 > sFilter = "" & Chr(0) > OpenFile.lpstrFilter = sFilter > OpenFile.nFilterIndex = 0 > OpenFile.lpstrFile = String(257, 0) > OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1 > OpenFile.lpstrFileTitle = OpenFile.lpstrFile > OpenFile.nMaxFileTitle = OpenFile.nMaxFile > OpenFile.lpstrInitialDir = Directory > OpenFile.lpstrTitle = "Select File" > OpenFile.flags = 0 > lReturn = GetOpenFileName(OpenFile) > GetFileName = Left$(OpenFile.lpstrFile, InStr(OpenFile.lpstrFile, > Chr$(0)) - 1) > End Function > > > > 6. ShellWait - Shell out to an application and wait for it to finish > before continuing > (synchronous shell) > > Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As > Long, _ > ByVal dwMilliseconds As Long) As Long > Declare Function CreateProcessA Lib "kernel32" (ByVal lpApplicationName > As Long, _ > ByVal lpCommandLine As String, ByVal lpProcessAttributes > As Long, _ > ByVal lpThreadAttributes As Long, ByVal bInheritHandles > As Long, _ > ByVal dwCreationFlags As Long, ByVal lpEnvironment As > Long, _ > ByVal lpCurrentDirectory As Long, lpStartupInfo As > STARTUPINFO, _ > lpProcessInformation As PROCESS_INFORMATION) As Long > Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As > Long > > Private Const STARTF_USESHOWWINDOW& = &H1 > Private Const NORMAL_PRIORITY_CLASS = &H20& > Private Const INFINITE = -1& > > Private Type STARTUPINFO > cb As Long > lpReserved As String > lpDesktop As String > lpTitle As String > dwX As Long > dwY As Long > dwXSize As Long > dwYSize As Long > dwXCountChars As Long > dwYCountChars As Long > dwFillAttribute As Long > dwFlags As Long > wShowWindow As Integer > cbReserved2 As Integer > lpReserved2 As Long > hStdInput As Long > hStdOutput As Long > hStdError As Long > End Type > > Private Type PROCESS_INFORMATION > hProcess As Long > hThread As Long > dwProcessID As Long > dwThreadID As Long > End Type > > Public Sub ShellWait(Pathname As String, Optional WindowStyle As Long) > On Error GoTo Err_Handler > > Dim proc As PROCESS_INFORMATION > Dim start As STARTUPINFO > Dim ret As Long > > ' Initialize the STARTUPINFO structure: > With start > .cb = Len(start) > If Not IsMissing(WindowStyle) Then > .dwFlags = STARTF_USESHOWWINDOW > .wShowWindow = WindowStyle > End If > End With > ' Start the shelled application: > ret& = CreateProcessA(0&, Pathname, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, > 0&, 0&, > start, proc) > ' Wait for the shelled application to finish: > ret& = WaitForSingleObject(proc.hProcess, INFINITE) > ret& = CloseHandle(proc.hProcess) > > Exit_Here: > Exit Sub > Err_Handler: > MsgBox Err.Description, vbExclamation, "E R R O R" > Resume Exit_Here > > End Sub > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Dec 10 08:52:03 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 10 Dec 2010 17:52:03 +0300 Subject: [AccessD] Office API's In-Reply-To: <565F12B05CDA406EBEF83352C1599278@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg> <565F12B05CDA406EBEF83352C1599278@salvationomc4p> Message-ID: <411D4E2157EE48D4BAD3218B6715426A@nant> Hi Susan -- <<< What I should have said was Windows API's for Office applications! ;) >>> Note that WinAPI could be Win32 API on 32bit systems and Win64 API on 64 bit systems. http://www.jkp-ads.com/articles/apideclarations.asp Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 10 ??????? 2010 ?. 17:05 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's I apologize to everyone and appreciate your patience. :) My editor brain went into high gear. One of my personal grammar issues is placing the modifier as close to the noun as possible, so when I started to write, API's for Office, the brain just kicked in and I wrote Office API's -- I apologize. What I should have said was Windows API's for Office applications! ;) Thank you Stuart! Susan H. <<< snip >>> From ssharkins at gmail.com Fri Dec 10 11:06:03 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 12:06:03 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> <4D01902E.14452.6B140E@stuart.lexacorp.com.pg> Message-ID: <113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Stuart, these are great -- anyone else???? Susan H. > On 9 Dec 2010 at 20:10, Susan Harkins wrote: > >> Windows API functions. >> Susan H. >> >> > Susan - did you mean to say "add-ins" ? >> > I'm not sure what you are referring to.... >> >> >> >> I'm writing about Office APIs -- if you have a favorite one >> >> you'd like to see showcased, let me know. >> > > > Ah Windows APIs. I use quite a few of them. Here's a few API calls > and functions that I > use in most systems that I build (I keep them along with a number of other > functions in a > module of general functions that I just plug in to new apps by default, > Listing from the > simplest to the most complex: From jimdettman at verizon.net Fri Dec 10 12:34:25 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Dec 2010 13:34:25 -0500 Subject: [AccessD] Office API's In-Reply-To: <113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p> <4D01902E.14452.6B140E@stuart.lexacorp.com.pg> <113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: Susan, Stuart hit most of the top ones. There are others which are more of "utility" type nature (i.e. GetParent) which you can combine with other calls to do a lot of different things unlike ones which are a direct call (i.e. GetComputerNameA). Here's most of my list: Private Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal lnghObject As Long) As Long Private Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lngMutexAttributes As Long, lngInitialOwner As Long, ByVal lpName As String) As Long Private Declare Function GetComputerNameA Lib "kernel32" (ByVal lpBuffer As String, nSize As Long) As Long Private Declare Function GetDesktopWindow Lib "user32" () As Long Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long Private Declare Function GetProp Lib "user32" Alias "GetPropA" (ByVal lngHWnd As Long, ByVal lpString As String) As Long Private Declare Function GetUserNameA Lib "advapi32.dll" (ByVal lpBuffer As String, nSize As Long) As Long Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal nRelationship As Long) As Long Private Declare Function GetActiveWindow Lib "user32" () As Long Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function SetProp Lib "user32" Alias "SetPropA" (ByVal hwnd As Long, ByVal lpString As String, ByVal hdata As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdSHow As Long) As Long Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long Private Declare Function IsIconic Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function IsZoomed Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function GetProfileString Lib "kernel32" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long Private Declare Function WriteProfileString Lib "kernel32" Alias "WriteProfileStringA" (ByVal LpszSection As String, ByVal lpszKeyName As String, ByVal lpszString As String) As Long Private Declare Function GlobalAlloc Lib "kernel32" (ByVal wFlags As Long, ByVal dwBytes As Long) As Long Private Declare Function GlobalFree Lib "kernel32" (ByVal hMem As Long) As Long Private Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long Private Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _ hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long) Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2010 12:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's Stuart, these are great -- anyone else???? Susan H. > On 9 Dec 2010 at 20:10, Susan Harkins wrote: > >> Windows API functions. >> Susan H. >> >> > Susan - did you mean to say "add-ins" ? >> > I'm not sure what you are referring to.... >> >> >> >> I'm writing about Office APIs -- if you have a favorite one >> >> you'd like to see showcased, let me know. >> > > > Ah Windows APIs. I use quite a few of them. Here's a few API calls > and functions that I > use in most systems that I build (I keep them along with a number of other > functions in a > module of general functions that I just plug in to new apps by default, > Listing from the > simplest to the most complex: -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Dec 10 13:12:26 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 14:12:26 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg><113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: > Private Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As > Long) As Long ======This one begs the function, FindWindow -- but I can't get it to return anything but 0??? I can get the class Okay, but the window name/caption -- I must be passing the wrong strings. I really don't have a clue what to pass and I'm just guessing. I've tried several different strings, and everything returns 0 -- any help? Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Function apicFindWindow() 'Get window handle. Dim hWnd As Long hWnd = FindWindow("oMAIN", "Table2") Debug.Print hWnd End Function Susan H. From jimdettman at verizon.net Fri Dec 10 14:52:22 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Dec 2010 15:52:22 -0500 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg><113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: Susan, <> FindWindow() only returns top level windows and not child windows. So this will only fetch the main Access window. This: Function apicFindWindow() 'Get window handle. Dim hWnd As Long hWnd = FindWindow("oMAIN", vbNullString) Debug.Print hWnd End Function Will return the handle of the first Access window it finds. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2010 02:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's > Private Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As > Long) As Long ======This one begs the function, FindWindow -- but I can't get it to return anything but 0??? I can get the class Okay, but the window name/caption -- I must be passing the wrong strings. I really don't have a clue what to pass and I'm just guessing. I've tried several different strings, and everything returns 0 -- any help? Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Function apicFindWindow() 'Get window handle. Dim hWnd As Long hWnd = FindWindow("oMAIN", "Table2") Debug.Print hWnd End Function 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 Dec 10 15:22:53 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 16:22:53 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg><113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: Yeah, and it's temperamental to boot! ;) Susan H. > Susan, > > < anything but 0???>> > > FindWindow() only returns top level windows and not child windows. So > this will only fetch the main Access window. > > This: > > Function apicFindWindow() > 'Get window handle. > Dim hWnd As Long > hWnd = FindWindow("oMAIN", vbNullString) > Debug.Print hWnd > End Function > > Will return the handle of the first Access window it finds. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, December 10, 2010 02:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > >> Private Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As >> Long) As Long > > ======This one begs the function, FindWindow -- but I can't get it to > return > > anything but 0??? I can get the class Okay, but the window name/caption -- > I > > must be passing the wrong strings. I really don't have a clue what to pass > and I'm just guessing. I've tried several different strings, and > everything > returns 0 -- any help? > > Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ > (ByVal lpClassName As String, ByVal lpWindowName As String) As Long > > Function apicFindWindow() > 'Get window handle. > Dim hWnd As Long > hWnd = FindWindow("oMAIN", "Table2") > Debug.Print hWnd > End Function > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Dec 10 15:42:58 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 10 Dec 2010 16:42:58 -0500 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg><113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: <8E1D7EFE83934387A1278ED58552ACE9@XPS> Yes, calling Windows API's can be fun. I've gotten lost and crashed my machine more times then I care to count (or admit). BTW, Access does have Application.hWndAccessApp to get the window handle of the main Access window and hWnd property to get the handle for a Form or Report. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2010 04:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's Yeah, and it's temperamental to boot! ;) Susan H. > Susan, > > < anything but 0???>> > > FindWindow() only returns top level windows and not child windows. So > this will only fetch the main Access window. > > This: > > Function apicFindWindow() > 'Get window handle. > Dim hWnd As Long > hWnd = FindWindow("oMAIN", vbNullString) > Debug.Print hWnd > End Function > > Will return the handle of the first Access window it finds. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, December 10, 2010 02:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > >> Private Declare Function BringWindowToTop Lib "user32" (ByVal lngHWnd As >> Long) As Long > > ======This one begs the function, FindWindow -- but I can't get it to > return > > anything but 0??? I can get the class Okay, but the window name/caption -- > I > > must be passing the wrong strings. I really don't have a clue what to pass > and I'm just guessing. I've tried several different strings, and > everything > returns 0 -- any help? > > Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ > (ByVal lpClassName As String, ByVal lpWindowName As String) As Long > > Function apicFindWindow() > 'Get window handle. > Dim hWnd As Long > hWnd = FindWindow("oMAIN", "Table2") > Debug.Print hWnd > End Function > > 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 stuart at lexacorp.com.pg Fri Dec 10 16:42:40 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 11 Dec 2010 08:42:40 +1000 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, Message-ID: <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart From ssharkins at gmail.com Fri Dec 10 17:43:52 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 18:43:52 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: <1726B22EBD8B4E078CEC2AD0526846F9@salvationomc4p> Backtalk... ;) Sometimes it doesn't recognize the window name. I'm typing it character per character from the title bar, but it doesn't agree -- so that's why I called it temperamental. Something there I just don't know about. I tried it with the Access container window, so that's not a child window to my thinking, is it? Susan H. > It works exactly the way it is intended. - just not the way you think it > should :-) > >>From Win32.hlp: > > The FindWindow function retrieves the handle to the top-level window whose > class name and > window name match the specified strings. This function does not search > child windows. > > HWND FindWindow( > LPCTSTR lpClassName, // pointer to class name > LPCTSTR lpWindowName // pointer to window name > ); > > Parameters > lpClassName > Points to a null-terminated string that specifies the class name or is an > atom that identifies > the class-name string. If this parameter is an atom, it must be a global > atom created by a > previous call to the GlobalAddAtom function. The atom, a 16-bit value, > must be placed in the > low-order word of lpClassName; the high-order word must be zero. > > lpWindowName > Points to a null-terminated string that specifies the window name (the > window's title). If this > parameter is NULL, all window names match. > > Return Values If the function succeeds, the return value is the handle to > the window that has > the specified class name and window name. If the function fails, the > return value is NULL. To > get extended error information, call GetLastError. > > -- > Stuart > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Dec 10 18:27:47 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 11 Dec 2010 10:27:47 +1000 Subject: [AccessD] Office API's In-Reply-To: <1726B22EBD8B4E078CEC2AD0526846F9@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <1726B22EBD8B4E078CEC2AD0526846F9@salvationomc4p> Message-ID: <4D02C583.11818.5236793@stuart.lexacorp.com.pg> Grab a copy of AutoIt from http://www.autoitscript.com/autoit3/downloads.shtml Run Au3Info.exe and look at the actual Title of various windows. Note that the Title is not always what is displayed on the "grab bar" . As an example, an Explorer window doesn't display anything - but its Title is the path shown in the "Address Bar". -- Stuart On 10 Dec 2010 at 18:43, Susan Harkins wrote: > Backtalk... ;) Sometimes it doesn't recognize the window name. I'm > typing it character per character from the title bar, but it doesn't > agree -- so that's why I called it temperamental. Something there I > just don't know about. I tried it with the Access container window, so > that's not a child window to my thinking, is it? > > Susan H. > > > It works exactly the way it is intended. - just not the way you > > think it should :-) > > > >>From Win32.hlp: > > > > The FindWindow function retrieves the handle to the top-level window > > whose class name and window name match the specified strings. This > > function does not search child windows. > > > > HWND FindWindow( > > LPCTSTR lpClassName, // pointer to class name > > LPCTSTR lpWindowName // pointer to window name > > ); > > > > Parameters > > lpClassName > > Points to a null-terminated string that specifies the class name or > > is an atom that identifies the class-name string. If this parameter > > is an atom, it must be a global atom created by a previous call to > > the GlobalAddAtom function. The atom, a 16-bit value, must be placed > > in the low-order word of lpClassName; the high-order word must be > > zero. > > > > lpWindowName > > Points to a null-terminated string that specifies the window name > > (the window's title). If this parameter is NULL, all window names > > match. > > > > Return Values If the function succeeds, the return value is the > > handle to the window that has the specified class name and window > > name. If the function fails, the return value is NULL. To get > > extended error information, call GetLastError. > > > > -- > > Stuart > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Dec 10 19:22:07 2010 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 10 Dec 2010 20:22:07 -0500 Subject: [AccessD] Office API's References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <1726B22EBD8B4E078CEC2AD0526846F9@salvationomc4p> <4D02C583.11818.5236793@stuart.lexacorp.com.pg> Message-ID: <62C54883BE834D108C5353C711A4792C@salvationomc4p> Oh man... now that's cool! Thank you! Susan H. > Grab a copy of AutoIt from > http://www.autoitscript.com/autoit3/downloads.shtml > > Run Au3Info.exe and look at the actual Title of various windows. > > Note that the Title is not always what is displayed on the "grab bar" . As > an example, an > Explorer window doesn't display anything - but its Title is the path shown > in the "Address > Bar". > > -- > Stuart > > > On 10 Dec 2010 at 18:43, Susan Harkins wrote: > >> Backtalk... ;) Sometimes it doesn't recognize the window name. I'm >> typing it character per character from the title bar, but it doesn't >> agree -- so that's why I called it temperamental. Something there I >> just don't know about. I tried it with the Access container window, so >> that's not a child window to my thinking, is it? >> >> Susan H. >> >> > It works exactly the way it is intended. - just not the way you >> > think it should :-) >> > >> >>From Win32.hlp: >> > >> > The FindWindow function retrieves the handle to the top-level window >> > whose class name and window name match the specified strings. This >> > function does not search child windows. >> > >> > HWND FindWindow( >> > LPCTSTR lpClassName, // pointer to class name >> > LPCTSTR lpWindowName // pointer to window name >> > ); >> > >> > Parameters >> > lpClassName >> > Points to a null-terminated string that specifies the class name or >> > is an atom that identifies the class-name string. If this parameter >> > is an atom, it must be a global atom created by a previous call to >> > the GlobalAddAtom function. The atom, a 16-bit value, must be placed >> > in the low-order word of lpClassName; the high-order word must be >> > zero. >> > >> > lpWindowName >> > Points to a null-terminated string that specifies the window name >> > (the window's title). If this parameter is NULL, all window names >> > match. >> > >> > Return Values If the function succeeds, the return value is the >> > handle to the window that has the specified class name and window >> > name. If the function fails, the return value is NULL. To get >> > extended error information, call GetLastError. >> > >> > -- >> > Stuart >> > >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rlister at actuarial-files.com Sat Dec 11 09:57:05 2010 From: rlister at actuarial-files.com (Ralf Lister) Date: Sat, 11 Dec 2010 11:57:05 -0400 Subject: [AccessD] Error 3061 Message-ID: <000001cb994c$10e6b370$32b41a50$@com> Hello, I have the AC2007 database, and run this code in a standard module: ************************************************+ Sub Versicherung(table As String, F As Byte, FJahr As Long) Const tasa = 6.97 Dim rs As DAO.Recordset Dim dbs As DAO.Database Set dbs = CurrentDb Set rs = dbs.OpenRecordset("qryDatos") *************************************************** At the last line (?Set rs = ?) I get this error message: ?Se ha producido el error ?3061? en tiempo de ejecuci?n: Pocos parametros. Se esperaba 1.? (Error ?3061? Few parameter. Expected: 1) What I?m doing wrong here? Can someone help? TIA Saludos Actuary Ralf Lister La Paz, Bolivia Environment From charlotte.foust at gmail.com Sat Dec 11 10:20:20 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Sat, 11 Dec 2010 08:20:20 -0800 Subject: [AccessD] Error 3061 In-Reply-To: <000001cb994c$10e6b370$32b41a50$@com> References: <000001cb994c$10e6b370$32b41a50$@com> Message-ID: If that query exists and you want a forward only recordset, it should work. You can check the spelling of the query name and try adding the recordset type argument to specify the type recordset. Charlotte Foust On Sat, Dec 11, 2010 at 7:57 AM, Ralf Lister wrote: > Hello, > > > > I have the AC2007 database, and run this code in a standard ?module: > > > > ************************************************+ > > Sub Versicherung(table As String, F As Byte, FJahr As Long) > > > > ? ?Const tasa = 6.97 > > > > ? ?Dim rs As DAO.Recordset > > ? ?Dim dbs As DAO.Database > > > > ? ?Set dbs = CurrentDb > > ? ?Set rs = dbs.OpenRecordset("qryDatos") > > *************************************************** > > At the last line (?Set rs = ??) I get this error message: > > > > ?Se ha producido el error ?3061? en tiempo de ejecuci?n: > > Pocos parametros. Se esperaba 1.? > > > > (Error ?3061? > > Few parameter. Expected: 1) > > > > What I?m doing wrong here? Can someone help? > > > > TIA > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Environment > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From ab-mi at post3.tele.dk Sat Dec 11 10:43:17 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 11 Dec 2010 17:43:17 +0100 Subject: [AccessD] Error 3061 In-Reply-To: <000001cb994c$10e6b370$32b41a50$@com> References: <000001cb994c$10e6b370$32b41a50$@com> Message-ID: Hi Ralf, Looks like your query contain a parameter criterion. In that case you need to use a querydef in your code - like this: Dim rs As DAO.Recordset Dim dbs As DAO.Database Dim qdf As DAO.QueryDef Set dbs = CurrentDb Set qdf = dbs.QueryDefs("qryDatos") qdf.Parameters(0) = Set rs = qdf.OpenRecordset Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Ralf Lister Sendt: 11. december 2010 16:57 Til: accessd at databaseadvisors.com Emne: [AccessD] Error 3061 Hello, I have the AC2007 database, and run this code in a standard module: ************************************************+ Sub Versicherung(table As String, F As Byte, FJahr As Long) Const tasa = 6.97 Dim rs As DAO.Recordset Dim dbs As DAO.Database Set dbs = CurrentDb Set rs = dbs.OpenRecordset("qryDatos") *************************************************** At the last line (?Set rs = ??) I get this error message: ?Se ha producido el error ?3061? en tiempo de ejecuci?n: Pocos parametros. Se esperaba 1.? (Error ?3061? Few parameter. Expected: 1) What I?m doing wrong here? Can someone help? TIA Saludos Actuary Ralf Lister La Paz, Bolivia Environment From df.waters at comcast.net Sat Dec 11 12:05:22 2010 From: df.waters at comcast.net (Dan Waters) Date: Sat, 11 Dec 2010 12:05:22 -0600 Subject: [AccessD] Error 3061 In-Reply-To: <000001cb994c$10e6b370$32b41a50$@com> References: <000001cb994c$10e6b370$32b41a50$@com> Message-ID: <7F08B6C289C2476BA84D00D2F55A2375@DanWaters> I am VERY familiar with this error! ;-) It always means that you have a field name misspelled in your query, or the field is not in the table(s). Whether misspelled or missing, as far as the query is concerned, it's not there, and you will get a 3061 error. In this case the error says you're missing 1, so that means there is 1 field it can't find. If it said 2, then there would be two fields it can't find, and so on. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Saturday, December 11, 2010 9:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Error 3061 Hello, I have the AC2007 database, and run this code in a standard module: ************************************************+ Sub Versicherung(table As String, F As Byte, FJahr As Long) Const tasa = 6.97 Dim rs As DAO.Recordset Dim dbs As DAO.Database Set dbs = CurrentDb Set rs = dbs.OpenRecordset("qryDatos") *************************************************** At the last line (?Set rs = ?) I get this error message: ?Se ha producido el error ?3061? en tiempo de ejecuci?n: Pocos parametros. Se esperaba 1.? (Error ?3061? Few parameter. Expected: 1) What I?m doing wrong here? Can someone help? TIA Saludos Actuary Ralf Lister La Paz, Bolivia Environment From ab-mi at post3.tele.dk Sat Dec 11 13:06:56 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 11 Dec 2010 20:06:56 +0100 Subject: [AccessD] Error 3061 In-Reply-To: <7F08B6C289C2476BA84D00D2F55A2375@DanWaters> References: <000001cb994c$10e6b370$32b41a50$@com> <7F08B6C289C2476BA84D00D2F55A2375@DanWaters> Message-ID: <776980B251C8402CB6AE0FA04C5DF9F8@abpc> Error 3061 indicates that a parameter is missing. You can get this error if a field name has been misspelled - because Jet will interpret a misspelled field name as a parameter. But another obvious case is that the query has a parameter criterion. Looking at Ralf's procedure I suspected that qryDato contains a parameter criterion. The procedure itself has three input parameters (table As String, F As Byte, FJahr As Long). And maybe FJahr should be passed as an argument to qryDato - this was my guess... Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Dan Waters Sendt: 11. december 2010 19:05 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Error 3061 I am VERY familiar with this error! ;-) It always means that you have a field name misspelled in your query, or the field is not in the table(s). Whether misspelled or missing, as far as the query is concerned, it's not there, and you will get a 3061 error. In this case the error says you're missing 1, so that means there is 1 field it can't find. If it said 2, then there would be two fields it can't find, and so on. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Saturday, December 11, 2010 9:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Error 3061 Hello, I have the AC2007 database, and run this code in a standard module: ************************************************+ Sub Versicherung(table As String, F As Byte, FJahr As Long) Const tasa = 6.97 Dim rs As DAO.Recordset Dim dbs As DAO.Database Set dbs = CurrentDb Set rs = dbs.OpenRecordset("qryDatos") *************************************************** At the last line (?Set rs = ??) I get this error message: ?Se ha producido el error ?3061? en tiempo de ejecuci?n: Pocos parametros. Se esperaba 1.? (Error ?3061? Few parameter. Expected: 1) What I?m doing wrong here? Can someone help? TIA Saludos Actuary Ralf Lister La Paz, Bolivia Environment -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Sun Dec 12 14:00:23 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 13 Dec 2010 09:00:23 +1300 Subject: [AccessD] Preparing Database for Web Message-ID: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Team, I have a customer who want a simple database created which will ultimately be hooked up to a web interface (Order screen for fabric samples, and tracking screen to show status of order). I still need to sit down with them to work out the likely number of records, simultaneous users etc (which I am doing tomorrow). Currently their databases are all Access. Assuming the size of the new database will be well within Access limits, is Access suitably robust for web applications, or should I start off with SQL? I will be getting someone else to do the web side of things but want to make sure that I make it as easy as possible (read cheap) for them. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From stuart at lexacorp.com.pg Sun Dec 12 15:44:21 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 13 Dec 2010 07:44:21 +1000 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <4D054235.20507.4AC5346@stuart.lexacorp.com.pg> Where will it be hosted? Publicly or in-house. IMNSHO, you are better of using MySQL as the BE for web applications. If you are familiar with Access and SQL Server, it's simple to set up the database, if you want an Access FE, you can access it via OBDC with no problems and you don't have to worry about what web platform you are running on - *nix or Windows. As for "read cheap", *nix/Apache/MySQL web hosting is generally much cheaper than Windows and WAMP is free and easy to instal. -- Stuart On 13 Dec 2010 at 9:00, David Emerson wrote: > Team, > > I have a customer who want a simple database created which will > ultimately be hooked up to a web interface (Order screen for fabric > samples, and tracking screen to show status of order). > > I still need to sit down with them to work out the likely number of > records, simultaneous users etc (which I am doing tomorrow). > > Currently their databases are all Access. Assuming the size of the > new database will be well within Access limits, is Access suitably > robust for web applications, or should I start off with SQL? > > I will be getting someone else to do the web side of things but want > to make sure that I make it as easy as possible (read cheap) for them. > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Sun Dec 12 18:23:06 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Sun, 12 Dec 2010 16:23:06 -0800 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: We have a site that has been running for years with an Access back end. The web forms are ASP based. I created another ordering site for a customer using SQL Server as the back end. This site has higher traffic and the web forms are based on ASP.NET. It seems that the real question is where will the site be hosted and what will you use for the web interface. If your going the ASP.NET route then SQL server will probably be available. If your going PHP then MySql would probably be the way to go. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, December 12, 2010 12:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Preparing Database for Web Team, I have a customer who want a simple database created which will ultimately be hooked up to a web interface (Order screen for fabric samples, and tracking screen to show status of order). I still need to sit down with them to work out the likely number of records, simultaneous users etc (which I am doing tomorrow). Currently their databases are all Access. Assuming the size of the new database will be well within Access limits, is Access suitably robust for web applications, or should I start off with SQL? I will be getting someone else to do the web side of things but want to make sure that I make it as easy as possible (read cheap) for them. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- 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 Dec 12 20:59:21 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Mon, 13 Dec 2010 13:59:21 +1100 Subject: [AccessD] WAY OT: Reporting Services - Publically available In-Reply-To: <4D01F5C8.12261.1F7F560@stuart.lexacorp.com.pg> References: <009601cb9821$bd94a810$38bdf830$@activebilling.com.au> <4D01F5C8.12261.1F7F560@stuart.lexacorp.com.pg> Message-ID: <011e01cb9a71$befa7ca0$3cef75e0$@activebilling.com.au> Hi Stuart Yep way over my head I'll forward this to the nerds and hope they know what it means Thanks heaps for taking the time to look this stuff up and replying with a personalised touch :-) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 10 December 2010 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Reporting Services - Publically available In general: 1. Make sure that your in house web server is NOT configured to only accept connection from local IP addresses. 2. Set up Port forwarding on your internet facing router to forward port 80 to your in house web server. 3. Set up an A record on your S.O.A DNS server pointing something like reports.activebilling.com.au to the public IP address of your internet facing router. Your current A and MX records point to 122.201.83.166 which is your public web host and your mustang.turboservers.com.au mail server. If these are both hosted internally, that is the address you need to point reports.activebilling.com.au to. If your mail and web site are both hosted externally, you will have to find the external address of your internet router ( note tha if your ISP provides a dynamic IP address for you, you may need to pay them a bit extra to provide a static address which you can point to.) -- Stuart On 10 Dec 2010 at 15:21, Darren - Active Billing wrote: > Hi Team > > > > Apologies for the OT Post - It's a brains trust question. Feel free to > respond to my personal address. > > > > We use reporting services over SQL 2005 dBs here at the office. > > People VPN in and they can then essentially spark up the reporting > services webpage using http://localdbname/reports > > All good as the VPN logons are the active directory logons so they use > the same credentials > > So they are presented with a reporting services logon and it's the > same as their VPN logon - So off they go > > Simple > > > > We now need to make Reporting Services available publically. > > So the http://someserver/reports need to be available from any machine > in the world. > > Then when it's entered we need the standard logon reporting services > screens need to be presented > > > > I have no clue on this stuff - it's way over my head and I suppose I > need a network gurus assistance > > Can anyone advise what's required to make the reporting services pages > we have here available publically rather than through a VPN? I > appreciate my descriptions on environment etc. are vague > > > > Thanks heaps in advance > > > > Darren > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Dec 13 07:39:50 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 13 Dec 2010 08:39:50 -0500 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <10CD309275494B70BCABFBB90EE3F606@XPS> David, Well at this point, having a "web interface" doesn't mean moving away from Access. You have the Access 2010/SharePoint 2010 setup, which I hear is fantastic (haven't used it myself). There's also one company out there that offers Access DB's on a web portal: www.eqldata.com Again, haven't used them myself and haven't heard of anyone that has, but if they can do what they say they can do, then it's almost a no brainer; any version of Access through a web browser with no conversion. Might want to check them out. As far as using JET for a backend, it does work well. What Drew has pointed out many times and people forget is that in a web setup, the only user touching the DB is the web server itself. Outside hits don't matter. Where the rub comes in is maintenance; no on-line backups, no recovery/roll forward if something goes wrong, and the DB has to come off-line to do Compact and Repair. Unless this is a non 24x7 DB with light usage, I'd be looking at another BE. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, December 12, 2010 03:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Preparing Database for Web Team, I have a customer who want a simple database created which will ultimately be hooked up to a web interface (Order screen for fabric samples, and tracking screen to show status of order). I still need to sit down with them to work out the likely number of records, simultaneous users etc (which I am doing tomorrow). Currently their databases are all Access. Assuming the size of the new database will be well within Access limits, is Access suitably robust for web applications, or should I start off with SQL? I will be getting someone else to do the web side of things but want to make sure that I make it as easy as possible (read cheap) for them. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Dec 13 11:27:42 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 13 Dec 2010 11:27:42 -0600 Subject: [AccessD] Yes/No Fields in Tables - Default Values? Message-ID: I want to set my Yes/No fields to a default value to avoid the problem with a Null value. If my Yes/No fields are bound to a control, it's always a checkbox. Should I use True/False, Yes/No, or -1/0? Or does it matter? Thanks! Dan From Lambert.Heenan at chartisinsurance.com Mon Dec 13 11:34:27 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Dec 2010 12:34:27 -0500 Subject: [AccessD] Office API's In-Reply-To: <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: One API that took me so long to find was one that would provide Windows Authentication. In other words require the user to enter the name and password that was used to start the current Windows session: to prove that they are who fOsUsername says they are. Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ lpszUserName As String, ByVal lpszDomain As String, _ ByVal lpszPassword As String, ByVal dwLogonType As Long, _ ByVal dwLogonProvider As Long, phToken As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ Long Const LOGON32_PROVIDER_DEFAULT = 0& Const LOGON32_LOGON_NETWORK = 3& ' Check whether a username/password pair is correct ' ' if DOMAIN is omitted, it uses the local account database ' and then asks trusted domains to search their account databases ' until it finds the account or the search is exhausted ' use DOMAIN="." to search only the local account database ' ' IMPORTANT: works only under Windows NT and 2000 and XP Private Function CheckWindowsUser(ByVal UserName As String, _ ByVal Password As String, Optional ByVal Domain As String) As Boolean Dim hToken As Long, ret As Long ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser ' provide a default for the Domain name If Len(Domain) = 0 Then Domain = vbNullString ' check the username/password pair ' using LOGON32_LOGON_NETWORK delivers the best performance ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ LOGON32_PROVIDER_DEFAULT, hToken) ' a non-zero value means success If ret Then CheckWindowsUser = True CloseHandle hToken End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, December 10, 2010 5:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Dec 13 11:38:46 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 13 Dec 2010 11:38:46 -0600 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: Hi Lambert, Your comments say, " IMPORTANT: works only under Windows NT and 2000 and XP." Does this mean that it won't work on previous versions of Windows? Or that it won't work on later versions of Windows? Or has this been tested on later versions? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's One API that took me so long to find was one that would provide Windows Authentication. In other words require the user to enter the name and password that was used to start the current Windows session: to prove that they are who fOsUsername says they are. Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ lpszUserName As String, ByVal lpszDomain As String, _ ByVal lpszPassword As String, ByVal dwLogonType As Long, _ ByVal dwLogonProvider As Long, phToken As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ Long Const LOGON32_PROVIDER_DEFAULT = 0& Const LOGON32_LOGON_NETWORK = 3& ' Check whether a username/password pair is correct ' ' if DOMAIN is omitted, it uses the local account database ' and then asks trusted domains to search their account databases ' until it finds the account or the search is exhausted ' use DOMAIN="." to search only the local account database ' ' IMPORTANT: works only under Windows NT and 2000 and XP Private Function CheckWindowsUser(ByVal UserName As String, _ ByVal Password As String, Optional ByVal Domain As String) As Boolean Dim hToken As Long, ret As Long ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser ' provide a default for the Domain name If Len(Domain) = 0 Then Domain = vbNullString ' check the username/password pair ' using LOGON32_LOGON_NETWORK delivers the best performance ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ LOGON32_PROVIDER_DEFAULT, hToken) ' a non-zero value means success If ret Then CheckWindowsUser = True CloseHandle hToken End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, December 10, 2010 5:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Mon Dec 13 12:06:13 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Dec 2010 13:06:13 -0500 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: I've not tested it on Win98 which was 32 bit ( IIRC), so it might work there, but I doubt in Win3x is up to it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, December 13, 2010 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office API's Hi Lambert, Your comments say, " IMPORTANT: works only under Windows NT and 2000 and XP." Does this mean that it won't work on previous versions of Windows? Or that it won't work on later versions of Windows? Or has this been tested on later versions? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's One API that took me so long to find was one that would provide Windows Authentication. In other words require the user to enter the name and password that was used to start the current Windows session: to prove that they are who fOsUsername says they are. Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ lpszUserName As String, ByVal lpszDomain As String, _ ByVal lpszPassword As String, ByVal dwLogonType As Long, _ ByVal dwLogonProvider As Long, phToken As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ Long Const LOGON32_PROVIDER_DEFAULT = 0& Const LOGON32_LOGON_NETWORK = 3& ' Check whether a username/password pair is correct ' ' if DOMAIN is omitted, it uses the local account database ' and then asks trusted domains to search their account databases ' until it finds the account or the search is exhausted ' use DOMAIN="." to search only the local account database ' ' IMPORTANT: works only under Windows NT and 2000 and XP Private Function CheckWindowsUser(ByVal UserName As String, _ ByVal Password As String, Optional ByVal Domain As String) As Boolean Dim hToken As Long, ret As Long ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser ' provide a default for the Domain name If Len(Domain) = 0 Then Domain = vbNullString ' check the username/password pair ' using LOGON32_LOGON_NETWORK delivers the best performance ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ LOGON32_PROVIDER_DEFAULT, hToken) ' a non-zero value means success If ret Then CheckWindowsUser = True CloseHandle hToken End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, December 10, 2010 5:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Dec 13 12:07:52 2010 From: df.waters at comcast.net (Dan Waters) Date: Mon, 13 Dec 2010 12:07:52 -0600 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: Have you tried with Vista or W7? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 12:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's I've not tested it on Win98 which was 32 bit ( IIRC), so it might work there, but I doubt in Win3x is up to it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, December 13, 2010 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office API's Hi Lambert, Your comments say, " IMPORTANT: works only under Windows NT and 2000 and XP." Does this mean that it won't work on previous versions of Windows? Or that it won't work on later versions of Windows? Or has this been tested on later versions? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's One API that took me so long to find was one that would provide Windows Authentication. In other words require the user to enter the name and password that was used to start the current Windows session: to prove that they are who fOsUsername says they are. Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ lpszUserName As String, ByVal lpszDomain As String, _ ByVal lpszPassword As String, ByVal dwLogonType As Long, _ ByVal dwLogonProvider As Long, phToken As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ Long Const LOGON32_PROVIDER_DEFAULT = 0& Const LOGON32_LOGON_NETWORK = 3& ' Check whether a username/password pair is correct ' ' if DOMAIN is omitted, it uses the local account database ' and then asks trusted domains to search their account databases ' until it finds the account or the search is exhausted ' use DOMAIN="." to search only the local account database ' ' IMPORTANT: works only under Windows NT and 2000 and XP Private Function CheckWindowsUser(ByVal UserName As String, _ ByVal Password As String, Optional ByVal Domain As String) As Boolean Dim hToken As Long, ret As Long ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser ' provide a default for the Domain name If Len(Domain) = 0 Then Domain = vbNullString ' check the username/password pair ' using LOGON32_LOGON_NETWORK delivers the best performance ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ LOGON32_PROVIDER_DEFAULT, hToken) ' a non-zero value means success If ret Then CheckWindowsUser = True CloseHandle hToken End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, December 10, 2010 5:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Mon Dec 13 13:04:10 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Dec 2010 14:04:10 -0500 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: Still in the dark ages of Win XP here. No W7 machines. By the way, if the user gets the password wrong it will not lock the user ID after N tries and force a password reset the way windows XP's default policy does. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, December 13, 2010 1:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office API's Have you tried with Vista or W7? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 12:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's I've not tested it on Win98 which was 32 bit ( IIRC), so it might work there, but I doubt in Win3x is up to it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, December 13, 2010 12:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Office API's Hi Lambert, Your comments say, " IMPORTANT: works only under Windows NT and 2000 and XP." Does this mean that it won't work on previous versions of Windows? Or that it won't work on later versions of Windows? Or has this been tested on later versions? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 13, 2010 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's One API that took me so long to find was one that would provide Windows Authentication. In other words require the user to enter the name and password that was used to start the current Windows session: to prove that they are who fOsUsername says they are. Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ lpszUserName As String, ByVal lpszDomain As String, _ ByVal lpszPassword As String, ByVal dwLogonType As Long, _ ByVal dwLogonProvider As Long, phToken As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ Long Const LOGON32_PROVIDER_DEFAULT = 0& Const LOGON32_LOGON_NETWORK = 3& ' Check whether a username/password pair is correct ' ' if DOMAIN is omitted, it uses the local account database ' and then asks trusted domains to search their account databases ' until it finds the account or the search is exhausted ' use DOMAIN="." to search only the local account database ' ' IMPORTANT: works only under Windows NT and 2000 and XP Private Function CheckWindowsUser(ByVal UserName As String, _ ByVal Password As String, Optional ByVal Domain As String) As Boolean Dim hToken As Long, ret As Long ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser ' provide a default for the Domain name If Len(Domain) = 0 Then Domain = vbNullString ' check the username/password pair ' using LOGON32_LOGON_NETWORK delivers the best performance ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ LOGON32_PROVIDER_DEFAULT, hToken) ' a non-zero value means success If ret Then CheckWindowsUser = True CloseHandle hToken End If End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, December 10, 2010 5:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's On 10 Dec 2010 at 16:22, Susan Harkins wrote: > Yeah, and it's temperamental to boot! ;) > > Susan H. It works exactly the way it is intended. - just not the way you think it should :-) >From Win32.hlp: The FindWindow function retrieves the handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Parameters lpClassName Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero. lpWindowName Points to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match. Return Values If the function succeeds, the return value is the handle to the window that has the specified class name and window name. If the function fails, the return value is NULL. To get extended error information, call GetLastError. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Dec 13 13:20:16 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 13 Dec 2010 13:20:16 -0600 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: Access is more than capable of running as a backend to a web application... IF you put the .mdb on the web server itself. When done that way, it'll run as fast or faster than a SQL Server, and will never have corruption issues. (Unless you also access it with Access from across a network, then corruption may still occur). I have lots of web based systems that use an Access .mdb for the back end. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, December 12, 2010 2:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Preparing Database for Web Team, I have a customer who want a simple database created which will ultimately be hooked up to a web interface (Order screen for fabric samples, and tracking screen to show status of order). I still need to sit down with them to work out the likely number of records, simultaneous users etc (which I am doing tomorrow). Currently their databases are all Access. Assuming the size of the new database will be well within Access limits, is Access suitably robust for web applications, or should I start off with SQL? I will be getting someone else to do the web side of things but want to make sure that I make it as easy as possible (read cheap) for them. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- 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 Business Sensitive 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 charlotte.foust at gmail.com Mon Dec 13 13:24:27 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 13 Dec 2010 11:24:27 -0800 Subject: [AccessD] Yes/No Fields in Tables - Default Values? In-Reply-To: References: Message-ID: Use either True/False or Yes/No. Using -1 or 0 will cause you problems if you need to work with a SQL backend at some point, since SQL Server uses 1/0 for True/False values. Charlotte Foust On Mon, Dec 13, 2010 at 9:27 AM, Dan Waters wrote: > I want to set my Yes/No fields to a default value to avoid the problem with > a Null value. ?If my Yes/No fields are bound to a control, it's always a > checkbox. > > > > Should I use True/False, Yes/No, or -1/0? ?Or does it matter? > > > > Thanks! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From newsgrps at dalyn.co.nz Mon Dec 13 13:33:07 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 14 Dec 2010 08:33:07 +1300 Subject: [AccessD] Preparing Database for Web In-Reply-To: References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20101213193336.BOBI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Thanks everyone for your comments. No doubt after my meeting later today I will have a better idea what setup they have available. Regards David At 14/12/2010, Drew Wutka wrote: >Access is more than capable of running as a backend to a web >application... IF you put the .mdb on the web server itself. When done >that way, it'll run as fast or faster than a SQL Server, and will never >have corruption issues. (Unless you also access it with Access from >across a network, then corruption may still occur). > >I have lots of web based systems that use an Access .mdb for the back >end. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Sunday, December 12, 2010 2:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Preparing Database for Web > >Team, > >I have a customer who want a simple database created which will >ultimately be hooked up to a web interface (Order screen for fabric >samples, and tracking screen to show status of order). > >I still need to sit down with them to work out the likely number of >records, simultaneous users etc (which I am doing tomorrow). > >Currently their databases are all Access. Assuming the size of the >new database will be well within Access limits, is Access suitably >robust for web applications, or should I start off with SQL? > >I will be getting someone else to do the web side of things but want >to make sure that I make it as easy as possible (read cheap) for them. > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >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 Business >Sensitive 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 dbdoug at gmail.com Mon Dec 13 13:56:58 2010 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 13 Dec 2010 11:56:58 -0800 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: I just tried the code using Access 2003 on Windows 7 and it seems to work OK. Doug On Mon, Dec 13, 2010 at 11:04 AM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > Still in the dark ages of Win XP here. No W7 machines. > > By the way, if the user gets the password wrong it will not lock the user > ID after N tries and force a password reset the way windows XP's default > policy does. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2010 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Office API's > > Have you tried with Vista or W7? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2010 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > I've not tested it on Win98 which was 32 bit ( IIRC), so it might work > there, but I doubt in Win3x is up to it. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2010 12:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Office API's > > Hi Lambert, > > Your comments say, " IMPORTANT: works only under Windows NT and 2000 and > XP." Does this mean that it won't work on previous versions of Windows? Or > that it won't work on later versions of Windows? Or has this been tested on > later versions? > > Thanks! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2010 11:34 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > One API that took me so long to find was one that would provide Windows > Authentication. In other words require the user to enter the name and > password that was used to start the current Windows session: to prove that > they are who fOsUsername says they are. > > Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal > _ > lpszUserName As String, ByVal lpszDomain As String, _ > ByVal lpszPassword As String, ByVal dwLogonType As Long, _ > ByVal dwLogonProvider As Long, phToken As Long) As Long > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) > As _ > Long > Const LOGON32_PROVIDER_DEFAULT = 0& > Const LOGON32_LOGON_NETWORK = 3& > > ' Check whether a username/password pair is correct ' > ' if DOMAIN is omitted, it uses the local account database ' and then asks > trusted domains to search their account databases ' until it finds the > account or the search is exhausted ' use DOMAIN="." to search only the local > account database ' > ' IMPORTANT: works only under Windows NT and 2000 and XP > > Private Function CheckWindowsUser(ByVal UserName As String, _ > ByVal Password As String, Optional ByVal Domain As String) As Boolean > Dim hToken As Long, ret As Long > > ' The handle hToken is not used by CheckWindowsUser ' but is required by > the API LogonUser > > ' provide a default for the Domain name > If Len(Domain) = 0 Then Domain = vbNullString > ' check the username/password pair > ' using LOGON32_LOGON_NETWORK delivers the best performance > ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ > LOGON32_PROVIDER_DEFAULT, hToken) > > ' a non-zero value means success > If ret Then > CheckWindowsUser = True > CloseHandle hToken > End If > > End Function > > Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, December 10, 2010 5:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > On 10 Dec 2010 at 16:22, Susan Harkins wrote: > > > Yeah, and it's temperamental to boot! ;) > > > > Susan H. > > > It works exactly the way it is intended. - just not the way you think it > should :-) > > >From Win32.hlp: > > The FindWindow function retrieves the handle to the top-level window whose > class name and window name match the specified strings. This function does > not search child windows. > > HWND FindWindow( > LPCTSTR lpClassName, // pointer to class name > LPCTSTR lpWindowName // pointer to window name > ); > > Parameters > lpClassName > Points to a null-terminated string that specifies the class name or is an > atom that identifies the class-name string. If this parameter is an atom, it > must be a global atom created by a previous call to the GlobalAddAtom > function. The atom, a 16-bit value, must be placed in the low-order word of > lpClassName; the high-order word must be zero. > > lpWindowName > Points to a null-terminated string that specifies the window name (the > window's title). If this parameter is NULL, all window names match. > > Return Values If the function succeeds, the return value is the handle to > the window that has the specified class name and window name. If the > function fails, the return value is NULL. To get extended error information, > call GetLastError. > > -- > Stuart > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Mon Dec 13 14:28:01 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 13 Dec 2010 15:28:01 -0500 Subject: [AccessD] Office API's In-Reply-To: References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p> <4D02ACE0.26862.4C328FC@stuart.lexacorp.com.pg> Message-ID: Good to know. Anyone like to make a 64 bit version? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, December 13, 2010 2:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's I just tried the code using Access 2003 on Windows 7 and it seems to work OK. Doug On Mon, Dec 13, 2010 at 11:04 AM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > Still in the dark ages of Win XP here. No W7 machines. > > By the way, if the user gets the password wrong it will not lock the > user ID after N tries and force a password reset the way windows XP's > default policy does. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2010 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Office API's > > Have you tried with Vista or W7? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Monday, December 13, 2010 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > I've not tested it on Win98 which was 32 bit ( IIRC), so it might work > there, but I doubt in Win3x is up to it. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, December 13, 2010 12:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Office API's > > Hi Lambert, > > Your comments say, " IMPORTANT: works only under Windows NT and 2000 > and XP." Does this mean that it won't work on previous versions of > Windows? Or that it won't work on later versions of Windows? Or has > this been tested on later versions? > > Thanks! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Monday, December 13, 2010 11:34 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > One API that took me so long to find was one that would provide > Windows Authentication. In other words require the user to enter the > name and password that was used to start the current Windows session: > to prove that they are who fOsUsername says they are. > > Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" > (ByVal _ > lpszUserName As String, ByVal lpszDomain As String, _ > ByVal lpszPassword As String, ByVal dwLogonType As Long, _ > ByVal dwLogonProvider As Long, phToken As Long) As Long > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As > Long) As _ > Long > Const LOGON32_PROVIDER_DEFAULT = 0& > Const LOGON32_LOGON_NETWORK = 3& > > ' Check whether a username/password pair is correct ' > ' if DOMAIN is omitted, it uses the local account database ' and then > asks trusted domains to search their account databases ' until it > finds the account or the search is exhausted ' use DOMAIN="." to > search only the local account database ' > ' IMPORTANT: works only under Windows NT and 2000 and XP > > Private Function CheckWindowsUser(ByVal UserName As String, _ > ByVal Password As String, Optional ByVal Domain As String) As Boolean > Dim hToken As Long, ret As Long > > ' The handle hToken is not used by CheckWindowsUser ' but is required > by the API LogonUser > > ' provide a default for the Domain name > If Len(Domain) = 0 Then Domain = vbNullString > ' check the username/password pair > ' using LOGON32_LOGON_NETWORK delivers the best performance > ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ > LOGON32_PROVIDER_DEFAULT, hToken) > > ' a non-zero value means success > If ret Then > CheckWindowsUser = True > CloseHandle hToken > End If > > End Function > > Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, December 10, 2010 5:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > On 10 Dec 2010 at 16:22, Susan Harkins wrote: > > > Yeah, and it's temperamental to boot! ;) > > > > Susan H. > > > It works exactly the way it is intended. - just not the way you think > it should :-) > > >From Win32.hlp: > > The FindWindow function retrieves the handle to the top-level window > whose class name and window name match the specified strings. This > function does not search child windows. > > HWND FindWindow( > LPCTSTR lpClassName, // pointer to class name > LPCTSTR lpWindowName // pointer to window name > ); > > Parameters > lpClassName > Points to a null-terminated string that specifies the class name or is > an atom that identifies the class-name string. If this parameter is an > atom, it must be a global atom created by a previous call to the > GlobalAddAtom function. The atom, a 16-bit value, must be placed in > the low-order word of lpClassName; the high-order word must be zero. > > lpWindowName > Points to a null-terminated string that specifies the window name (the > window's title). If this parameter is NULL, all window names match. > > Return Values If the function succeeds, the return value is the handle > to the window that has the specified class name and window name. If > the function fails, the return value is NULL. To get extended error > information, call GetLastError. > > -- > Stuart > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Dec 13 15:06:43 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Dec 2010 07:06:43 +1000 Subject: [AccessD] Yes/No Fields in Tables - Default Values? In-Reply-To: References: Message-ID: <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> It doesn't matter. True/False and Yes/No as predefined numeric equated for the values -1 and 0. Effectively they are all the same thing. -- Stuart On 13 Dec 2010 at 11:27, Dan Waters wrote: > I want to set my Yes/No fields to a default value to avoid the problem > with a Null value. If my Yes/No fields are bound to a control, it's > always a checkbox. > > > > Should I use True/False, Yes/No, or -1/0? Or does it matter? > > > > Thanks! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 13 15:51:53 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 13 Dec 2010 21:51:53 +0000 Subject: [AccessD] Create file/image from clipboard...or Mappoint automation In-Reply-To: <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> References: , <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> Message-ID: Hello All, My ultimate goal is to save a higher quality image from MapPoint using Access. questions: 1. Can I create a jpg or bmp from an image in the clipboard usinhg Access? 2. Anyone know how to output jpg or bmp from MapPoint Using Access? Thanks, Mark A. Matte From michael at mattysconsulting.com Mon Dec 13 16:01:06 2010 From: michael at mattysconsulting.com (Michael Mattys) Date: Mon, 13 Dec 2010 17:01:06 -0500 Subject: [AccessD] Create file/image from clipboard...or Mappoint automation In-Reply-To: References: , <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> Message-ID: <049AA82346AA445C87868C90C0956CE8@Gateway> Hi Mark, That's a specialty of ours. If you'll check out my website and then contact me offline I'll be able to provide a high-res map in any format you like. Michael R Mattys Business Process Developers www.mattysconsulting.com 585-300-0181 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, December 13, 2010 4:52 PM To: accessd at databaseadvisors.com Subject: [AccessD] Create file/image from clipboard...or Mappoint automation Hello All, My ultimate goal is to save a higher quality image from MapPoint using Access. questions: 1. Can I create a jpg or bmp from an image in the clipboard usinhg Access? 2. Anyone know how to output jpg or bmp from MapPoint Using Access? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Dec 14 01:04:07 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 14 Dec 2010 20:04:07 +1300 Subject: [AccessD] Observations on AC 2007 (not good) In-Reply-To: <5B374E1895FA45E08BEB4CB981E9C1E5@DanWaters> References: <00bf01cb8c5e$28f54c10$0401a8c0@MSIMMSWS> <5B374E1895FA45E08BEB4CB981E9C1E5@DanWaters> Message-ID: <20101214070433.BNQD7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> I have come across the situation where I want to hide the A2007 Ribbon but still show my custom menu (Database is A2002 format). Dan's code below works well for hiding the Ribbon but as is noted below, so is my custom menu hidden. Is there any easy solution to this problem? Would using an A2010 runtime make the problem easier? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand At 26/11/2010, Dan Waters wrote: >I have to say that I have not had a problem with my customers running A2007 >on an mdb file. I have not tried converting to A2007 because some of my >customers still use Access 2003. So, my recommendation is to develop the >app as an mdb, give them mdb files, and they can use A2007. > >The only issue I've come across is that the ribbon shows up when forms are >open, and I needed to prevent that because my forms don't show any toolbars >and I don't want users getting any of that functionality at run time. This >can be fixed. > >When you run startup code include this procedure in a standard module while >passing in a False value: > > Private Sub DisplayRibbon(blnDisplayRibbon As Boolean) > If SysCmd(acSysCmdAccessVer) >= 12 Then > If blnDisplayRibbon = True Then > DoCmd.ShowToolbar "Ribbon", acToolbarYes > Else > DoCmd.ShowToolbar "Ribbon", acToolbarNo > End If > End If > End Sub > >This keeps the ribbon closed when a form is opened. > >But you need the ribbon when a report is opened for printing, previewing, >closing, etc. In that case I use the following code in each report: > > Private Sub Report_Close() > Call DisplayRibbon(False) > End Sub > > Private Sub Report_Open(Cancel As Integer) > Call DisplayRibbon(True) > End Sub > >At two of my customers, some people use A2007 and some use A2003, and they >all use the same mdb files without a problem. A2007 was designed to use mdb >files with little to no difference from A2003 behavior, other than the >ribbons. > >Hope this helps someone! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms >Sent: Wednesday, November 24, 2010 11:04 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Observations on AC 2007 (not good) > >As I am furiously hacking away at AC 2007 for a client, I've spotted some >problems I have not seen documented. >Here they are: >1) I observed that when changing an ACCDB to an MDB for purposes of using >Access 2003 and Access 2007 there a bug in this conversion process ...it >removes the USysRibbons table. Access 2007 still can operate without one. >However, without that system table, you cannot do any customization of the >ribbon by assignment from the Ribbon and Toolbar options setting ! The only >alternative is the LoadCustomUI vba method. >The fix: cut-and-paste the USysRibbons from an ACCDB file; then change the >Attribute to the proper system table attribute -2....... something. That >last step is important. > >2) Commandbar menu items built in AC 2003 show-up ONLY under the "Add-ins" >tab of AC 2007. OF COURSE THIS STINKS HUGELY. If you assign a custom Ribbon >that does not have an Add-ins tab, YOUR COMMANDBAR MENU IS LOST....your >users cannot do anything ! >Microsoft easily could have provided a database-level setting for the >flexible placement of the commandbar menu onto the Ribbon. How this major >oversight ever got past beta testing only confirms my feeling about the >political nature of the selection of the beta test team. I would go so far >as to indict the product manager of Access for such a grevious oversight and >lack of attention to detail. > >3) The AC 2007 ribbon can be minimized and indeed that setting "persists" >upon the next database open. Minimizing it via the GUI is simple. Doing it >with VBA is nearly rocket science with a ton of Win API calls required for >it to be reliable. Note: in AC 2010, a new DoCmd was added to minimize the >ribbon. (it took 3 YEARS to figure that out ?) > >It doesn't take a genius to see why AC usage and acceptance in corporations >has now dropped to very low levels. Anyone associated with the beta testing >of AC 2007 should immediately disavow all knowledge of any interaction with >Microsoft Access engineers and managers involved in that program at the risk >of major verbal abuse by beleagered colleagues. From newsgrps at dalyn.co.nz Tue Dec 14 01:08:31 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 14 Dec 2010 20:08:31 +1300 Subject: [AccessD] Preparing Database for Web In-Reply-To: References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> The company IT guy suggested using sharepoint and putting the whole database on the server. He indicated that then we wouldn't need any web interface. There would only be about 25 staff that would be using it (and it is not high usage) but they are spreads across a couple of countries (well NZ and the West Island sometimes called Australia :-)) Any comments with this approach? David At 14/12/2010, Drew Wutka wrote: >Access is more than capable of running as a backend to a web >application... IF you put the .mdb on the web server itself. When done >that way, it'll run as fast or faster than a SQL Server, and will never >have corruption issues. (Unless you also access it with Access from >across a network, then corruption may still occur). > >I have lots of web based systems that use an Access .mdb for the back >end. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Sunday, December 12, 2010 2:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Preparing Database for Web > >Team, > >I have a customer who want a simple database created which will >ultimately be hooked up to a web interface (Order screen for fabric >samples, and tracking screen to show status of order). > >I still need to sit down with them to work out the likely number of >records, simultaneous users etc (which I am doing tomorrow). > >Currently their databases are all Access. Assuming the size of the >new database will be well within Access limits, is Access suitably >robust for web applications, or should I start off with SQL? > >I will be getting someone else to do the web side of things but want >to make sure that I make it as easy as possible (read cheap) for them. > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand From gustav at cactus.dk Tue Dec 14 02:04:57 2010 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Dec 2010 09:04:57 +0100 Subject: [AccessD] Office API's Message-ID: But Lambert: > One API that took me so long to find was one that would provide Windows > Authentication. In other words require the user to enter the name and > password that was used to start the current Windows session: to prove that > they are who fOsUsername says they are. why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2010 11:34 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > One API that took me so long to find was one that would provide Windows > Authentication. In other words require the user to enter the name and > password that was used to start the current Windows session: to prove that > they are who fOsUsername says they are. > > Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ > lpszUserName As String, ByVal lpszDomain As String, _ > ByVal lpszPassword As String, ByVal dwLogonType As Long, _ > ByVal dwLogonProvider As Long, phToken As Long) As Long > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ > Long > Const LOGON32_PROVIDER_DEFAULT = 0& > Const LOGON32_LOGON_NETWORK = 3& > > ' Check whether a username/password pair is correct ' > ' if DOMAIN is omitted, it uses the local account database > ' and then asks trusted domains to search their account databases > ' until it finds the account or the search is exhausted > ' use DOMAIN="." to search only the local account database ' > ' IMPORTANT: works only under Windows NT and 2000 and XP > > Private Function CheckWindowsUser(ByVal UserName As String, _ > ByVal Password As String, Optional ByVal Domain As String) As Boolean > Dim hToken As Long, ret As Long > > ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser > > ' provide a default for the Domain name > If Len(Domain) = 0 Then Domain = vbNullString > ' check the username/password pair > ' using LOGON32_LOGON_NETWORK delivers the best performance > ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ > LOGON32_PROVIDER_DEFAULT, hToken) > > ' a non-zero value means success > If ret Then > CheckWindowsUser = True > CloseHandle hToken > End If > > End Function > > Lambert From jwcolby at colbyconsulting.com Tue Dec 14 07:00:04 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Dec 2010 08:00:04 -0500 Subject: [AccessD] Office API's In-Reply-To: References: Message-ID: <4D076A54.3050809@colbyconsulting.com> Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >> Sent: Monday, December 13, 2010 11:34 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Office API's >> >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. >> >> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ >> lpszUserName As String, ByVal lpszDomain As String, _ >> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >> ByVal dwLogonProvider As Long, phToken As Long) As Long >> >> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ >> Long >> Const LOGON32_PROVIDER_DEFAULT = 0& >> Const LOGON32_LOGON_NETWORK = 3& >> >> ' Check whether a username/password pair is correct' >> ' if DOMAIN is omitted, it uses the local account database >> ' and then asks trusted domains to search their account databases >> ' until it finds the account or the search is exhausted >> ' use DOMAIN="." to search only the local account database' >> ' IMPORTANT: works only under Windows NT and 2000 and XP >> >> Private Function CheckWindowsUser(ByVal UserName As String, _ >> ByVal Password As String, Optional ByVal Domain As String) As Boolean >> Dim hToken As Long, ret As Long >> >> ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser >> >> ' provide a default for the Domain name >> If Len(Domain) = 0 Then Domain = vbNullString >> ' check the username/password pair >> ' using LOGON32_LOGON_NETWORK delivers the best performance >> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >> LOGON32_PROVIDER_DEFAULT, hToken) >> >> ' a non-zero value means success >> If ret Then >> CheckWindowsUser = True >> CloseHandle hToken >> End If >> >> End Function >> >> Lambert > > From Gustav at cactus.dk Tue Dec 14 07:21:13 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Dec 2010 14:21:13 +0100 Subject: [AccessD] Office API's Message-ID: Hi John OK, that's authentication in general and I understand your purpose. My point is that Lambert spoke about the user of the _current_ Windows session, not "someone" sitting at the keyboard. /gustav >>> jwcolby at colbyconsulting.com 14-12-2010 14:00 >>> Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >> Sent: Monday, December 13, 2010 11:34 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Office API's >> >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. >> >> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ >> lpszUserName As String, ByVal lpszDomain As String, _ >> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >> ByVal dwLogonProvider As Long, phToken As Long) As Long >> >> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ >> Long >> Const LOGON32_PROVIDER_DEFAULT = 0& >> Const LOGON32_LOGON_NETWORK = 3& >> >> ' Check whether a username/password pair is correct' >> ' if DOMAIN is omitted, it uses the local account database >> ' and then asks trusted domains to search their account databases >> ' until it finds the account or the search is exhausted >> ' use DOMAIN="." to search only the local account database' >> ' IMPORTANT: works only under Windows NT and 2000 and XP >> >> Private Function CheckWindowsUser(ByVal UserName As String, _ >> ByVal Password As String, Optional ByVal Domain As String) As Boolean >> Dim hToken As Long, ret As Long >> >> ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser >> >> ' provide a default for the Domain name >> If Len(Domain) = 0 Then Domain = vbNullString >> ' check the username/password pair >> ' using LOGON32_LOGON_NETWORK delivers the best performance >> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >> LOGON32_PROVIDER_DEFAULT, hToken) >> >> ' a non-zero value means success >> If ret Then >> CheckWindowsUser = True >> CloseHandle hToken >> End If >> >> End Function >> >> Lambert From jimdettman at verizon.net Tue Dec 14 07:28:37 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 14 Dec 2010 08:28:37 -0500 Subject: [AccessD] Office API's In-Reply-To: References: Message-ID: <50EA5F7F63F8458BA8C8C907FFA14FF1@XPS> I was wondering the same thing... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 14, 2010 03:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office API's But Lambert: > One API that took me so long to find was one that would provide Windows > Authentication. In other words require the user to enter the name and > password that was used to start the current Windows session: to prove that > they are who fOsUsername says they are. why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Monday, December 13, 2010 11:34 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > One API that took me so long to find was one that would provide Windows > Authentication. In other words require the user to enter the name and > password that was used to start the current Windows session: to prove that > they are who fOsUsername says they are. > > Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ > lpszUserName As String, ByVal lpszDomain As String, _ > ByVal lpszPassword As String, ByVal dwLogonType As Long, _ > ByVal dwLogonProvider As Long, phToken As Long) As Long > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ > Long > Const LOGON32_PROVIDER_DEFAULT = 0& > Const LOGON32_LOGON_NETWORK = 3& > > ' Check whether a username/password pair is correct ' > ' if DOMAIN is omitted, it uses the local account database > ' and then asks trusted domains to search their account databases > ' until it finds the account or the search is exhausted > ' use DOMAIN="." to search only the local account database ' > ' IMPORTANT: works only under Windows NT and 2000 and XP > > Private Function CheckWindowsUser(ByVal UserName As String, _ > ByVal Password As String, Optional ByVal Domain As String) As Boolean > Dim hToken As Long, ret As Long > > ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser > > ' provide a default for the Domain name > If Len(Domain) = 0 Then Domain = vbNullString > ' check the username/password pair > ' using LOGON32_LOGON_NETWORK delivers the best performance > ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ > LOGON32_PROVIDER_DEFAULT, hToken) > > ' a non-zero value means success > If ret Then > CheckWindowsUser = True > CloseHandle hToken > End If > > End Function > > Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Dec 14 07:30:43 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 14 Dec 2010 08:30:43 -0500 Subject: [AccessD] Office API's In-Reply-To: <4D076A54.3050809@colbyconsulting.com> References: <4D076A54.3050809@colbyconsulting.com> Message-ID: <20D94554B8EF49A0A61E74B247065A01@XPS> I can see that, but changing a windows logon is going to switch users. I can't see much use for that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, December 14, 2010 08:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >> Sent: Monday, December 13, 2010 11:34 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Office API's >> >> One API that took me so long to find was one that would provide Windows >> Authentication. In other words require the user to enter the name and >> password that was used to start the current Windows session: to prove that >> they are who fOsUsername says they are. >> >> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ >> lpszUserName As String, ByVal lpszDomain As String, _ >> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >> ByVal dwLogonProvider As Long, phToken As Long) As Long >> >> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ >> Long >> Const LOGON32_PROVIDER_DEFAULT = 0& >> Const LOGON32_LOGON_NETWORK = 3& >> >> ' Check whether a username/password pair is correct' >> ' if DOMAIN is omitted, it uses the local account database >> ' and then asks trusted domains to search their account databases >> ' until it finds the account or the search is exhausted >> ' use DOMAIN="." to search only the local account database' >> ' IMPORTANT: works only under Windows NT and 2000 and XP >> >> Private Function CheckWindowsUser(ByVal UserName As String, _ >> ByVal Password As String, Optional ByVal Domain As String) As Boolean >> Dim hToken As Long, ret As Long >> >> ' The handle hToken is not used by CheckWindowsUser ' but is required by the API LogonUser >> >> ' provide a default for the Domain name >> If Len(Domain) = 0 Then Domain = vbNullString >> ' check the username/password pair >> ' using LOGON32_LOGON_NETWORK delivers the best performance >> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >> LOGON32_PROVIDER_DEFAULT, hToken) >> >> ' a non-zero value means success >> If ret Then >> CheckWindowsUser = True >> CloseHandle hToken >> End If >> >> End Function >> >> Lambert > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Dec 14 08:22:03 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 14 Dec 2010 09:22:03 -0500 Subject: [AccessD] Office API's In-Reply-To: References: Message-ID: Because people sometimes walk away from their computers and leave them unlocked. Sensitive functions of some applications require that only genuine users get to alter data, or even to view it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 14, 2010 3:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office API's But Lambert: > One API that took me so long to find was one that would provide > Windows Authentication. In other words require the user to enter the > name and password that was used to start the current Windows session: > to prove that they are who fOsUsername says they are. why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Monday, December 13, 2010 11:34 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > One API that took me so long to find was one that would provide > Windows Authentication. In other words require the user to enter the > name and password that was used to start the current Windows session: > to prove that they are who fOsUsername says they are. > > Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ > lpszUserName As String, ByVal lpszDomain As String, _ > ByVal lpszPassword As String, ByVal dwLogonType As Long, _ > ByVal dwLogonProvider As Long, phToken As Long) As Long > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ > Long > Const LOGON32_PROVIDER_DEFAULT = 0& > Const LOGON32_LOGON_NETWORK = 3& > > ' Check whether a username/password pair is correct ' > ' if DOMAIN is omitted, it uses the local account database ' and then > asks trusted domains to search their account databases ' until it > finds the account or the search is exhausted ' use DOMAIN="." to > search only the local account database ' > ' IMPORTANT: works only under Windows NT and 2000 and XP > > Private Function CheckWindowsUser(ByVal UserName As String, _ > ByVal Password As String, Optional ByVal Domain As String) As Boolean > Dim hToken As Long, ret As Long > > ' The handle hToken is not used by CheckWindowsUser ' but is required > by the API LogonUser > > ' provide a default for the Domain name > If Len(Domain) = 0 Then Domain = vbNullString > ' check the username/password pair > ' using LOGON32_LOGON_NETWORK delivers the best performance > ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ > LOGON32_PROVIDER_DEFAULT, hToken) > > ' a non-zero value means success > If ret Then > CheckWindowsUser = True > CloseHandle hToken > End If > > End Function > > Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Dec 14 08:25:06 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 14 Dec 2010 09:25:06 -0500 Subject: [AccessD] Office API's In-Reply-To: References: Message-ID: In actual fact the methods that I have put together that use that authentication code will allow any other user to enter their own ID and password on someone else's computer. The fact that their ID is different that the one that started the current session is detected, and code can then take the appropriate action. So my use of the term "Current Windows Session" was a bit misleading. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 14, 2010 8:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office API's Hi John OK, that's authentication in general and I understand your purpose. My point is that Lambert spoke about the user of the _current_ Windows session, not "someone" sitting at the keyboard. /gustav >>> jwcolby at colbyconsulting.com 14-12-2010 14:00 >>> Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide >> Windows Authentication. In other words require the user to enter the >> name and password that was used to start the current Windows session: >> to prove that they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Monday, December 13, 2010 11:34 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Office API's >> >> One API that took me so long to find was one that would provide >> Windows Authentication. In other words require the user to enter the >> name and password that was used to start the current Windows session: >> to prove that they are who fOsUsername says they are. >> >> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ >> lpszUserName As String, ByVal lpszDomain As String, _ >> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >> ByVal dwLogonProvider As Long, phToken As Long) As Long >> >> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ >> Long >> Const LOGON32_PROVIDER_DEFAULT = 0& >> Const LOGON32_LOGON_NETWORK = 3& >> >> ' Check whether a username/password pair is correct' >> ' if DOMAIN is omitted, it uses the local account database ' and then >> asks trusted domains to search their account databases ' until it >> finds the account or the search is exhausted ' use DOMAIN="." to >> search only the local account database' >> ' IMPORTANT: works only under Windows NT and 2000 and XP >> >> Private Function CheckWindowsUser(ByVal UserName As String, _ >> ByVal Password As String, Optional ByVal Domain As String) As Boolean >> Dim hToken As Long, ret As Long >> >> ' The handle hToken is not used by CheckWindowsUser ' but is required >> by the API LogonUser >> >> ' provide a default for the Domain name >> If Len(Domain) = 0 Then Domain = vbNullString >> ' check the username/password pair >> ' using LOGON32_LOGON_NETWORK delivers the best performance >> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >> LOGON32_PROVIDER_DEFAULT, hToken) >> >> ' a non-zero value means success >> If ret Then >> CheckWindowsUser = True >> CloseHandle hToken >> End If >> >> End Function >> >> Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Dec 14 08:36:41 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Dec 2010 15:36:41 +0100 Subject: [AccessD] Office API's Message-ID: Thanks Lambert, that explains. /gustav >>> Lambert.Heenan at chartisinsurance.com 14-12-2010 15:25 >>> In actual fact the methods that I have put together that use that authentication code will allow any other user to enter their own ID and password on someone else's computer. The fact that their ID is different that the one that started the current session is detected, and code can then take the appropriate action. So my use of the term "Current Windows Session" was a bit misleading. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 14, 2010 8:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office API's Hi John OK, that's authentication in general and I understand your purpose. My point is that Lambert spoke about the user of the _current_ Windows session, not "someone" sitting at the keyboard. /gustav >>> jwcolby at colbyconsulting.com 14-12-2010 14:00 >>> Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide >> Windows Authentication. In other words require the user to enter the >> name and password that was used to start the current Windows session: >> to prove that they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav From markamatte at hotmail.com Tue Dec 14 08:36:56 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 14 Dec 2010 14:36:56 +0000 Subject: [AccessD] Create file/image from clipboard...or Mappoint automation In-Reply-To: <049AA82346AA445C87868C90C0956CE8@Gateway> References: , , <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg>, , <049AA82346AA445C87868C90C0956CE8@Gateway> Message-ID: Thanks Michael. I'm not looking to order maps. As an example, lets say I want to generate 20K maps with directions...I can already do this with a single button. I am looking for a way to get a better image out of MapPoint. Or as an alternative...save an image from the clipboard to a file...not paste into word. Thanks again, Mark A. Matte > From: michael at mattysconsulting.com > To: accessd at databaseadvisors.com > Date: Mon, 13 Dec 2010 17:01:06 -0500 > Subject: Re: [AccessD] Create file/image from clipboard...or Mappoint automation > > Hi Mark, > > That's a specialty of ours. > If you'll check out my website and then contact me offline > I'll be able to provide a high-res map in any format you like. > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > 585-300-0181 > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Monday, December 13, 2010 4:52 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Create file/image from clipboard...or Mappoint automation > > > Hello All, > > My ultimate goal is to save a higher quality image from MapPoint using > Access. > > questions: > > 1. Can I create a jpg or bmp from an image in the clipboard usinhg Access? > > 2. Anyone know how to output jpg or bmp from MapPoint Using Access? > > 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 fuller.artful at gmail.com Tue Dec 14 09:27:52 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 14 Dec 2010 10:27:52 -0500 Subject: [AccessD] CommonDlg call Message-ID: I am upgrading an app to A2K7/10 and the compiler does not recognize a call to the Windows Common Dialogs library. I've tried browsing the list of References and cannot seem to find the right one. If it matters, I'm running WIndows 7 and A2K7. The client is running Office 2010. This call is very occasional, so it doesn't really matter, but I like to leave my workshop spotless. TIA, Arthur From DWUTKA at Marlow.com Tue Dec 14 09:27:59 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 14 Dec 2010 09:27:59 -0600 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: Not really. My admin experience with sharepoint is rather limited. My user experience with it is not very satisfactory. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, December 14, 2010 1:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web The company IT guy suggested using sharepoint and putting the whole database on the server. He indicated that then we wouldn't need any web interface. There would only be about 25 staff that would be using it (and it is not high usage) but they are spreads across a couple of countries (well NZ and the West Island sometimes called Australia :-)) Any comments with this approach? David At 14/12/2010, Drew Wutka wrote: >Access is more than capable of running as a backend to a web >application... IF you put the .mdb on the web server itself. When done >that way, it'll run as fast or faster than a SQL Server, and will never >have corruption issues. (Unless you also access it with Access from >across a network, then corruption may still occur). > >I have lots of web based systems that use an Access .mdb for the back >end. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Sunday, December 12, 2010 2:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Preparing Database for Web > >Team, > >I have a customer who want a simple database created which will >ultimately be hooked up to a web interface (Order screen for fabric >samples, and tracking screen to show status of order). > >I still need to sit down with them to work out the likely number of >records, simultaneous users etc (which I am doing tomorrow). > >Currently their databases are all Access. Assuming the size of the >new database will be well within Access limits, is Access suitably >robust for web applications, or should I start off with SQL? > >I will be getting someone else to do the web side of things but want >to make sure that I make it as easy as possible (read cheap) for them. > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand -- 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 Business Sensitive 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 Tue Dec 14 09:35:37 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 14 Dec 2010 09:35:37 -0600 Subject: [AccessD] Office API's In-Reply-To: References: Message-ID: Jumping in a bit late here, but you don't need to use an API for this. In fact, the API's I ran into for this had a flaw where they didn't authenticate users that had non-standard ASCII character codes in their passwords. The following routine checks an NT users account name and password and will work with non-standard ASCII codes too: Friend Function ValidateNTUser(strUserName As String, strPassword As String) As Boolean On Error Resume Next Dim strDomain As String Dim conLDAP As ADODB.Connection Dim strSQL As String Dim strLDAPConn As String Dim rsUser As ADODB.Recordset strDomain = GetObject("LDAP://RootDSE").Get("defaultNamingContext") Set conLDAP = New ADODB.Connection conLDAP.Provider = "ADSDSOOBject" strSQL = "Select AdsPath, cn From 'LDAP://" & strDomain & "' where objectClass='user' and objectcategory='person' and SamAccountName='" & strUserName & "'" conLDAP.Provider = "ADsDSOObject" conLDAP.Properties("User ID") = strUserName conLDAP.Properties("Password") = strPassword conLDAP.Properties("Encrypt Password") = True conLDAP.Open "DS Query", strUserName, strPassword Err.Clear Set rsUser = conLDAP.Execute(strSQL) ValidateNTUser = False If Err.Number = 0 Then If Not (rsUser Is Nothing) Then If Not (rsUser.EOF And rsUser.BOF) Then ValidateNTUser = True End If End If End If End Function Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, December 14, 2010 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's In actual fact the methods that I have put together that use that authentication code will allow any other user to enter their own ID and password on someone else's computer. The fact that their ID is different that the one that started the current session is detected, and code can then take the appropriate action. So my use of the term "Current Windows Session" was a bit misleading. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, December 14, 2010 8:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office API's Hi John OK, that's authentication in general and I understand your purpose. My point is that Lambert spoke about the user of the _current_ Windows session, not "someone" sitting at the keyboard. /gustav >>> jwcolby at colbyconsulting.com 14-12-2010 14:00 >>> Gustav, My presentation level security depends on a user logging in as their self so that they can have access to specific things within the system. There are cases where a user calls a supervisor over to do something that requires privileges. The supervisor logs in as their user and performs whatever action is necessary and then logs back out. The normal user logs back in. etc. Just because a person sits down in a chair and types on the keyboard does not mean that person is authorized to do something. John W. Colby www.ColbyConsulting.com On 12/14/2010 3:04 AM, Gustav Brock wrote: > But Lambert: > >> One API that took me so long to find was one that would provide >> Windows Authentication. In other words require the user to enter the >> name and password that was used to start the current Windows session: >> to prove that they are who fOsUsername says they are. > > why would you need to do this? The user has authenticated himself/herself when logging successfully in to the current Windows session. > > /gustav > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Monday, December 13, 2010 11:34 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Office API's >> >> One API that took me so long to find was one that would provide >> Windows Authentication. In other words require the user to enter the >> name and password that was used to start the current Windows session: >> to prove that they are who fOsUsername says they are. >> >> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" (ByVal _ >> lpszUserName As String, ByVal lpszDomain As String, _ >> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >> ByVal dwLogonProvider As Long, phToken As Long) As Long >> >> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As _ >> Long >> Const LOGON32_PROVIDER_DEFAULT = 0& >> Const LOGON32_LOGON_NETWORK = 3& >> >> ' Check whether a username/password pair is correct' >> ' if DOMAIN is omitted, it uses the local account database ' and then >> asks trusted domains to search their account databases ' until it >> finds the account or the search is exhausted ' use DOMAIN="." to >> search only the local account database' >> ' IMPORTANT: works only under Windows NT and 2000 and XP >> >> Private Function CheckWindowsUser(ByVal UserName As String, _ >> ByVal Password As String, Optional ByVal Domain As String) As Boolean >> Dim hToken As Long, ret As Long >> >> ' The handle hToken is not used by CheckWindowsUser ' but is required >> by the API LogonUser >> >> ' provide a default for the Domain name >> If Len(Domain) = 0 Then Domain = vbNullString >> ' check the username/password pair >> ' using LOGON32_LOGON_NETWORK delivers the best performance >> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >> LOGON32_PROVIDER_DEFAULT, hToken) >> >> ' a non-zero value means success >> If ret Then >> CheckWindowsUser = True >> CloseHandle hToken >> End If >> >> End Function >> >> Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com 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 Business Sensitive 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 mwp.reid at qub.ac.uk Tue Dec 14 09:38:05 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 14 Dec 2010 15:38:05 +0000 Subject: [AccessD] Preparing Database for Web In-Reply-To: References: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <631CF83223105545BF43EFB52CB082954706A453C7@EX2K7-VIRT-2.ads.qub.ac.uk> Look at 2010 with Access Services. But the cost for a commercial license could be very high. http://channel9.msdn.com/shows/Access/Microsoft-Access-2010-Demo/ haven't used this feature either but did see some nice video of it at MS. Be much cheaper to go Drew's route and put the mdb on the web server and do some .net code. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 14 December 2010 15:28 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web Not really. My admin experience with sharepoint is rather limited. My user experience with it is not very satisfactory. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, December 14, 2010 1:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web The company IT guy suggested using sharepoint and putting the whole database on the server. He indicated that then we wouldn't need any web interface. There would only be about 25 staff that would be using it (and it is not high usage) but they are spreads across a couple of countries (well NZ and the West Island sometimes called Australia :-)) Any comments with this approach? David At 14/12/2010, Drew Wutka wrote: >Access is more than capable of running as a backend to a web >application... IF you put the .mdb on the web server itself. When done >that way, it'll run as fast or faster than a SQL Server, and will never >have corruption issues. (Unless you also access it with Access from >across a network, then corruption may still occur). > >I have lots of web based systems that use an Access .mdb for the back >end. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Sunday, December 12, 2010 2:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Preparing Database for Web > >Team, > >I have a customer who want a simple database created which will >ultimately be hooked up to a web interface (Order screen for fabric >samples, and tracking screen to show status of order). > >I still need to sit down with them to work out the likely number of >records, simultaneous users etc (which I am doing tomorrow). > >Currently their databases are all Access. Assuming the size of the new >database will be well within Access limits, is Access suitably robust >for web applications, or should I start off with SQL? > >I will be getting someone else to do the web side of things but want to >make sure that I make it as easy as possible (read cheap) for them. > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand -- 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 Business Sensitive 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 Tue Dec 14 09:47:20 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 14 Dec 2010 09:47:20 -0600 Subject: [AccessD] Office API's In-Reply-To: <113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> References: <736BFEC6F7A94F5D89D3F9B7BEE3E077@salvationomc4p>, <32A0EF8FC2E14AEEB351459F4093AAA7@salvationomc4p><4D01902E.14452.6B140E@stuart.lexacorp.com.pg> <113A447A5CFD4139BB3EDD3A432CDB67@salvationomc4p> Message-ID: Here's two odd balls that are handy when you need to know the environment you're in: Get OS type: Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Function GetVersionEx2 Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFOEX) As Long Private Type OSVERSIONINFO intOSVersionInfoSize As Long intMajorVersion As Long intMinorVersion As Long intBuildNumber As Long intPlatformId As Long strCSDVersion As String * 128 End Type Private Type OSVERSIONINFOEX intOSVersionInfoSize As Long intMajorVersion As Long intMinorVersion As Long intBuildNumber As Long intPlatformId As Long strCSDVersion As String * 128 intServicePackMajor As Integer intServicePackMinor As Integer intSuiteMask As Integer bytProductType As Byte bytReserved As Byte End Type Check if it's a laptop: Private Declare Function GetCurrentHwProfile Lib "advapi32.dll" Alias "GetCurrentHwProfileW" (ByRef lpHwProfileInfo As HW_PROFILE_INFO) As Long Private Const DOCKINFO_DOCKED = (&H2) Private Const DOCKINFO_UNDOCKED = (&H1) Private Const HW_PROFILE_GUIDLEN = 39 Private Const MAX_PROFILE_LEN = 80 Private Type HW_PROFILE_INFO intDockInfo As Long strProfileGUID As String * HW_PROFILE_GUIDLEN strProfileName As String * MAX_PROFILE_LEN End Type dim blLaptop As Boolean Private Function CheckIfLaptop() On Error GoTo ErrorHandler Dim blTemp1 As Boolean Dim blTemp2 As Boolean Dim dwReturn As Long Dim hwProfile As HW_PROFILE_INFO blLaptop = False dwReturn = GetCurrentHwProfile(hwProfile) If dwReturn <> 0 Then blTemp1 = hwProfile.intDockInfo And 1 blTemp2 = hwProfile.intDockInfo And 2 If blTemp1 <> blTemp2 Then blLaptop = True End If Exit Function ErrorHandler: Err.Clear End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, December 10, 2010 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's Stuart, these are great -- anyone else???? Susan H. > On 9 Dec 2010 at 20:10, Susan Harkins wrote: > >> Windows API functions. >> Susan H. >> >> > Susan - did you mean to say "add-ins" ? >> > I'm not sure what you are referring to.... >> >> >> >> I'm writing about Office APIs -- if you have a favorite one >> >> you'd like to see showcased, let me know. >> > > > Ah Windows APIs. I use quite a few of them. Here's a few API calls > and functions that I > use in most systems that I build (I keep them along with a number of other > functions in a > module of general functions that I just plug in to new apps by default, > Listing from the > simplest to the most complex: -- 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 Business Sensitive 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 bhj at wrkblslns.com Tue Dec 14 09:48:46 2010 From: bhj at wrkblslns.com (Bruce H. Johnson) Date: Tue, 14 Dec 2010 07:48:46 -0800 Subject: [AccessD] CommonDlg call In-Reply-To: References: Message-ID: <022801cb9ba6$64c48bf0$2e4da3d0$@com> Might try: Application.FileDialog(msoFileDialogFilePicker) Works with Office 2002 on. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, December 14, 2010 7:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] CommonDlg call I am upgrading an app to A2K7/10 and the compiler does not recognize a call to the Windows Common Dialogs library. I've tried browsing the list of References and cannot seem to find the right one. If it matters, I'm running WIndows 7 and A2K7. The client is running Office 2010. This call is very occasional, so it doesn't really matter, but I like to leave my workshop spotless. TIA, Arthur -- 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 Dec 14 09:55:34 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 14 Dec 2010 10:55:34 -0500 Subject: [AccessD] CommonDlg call In-Reply-To: <022801cb9ba6$64c48bf0$2e4da3d0$@com> References: <022801cb9ba6$64c48bf0$2e4da3d0$@com> Message-ID: Thanks! I shall give that a shot! Arthur On Tue, Dec 14, 2010 at 10:48 AM, Bruce H. Johnson wrote: > Might try: > > Application.FileDialog(msoFileDialogFilePicker) > > Works with Office 2002 on. > From jwcolby at colbyconsulting.com Tue Dec 14 10:04:42 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 14 Dec 2010 11:04:42 -0500 Subject: [AccessD] Office API's In-Reply-To: <20D94554B8EF49A0A61E74B247065A01@XPS> References: <4D076A54.3050809@colbyconsulting.com> <20D94554B8EF49A0A61E74B247065A01@XPS> Message-ID: <4D07959A.70805@colbyconsulting.com> I didn't get that this was going to change the windows logon, but rather test that the user name and password are correct and in windows. John W. Colby www.ColbyConsulting.com On 12/14/2010 8:30 AM, Jim Dettman wrote: > > I can see that, but changing a windows logon is going to switch users. I > can't see much use for that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, December 14, 2010 08:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > Gustav, > > My presentation level security depends on a user logging in as their self so > that they can have > access to specific things within the system. There are cases where a user > calls a supervisor over > to do something that requires privileges. The supervisor logs in as their > user and performs > whatever action is necessary and then logs back out. The normal user logs > back in. etc. > > Just because a person sits down in a chair and types on the keyboard does > not mean that person is > authorized to do something. > > John W. Colby > www.ColbyConsulting.com > > On 12/14/2010 3:04 AM, Gustav Brock wrote: >> But Lambert: >> >>> One API that took me so long to find was one that would provide Windows >>> Authentication. In other words require the user to enter the name and >>> password that was used to start the current Windows session: to prove > that >>> they are who fOsUsername says they are. >> >> why would you need to do this? The user has authenticated himself/herself > when logging successfully in to the current Windows session. >> >> /gustav >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert >>> Sent: Monday, December 13, 2010 11:34 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Office API's >>> >>> One API that took me so long to find was one that would provide Windows >>> Authentication. In other words require the user to enter the name and >>> password that was used to start the current Windows session: to prove > that >>> they are who fOsUsername says they are. >>> >>> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" > (ByVal _ >>> lpszUserName As String, ByVal lpszDomain As String, _ >>> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >>> ByVal dwLogonProvider As Long, phToken As Long) As Long >>> >>> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As > Long) As _ >>> Long >>> Const LOGON32_PROVIDER_DEFAULT = 0& >>> Const LOGON32_LOGON_NETWORK = 3& >>> >>> ' Check whether a username/password pair is correct' >>> ' if DOMAIN is omitted, it uses the local account database >>> ' and then asks trusted domains to search their account databases >>> ' until it finds the account or the search is exhausted >>> ' use DOMAIN="." to search only the local account database' >>> ' IMPORTANT: works only under Windows NT and 2000 and XP >>> >>> Private Function CheckWindowsUser(ByVal UserName As String, _ >>> ByVal Password As String, Optional ByVal Domain As String) As Boolean >>> Dim hToken As Long, ret As Long >>> >>> ' The handle hToken is not used by CheckWindowsUser ' but is required by > the API LogonUser >>> >>> ' provide a default for the Domain name >>> If Len(Domain) = 0 Then Domain = vbNullString >>> ' check the username/password pair >>> ' using LOGON32_LOGON_NETWORK delivers the best performance >>> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >>> LOGON32_PROVIDER_DEFAULT, hToken) >>> >>> ' a non-zero value means success >>> If ret Then >>> CheckWindowsUser = True >>> CloseHandle hToken >>> End If >>> >>> End Function >>> >>> Lambert >> >> From michael at mattysconsulting.com Tue Dec 14 10:04:10 2010 From: michael at mattysconsulting.com (Michael Mattys) Date: Tue, 14 Dec 2010 11:04:10 -0500 Subject: [AccessD] Create file/image from clipboard...or Mappoint automation In-Reply-To: References: , , <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg>, , <049AA82346AA445C87868C90C0956CE8@Gateway> Message-ID: <24FC6586473044C49B2C2377BA08B3BC@Gateway> Mark, I understoond what you're asking for. The most obvious answer is to use SaveAsWebPage at 3500x3500 from the MapPoint application. I have a method using the ActiveX control in Access that does even better. It will soon be made available to the public. Michael R Mattys Business Process Developers www.mattysconsulting.com 585-300-0181 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, December 14, 2010 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create file/image from clipboard...or Mappoint automation Thanks Michael. I'm not looking to order maps. As an example, lets say I want to generate 20K maps with directions...I can already do this with a single button. I am looking for a way to get a better image out of MapPoint. Or as an alternative...save an image from the clipboard to a file...not paste into word. Thanks again, Mark A. Matte From DWUTKA at Marlow.com Tue Dec 14 10:33:38 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 14 Dec 2010 10:33:38 -0600 Subject: [AccessD] Office API's In-Reply-To: <4D07959A.70805@colbyconsulting.com> References: <4D076A54.3050809@colbyconsulting.com><20D94554B8EF49A0A61E74B247065A01@XPS> <4D07959A.70805@colbyconsulting.com> Message-ID: I use the authentication routine for 2 purposes. One, to change who my program thinks is using it. I do this with a global 'CurrentUser' class object. All portions that need a users 'roles' check the CurrentUser object. By default, that class loads with the logged in users network account name. It'll accept any user (so users don't have to be added to the system, just to Active Directory), but various roles have account names defined. So if a user with specific roles needs those abilities, and they are at another person's desk, they don't need to log off and log back in, they just 'change user', and the CurrentUser object authenticates them (against the domain), and then switches user account. The other use is for 'electronic signatures'. When something needs 'authorization', those points popup a login box, to ensure the user clicking that authorization is the correct person, and not someone sitting at an empty (but logged in) desk. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, December 14, 2010 10:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office API's I didn't get that this was going to change the windows logon, but rather test that the user name and password are correct and in windows. John W. Colby www.ColbyConsulting.com On 12/14/2010 8:30 AM, Jim Dettman wrote: > > I can see that, but changing a windows logon is going to switch users. I > can't see much use for that. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, December 14, 2010 08:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Office API's > > Gustav, > > My presentation level security depends on a user logging in as their self so > that they can have > access to specific things within the system. There are cases where a user > calls a supervisor over > to do something that requires privileges. The supervisor logs in as their > user and performs > whatever action is necessary and then logs back out. The normal user logs > back in. etc. > > Just because a person sits down in a chair and types on the keyboard does > not mean that person is > authorized to do something. > > John W. Colby > www.ColbyConsulting.com > > On 12/14/2010 3:04 AM, Gustav Brock wrote: >> But Lambert: >> >>> One API that took me so long to find was one that would provide Windows >>> Authentication. In other words require the user to enter the name and >>> password that was used to start the current Windows session: to prove > that >>> they are who fOsUsername says they are. >> >> why would you need to do this? The user has authenticated himself/herself > when logging successfully in to the current Windows session. >> >> /gustav >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert >>> Sent: Monday, December 13, 2010 11:34 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Office API's >>> >>> One API that took me so long to find was one that would provide Windows >>> Authentication. In other words require the user to enter the name and >>> password that was used to start the current Windows session: to prove > that >>> they are who fOsUsername says they are. >>> >>> Private Declare Function LogonUser Lib "Advapi32" Alias "LogonUserA" > (ByVal _ >>> lpszUserName As String, ByVal lpszDomain As String, _ >>> ByVal lpszPassword As String, ByVal dwLogonType As Long, _ >>> ByVal dwLogonProvider As Long, phToken As Long) As Long >>> >>> Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As > Long) As _ >>> Long >>> Const LOGON32_PROVIDER_DEFAULT = 0& >>> Const LOGON32_LOGON_NETWORK = 3& >>> >>> ' Check whether a username/password pair is correct' >>> ' if DOMAIN is omitted, it uses the local account database >>> ' and then asks trusted domains to search their account databases >>> ' until it finds the account or the search is exhausted >>> ' use DOMAIN="." to search only the local account database' >>> ' IMPORTANT: works only under Windows NT and 2000 and XP >>> >>> Private Function CheckWindowsUser(ByVal UserName As String, _ >>> ByVal Password As String, Optional ByVal Domain As String) As Boolean >>> Dim hToken As Long, ret As Long >>> >>> ' The handle hToken is not used by CheckWindowsUser ' but is required by > the API LogonUser >>> >>> ' provide a default for the Domain name >>> If Len(Domain) = 0 Then Domain = vbNullString >>> ' check the username/password pair >>> ' using LOGON32_LOGON_NETWORK delivers the best performance >>> ret = LogonUser(UserName, Domain, Password, LOGON32_LOGON_NETWORK, _ >>> LOGON32_PROVIDER_DEFAULT, hToken) >>> >>> ' a non-zero value means success >>> If ret Then >>> CheckWindowsUser = True >>> CloseHandle hToken >>> End If >>> >>> End Function >>> >>> Lambert >> >> -- 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 Business Sensitive 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 charlotte.foust at gmail.com Tue Dec 14 11:01:11 2010 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 14 Dec 2010 09:01:11 -0800 Subject: [AccessD] Yes/No Fields in Tables - Default Values? In-Reply-To: <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> References: <4D068AE3.27226.9B0431A@stuart.lexacorp.com.pg> Message-ID: It matters if you refer to them in SQL in code and then switch to a SQL Server BE. Better to be safe than sorry. Charlotte Foust On Mon, Dec 13, 2010 at 1:06 PM, Stuart McLachlan wrote: > It doesn't matter. > > ?True/False and Yes/No as predefined numeric equated for the values -1 and 0. > Effectively they are all the same thing. > > -- > Stuart > > On 13 Dec 2010 at 11:27, Dan Waters wrote: > >> I want to set my Yes/No fields to a default value to avoid the problem >> with a Null value. ?If my Yes/No fields are bound to a control, it's >> always a checkbox. >> >> >> >> Should I use True/False, Yes/No, or -1/0? ?Or does it matter? >> >> >> >> 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 djkr at msn.com Tue Dec 14 12:45:15 2010 From: djkr at msn.com (DJK (John) Robinson) Date: Tue, 14 Dec 2010 18:45:15 +0000 Subject: [AccessD] Test - please ignore In-Reply-To: <20101212200047.YGRI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: Test - please ignore From djkr at msn.com Tue Dec 14 15:53:17 2010 From: djkr at msn.com (DJK (John) Robinson) Date: Tue, 14 Dec 2010 21:53:17 +0000 Subject: [AccessD] Test - please ignore In-Reply-To: Message-ID: The other test. (No more) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK (John) Robinson Sent: 14 December 2010 18:45 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Test - please ignore Test - please ignore -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Tue Dec 14 17:11:56 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 15 Dec 2010 00:11:56 +0100 Subject: [AccessD] Test - please ignore In-Reply-To: References: Message-ID: Still doing my best to stay ignorant ;-) Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af DJK (John) Robinson Sendt: 14. december 2010 22:53 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Test - please ignore The other test. (No more) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK (John) Robinson Sent: 14 December 2010 18:45 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Test - please ignore Test - please ignore -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Tue Dec 14 21:06:03 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 15 Dec 2010 14:06:03 +1100 Subject: [AccessD] Observations on AC 2007 (not good) In-Reply-To: <20101214070433.BNQD7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <201012150306.oBF36BR6002691@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Not sure if this is going to help or not. In Excel I have had the same issue. Using XL2010 you can create your own custom ribbon tabs and have those tabs as the only one(s) visible to the user. This means having to recode your existing commandbar functionality into XML code. The main downside is it will stuff up your 'backward' compatiblity. XML ribbon code won't work in earlier version where command bars will. Office 2007 is far less flexible on modding the ribbon. A good plan B would be to force A2010 only to show the addin tab so you can use your exisiting command bars. I haven't tried that in A2010, but it should be possible. That is not an option for A2007 though... Anyway... hope that is useful. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, 14 December 2010 6:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Observations on AC 2007 (not good) I have come across the situation where I want to hide the A2007 Ribbon but still show my custom menu (Database is A2002 format). Dan's code below works well for hiding the Ribbon but as is noted below, so is my custom menu hidden. Is there any easy solution to this problem? Would using an A2010 runtime make the problem easier? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand At 26/11/2010, Dan Waters wrote: >I have to say that I have not had a problem with my customers running A2007 >on an mdb file. I have not tried converting to A2007 because some of my >customers still use Access 2003. So, my recommendation is to develop the >app as an mdb, give them mdb files, and they can use A2007. > >The only issue I've come across is that the ribbon shows up when forms are >open, and I needed to prevent that because my forms don't show any toolbars >and I don't want users getting any of that functionality at run time. This >can be fixed. > >When you run startup code include this procedure in a standard module while >passing in a False value: > > Private Sub DisplayRibbon(blnDisplayRibbon As Boolean) > If SysCmd(acSysCmdAccessVer) >= 12 Then > If blnDisplayRibbon = True Then > DoCmd.ShowToolbar "Ribbon", acToolbarYes > Else > DoCmd.ShowToolbar "Ribbon", acToolbarNo > End If > End If > End Sub > >This keeps the ribbon closed when a form is opened. > >But you need the ribbon when a report is opened for printing, previewing, >closing, etc. In that case I use the following code in each report: > > Private Sub Report_Close() > Call DisplayRibbon(False) > End Sub > > Private Sub Report_Open(Cancel As Integer) > Call DisplayRibbon(True) > End Sub > >At two of my customers, some people use A2007 and some use A2003, and they >all use the same mdb files without a problem. A2007 was designed to use mdb >files with little to no difference from A2003 behavior, other than the >ribbons. > >Hope this helps someone! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms >Sent: Wednesday, November 24, 2010 11:04 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Observations on AC 2007 (not good) > >As I am furiously hacking away at AC 2007 for a client, I've spotted some >problems I have not seen documented. >Here they are: >1) I observed that when changing an ACCDB to an MDB for purposes of using >Access 2003 and Access 2007 there a bug in this conversion process ...it >removes the USysRibbons table. Access 2007 still can operate without one. >However, without that system table, you cannot do any customization of the >ribbon by assignment from the Ribbon and Toolbar options setting ! The only >alternative is the LoadCustomUI vba method. >The fix: cut-and-paste the USysRibbons from an ACCDB file; then change the >Attribute to the proper system table attribute -2....... something. That >last step is important. > >2) Commandbar menu items built in AC 2003 show-up ONLY under the "Add-ins" >tab of AC 2007. OF COURSE THIS STINKS HUGELY. If you assign a custom Ribbon >that does not have an Add-ins tab, YOUR COMMANDBAR MENU IS LOST....your >users cannot do anything ! >Microsoft easily could have provided a database-level setting for the >flexible placement of the commandbar menu onto the Ribbon. How this major >oversight ever got past beta testing only confirms my feeling about the >political nature of the selection of the beta test team. I would go so far >as to indict the product manager of Access for such a grevious oversight and >lack of attention to detail. > >3) The AC 2007 ribbon can be minimized and indeed that setting "persists" >upon the next database open. Minimizing it via the GUI is simple. Doing it >with VBA is nearly rocket science with a ton of Win API calls required for >it to be reliable. Note: in AC 2010, a new DoCmd was added to minimize the >ribbon. (it took 3 YEARS to figure that out ?) > >It doesn't take a genius to see why AC usage and acceptance in corporations >has now dropped to very low levels. Anyone associated with the beta testing >of AC 2007 should immediately disavow all knowledge of any interaction with >Microsoft Access engineers and managers involved in that program at the risk >of major verbal abuse by beleagered colleagues. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Tue Dec 14 21:10:53 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 15 Dec 2010 14:10:53 +1100 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <201012150311.oBF3B0ac005414@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ The company IT folks seem to love Sharepoint, and it is a great solution for document sharing and some basic database stuff (like multiple users managing lists and process flows and event notification etc), but it is not suitable for a true database app in my experience. Not sure about A2010 which seems to be better integrated for sharepoint, but I suspect you would have all the same issues of corruption and record locking with multiple users if you merely host the single mdb database on sharepoint with multiple users accessing it. How is sharepoint going to fix that? I don't think it can. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, 14 December 2010 6:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web The company IT guy suggested using sharepoint and putting the whole database on the server. He indicated that then we wouldn't need any web interface. There would only be about 25 staff that would be using it (and it is not high usage) but they are spreads across a couple of countries (well NZ and the West Island sometimes called Australia :-)) Any comments with this approach? David At 14/12/2010, Drew Wutka wrote: >Access is more than capable of running as a backend to a web >application... IF you put the .mdb on the web server itself. When done >that way, it'll run as fast or faster than a SQL Server, and will never >have corruption issues. (Unless you also access it with Access from >across a network, then corruption may still occur). > >I have lots of web based systems that use an Access .mdb for the back >end. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Sunday, December 12, 2010 2:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Preparing Database for Web > >Team, > >I have a customer who want a simple database created which will >ultimately be hooked up to a web interface (Order screen for fabric >samples, and tracking screen to show status of order). > >I still need to sit down with them to work out the likely number of >records, simultaneous users etc (which I am doing tomorrow). > >Currently their databases are all Access. Assuming the size of the >new database will be well within Access limits, is Access suitably >robust for web applications, or should I start off with SQL? > >I will be getting someone else to do the web side of things but want >to make sure that I make it as easy as possible (read cheap) for them. > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From newsgrps at dalyn.co.nz Tue Dec 14 21:33:44 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 15 Dec 2010 16:33:44 +1300 Subject: [AccessD] Preparing Database for Web In-Reply-To: <201012150311.oBF3B0ac005414@databaseadvisors.com> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> Message-ID: <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Darryl, That is the conclusion I am coming to with the research (having not actually used sharepoint before at all). It looks like we are going the .net/asp way. Regards David At 15/12/2010, Darryl Collins wrote: >The company IT folks seem to love Sharepoint, and it is a great >solution for document sharing and some basic database stuff (like >multiple users managing lists and process flows and event >notification etc), but it is not suitable for a true database app in >my experience. > >Not sure about A2010 which seems to be better integrated for >sharepoint, but I suspect you would have all the same issues of >corruption and record locking with multiple users if you merely host >the single mdb database on sharepoint with multiple users accessing it. > >How is sharepoint going to fix that? I don't think it can. > >cheers >Darryl. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, 14 December 2010 6:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >The company IT guy suggested using sharepoint and putting the whole >database on the server. > >He indicated that then we wouldn't need any web interface. There >would only be about 25 staff that would be using it (and it is not >high usage) but they are spreads across a couple of countries (well >NZ and the West Island sometimes called Australia :-)) > >Any comments with this approach? > >David > >At 14/12/2010, Drew Wutka wrote: > >Access is more than capable of running as a backend to a web > >application... IF you put the .mdb on the web server itself. When done > >that way, it'll run as fast or faster than a SQL Server, and will never > >have corruption issues. (Unless you also access it with Access from > >across a network, then corruption may still occur). > > > >I have lots of web based systems that use an Access .mdb for the back > >end. > > > >Drew > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson > >Sent: Sunday, December 12, 2010 2:00 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Preparing Database for Web > > > >Team, > > > >I have a customer who want a simple database created which will > >ultimately be hooked up to a web interface (Order screen for fabric > >samples, and tracking screen to show status of order). > > > >I still need to sit down with them to work out the likely number of > >records, simultaneous users etc (which I am doing tomorrow). > > > >Currently their databases are all Access. Assuming the size of the > >new database will be well within Access limits, is Access suitably > >robust for web applications, or should I start off with SQL? > > > >I will be getting someone else to do the web side of things but want > >to make sure that I make it as easy as possible (read cheap) for them. > > > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >Wellington, New Zealand From newsgrps at dalyn.co.nz Tue Dec 14 21:36:33 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 15 Dec 2010 16:36:33 +1300 Subject: [AccessD] Observations on AC 2007 (not good) In-Reply-To: <201012150306.oBF36BR6002691@databaseadvisors.com> References: <20101214070433.BNQD7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <201012150306.oBF36BR6002691@databaseadvisors.com> Message-ID: <20101215033707.DDFS6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> If I go the A2010 runtime path then backward compatibility may not be an issue. Then I could just do everything in A2010 which sounds like a better way. Does anyone have any experiences with the A2010 runtime? David At 15/12/2010, Darryl Collins wrote: >Not sure if this is going to help or not. In Excel I have had the >same issue. Using XL2010 you can create your own custom ribbon tabs >and have those tabs as the only one(s) visible to the user. This >means having to recode your existing commandbar functionality into >XML code. The main downside is it will stuff up your 'backward' >compatiblity. XML ribbon code won't work in earlier version where >command bars will. > >Office 2007 is far less flexible on modding the ribbon. > >A good plan B would be to force A2010 only to show the addin tab so >you can use your exisiting command bars. I haven't tried that in >A2010, but it should be possible. That is not an option for A2007 though... > >Anyway... hope that is useful. > >cheers >Darryl. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, 14 December 2010 6:04 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Observations on AC 2007 (not good) > >I have come across the situation where I want to hide the A2007 >Ribbon but still show my custom menu (Database is A2002 >format). Dan's code below works well for hiding the Ribbon but as is >noted below, so is my custom menu hidden. > >Is there any easy solution to this problem? Would using an A2010 >runtime make the problem easier? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand From mwp.reid at qub.ac.uk Wed Dec 15 02:31:16 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 15 Dec 2010 08:31:16 +0000 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ads.qub.ac.uk> On SharePoint it will be a simple file not a web database unless you are using SharePoint 2010. Access 2010 and Access Services. Then you can convert it to a web database running in SharePoint. Personally I would not bother with anything complex. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: 15 December 2010 03:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web Thanks Darryl, That is the conclusion I am coming to with the research (having not actually used sharepoint before at all). It looks like we are going the .net/asp way. Regards David At 15/12/2010, Darryl Collins wrote: >The company IT folks seem to love Sharepoint, and it is a great >solution for document sharing and some basic database stuff (like >multiple users managing lists and process flows and event notification >etc), but it is not suitable for a true database app in my experience. > >Not sure about A2010 which seems to be better integrated for >sharepoint, but I suspect you would have all the same issues of >corruption and record locking with multiple users if you merely host >the single mdb database on sharepoint with multiple users accessing it. > >How is sharepoint going to fix that? I don't think it can. > >cheers >Darryl. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Tuesday, 14 December 2010 6:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >The company IT guy suggested using sharepoint and putting the whole >database on the server. > >He indicated that then we wouldn't need any web interface. There would >only be about 25 staff that would be using it (and it is not high >usage) but they are spreads across a couple of countries (well NZ and >the West Island sometimes called Australia :-)) > >Any comments with this approach? > >David > >At 14/12/2010, Drew Wutka wrote: > >Access is more than capable of running as a backend to a web > >application... IF you put the .mdb on the web server itself. When > >done that way, it'll run as fast or faster than a SQL Server, and > >will never have corruption issues. (Unless you also access it with > >Access from across a network, then corruption may still occur). > > > >I have lots of web based systems that use an Access .mdb for the back > >end. > > > >Drew > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: Sunday, December 12, 2010 2:00 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Preparing Database for Web > > > >Team, > > > >I have a customer who want a simple database created which will > >ultimately be hooked up to a web interface (Order screen for fabric > >samples, and tracking screen to show status of order). > > > >I still need to sit down with them to work out the likely number of > >records, simultaneous users etc (which I am doing tomorrow). > > > >Currently their databases are all Access. Assuming the size of the > >new database will be well within Access limits, is Access suitably > >robust for web applications, or should I start off with SQL? > > > >I will be getting someone else to do the web side of things but want > >to make sure that I make it as easy as possible (read cheap) for them. > > > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Wed Dec 15 02:35:08 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 15 Dec 2010 21:35:08 +1300 Subject: [AccessD] Preparing Database for Web In-Reply-To: <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ad s.qub.ac.uk> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: <20101215083549.MVDL7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Martin, They only have SharePoint 2007 so it looks like this won't even make first base. David At 15/12/2010, Martin Reid wrote: >On SharePoint it will be a simple file not a web database unless you >are using SharePoint 2010. Access 2010 and Access Services. Then you >can convert it to a web database running in SharePoint. >Personally I would not bother with anything complex. > >Martin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: 15 December 2010 03:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >Thanks Darryl, > >That is the conclusion I am coming to with the research (having not >actually used sharepoint before at all). It looks like we are going >the .net/asp way. > >Regards > >David > >At 15/12/2010, Darryl Collins wrote: > > >The company IT folks seem to love Sharepoint, and it is a great > >solution for document sharing and some basic database stuff (like > >multiple users managing lists and process flows and event notification > >etc), but it is not suitable for a true database app in my experience. > > > >Not sure about A2010 which seems to be better integrated for > >sharepoint, but I suspect you would have all the same issues of > >corruption and record locking with multiple users if you merely host > >the single mdb database on sharepoint with multiple users accessing it. > > > >How is sharepoint going to fix that? I don't think it can. > > > >cheers > >Darryl. > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: Tuesday, 14 December 2010 6:09 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Preparing Database for Web > > > >The company IT guy suggested using sharepoint and putting the whole > >database on the server. > > > >He indicated that then we wouldn't need any web interface. There would > >only be about 25 staff that would be using it (and it is not high > >usage) but they are spreads across a couple of countries (well NZ and > >the West Island sometimes called Australia :-)) > > > >Any comments with this approach? > > > >David > > > >At 14/12/2010, Drew Wutka wrote: > > >Access is more than capable of running as a backend to a web > > >application... IF you put the .mdb on the web server itself. When > > >done that way, it'll run as fast or faster than a SQL Server, and > > >will never have corruption issues. (Unless you also access it with > > >Access from across a network, then corruption may still occur). > > > > > >I have lots of web based systems that use an Access .mdb for the back > > >end. > > > > > >Drew > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > > >Emerson > > >Sent: Sunday, December 12, 2010 2:00 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] Preparing Database for Web > > > > > >Team, > > > > > >I have a customer who want a simple database created which will > > >ultimately be hooked up to a web interface (Order screen for fabric > > >samples, and tracking screen to show status of order). > > > > > >I still need to sit down with them to work out the likely number of > > >records, simultaneous users etc (which I am doing tomorrow). > > > > > >Currently their databases are all Access. Assuming the size of the > > >new database will be well within Access limits, is Access suitably > > >robust for web applications, or should I start off with SQL? > > > > > >I will be getting someone else to do the web side of things but want > > >to make sure that I make it as easy as possible (read cheap) for them. > > > > > > > > >Regards > > > > > >David Emerson > > >Dalyn Software Ltd > > >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed Dec 15 02:43:58 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 15 Dec 2010 08:43:58 +0000 Subject: [AccessD] Preparing Database for Web In-Reply-To: <20101215083549.MVDL7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ads.qub.ac.uk> <20101215083549.MVDL7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <631CF83223105545BF43EFB52CB082954706A454C3@EX2K7-VIRT-2.ads.qub.ac.uk> We actually block MDBs from going on SharePoint. We don't allow anything containing code to be put up. They can link to lists etc. but that's about it. I did see a fairly complex Access database converted in SharePoint 2010 and it looked really well but no direct experience of doing it. martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: 15 December 2010 08:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web Thanks Martin, They only have SharePoint 2007 so it looks like this won't even make first base. David At 15/12/2010, Martin Reid wrote: >On SharePoint it will be a simple file not a web database unless you >are using SharePoint 2010. Access 2010 and Access Services. Then you >can convert it to a web database running in SharePoint. >Personally I would not bother with anything complex. > >Martin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: 15 December 2010 03:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >Thanks Darryl, > >That is the conclusion I am coming to with the research (having not >actually used sharepoint before at all). It looks like we are going >the .net/asp way. > >Regards > >David > >At 15/12/2010, Darryl Collins wrote: > > >The company IT folks seem to love Sharepoint, and it is a great > >solution for document sharing and some basic database stuff (like > >multiple users managing lists and process flows and event > >notification etc), but it is not suitable for a true database app in my experience. > > > >Not sure about A2010 which seems to be better integrated for > >sharepoint, but I suspect you would have all the same issues of > >corruption and record locking with multiple users if you merely host > >the single mdb database on sharepoint with multiple users accessing it. > > > >How is sharepoint going to fix that? I don't think it can. > > > >cheers > >Darryl. > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: Tuesday, 14 December 2010 6:09 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Preparing Database for Web > > > >The company IT guy suggested using sharepoint and putting the whole > >database on the server. > > > >He indicated that then we wouldn't need any web interface. There > >would only be about 25 staff that would be using it (and it is not > >high > >usage) but they are spreads across a couple of countries (well NZ and > >the West Island sometimes called Australia :-)) > > > >Any comments with this approach? > > > >David > > > >At 14/12/2010, Drew Wutka wrote: > > >Access is more than capable of running as a backend to a web > > >application... IF you put the .mdb on the web server itself. When > > >done that way, it'll run as fast or faster than a SQL Server, and > > >will never have corruption issues. (Unless you also access it with > > >Access from across a network, then corruption may still occur). > > > > > >I have lots of web based systems that use an Access .mdb for the > > >back end. > > > > > >Drew > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > > >Emerson > > >Sent: Sunday, December 12, 2010 2:00 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] Preparing Database for Web > > > > > >Team, > > > > > >I have a customer who want a simple database created which will > > >ultimately be hooked up to a web interface (Order screen for fabric > > >samples, and tracking screen to show status of order). > > > > > >I still need to sit down with them to work out the likely number of > > >records, simultaneous users etc (which I am doing tomorrow). > > > > > >Currently their databases are all Access. Assuming the size of the > > >new database will be well within Access limits, is Access suitably > > >robust for web applications, or should I start off with SQL? > > > > > >I will be getting someone else to do the web side of things but > > >want to make sure that I make it as easy as possible (read cheap) for them. > > > > > > > > >Regards > > > > > >David Emerson > > >Dalyn Software Ltd > > >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Wed Dec 15 07:04:38 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 15 Dec 2010 08:04:38 -0500 Subject: [AccessD] Preparing Database for Web In-Reply-To: <631CF83223105545BF43EFB52CB082954706A454C3@EX2K7-VIRT-2.ads.qub.ac.uk> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ads.qub.ac.uk> <20101215083549.MVDL7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454C3@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: <1D7279B67E454FE09BC82DCD04FC7AB5@XPS> Access 2010 running against SharePoint 2010 through Access services is a totally different animal then 2007. What MSFT has done is what they did with SQL Server and ADP's; setup Access as a native client for SharePoint. It's a true client / server setup, however it has the wrinkle of replication being thrown in. Data is cached locally in temp files and synched up when you connect. This takes a considerable load off the SharePoint site. Only changes in data are synched up. I still don't have all the technical details yet, but it's totally different then 2007 and from what I've heard, works extremely well. It also appears that the 2GB limit on DB size doesn't apply as the only thing that is kept in a ACCDB is design versions of Access objects. There is a "publish" process to but your DB into SharePoint, but as long as you start development as a web database, the process is painless. Even taking a normal DB is supposed to be fairly straight forward, but I haven't seen the process yet and I don't know what all the differences are between a normal DB and web one. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, December 15, 2010 03:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web We actually block MDBs from going on SharePoint. We don't allow anything containing code to be put up. They can link to lists etc. but that's about it. I did see a fairly complex Access database converted in SharePoint 2010 and it looked really well but no direct experience of doing it. martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: 15 December 2010 08:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Preparing Database for Web Thanks Martin, They only have SharePoint 2007 so it looks like this won't even make first base. David At 15/12/2010, Martin Reid wrote: >On SharePoint it will be a simple file not a web database unless you >are using SharePoint 2010. Access 2010 and Access Services. Then you >can convert it to a web database running in SharePoint. >Personally I would not bother with anything complex. > >Martin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: 15 December 2010 03:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >Thanks Darryl, > >That is the conclusion I am coming to with the research (having not >actually used sharepoint before at all). It looks like we are going >the .net/asp way. > >Regards > >David > >At 15/12/2010, Darryl Collins wrote: > > >The company IT folks seem to love Sharepoint, and it is a great > >solution for document sharing and some basic database stuff (like > >multiple users managing lists and process flows and event > >notification etc), but it is not suitable for a true database app in my experience. > > > >Not sure about A2010 which seems to be better integrated for > >sharepoint, but I suspect you would have all the same issues of > >corruption and record locking with multiple users if you merely host > >the single mdb database on sharepoint with multiple users accessing it. > > > >How is sharepoint going to fix that? I don't think it can. > > > >cheers > >Darryl. > > > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: Tuesday, 14 December 2010 6:09 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Preparing Database for Web > > > >The company IT guy suggested using sharepoint and putting the whole > >database on the server. > > > >He indicated that then we wouldn't need any web interface. There > >would only be about 25 staff that would be using it (and it is not > >high > >usage) but they are spreads across a couple of countries (well NZ and > >the West Island sometimes called Australia :-)) > > > >Any comments with this approach? > > > >David > > > >At 14/12/2010, Drew Wutka wrote: > > >Access is more than capable of running as a backend to a web > > >application... IF you put the .mdb on the web server itself. When > > >done that way, it'll run as fast or faster than a SQL Server, and > > >will never have corruption issues. (Unless you also access it with > > >Access from across a network, then corruption may still occur). > > > > > >I have lots of web based systems that use an Access .mdb for the > > >back end. > > > > > >Drew > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > > >Emerson > > >Sent: Sunday, December 12, 2010 2:00 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] Preparing Database for Web > > > > > >Team, > > > > > >I have a customer who want a simple database created which will > > >ultimately be hooked up to a web interface (Order screen for fabric > > >samples, and tracking screen to show status of order). > > > > > >I still need to sit down with them to work out the likely number of > > >records, simultaneous users etc (which I am doing tomorrow). > > > > > >Currently their databases are all Access. Assuming the size of the > > >new database will be well within Access limits, is Access suitably > > >robust for web applications, or should I start off with SQL? > > > > > >I will be getting someone else to do the web side of things but > > >want to make sure that I make it as easy as possible (read cheap) for them. > > > > > > > > >Regards > > > > > >David Emerson > > >Dalyn Software Ltd > > >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Wed Dec 15 10:40:40 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 15 Dec 2010 08:40:40 -0800 Subject: [AccessD] List Boxes Message-ID: <4D08EF88.9080001@nanaimo.ark.com> Hey All I have a series of 9 list boxes on a form. Sort of a drill down, the user selects an item in a list box and it then displays (waterfalls) the results in the following list boxes. For 60,000 records it takes about 2 to 3 seconds to refresh/requery all the list boxes. One thing I don't quite understand is why when I manually open a query used for a list box it is quite fast, but when the list box gets requeried on the form there is noticable time lag. I can live with the 2 to 3 second delay time but what I am finding is as the program requeries the other list boxes I can click on the originating list box and I get the error message "The macro or function set to the BeforeUpate or ValidationRule......" . The only event on the list box is an On Click. I have tried several approaches to try and prevent the user clicking before all requeries are completed. Is there a way to disable the cursor while the code is running?? From Lambert.Heenan at chartisinsurance.com Wed Dec 15 11:02:24 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 15 Dec 2010 12:02:24 -0500 Subject: [AccessD] List Boxes In-Reply-To: <4D08EF88.9080001@nanaimo.ark.com> References: <4D08EF88.9080001@nanaimo.ark.com> Message-ID: In the code that kicks off the requery you could probably first loop though all the listboxes and sent their enabled property to False. Pseudo-code For Each ListBox In Me ListBox.Enable=False Next ListBox Requery For Each ListBox In Me ListBox.Enable=True Next ListBox Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, December 15, 2010 11:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Boxes Hey All I have a series of 9 list boxes on a form. Sort of a drill down, the user selects an item in a list box and it then displays (waterfalls) the results in the following list boxes. For 60,000 records it takes about 2 to 3 seconds to refresh/requery all the list boxes. One thing I don't quite understand is why when I manually open a query used for a list box it is quite fast, but when the list box gets requeried on the form there is noticable time lag. I can live with the 2 to 3 second delay time but what I am finding is as the program requeries the other list boxes I can click on the originating list box and I get the error message "The macro or function set to the BeforeUpate or ValidationRule......" . The only event on the list box is an On Click. I have tried several approaches to try and prevent the user clicking before all requeries are completed. Is there a way to disable the cursor while the code is running?? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Wed Dec 15 12:01:33 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 15 Dec 2010 10:01:33 -0800 Subject: [AccessD] List Boxes In-Reply-To: References: <4D08EF88.9080001@nanaimo.ark.com> Message-ID: <4D09027D.2050808@nanaimo.ark.com> Hey Lambert Thank you for your response. Tried the Enabled, but what happens is the originating list box goes blank while the requerying is going on. Works but the blank is annoying. I had previously tried Locked but it causes the list box to display multiple highlights (as I click) until I go back a list box and then requery. Heenan, Lambert wrote: >In the code that kicks off the requery you could probably first loop though all the listboxes and sent their enabled property to False. > >Pseudo-code > > For Each ListBox In Me > ListBox.Enable=False > Next ListBox > Requery > For Each ListBox In Me > ListBox.Enable=True > Next ListBox > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Wednesday, December 15, 2010 11:41 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] List Boxes > >Hey All >I have a series of 9 list boxes on a form. Sort of a drill down, the user selects an item in a list box and it then displays (waterfalls) the results in the following list boxes. For 60,000 records it takes about >2 to 3 seconds to refresh/requery all the list boxes. One thing I don't quite understand is why when I manually open a query used for a list box it is quite fast, but when the list box gets requeried on the form there is noticable time lag. I can live with the 2 to 3 second delay time but what I am finding is as the program requeries the other list boxes I can click on the originating list box and I get the error message "The macro or function set to the BeforeUpate or ValidationRule......" . The only event on the list box is an On Click. >I have tried several approaches to try and prevent the user clicking before all requeries are completed. Is there a way to disable the cursor while the code is running?? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From Lambert.Heenan at chartisinsurance.com Wed Dec 15 12:17:02 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 15 Dec 2010 13:17:02 -0500 Subject: [AccessD] List Boxes In-Reply-To: <4D09027D.2050808@nanaimo.ark.com> References: <4D08EF88.9080001@nanaimo.ark.com> <4D09027D.2050808@nanaimo.ark.com> Message-ID: What about... For Each ListBox In Me ListBox.Enable=False Next ListBox Application.Echo False Requery Application.Echo True For Each ListBox In Me ListBox.Enable=True Next ListBox That should prevent the boxes going blank during the requery. And also be sure to include Application.Echo True in your error handler. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, December 15, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] List Boxes Hey Lambert Thank you for your response. Tried the Enabled, but what happens is the originating list box goes blank while the requerying is going on. Works but the blank is annoying. I had previously tried Locked but it causes the list box to display multiple highlights (as I click) until I go back a list box and then requery. Heenan, Lambert wrote: >In the code that kicks off the requery you could probably first loop though all the listboxes and sent their enabled property to False. > >Pseudo-code > > For Each ListBox In Me > ListBox.Enable=False > Next ListBox > Requery > For Each ListBox In Me > ListBox.Enable=True > Next ListBox > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Wednesday, December 15, 2010 11:41 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] List Boxes > >Hey All >I have a series of 9 list boxes on a form. Sort of a drill down, the >user selects an item in a list box and it then displays (waterfalls) >the results in the following list boxes. For 60,000 records it takes >about >2 to 3 seconds to refresh/requery all the list boxes. One thing I don't quite understand is why when I manually open a query used for a list box it is quite fast, but when the list box gets requeried on the form there is noticable time lag. I can live with the 2 to 3 second delay time but what I am finding is as the program requeries the other list boxes I can click on the originating list box and I get the error message "The macro or function set to the BeforeUpate or ValidationRule......" . The only event on the list box is an On Click. >I have tried several approaches to try and prevent the user clicking before all requeries are completed. Is there a way to disable the cursor while the code is running?? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Dec 15 12:23:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 15 Dec 2010 10:23:14 -0800 Subject: [AccessD] List Boxes In-Reply-To: <4D09027D.2050808@nanaimo.ark.com> References: <4D08EF88.9080001@nanaimo.ark.com> <4D09027D.2050808@nanaimo.ark.com> Message-ID: <1EDFAD24EB0B47AD888B49034E3D7E7C@HAL9005> Tony: Awkward but can you clear the row source of the other list boxes and only populate the row source though code when needed? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, December 15, 2010 10:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] List Boxes Hey Lambert Thank you for your response. Tried the Enabled, but what happens is the originating list box goes blank while the requerying is going on. Works but the blank is annoying. I had previously tried Locked but it causes the list box to display multiple highlights (as I click) until I go back a list box and then requery. Heenan, Lambert wrote: >In the code that kicks off the requery you could probably first loop though all the listboxes and sent their enabled property to False. > >Pseudo-code > > For Each ListBox In Me > ListBox.Enable=False > Next ListBox > Requery > For Each ListBox In Me > ListBox.Enable=True > Next ListBox > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Wednesday, December 15, 2010 11:41 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] List Boxes > >Hey All >I have a series of 9 list boxes on a form. Sort of a drill down, the >user selects an item in a list box and it then displays (waterfalls) >the results in the following list boxes. For 60,000 records it takes >about >2 to 3 seconds to refresh/requery all the list boxes. One thing I don't quite understand is why when I manually open a query used for a list box it is quite fast, but when the list box gets requeried on the form there is noticable time lag. I can live with the 2 to 3 second delay time but what I am finding is as the program requeries the other list boxes I can click on the originating list box and I get the error message "The macro or function set to the BeforeUpate or ValidationRule......" . The only event on the list box is an On Click. >I have tried several approaches to try and prevent the user clicking before all requeries are completed. Is there a way to disable the cursor while the code is running?? >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Dec 15 12:54:27 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 15 Dec 2010 13:54:27 -0500 Subject: [AccessD] List Boxes In-Reply-To: <4D08EF88.9080001@nanaimo.ark.com> References: <4D08EF88.9080001@nanaimo.ark.com> Message-ID: <4D090EE3.5070007@colbyconsulting.com> If I had to guess, I would say that the time difference between the open of the query by itself and the requery of the list box is the time it takes to insert each element from the query into the listbox items. John W. Colby www.ColbyConsulting.com On 12/15/2010 11:40 AM, Tony Septav wrote: > Hey All > I have a series of 9 list boxes on a form. Sort of a drill down, the > user selects an item in a list box and it then displays (waterfalls) the > results in the following list boxes. For 60,000 records it takes about > 2 to 3 seconds to refresh/requery all the list boxes. One thing I > don't quite understand is why when I manually open a query used for a > list box it is quite fast, but when the list box gets requeried on the > form there is noticable time lag. I can live with the 2 to 3 second > delay time but what I am finding is as the program requeries the other > list boxes I can click on the originating list box and I get the error > message "The macro or function set to the BeforeUpate or > ValidationRule......" . The only event on the list box is an On Click. > I have tried several approaches to try and prevent the user clicking > before all requeries are completed. Is there a way to disable the cursor > while the code is running?? From iggy at nanaimo.ark.com Wed Dec 15 14:13:38 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 15 Dec 2010 12:13:38 -0800 Subject: [AccessD] List Boxes Message-ID: <4D092172.9060807@nanaimo.ark.com> Hey Lambert, John and Rocky Thank you for your information. I have a feeling I am "pushing the envelope", a list box works fine by itself, it is clean and fast. But when one list box contents is based on the selection of another list box and so on and so on it slows the whole process down. From your suggestions I have a couple ideas I will try in the morning, got to get the speed up. The idea has potential, currently it is just too slow. Anyway promised myself I would not get into the Xmas frenzy again, by shopping for presents on the 23rd and 24th , so I am off to get the Xmas goodies. Without the goofy "presents thing", I am probably like most of you and wish we had this Xmas feeling all year long. Thanks again From stuart at lexacorp.com.pg Wed Dec 15 15:14:26 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Dec 2010 07:14:26 +1000 Subject: [AccessD] List Boxes In-Reply-To: <4D092172.9060807@nanaimo.ark.com> References: <4D092172.9060807@nanaimo.ark.com> Message-ID: <4D092FB2.1364.42CB272@stuart.lexacorp.com.pg> I generally use a series of "continuous form " sub-forms embedded in an unbound "wrapper" from for this rather than listboxes. I create a hidden text box on the wrapper form for each sub form (except the lowest child) which is bound to the PK field in the form. I then use the hidden text box as the parent field for the next subform in the cascade. -- Stuart On 15 Dec 2010 at 12:13, Tony Septav wrote: > Hey Lambert, John and Rocky > Thank you for your information. > I have a feeling I am "pushing the envelope", a list box works fine by > itself, it is clean and fast. But when one list box contents is based > on the selection of another list box and so on and so on it slows > the whole process down. From your suggestions I have a couple ideas I > will try in the morning, got to get the speed up. The idea has > potential, currently it is just too slow. Anyway promised myself I > would not get into the Xmas frenzy again, by shopping for presents on > the 23rd and 24th , so I am off to get the Xmas goodies. Without the > goofy "presents thing", I am probably like most of you and wish we had > this Xmas feeling all year long. > > Thanks again > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Thu Dec 16 11:57:58 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 16 Dec 2010 11:57:58 (CET) Subject: [AccessD] query grouping problem Message-ID: <201012161057.oBGAvwiH015126@mailhostC.plex.net> Dear List, i have the following table: ID PatNr Date Name code1 code2 1 01 1-1-2010 A 1 1 2 01 2-2-2010 B 1 3 01 2-2-2010 C 1 4 02 5-1-2010 A 1 5 02 5-1-2010 C 1 I need: 2 01 2-2-2010 B 1 3 01 2-2-2010 C 1 I tried several query's with groups on PatNr and Date, but i don't get it done. Who can help me? Thanks Pedro From Gustav at cactus.dk Thu Dec 16 05:31:13 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Dec 2010 12:31:13 +0100 Subject: [AccessD] query grouping problem Message-ID: Hi Pedro That's easy: Select * From tblYourTable Where [Date]=#2010-02-02# Or do we need some more info from you? /gustav >>> pedro at plex.nl 16-12-2010 11:57 >>> Dear List, i have the following table: ID PatNr Date Name code1 code2 1 01 1-1-2010 A 1 1 2 01 2-2-2010 B 1 3 01 2-2-2010 C 1 4 02 5-1-2010 A 1 5 02 5-1-2010 C 1 I need: 2 01 2-2-2010 B 1 3 01 2-2-2010 C 1 I tried several query's with groups on PatNr and Date, but i don't get it done. Who can help me? Thanks Pedro From jwcolby at colbyconsulting.com Thu Dec 16 08:10:01 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 16 Dec 2010 09:10:01 -0500 Subject: [AccessD] List Boxes In-Reply-To: <4D092FB2.1364.42CB272@stuart.lexacorp.com.pg> References: <4D092172.9060807@nanaimo.ark.com> <4D092FB2.1364.42CB272@stuart.lexacorp.com.pg> Message-ID: <4D0A1DB9.20101@colbyconsulting.com> This is a great idea, however it does require physical placement be adjacent. John W. Colby www.ColbyConsulting.com On 12/15/2010 4:14 PM, Stuart McLachlan wrote: > I generally use a series of "continuous form " sub-forms embedded in an unbound "wrapper" > from for this rather than listboxes. I create a hidden text box on the wrapper form for each > sub form (except the lowest child) which is bound to the PK field in the form. I then use the > hidden text box as the parent field for the next subform in the cascade. > From pedro at plex.nl Thu Dec 16 15:42:12 2010 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 16 Dec 2010 15:42:12 (CET) Subject: [AccessD] query grouping problem Message-ID: <201012161442.oBGEgCAG028721@mailhostC.plex.net> Hello Gustav, exact what is needed. Works perfect. Thanks Pedro In antwoord op: > From: "Gustav Brock" > To: > Date: Thu, 16 Dec 2010 14:37:07 +0100 > Subject: Re: [AccessD] query grouping problem > > > Hi Pedro > > OK, that was another story. > > I think you will need two subqueries: > > Select Distinct * From tblYourTable Where Code1=1 And Code2 Is Null > Select Distinct * From tblYourTable Where Code2=1 And Code1 Is Null > > Now, inner-join these on PatNr and Date. > > /gustav > > > >>> 16-12-2010 12:56 >>> > Hello Gustav, > > That query even i can put together > Indeed you need more info. > > In the table there are more then hundred thousand record, in al sort combinations. > > I Need the two records where PatNr and Date is the same and where code 1 has value1 (code2 in that record is empty) and in the other record Code2 has a value of 1 (code1 then is empty). > > Thanks > > Pedro > > > > > In antwoord op: > > > From: "Gustav Brock" > > To: > > Date: Thu, 16 Dec 2010 12:31:13 +0100 > > Subject: Re: [AccessD] query grouping problem > > > > > > Hi Pedro > > > > That's easy: > > > > Select * From tblYourTable Where [Date]=#2010-02-02# > > > > Or do we need some more info from you? > > > > /gustav > > > > > > >>> pedro at plex.nl 16-12-2010 11:57 >>> > > Dear List, > > > > i have the following table: > > > > ID PatNr Date Name code1 code2 > > 1 01 1-1-2010 A 1 1 > > 2 01 2-2-2010 B 1 > > 3 01 2-2-2010 C 1 > > 4 02 5-1-2010 A 1 > > 5 02 5-1-2010 C 1 > > > > I need: > > > > 2 01 2-2-2010 B 1 > > 3 01 2-2-2010 C 1 > > > > > > I tried several query's with groups on PatNr and Date, but i don't get it done. > > Who can help me? > > > > Thanks > > > > Pedro > > > > From Gustav at cactus.dk Thu Dec 16 08:53:14 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Dec 2010 15:53:14 +0100 Subject: [AccessD] query grouping problem Message-ID: You are welcome! /gustav >>> pedro at plex.nl 16-12-2010 15:42 >>> Hello Gustav, exact what is needed. Works perfect. Thanks Pedro From rockysmolin at bchacc.com Thu Dec 16 09:30:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 16 Dec 2010 07:30:21 -0800 Subject: [AccessD] mdb block even though it was in a zip file Message-ID: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> Dear List: Client tried to send their back end zipped but in the zip file was a text file with the text: "The file "AppareoMRP.mdb" has been blocked by the attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The email has not been delivered." I don't think that Outlook did that on my end. Could it have happened on their? Any clue what this means? TIA Rocky From paul.hartland at googlemail.com Thu Dec 16 09:33:48 2010 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 16 Dec 2010 15:33:48 +0000 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> Message-ID: Rocky, No idea what it means, I would just ask them to change the extension, zip it up and re-send it, usually works. Paul On 16 December 2010 15:30, Rocky Smolin wrote: > Dear List: > > Client tried to send their back end zipped but in the zip file was a text > file with the text: "The file "AppareoMRP.mdb" has been blocked by the > attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The > email has not been delivered." > > I don't think that Outlook did that on my end. Could it have happened on > their? Any clue what this means? > > TIA > > Rocky > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Paul Hartland paul.hartland at googlemail.com From df.waters at comcast.net Thu Dec 16 09:34:57 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 16 Dec 2010 09:34:57 -0600 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> Message-ID: <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Hi Rocky, Your antivirus program is supposed to do that whenever a compressed file might be a potential problem. I'm going to guess that if an .mdb file has an AutoExec macro or a startup form, an antivirus program will stop it - but maybe it stops all .mdb files - don't know. I always change the .mdb to .pdf, then compress and then send. Pdf's always get through. And of course you do need to let your user know that they need to change back to .mdb. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 16, 2010 9:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] mdb block even though it was in a zip file Dear List: Client tried to send their back end zipped but in the zip file was a text file with the text: "The file "AppareoMRP.mdb" has been blocked by the attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The email has not been delivered." I don't think that Outlook did that on my end. Could it have happened on their? Any clue what this means? TIA Rocky From jeff.developer at gmail.com Thu Dec 16 09:54:55 2010 From: jeff.developer at gmail.com (Jeff B) Date: Thu, 16 Dec 2010 09:54:55 -0600 Subject: [AccessD] Cross Posted: Medical Practice software Message-ID: <4d0a365b.4800e70a.730f.062f@mx.google.com> Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com From BradM at blackforestltd.com Thu Dec 16 10:01:03 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 16 Dec 2010 10:01:03 -0600 Subject: [AccessD] Access with a VPN Versus Access with Remote Desktop (Terminal Services) References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: It appears that running Access with a VPN is usually not a very good approach and that using Remote Desktop will work much better. I would like to find a document that explains this in non-technical terms. Is anyone aware of such a document on the internet? Thanks, Brad From stuart at lexacorp.com.pg Thu Dec 16 10:12:13 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2010 02:12:13 +1000 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> Message-ID: <4D0A3A5D.20568.83E6217@stuart.lexacorp.com.pg> Yep, their AV has been told that .MDB is not an allowed attachment type. many AV prgrams will noe scan inside zip files. Their outgoing mail scanner discovered and removed it. Tell them to rename the zip file with a different extension so that the AV doesn't try to open it and scan the file inside. -- Stuart On 16 Dec 2010 at 7:30, Rocky Smolin wrote: > Dear List: > > Client tried to send their back end zipped but in the zip file was a > text file with the text: "The file "AppareoMRP.mdb" has been blocked > by the attachment filter recipient policy on the %ANTIVIRUSENGINE% > system. The email has not been delivered." > > I don't think that Outlook did that on my end. Could it have happened > on their? Any clue what this means? > > TIA > > Rocky > > From iggy at nanaimo.ark.com Thu Dec 16 09:53:22 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 16 Dec 2010 07:53:22 -0800 Subject: [AccessD] List Boxes Message-ID: <4D0A35F2.7060505@nanaimo.ark.com> Hey All Tried Stuart's idea and used my RollYourOwnCombo.mdb logic. Using continuous subforms did not solve my speed problem. But I figure I can speed things up by just requerying the first five subforms. The other 4 are basically stats for a code and date chosen. Wanted to show the user visually how the listboxes/subforms work, but I figure I will just put some text on the form "Click a code and date to view stats." It takes a lot of code to choregraph all the requerying plus you don't get highlighting like you get with a list box. Was going to use conditional formatting to do this but it tends to slow things down again. So I just made the first textbox (column) in every subform locked and transparent/grey and placed an unbound white textbox beneath, the other textboxes are enabled false and locked true and white. Good thing using the subforms is I control what a user does and no mysterious error messages. From rockysmolin at bchacc.com Thu Dec 16 10:18:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 16 Dec 2010 08:18:47 -0800 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: This one was sent to me. So I'm thinking maybe AVG go overzealous. Maybe it was done by my ISP? Anyway I had the client resend using YouSendIt.com. That worked. Always does. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 16, 2010 7:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] mdb block even though it was in a zip file Hi Rocky, Your antivirus program is supposed to do that whenever a compressed file might be a potential problem. I'm going to guess that if an .mdb file has an AutoExec macro or a startup form, an antivirus program will stop it - but maybe it stops all .mdb files - don't know. I always change the .mdb to .pdf, then compress and then send. Pdf's always get through. And of course you do need to let your user know that they need to change back to .mdb. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 16, 2010 9:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] mdb block even though it was in a zip file Dear List: Client tried to send their back end zipped but in the zip file was a text file with the text: "The file "AppareoMRP.mdb" has been blocked by the attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The email has not been delivered." I don't think that Outlook did that on my end. Could it have happened on their? Any clue what this means? TIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Dec 16 10:29:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Dec 2010 11:29:43 -0500 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: This is pretty routine in MS Exchange Server land. Another way to get around this is the encrypt the ZIP file. Then there will be no need to rename the file beforehand. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 16, 2010 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] mdb block even though it was in a zip file This one was sent to me. So I'm thinking maybe AVG go overzealous. Maybe it was done by my ISP? Anyway I had the client resend using YouSendIt.com. That worked. Always does. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, December 16, 2010 7:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] mdb block even though it was in a zip file Hi Rocky, Your antivirus program is supposed to do that whenever a compressed file might be a potential problem. I'm going to guess that if an .mdb file has an AutoExec macro or a startup form, an antivirus program will stop it - but maybe it stops all .mdb files - don't know. I always change the .mdb to .pdf, then compress and then send. Pdf's always get through. And of course you do need to let your user know that they need to change back to .mdb. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 16, 2010 9:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] mdb block even though it was in a zip file Dear List: Client tried to send their back end zipped but in the zip file was a text file with the text: "The file "AppareoMRP.mdb" has been blocked by the attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The email has not been delivered." I don't think that Outlook did that on my end. Could it have happened on their? Any clue what this means? TIA 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 dbdoug at gmail.com Thu Dec 16 10:40:52 2010 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 16 Dec 2010 08:40:52 -0800 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: I had a client with a corporate email system that was smart enough to find an .mdb file inside a renamed .zip archive. We ended up using box.net to bypass the company security. Doug On Thu, Dec 16, 2010 at 8:29 AM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > This is pretty routine in MS Exchange Server land. > > Another way to get around this is the encrypt the ZIP file. Then there will > be no need to rename the file beforehand. > > From df.waters at comcast.net Thu Dec 16 10:45:08 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 16 Dec 2010 10:45:08 -0600 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005><8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: I began changing the file to pdf prior to compressing after I read about doing that in a MS KB article. Dan From jimdettman at verizon.net Thu Dec 16 10:54:53 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 16 Dec 2010 11:54:53 -0500 Subject: [AccessD] Access with a VPN Versus Access with Remote Desktop(Terminal Services) In-Reply-To: References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: <783D643B7CE64C91970ADD1A81CCCAF9@XPS> Brad, Nothing specifically, but the difference is that with Remote Desktop, only KVM (Keyboard, Video, and Mouse) data is sent across the connection. In other words, your "remoteing in". All processing is therefore carried out on the local machine and the local LAN. Think of it as your machine only having a window onto something that is going on else where. When you VPN in, you simply get a connection to the network. All processing is now being done on your machine, so a lot more is going across the connection. Usually any type of Internet connection is considered low in comparison to a local LAN which runs at 10MB, 100MB (typical speed now a days), or 1GB/sec. This is why you get poor performance over a VPN. Most broadband connections at best are typically 5MB/sec down (to you) and 384k to 2MB up (from you). If your really remote and on a dial up, your not even in the MB range. And speed is only part of it as there is also Internet latency (delays) as well, which you typically won't see on a local LAN. That's it in a nutshell. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, December 16, 2010 11:01 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access with a VPN Versus Access with Remote Desktop(Terminal Services) It appears that running Access with a VPN is usually not a very good approach and that using Remote Desktop will work much better. I would like to find a document that explains this in non-technical terms. Is anyone aware of such a document on the internet? Thanks, Brad From Lambert.Heenan at chartisinsurance.com Thu Dec 16 10:55:47 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 16 Dec 2010 11:55:47 -0500 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: References: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> <8EBFAC04C9E24355BD552742D86F91E5@DanWaters> Message-ID: Whatever SW out Exchange Server runs, it works by extracting the files inside ZIP files and looking for file type signatures. So if you rename a .exe file to .pdf it will still be rejected by the server because it looks inside the file and sees the "MZ" signature in the first two bytes. But if the zip file is encrypted the server cannot extract the files at all, and so it allows them through. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Thursday, December 16, 2010 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] mdb block even though it was in a zip file I had a client with a corporate email system that was smart enough to find an .mdb file inside a renamed .zip archive. We ended up using box.net to bypass the company security. Doug On Thu, Dec 16, 2010 at 8:29 AM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > This is pretty routine in MS Exchange Server land. > > Another way to get around this is the encrypt the ZIP file. Then there > will be no need to rename the file beforehand. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Dec 16 12:28:50 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 17 Dec 2010 07:28:50 +1300 Subject: [AccessD] Preparing Database for Web In-Reply-To: <1D7279B67E454FE09BC82DCD04FC7AB5@XPS> References: <20101214070858.OGTB13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> <201012150311.oBF3B0ac005414@databaseadvisors.com> <20101215033702.DDAP6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454BC@EX2K7-VIRT-2.ads.qub.ac.uk> <20101215083549.MVDL7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <631CF83223105545BF43EFB52CB082954706A454C3@EX2K7-VIRT-2.ads.qub.ac.uk> <1D7279B67E454FE09BC82DCD04FC7AB5@XPS> Message-ID: <20101216184611.IFI7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Thanks everyone for your feedback. After more research and discussions with the IT guy he has decided that Remote Desktop will be acceptable. Since this is an in house application we might just get away with it. This does raise another question about remote Desktop but I will post this under a new subject. David At 16/12/2010, you wrote: > Access 2010 running against SharePoint 2010 through Access services is a >totally different animal then 2007. > > What MSFT has done is what they did with SQL Server and ADP's; setup >Access as a native client for SharePoint. It's a true client / server >setup, however it has the wrinkle of replication being thrown in. Data is >cached locally in temp files and synched up when you connect. This takes a >considerable load off the SharePoint site. Only changes in data are synched >up. > > I still don't have all the technical details yet, but it's totally >different then 2007 and from what I've heard, works extremely well. > > It also appears that the 2GB limit on DB size doesn't apply as the only >thing that is kept in a ACCDB is design versions of Access objects. > > There is a "publish" process to but your DB into SharePoint, but as long >as you start development as a web database, the process is painless. Even >taking a normal DB is supposed to be fairly straight forward, but I haven't >seen the process yet and I don't know what all the differences are between a >normal DB and web one. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, December 15, 2010 03:44 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >We actually block MDBs from going on SharePoint. We don't allow anything >containing code to be put up. They can link to lists etc. but that's about >it. I did see a fairly complex Access database converted in SharePoint 2010 >and it looked really well but no direct experience of doing it. > >martin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: 15 December 2010 08:35 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Preparing Database for Web > >Thanks Martin, > >They only have SharePoint 2007 so it looks like this won't even make first >base. > >David > >At 15/12/2010, Martin Reid wrote: > >On SharePoint it will be a simple file not a web database unless you > >are using SharePoint 2010. Access 2010 and Access Services. Then you > >can convert it to a web database running in SharePoint. > >Personally I would not bother with anything complex. > > > >Martin > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: 15 December 2010 03:34 > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Preparing Database for Web > > > >Thanks Darryl, > > > >That is the conclusion I am coming to with the research (having not > >actually used sharepoint before at all). It looks like we are going > >the .net/asp way. > > > >Regards > > > >David > > > >At 15/12/2010, Darryl Collins wrote: > > > > >The company IT folks seem to love Sharepoint, and it is a great > > >solution for document sharing and some basic database stuff (like > > >multiple users managing lists and process flows and event > > >notification etc), but it is not suitable for a true database app in my >experience. > > > > > >Not sure about A2010 which seems to be better integrated for > > >sharepoint, but I suspect you would have all the same issues of > > >corruption and record locking with multiple users if you merely host > > >the single mdb database on sharepoint with multiple users accessing it. > > > > > >How is sharepoint going to fix that? I don't think it can. > > > > > >cheers > > >Darryl. > > > > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > > >Emerson > > >Sent: Tuesday, 14 December 2010 6:09 PM > > >To: Access Developers discussion and problem solving > > >Subject: Re: [AccessD] Preparing Database for Web > > > > > >The company IT guy suggested using sharepoint and putting the whole > > >database on the server. > > > > > >He indicated that then we wouldn't need any web interface. There > > >would only be about 25 staff that would be using it (and it is not > > >high > > >usage) but they are spreads across a couple of countries (well NZ and > > >the West Island sometimes called Australia :-)) > > > > > >Any comments with this approach? > > > > > >David > > > > > >At 14/12/2010, Drew Wutka wrote: > > > >Access is more than capable of running as a backend to a web > > > >application... IF you put the .mdb on the web server itself. When > > > >done that way, it'll run as fast or faster than a SQL Server, and > > > >will never have corruption issues. (Unless you also access it with > > > >Access from across a network, then corruption may still occur). > > > > > > > >I have lots of web based systems that use an Access .mdb for the > > > >back end. > > > > > > > >Drew > > > > > > > >-----Original Message----- > > > >From: accessd-bounces at databaseadvisors.com > > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > > > >Emerson > > > >Sent: Sunday, December 12, 2010 2:00 PM > > > >To: accessd at databaseadvisors.com > > > >Subject: [AccessD] Preparing Database for Web > > > > > > > >Team, > > > > > > > >I have a customer who want a simple database created which will > > > >ultimately be hooked up to a web interface (Order screen for fabric > > > >samples, and tracking screen to show status of order). > > > > > > > >I still need to sit down with them to work out the likely number of > > > >records, simultaneous users etc (which I am doing tomorrow). > > > > > > > >Currently their databases are all Access. Assuming the size of the > > > >new database will be well within Access limits, is Access suitably > > > >robust for web applications, or should I start off with SQL? > > > > > > > >I will be getting someone else to do the web side of things but > > > >want to make sure that I make it as easy as possible (read cheap) for >them. > > > > > > > > > > > >Regards > > > > > > > >David Emerson > > > >Dalyn Software Ltd > > > >Wellington, New Zealand From newsgrps at dalyn.co.nz Thu Dec 16 12:39:08 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 17 Dec 2010 07:39:08 +1300 Subject: [AccessD] Access and Remote Desktop Message-ID: <20101216184616.IJK7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Team, With one of my clients the users used Remote Desktop and Terminal Server to access an AccessXP FE/SQL2000 BE on a server. They had a shortcut created in their profiles to open the database FE in Access. I asked the following question from the IT guy and received the answer below: Q) With the Access billing program shortcuts, did each user have their own copy of the main prog in their profiles, or did they all point to the same physical file on the server? If it was the same physical file, can you confirm if terminal server opened separate instances of the programme for each user? A) All users pointed to the same physical file on the server. Each user opened a MSACCESS.EXE file which would run their individual session. Typically one of the EXE programs would spin out of control and kill the server - never mind! Is the above set up likely to cause problems or could it have been some other configuration issue that caused the server problem? I have read about providing each user with their own copy of the FE. How are you setting up your systems to handle this (batch file to automatically copy the FE when it updates, etc). Any other issues I need to be aware of. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From steve at datamanagementsolutions.biz Thu Dec 16 12:56:42 2010 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Fri, 17 Dec 2010 07:56:42 +1300 Subject: [AccessD] Access and Remote Desktop In-Reply-To: <20101216184616.IJK7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101216184616.IJK7909.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: David, It us not at all clear what is meant by "each user opened a MSACCESS.EXE file which would run their individual session." That answer does not really respond to the main point of your question. But you are playing with fire if the setup does not include provision for each user to have their own separate copy of the frontend application. This is done either by installing separate copies of the frontend within each user profile. Or by using a startup script which makes a copy of the frontend from a master copy on the server, every time a user runs the application. Regards Steve -----Original Message----- From: David Emerson Sent: Friday, December 17, 2010 7:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access and Remote Desktop Team, With one of my clients the users used Remote Desktop and Terminal Server to access an AccessXP FE/SQL2000 BE on a server. They had a shortcut created in their profiles to open the database FE in Access. I asked the following question from the IT guy and received the answer below: Q) With the Access billing program shortcuts, did each user have their own copy of the main prog in their profiles, or did they all point to the same physical file on the server? If it was the same physical file, can you confirm if terminal server opened separate instances of the programme for each user? A) All users pointed to the same physical file on the server. Each user opened a MSACCESS.EXE file which would run their individual session. Typically one of the EXE programs would spin out of control and kill the server - never mind! Is the above set up likely to cause problems or could it have been some other configuration issue that caused the server problem? I have read about providing each user with their own copy of the FE. How are you setting up your systems to handle this (batch file to automatically copy the FE when it updates, etc). Any other issues I need to be aware of. From Darryl.Collins at iag.com.au Thu Dec 16 17:40:28 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 17 Dec 2010 10:40:28 +1100 Subject: [AccessD] mdb block even though it was in a zip file In-Reply-To: <3F84B88B3E984872AE959F187F89ED0D@HAL9005> Message-ID: <201012162340.oBGNeaIf018315@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Rocky, Change the .mdb to .txt and then zip it. Unzip it at the other end and then change it back to .mdb I have had to do that many times like that. cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, 17 December 2010 2:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] mdb block even though it was in a zip file Dear List: Client tried to send their back end zipped but in the zip file was a text file with the text: "The file "AppareoMRP.mdb" has been blocked by the attachment filter recipient policy on the %ANTIVIRUSENGINE% system. The email has not been delivered." I don't think that Outlook did that on my end. Could it have happened on their? Any clue what this means? TIA Rocky _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From DWUTKA at Marlow.com Thu Dec 16 18:02:31 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 16 Dec 2010 18:02:31 -0600 Subject: [AccessD] List Boxes In-Reply-To: <4D092172.9060807@nanaimo.ark.com> References: <4D092172.9060807@nanaimo.ark.com> Message-ID: Just tossing an idea into the ring for you. A little known method of populating listboxes and combo boxes is with a callback function. I am not sure if it will speed things up, but it might be worth a try. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Wednesday, December 15, 2010 2:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] List Boxes Hey Lambert, John and Rocky Thank you for your information. I have a feeling I am "pushing the envelope", a list box works fine by itself, it is clean and fast. But when one list box contents is based on the selection of another list box and so on and so on it slows the whole process down. From your suggestions I have a couple ideas I will try in the morning, got to get the speed up. The idea has potential, currently it is just too slow. Anyway promised myself I would not get into the Xmas frenzy again, by shopping for presents on the 23rd and 24th , so I am off to get the Xmas goodies. Without the goofy "presents thing", I am probably like most of you and wish we had this Xmas feeling all year long. Thanks again -- 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 Business Sensitive 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 davidmcafee at gmail.com Thu Dec 16 18:43:43 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 16 Dec 2010 16:43:43 -0800 Subject: [AccessD] List Boxes In-Reply-To: References: <4D092172.9060807@nanaimo.ark.com> Message-ID: Tony, can you send me a copy of your mdb? I use cascading listboxes a lot and have never had a problem. D On Thu, Dec 16, 2010 at 4:02 PM, Drew Wutka wrote: > Just tossing an idea into the ring for you. A little known method of > populating listboxes and combo boxes is with a callback function. I am > not sure if it will speed things up, but it might be worth a try. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > Sent: Wednesday, December 15, 2010 2:14 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] List Boxes > > Hey Lambert, John and Rocky > Thank you for your information. > I have a feeling I am "pushing the envelope", a list box works fine by > itself, it is clean and fast. But when one list box contents is based on > > the selection of another list box and so on and so on it slows the > whole process down. From your suggestions I have a couple ideas I will > try in the morning, got to get the speed up. The idea has potential, > currently it is just too slow. Anyway promised myself I would not get > into the Xmas frenzy again, by shopping for presents on the 23rd and > 24th , so I am off to get the Xmas goodies. Without the goofy "presents > thing", I am probably like most of you and wish we had this Xmas feeling > > all year long. > > Thanks again > -- > 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 > Business > Sensitive 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 jeff.developer at gmail.com Thu Dec 16 21:14:37 2010 From: jeff.developer at gmail.com (Jeff B) Date: Thu, 16 Dec 2010 21:14:37 -0600 Subject: [AccessD] Cross Posted: Medical Practice software Message-ID: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com From df.waters at comcast.net Thu Dec 16 21:36:56 2010 From: df.waters at comcast.net (Dan Waters) Date: Thu, 16 Dec 2010 21:36:56 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Message-ID: Take a look at http://accounting-software-review.toptenreviews.com/index.html. There are 9 software packages listed here - Peachtree and Quickbooks are #1 and #2. There is also a Quickbooks Premier, Quickbooks Accountant, Quickbooks Manufacturing & Wholesale, and others available that are not listed here but are described on Amazon. Bestsellers on Amazon for Accounting & Inventory Management software are overwhelmingly different variations of QuickBooks. I've never used any of these but it's a list to look through. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B Sent: Thursday, December 16, 2010 9:15 PM To: AccessD; Dba-SQL; dba-OT Subject: [AccessD] Cross Posted: Medical Practice software Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.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 Thu Dec 16 22:12:29 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Dec 2010 14:12:29 +1000 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com>, Message-ID: <4D0AE32D.18563.AD1D022@stuart.lexacorp.com.pg> Lytec isn't accounting software, it's a health industry "Health Records and Practice Management" package. That sort of specialist software never comes cheap . :-( -- Stuart On 16 Dec 2010 at 21:36, Dan Waters wrote: > Take a look at > http://accounting-software-review.toptenreviews.com/index.html. > > There are 9 software packages listed here - Peachtree and Quickbooks > are #1 and #2. There is also a Quickbooks Premier, Quickbooks > Accountant, Quickbooks Manufacturing & Wholesale, and others available > that are not listed here but are described on Amazon. Bestsellers on > Amazon for Accounting & Inventory Management software are > overwhelmingly different variations of QuickBooks. > > I've never used any of these but it's a list to look through. > > Good luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B > Sent: Thursday, December 16, 2010 9:15 PM To: AccessD; Dba-SQL; dba-OT > Subject: [AccessD] Cross Posted: Medical Practice software > > Has anyone here ever worked with a product called Lytec? I need to > pick someone's brain if they have, I am having issues at a newer > client's site. > > Here is a little more information: > > I am working with an orthopedic physical therapist who is using Lytec > 2007 to 'run' his business. This product controls his scheduling, > billing, and basically everything. We have talked about writing a > custom app for him, but he does not know if he is ready to take that > big of a step yet. We just discovered that former IT people have > spent WAY too much of his money on unnecessary equipment. > > We have purchased two new PCs, but his current version of Lytec (Lytec > 2007) does not work on anything after Windows XP partly because > Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about > $3000, something that needs to be done every year. > > I have been trying to get Lytec 2007 to work with Windows 7 but to no > avail. > > Any suggestions on a less expensive option for my client would be > greatly appreciated. I am open to almost any suggestion at this > point. > > > TIA > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff.developer 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 rockysmolin at bchacc.com Thu Dec 16 22:36:25 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 16 Dec 2010 20:36:25 -0800 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Message-ID: Is it a one man band? Or several docs? How many users on his network? $3k a year to keep the license current on WXP is a user abusive policy. There's lots of practice management software out there: http://www.capterra.com/medical-practice-management-software Give us more details. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B Sent: Thursday, December 16, 2010 7:15 PM To: AccessD; Dba-SQL; dba-OT Subject: [AccessD] Cross Posted: Medical Practice software Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Dec 16 22:50:23 2010 From: john at winhaven.net (John Bartow) Date: Thu, 16 Dec 2010 22:50:23 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Message-ID: <019c01cb9da5$ea5932b0$bf0b9810$@winhaven.net> Is it for a medical practice or something else like chiropractic, dental, alternative health care etc. I have various clients in alternative health care and could point you to something in one those disciplines. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B Sent: Thursday, December 16, 2010 9:15 PM To: AccessD; Dba-SQL; dba-OT Subject: [AccessD] Cross Posted: Medical Practice software Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Dec 16 23:07:49 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 17 Dec 2010 18:07:49 +1300 Subject: [AccessD] Form Field Renaming Itself Message-ID: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> Here is a weird one. Access XP mdb. I have a form with a field called txtOrderDate. The source is OrderDate. Whenever I make a change to the form and save it the source is changed to Date. I can change the source back to OrderDate and save the form OK, but if I change anything else on the form and save it the field source changes back to Date again. Also, if I change the I have cleared all the boxes in the autocorrect feature and this change is not in the lists. Decompile, repair and compact haven't helped. Importing all objects into a new database also didn't help. Any thoughts? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From rockysmolin at bchacc.com Thu Dec 16 23:57:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 16 Dec 2010 21:57:18 -0800 Subject: [AccessD] Form Field Renaming Itself In-Reply-To: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: I'd try to work around it by renaming the field OrderDate in the table and in the source of the control. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, December 16, 2010 9:08 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Field Renaming Itself Here is a weird one. Access XP mdb. I have a form with a field called txtOrderDate. The source is OrderDate. Whenever I make a change to the form and save it the source is changed to Date. I can change the source back to OrderDate and save the form OK, but if I change anything else on the form and save it the field source changes back to Date again. Also, if I change the I have cleared all the boxes in the autocorrect feature and this change is not in the lists. Decompile, repair and compact haven't helped. Importing all objects into a new database also didn't help. Any thoughts? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Fri Dec 17 01:48:07 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 17 Dec 2010 20:48:07 +1300 Subject: [AccessD] Form Field Renaming Itself In-Reply-To: References: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20101217074901.ZWDY13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> I tried that but it still wouldn't work. But in testing I found that the change was reflecting an alias that I had in another combo box that was being used to select the record for the main screen. That is, I had another combo which had the same table source as the form source. When a record is selected in the combo box then the main form was filtered to only show the same record. The OrderDate field in the combo box had an alias of "Date" for the combo header. When I removed the field alias in the filter box then the problem stopped. It meant that I also hid the column headers for the combo box to keep things tidy. This didn't answer why the combo box should affect a field property but at least I have solved the problem. David At 17/12/2010, Rocky Smolin wrote: >I'd try to work around it by renaming the field OrderDate in the table and >in the source of the control. > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, December 16, 2010 9:08 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Form Field Renaming Itself > >Here is a weird one. > >Access XP mdb. I have a form with a field called txtOrderDate. The source >is OrderDate. Whenever I make a change to the form and save it the source >is changed to Date. I can change the source back to OrderDate and save the >form OK, but if I change anything else on the form and save it the field >source changes back to Date again. > >Also, if I change the > >I have cleared all the boxes in the autocorrect feature and this change is >not in the lists. > >Decompile, repair and compact haven't helped. > >Importing all objects into a new database also didn't help. > >Any thoughts? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Dec 17 05:22:46 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Dec 2010 12:22:46 +0100 Subject: [AccessD] Cross Posted: Medical Practice software Message-ID: Hi Jeff If the client runs Windows 7 Professional (not the Home versions), you can download for free: Download Windows XP Mode with Virtual PC http://www.microsoft.com/windows/virtual-pc/download.aspx This will allow you to run any XP-only application. Don't forget enough ram. For this scenario we recommend 4 GB minimum. If they run Windows Home you will need an upgrade. /gustav >>> jeff.developer at gmail.com 17-12-2010 04:14 >>> Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com From rockysmolin at bchacc.com Fri Dec 17 07:51:40 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 17 Dec 2010 05:51:40 -0800 Subject: [AccessD] Form Field Renaming Itself In-Reply-To: <20101217074901.ZWDY13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <20101217074901.ZWDY13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: I learned from this list not to use variable names or aliases that are also a reserved word. It makes Access neurotic. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, December 16, 2010 11:48 PM To: Access Developers discussion and problem solving; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Form Field Renaming Itself I tried that but it still wouldn't work. But in testing I found that the change was reflecting an alias that I had in another combo box that was being used to select the record for the main screen. That is, I had another combo which had the same table source as the form source. When a record is selected in the combo box then the main form was filtered to only show the same record. The OrderDate field in the combo box had an alias of "Date" for the combo header. When I removed the field alias in the filter box then the problem stopped. It meant that I also hid the column headers for the combo box to keep things tidy. This didn't answer why the combo box should affect a field property but at least I have solved the problem. David At 17/12/2010, Rocky Smolin wrote: >I'd try to work around it by renaming the field OrderDate in the table >and in the source of the control. > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Thursday, December 16, 2010 9:08 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Form Field Renaming Itself > >Here is a weird one. > >Access XP mdb. I have a form with a field called txtOrderDate. The >source is OrderDate. Whenever I make a change to the form and save it >the source is changed to Date. I can change the source back to >OrderDate and save the form OK, but if I change anything else on the >form and save it the field source changes back to Date again. > >Also, if I change the > >I have cleared all the boxes in the autocorrect feature and this change >is not in the lists. > >Decompile, repair and compact haven't helped. > >Importing all objects into a new database also didn't help. > >Any thoughts? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Dec 17 08:20:17 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Dec 2010 09:20:17 -0500 Subject: [AccessD] [dba-VB] WCF In-Reply-To: References: Message-ID: <4D0B71A1.5040703@colbyconsulting.com> Gustav, If you would like you could work with me to set up a practical scenario, and actually run the client clear over the other side of the pond and see how it all works. Let me be clear, I am doing this and you can participate however you like, from actual code to just watching. To anyone else interested, I make the same offer. I have to build a small database, volunteers, organizations, locations, events etc. So far I have about 12 tables. The objective is to have this small database accessed from anywhere that has an internet connection. I will initially host the database on my in-house servers but eventually will move them off to a web hosting service, perhaps even my own. One specific user is going to populate the tables, and then several users are going to use the database to do occasional data entry, but more often do reporting. How many volunteers? Who worked on Event XYZ. How many volunteers attended event XYZ and how often did each work. We have event ABC in zip code 12345. List the top 30 volunteers closest to that location. That kind of thing. The database / application will be used to allow project managers to staff events with reliable volunteers, and discover which organizations are providing volunteers etc. I started reading Microsoft WCF step by step last night and that author immediately dived right in with example code that... worked with a database, reading and updating tables. I am putting AccessD on the To list for this email in case there are AccessD members not yet on the VB list who might be interested. John W. Colby www.ColbyConsulting.com On 12/17/2010 6:43 AM, Gustav Brock wrote: > Hi John > > Yes, WCF is huge. But you don't need to learn all about it to use it. I have attended some demo session and quite fast you can set up some test scenarios. > Microsoft has some intro stuff as well: > > http://msdn.microsoft.com/en-us/library/gg132851.aspx > > I haven't worked with WCF for any practical project but would love to follow the thread. > > /gustav > > >>>> jwcolby at colbyconsulting.com 16-12-2010 22:47>>> > WCF looks like the ticket for my requirement to access data over the internet using a client .Net > application. I have three different projects for three different clients all of which really need > to interface to a database over the web. > > WCF is... way over my head. I am reading a book - O'Reilly - Learning WCF by Michelle Bustamonte. > About all I can say is wow. Rarely have I encountered so many acronyms in a single (the first) > chapter. I have another book - Microsoft WCF Step By Step by John Sharp. > > I just started reading Learning WCF last night. Luckily I have the holidays to do some heavy reading. > > I think I will be able to eventually figure it out but I thought I'd see if anyone on the list has > done this and wants to start a discussion thread. > From jwcolby at colbyconsulting.com Fri Dec 17 08:44:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Dec 2010 09:44:05 -0500 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Message-ID: <4D0B7735.8020603@colbyconsulting.com> >his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. What does that mean? Windows 7 does not talk to SQL Server 2003? Is this documented anywhere? John W. Colby www.ColbyConsulting.com On 12/16/2010 10:14 PM, Jeff B wrote: > Has anyone here ever worked with a product called Lytec? I need to pick > someone's brain if they have, I am having issues at a newer client's site. > > Here is a little more information: > > I am working with an orthopedic physical therapist who is using Lytec 2007 > to 'run' his business. This product controls his scheduling, billing, and > basically everything. We have talked about writing a custom app for him, > but he does not know if he is ready to take that big of a step yet. We just > discovered that former IT people have spent WAY too much of his money on > unnecessary equipment. > > We have purchased two new PCs, but his current version of Lytec (Lytec 2007) > does not work on anything after Windows XP partly because Windows 7 and SQL > 2003 do not talk. The upgrade for Lytec is about $3000, something that > needs to be done every year. > > I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. > > Any suggestions on a less expensive option for my client would be greatly > appreciated. I am open to almost any suggestion at this point. > > > TIA > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff.developer at gmail.com > From df.waters at comcast.net Fri Dec 17 08:47:46 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 17 Dec 2010 08:47:46 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4D0B7735.8020603@colbyconsulting.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> <4D0B7735.8020603@colbyconsulting.com> Message-ID: <3CF83787D2CC475D8C1A8A2A2A534BBB@DanWaters> Jeff - What is SQL 2003? We went from SQL 2000 to SQL 2005. It was a long wait. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 17, 2010 8:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cross Posted: Medical Practice software >his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. What does that mean? Windows 7 does not talk to SQL Server 2003? Is this documented anywhere? John W. Colby www.ColbyConsulting.com On 12/16/2010 10:14 PM, Jeff B wrote: > Has anyone here ever worked with a product called Lytec? I need to pick > someone's brain if they have, I am having issues at a newer client's site. > > Here is a little more information: > > I am working with an orthopedic physical therapist who is using Lytec 2007 > to 'run' his business. This product controls his scheduling, billing, and > basically everything. We have talked about writing a custom app for him, > but he does not know if he is ready to take that big of a step yet. We just > discovered that former IT people have spent WAY too much of his money on > unnecessary equipment. > > We have purchased two new PCs, but his current version of Lytec (Lytec 2007) > does not work on anything after Windows XP partly because Windows 7 and SQL > 2003 do not talk. The upgrade for Lytec is about $3000, something that > needs to be done every year. > > I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. > > Any suggestions on a less expensive option for my client would be greatly > appreciated. I am open to almost any suggestion at this point. > > > TIA > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff.developer at gmail.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeff.developer at gmail.com Fri Dec 17 08:54:50 2010 From: jeff.developer at gmail.com (Jeff B) Date: Fri, 17 Dec 2010 08:54:50 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <3CF83787D2CC475D8C1A8A2A2A534BBB@DanWaters> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> <4D0B7735.8020603@colbyconsulting.com> <3CF83787D2CC475D8C1A8A2A2A534BBB@DanWaters> Message-ID: <4d0b79c3.8e032a0a.04ab.33ad@mx.google.com> Sorry everyone, I meant that I SQL 2000. See what happens when you are in a hurry??? I am on my way to the client site now, but I will be looking into some of the suggestions later today. I especially like the VPC idea and the XP emulator idea. The Lytec installation disk installs a 'modified' SQL Server 2000 database that cannot be ported into 2005 or 2008. I have tried, it just crashes. I will let you all know what I find out over the weekend! Thanks to you all! We will also be looking into alternative software packages. Jeff Barrows MCP, MCAD, MCSD ? Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, December 17, 2010 8:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cross Posted: Medical Practice software Jeff - What is SQL 2003? We went from SQL 2000 to SQL 2005. It was a long wait. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 17, 2010 8:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cross Posted: Medical Practice software >his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. What does that mean? Windows 7 does not talk to SQL Server 2003? Is this documented anywhere? John W. Colby www.ColbyConsulting.com On 12/16/2010 10:14 PM, Jeff B wrote: > Has anyone here ever worked with a product called Lytec? I need to pick > someone's brain if they have, I am having issues at a newer client's site. > > Here is a little more information: > > I am working with an orthopedic physical therapist who is using Lytec 2007 > to 'run' his business. This product controls his scheduling, billing, and > basically everything. We have talked about writing a custom app for him, > but he does not know if he is ready to take that big of a step yet. We just > discovered that former IT people have spent WAY too much of his money on > unnecessary equipment. > > We have purchased two new PCs, but his current version of Lytec (Lytec 2007) > does not work on anything after Windows XP partly because Windows 7 and SQL > 2003 do not talk. The upgrade for Lytec is about $3000, something that > needs to be done every year. > > I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. > > Any suggestions on a less expensive option for my client would be greatly > appreciated. I am open to almost any suggestion at this point. > > > TIA > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff.developer 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 rusty.hammond at cpiqpc.com Fri Dec 17 08:58:38 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Fri, 17 Dec 2010 08:58:38 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDCE1@CPIEMAIL-EVS1.CPIQPC.NET> Jeff, My dad was a physical therapist and used a product called Turbo PT. It's been over 10 years since I dealt with the product but they are still around (http://www.gssinc.com/default.asp) At the time their user support was very good. I have no idea what their prices are like but might be worth taking a look. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B Sent: Thursday, December 16, 2010 9:15 PM To: AccessD; Dba-SQL; dba-OT Subject: [AccessD] Cross Posted: Medical Practice software Has anyone here ever worked with a product called Lytec? I need to pick someone's brain if they have, I am having issues at a newer client's site. Here is a little more information: I am working with an orthopedic physical therapist who is using Lytec 2007 to 'run' his business. This product controls his scheduling, billing, and basically everything. We have talked about writing a custom app for him, but he does not know if he is ready to take that big of a step yet. We just discovered that former IT people have spent WAY too much of his money on unnecessary equipment. We have purchased two new PCs, but his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. The upgrade for Lytec is about $3000, something that needs to be done every year. I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. Any suggestions on a less expensive option for my client would be greatly appreciated. I am open to almost any suggestion at this point. TIA Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff.developer at gmail.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 df.waters at comcast.net Fri Dec 17 08:58:34 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 17 Dec 2010 08:58:34 -0600 Subject: [AccessD] Cross Posted: Medical Practice software In-Reply-To: <4d0b79c3.8e032a0a.04ab.33ad@mx.google.com> References: <4d0ad5a8.4800e70a.730f.18c3@mx.google.com> <4D0B7735.8020603@colbyconsulting.com><3CF83787D2CC475D8C1A8A2A2A534BBB@DanWaters> <4d0b79c3.8e032a0a.04ab.33ad@mx.google.com> Message-ID: And stay away from the snowbanks on your way to your client! ;-) Dan Blaine, MN -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff B Sent: Friday, December 17, 2010 8:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cross Posted: Medical Practice software Sorry everyone, I meant that I SQL 2000. See what happens when you are in a hurry??? I am on my way to the client site now, but I will be looking into some of the suggestions later today. I especially like the VPC idea and the XP emulator idea. The Lytec installation disk installs a 'modified' SQL Server 2000 database that cannot be ported into 2005 or 2008. I have tried, it just crashes. I will let you all know what I find out over the weekend! Thanks to you all! We will also be looking into alternative software packages. Jeff Barrows MCP, MCAD, MCSD ? Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, December 17, 2010 8:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cross Posted: Medical Practice software Jeff - What is SQL 2003? We went from SQL 2000 to SQL 2005. It was a long wait. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 17, 2010 8:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cross Posted: Medical Practice software >his current version of Lytec (Lytec 2007) does not work on anything after Windows XP partly because Windows 7 and SQL 2003 do not talk. What does that mean? Windows 7 does not talk to SQL Server 2003? Is this documented anywhere? John W. Colby www.ColbyConsulting.com On 12/16/2010 10:14 PM, Jeff B wrote: > Has anyone here ever worked with a product called Lytec? I need to pick > someone's brain if they have, I am having issues at a newer client's site. > > Here is a little more information: > > I am working with an orthopedic physical therapist who is using Lytec 2007 > to 'run' his business. This product controls his scheduling, billing, and > basically everything. We have talked about writing a custom app for him, > but he does not know if he is ready to take that big of a step yet. We just > discovered that former IT people have spent WAY too much of his money on > unnecessary equipment. > > We have purchased two new PCs, but his current version of Lytec (Lytec 2007) > does not work on anything after Windows XP partly because Windows 7 and SQL > 2003 do not talk. The upgrade for Lytec is about $3000, something that > needs to be done every year. > > I have been trying to get Lytec 2007 to work with Windows 7 but to no avail. > > Any suggestions on a less expensive option for my client would be greatly > appreciated. I am open to almost any suggestion at this point. > > > TIA > > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > jeff.developer 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 iggy at nanaimo.ark.com Fri Dec 17 10:44:17 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 17 Dec 2010 08:44:17 -0800 Subject: [AccessD] List Boxes In-Reply-To: References: <4D092172.9060807@nanaimo.ark.com> Message-ID: <4D0B9361.5050308@nanaimo.ark.com> Hey Drew Thanks, but it was slower. In checking out the callback function I did find out that there are 2 (kind of interesting) new properties for list boxes and combo boxes I didn't know about. AddItem RemoveItem Drew Wutka wrote: >Just tossing an idea into the ring for you. A little known method of >populating listboxes and combo boxes is with a callback function. I am >not sure if it will speed things up, but it might be worth a try. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Wednesday, December 15, 2010 2:14 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] List Boxes > >Hey Lambert, John and Rocky >Thank you for your information. >I have a feeling I am "pushing the envelope", a list box works fine by >itself, it is clean and fast. But when one list box contents is based on > >the selection of another list box and so on and so on it slows the >whole process down. From your suggestions I have a couple ideas I will >try in the morning, got to get the speed up. The idea has potential, >currently it is just too slow. Anyway promised myself I would not get >into the Xmas frenzy again, by shopping for presents on the 23rd and >24th , so I am off to get the Xmas goodies. Without the goofy "presents >thing", I am probably like most of you and wish we had this Xmas feeling > >all year long. > >Thanks again > > From jwcolby at colbyconsulting.com Fri Dec 17 10:51:45 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Dec 2010 11:51:45 -0500 Subject: [AccessD] List Boxes In-Reply-To: <4D0B9361.5050308@nanaimo.ark.com> References: <4D092172.9060807@nanaimo.ark.com> <4D0B9361.5050308@nanaimo.ark.com> Message-ID: <4D0B9521.6060704@colbyconsulting.com> >I did find out that there are 2 (kind of interesting) new properties for list boxes and combo boxes I didn't know about. > AddItem > RemoveItem IIRC those only allow small lists though as the total size is somewhere around 2000 characters John W. Colby www.ColbyConsulting.com On 12/17/2010 11:44 AM, Tony Septav wrote: > Hey Drew > Thanks, but it was slower. In checking out the callback function I did > find out that there are 2 (kind of interesting) new properties for list > boxes and combo boxes I didn't know about. > AddItem > RemoveItem > > Drew Wutka wrote: > >> Just tossing an idea into the ring for you. A little known method of >> populating listboxes and combo boxes is with a callback function. I am >> not sure if it will speed things up, but it might be worth a try. >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >> Sent: Wednesday, December 15, 2010 2:14 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] List Boxes >> >> Hey Lambert, John and Rocky >> Thank you for your information. >> I have a feeling I am "pushing the envelope", a list box works fine by >> itself, it is clean and fast. But when one list box contents is based on >> >> the selection of another list box and so on and so on it slows the >> whole process down. From your suggestions I have a couple ideas I will >> try in the morning, got to get the speed up. The idea has potential, >> currently it is just too slow. Anyway promised myself I would not get >> into the Xmas frenzy again, by shopping for presents on the 23rd and >> 24th , so I am off to get the Xmas goodies. Without the goofy "presents >> thing", I am probably like most of you and wish we had this Xmas feeling >> >> all year long. >> >> Thanks again >> >> > From iggy at nanaimo.ark.com Fri Dec 17 10:54:21 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 17 Dec 2010 08:54:21 -0800 Subject: [AccessD] List Boxes In-Reply-To: <4D0B9521.6060704@colbyconsulting.com> References: <4D092172.9060807@nanaimo.ark.com> <4D0B9361.5050308@nanaimo.ark.com> <4D0B9521.6060704@colbyconsulting.com> Message-ID: <4D0B95BD.3080105@nanaimo.ark.com> Hey John Yeah it only works with value lists. jwcolby wrote: > >I did find out that there are 2 (kind of interesting) new properties for list boxes and combo >boxes I didn't know about. > > AddItem > > RemoveItem > >IIRC those only allow small lists though as the total size is somewhere around 2000 characters > >John W. Colby >www.ColbyConsulting.com > >On 12/17/2010 11:44 AM, Tony Septav wrote: > > >>Hey Drew >>Thanks, but it was slower. In checking out the callback function I did >>find out that there are 2 (kind of interesting) new properties for list >>boxes and combo boxes I didn't know about. >>AddItem >>RemoveItem >> >>Drew Wutka wrote: >> >> >> >>>Just tossing an idea into the ring for you. A little known method of >>>populating listboxes and combo boxes is with a callback function. I am >>>not sure if it will speed things up, but it might be worth a try. >>> >>>Drew >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>>Sent: Wednesday, December 15, 2010 2:14 PM >>>To: Access Developers discussion and problem solving >>>Subject: [AccessD] List Boxes >>> >>>Hey Lambert, John and Rocky >>>Thank you for your information. >>>I have a feeling I am "pushing the envelope", a list box works fine by >>>itself, it is clean and fast. But when one list box contents is based on >>> >>>the selection of another list box and so on and so on it slows the >>>whole process down. From your suggestions I have a couple ideas I will >>>try in the morning, got to get the speed up. The idea has potential, >>>currently it is just too slow. Anyway promised myself I would not get >>>into the Xmas frenzy again, by shopping for presents on the 23rd and >>>24th , so I am off to get the Xmas goodies. Without the goofy "presents >>>thing", I am probably like most of you and wish we had this Xmas feeling >>> >>>all year long. >>> >>>Thanks again >>> >>> >>> >>> From newsgrps at dalyn.co.nz Fri Dec 17 13:17:55 2010 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 18 Dec 2010 08:17:55 +1300 Subject: [AccessD] Form Field Renaming Itself In-Reply-To: References: <20101217051814.QGAW6965.mta03.xtra.co.nz@David-PC.dalyn.co.nz> <20101217074901.ZWDY13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20101217194422.WPIE13437.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Good point. However, in this case when I changed the Alias in the combo box to "Order Date" then the source for the main form field was also changed to "Order Date". Weird. David At 18/12/2010, Rocky Smolin wrote: >I learned from this list not to use variable names or aliases that are also >a reserved word. It makes Access neurotic. > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Thursday, December 16, 2010 11:48 PM >To: Access Developers discussion and problem solving; 'Access Developers >discussion and problem solving' >Subject: Re: [AccessD] Form Field Renaming Itself > >I tried that but it still wouldn't work. > >But in testing I found that the change was reflecting an alias that I had in >another combo box that was being used to select the record for the main >screen. That is, I had another combo which had the same table source as the >form source. When a record is selected in the combo box then the main form >was filtered to only show the same record. The OrderDate field in the combo >box had an alias of "Date" >for the combo header. When I removed the field alias in the filter box then >the problem stopped. It meant that I also hid the column headers for the >combo box to keep things tidy. This didn't answer why the combo box should >affect a field property but at least I have solved the problem. > >David > >At 17/12/2010, Rocky Smolin wrote: > >I'd try to work around it by renaming the field OrderDate in the table > >and in the source of the control. > > > >Rocky > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > >Emerson > >Sent: Thursday, December 16, 2010 9:08 PM > >To: Access Developers discussion and problem solving > >Subject: [AccessD] Form Field Renaming Itself > > > >Here is a weird one. > > > >Access XP mdb. I have a form with a field called txtOrderDate. The > >source is OrderDate. Whenever I make a change to the form and save it > >the source is changed to Date. I can change the source back to > >OrderDate and save the form OK, but if I change anything else on the > >form and save it the field source changes back to Date again. > > > >Also, if I change the > > > >I have cleared all the boxes in the autocorrect feature and this change > >is not in the lists. > > > >Decompile, repair and compact haven't helped. > > > >Importing all objects into a new database also didn't help. > > > >Any thoughts? > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >Wellington, New Zealand From accessd at shaw.ca Fri Dec 17 16:09:22 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 17 Dec 2010 14:09:22 -0800 Subject: [AccessD] Jobs In-Reply-To: References: Message-ID: There appear to be a number of computer jobs available in Middleton, Pennsylvania. Here is a link to the job site and detail...so if anyone is interested or knows someone who is....pass it along. Below is latest posted in the last month. http://information-technology.thingamajob.com/jobs/Pennsylvania/Database-Rep ort-Writer/2186931 Jim From jwcolby at colbyconsulting.com Fri Dec 17 18:06:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 17 Dec 2010 19:06:05 -0500 Subject: [AccessD] Jobs In-Reply-To: References: Message-ID: <4D0BFAED.3030403@colbyconsulting.com> You should see the jobs in Charlotte! John W. Colby www.ColbyConsulting.com On 12/17/2010 5:09 PM, Jim Lawrence wrote: > http://information-technology.thingamajob.com/jobs/Pennsylvania/Database-Rep > ort-Writer/2186931 From jwcolby at colbyconsulting.com Sat Dec 18 13:31:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 18 Dec 2010 14:31:39 -0500 Subject: [AccessD] And the beat goes on... Message-ID: <4D0D0C1B.8030907@colbyconsulting.com> http://thessdreview.com/latest-buzz/sandforce-firmware-update-confirmed-great-news-for-new-ssd-buyers/ -- John W. Colby www.ColbyConsulting.com From iggy at nanaimo.ark.com Sun Dec 19 10:05:16 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 19 Dec 2010 08:05:16 -0800 Subject: [AccessD] List Boxes Message-ID: <4D0E2D3C.9060602@nanaimo.ark.com> Hey All Not a biggy, just would like to know out of curiosity. I put a timer on my continuous forms to see how long it takes for the 9 queries to fire. Was trying to figure out what query was taking longer then the others, so maybe I could approach it a different way and increase the speed (many of the queries involve a set of sub queries). What I found was interesting. When clicking on a specific record I could get several different times to run all 9 queries and the times were random when running a the queries Times to complete in seconds 0.9999999997205 1.000000008 1.9999999998001 2.0000000016 I didn't matter what record I chose in the list I could get anyone of the various times recorded above to run all 9 queries. Does anyone know what would cause this??? From drawbridgej at sympatico.ca Sun Dec 19 11:55:34 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Sun, 19 Dec 2010 12:55:34 -0500 Subject: [AccessD] for vba issueMZTools Message-ID: Hi Folks, I was doing some review of vba code and was using my MZTools for VBA V3.0. I noticed the ProcedureCallers utility was not reporting any caller routines. I went to the MZTools site and saw I was using an older version, so downloaded the latest 3.0.1193. Installed it, and test the ProcedureCallers utility. Still nothing being reported??? Has anyone else got this situation? Has anyone had it and resolved it? Other features seem to be working fine. Any thoughts would be appreciated. Jack From df.waters at comcast.net Sun Dec 19 12:15:41 2010 From: df.waters at comcast.net (Dan Waters) Date: Sun, 19 Dec 2010 12:15:41 -0600 Subject: [AccessD] List Boxes In-Reply-To: <4D0E2D3C.9060602@nanaimo.ark.com> References: <4D0E2D3C.9060602@nanaimo.ark.com> Message-ID: <07AE28640A514A32B11743ADDF65B824@DanWaters> Hi Tony, I did this timing thing a couple of times. The problem is that access timing is only accurate to about a second, as your data shows. There is a function named GetTickCount which will give you time (I think) in milliseconds. Put the following code into the same module where you are calling the queries: ----------------------- Public Declare Function GetTickCount Lib "kernel32" () As Long Private MblnStartupTimes As Boolean Private MvarStartupTimes() As Variant Private MintProcedureCount As Integer Private MlngStart As Long ----------------------- Private Sub CollectStartupTimeInfo(stgProcedureName As String) Dim lngDuration As Long If MblnStartupTimes = False Then Exit Sub lngDuration = GetTickCount - MlngStart ReDim Preserve MvarStartupTimes(2, MintProcedureCount) MvarStartupTimes(0, MintProcedureCount) = Now() '-- Procedure Time MvarStartupTimes(1, MintProcedureCount) = stgProcedureName '-- Procedure Name MvarStartupTimes(2, MintProcedureCount) = lngDuration '-- Milliseconds MintProcedureCount = MintProcedureCount + 1 Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub ----------------------- Now in your procedure which calls the queries, add this code: ----------------------- Private Sub YourProcedure1() MlngStart = GetTickCount '-- Run Query 1 Call CollectStartupTimeInfo("YourProcedure1") End Sub ----------------------- Now, when you're done, put the array values into a table. (Obviously you need to rewrite this. ---------------------- DoCmd.SetWarnings False For intCount = 0 To UBound(MvarStartupTimes, 2) stg = "INSERT INTO tblAdminStartupTimes ( ProcedureTime, Person, ComputerName, ProcedureName, MilliSeconds ) IN '" & stgBEFullPath & "'" _ & " VALUES (#" & MvarStartupTimes(0, intCount) & "#, '" & stgCurrentPerson & "', '" & stgComputerName & "', '" & MvarStartupTimes(1, intCount) & "', " & MvarStartupTimes(2, intCount) & ")" DoCmd.RunSQL stg Next DoCmd.SetWarnings True ---------------------- You can also rearrange to run all this in one procedure. Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Sunday, December 19, 2010 10:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Boxes Hey All Not a biggy, just would like to know out of curiosity. I put a timer on my continuous forms to see how long it takes for the 9 queries to fire. Was trying to figure out what query was taking longer then the others, so maybe I could approach it a different way and increase the speed (many of the queries involve a set of sub queries). What I found was interesting. When clicking on a specific record I could get several different times to run all 9 queries and the times were random when running a the queries Times to complete in seconds 0.9999999997205 1.000000008 1.9999999998001 2.0000000016 I didn't matter what record I chose in the list I could get anyone of the various times recorded above to run all 9 queries. Does anyone know what would cause this??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From listmaster at databaseadvisors.com Sun Dec 19 13:08:22 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 19 Dec 2010 14:08:22 -0500 Subject: [AccessD] Administrivia - Server Upgrade - Dec 2010 Message-ID: Good day everyone. I hope your Christmas preparations are going well. During the last few months the mail server has been having some problems. So over the Christmas holiday the mail server that all your favourite lists run on will be undergoing a complete upgrade right from the OS to the mail server to the mailing list software. This will mean that there will be some outages of the lists. This outage will most likely happen on Wednesday Dec 29, 2010 starting around 8am ET (1pm GMT). I will send out a notice approx. 30 minutes prior to the server going down. As well, once everything is back up and running, I will send out another notice. If you have any concerns, please let me know. I can be reached at listmaster at databaseadvisors.com or carbonnb at gmail.com. Thanks, Your humble list master Bryan -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From gustav at cactus.dk Sun Dec 19 13:35:37 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Dec 2010 20:35:37 +0100 Subject: [AccessD] Administrivia - Server Upgrade - Dec 2010 Message-ID: Hi Bryan This could be the occasion to thank you for your great work behind the scene. I hope you will encounter zero problems during the upgrade. /gustav >>> listmaster at databaseadvisors.com 19-12-2010 20:08 >>> Good day everyone. I hope your Christmas preparations are going well. During the last few months the mail server has been having some problems. So over the Christmas holiday the mail server that all your favourite lists run on will be undergoing a complete upgrade right from the OS to the mail server to the mailing list software. This will mean that there will be some outages of the lists. This outage will most likely happen on Wednesday Dec 29, 2010 starting around 8am ET (1pm GMT). I will send out a notice approx. 30 minutes prior to the server going down. As well, once everything is back up and running, I will send out another notice. If you have any concerns, please let me know. I can be reached at listmaster at databaseadvisors.com or carbonnb at gmail.com. Thanks, Your humble list master Bryan From rlister at actuarial-files.com Sun Dec 19 14:46:00 2010 From: rlister at actuarial-files.com (Ralf Lister) Date: Sun, 19 Dec 2010 16:46:00 -0400 Subject: [AccessD] OT: Passing an Array in VBA Message-ID: <000f01cb9fbd$bfbb0050$3f3100f0$@com> Hello, Sorry to bother with an Excel 2007 problem. I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, manipulate Werte() there. Then the manipulated Werte()-Array is passed again to the main program. My Code: The main program Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single .. With Activesheet Select Case .Range("D" & "" & i + 1 & "").Value Case "ALICO" PopulateALICO Werte:=Werte, i:=1 Case "ANTIGUA" PopulateANTIGUA Werte:=Werte, i:=1 ... End Select The called procedure Sub PopulateALICO(ByRef Werte() As Single, i As Integer) .. **************************************************************************** ****** When I check in the main program, the array Werte() is still unmanipulated. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From andy at minstersystems.co.uk Sun Dec 19 15:07:54 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 19 Dec 2010 21:07:54 -0000 Subject: [AccessD] Administrivia - Server Upgrade - Dec 2010 In-Reply-To: Message-ID: Well said Gustav. Thanks for everything Bryan. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 19 December 2010 19:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Administrivia - Server Upgrade - Dec 2010 Hi Bryan This could be the occasion to thank you for your great work behind the scene. I hope you will encounter zero problems during the upgrade. /gustav >>> listmaster at databaseadvisors.com 19-12-2010 20:08 >>> Good day everyone. I hope your Christmas preparations are going well. During the last few months the mail server has been having some problems. So over the Christmas holiday the mail server that all your favourite lists run on will be undergoing a complete upgrade right from the OS to the mail server to the mailing list software. This will mean that there will be some outages of the lists. This outage will most likely happen on Wednesday Dec 29, 2010 starting around 8am ET (1pm GMT). I will send out a notice approx. 30 minutes prior to the server going down. As well, once everything is back up and running, I will send out another notice. If you have any concerns, please let me know. I can be reached at listmaster at databaseadvisors.com or carbonnb at gmail.com. Thanks, Your humble list master Bryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 19 15:41:54 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 19 Dec 2010 13:41:54 -0800 Subject: [AccessD] Administrivia - Server Upgrade - Dec 2010 In-Reply-To: References: Message-ID: At the risk of saying "me too"... Thanks again Bryan for keeping everything runninng. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Sunday, December 19, 2010 1:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Administrivia - Server Upgrade - Dec 2010 Well said Gustav. Thanks for everything Bryan. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 19 December 2010 19:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Administrivia - Server Upgrade - Dec 2010 Hi Bryan This could be the occasion to thank you for your great work behind the scene. I hope you will encounter zero problems during the upgrade. /gustav >>> listmaster at databaseadvisors.com 19-12-2010 20:08 >>> Good day everyone. I hope your Christmas preparations are going well. During the last few months the mail server has been having some problems. So over the Christmas holiday the mail server that all your favourite lists run on will be undergoing a complete upgrade right from the OS to the mail server to the mailing list software. This will mean that there will be some outages of the lists. This outage will most likely happen on Wednesday Dec 29, 2010 starting around 8am ET (1pm GMT). I will send out a notice approx. 30 minutes prior to the server going down. As well, once everything is back up and running, I will send out another notice. If you have any concerns, please let me know. I can be reached at listmaster at databaseadvisors.com or carbonnb at gmail.com. Thanks, Your humble list master Bryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Sun Dec 19 18:04:13 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 20 Dec 2010 01:04:13 +0100 Subject: [AccessD] OT: Passing an Array in VBA In-Reply-To: <000f01cb9fbd$bfbb0050$3f3100f0$@com> References: <000f01cb9fbd$bfbb0050$3f3100f0$@com> Message-ID: Don't see why your code shouldn't work. But BTW I don't like multidimensional arrays because you can't data type the dimensions. When in need of an array with more than one dimension I always create a TYPE procedure to define a data type with the wanted dimensions and data types, then create a one dimensional array using that data type. Don't know if this hurts performance compared to a multidimensional array - but it's simpler and (crucial) offers data constraint. Any objections? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Ralf Lister Sendt: 19. december 2010 21:46 Til: accessd at databaseadvisors.com Emne: [AccessD] OT: Passing an Array in VBA Hello, Sorry to bother with an Excel 2007 problem. I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, manipulate Werte() there. Then the manipulated Werte()-Array is passed again to the main program. My Code: The main program Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single .. With Activesheet Select Case .Range("D" & "" & i + 1 & "").Value Case "ALICO" PopulateALICO Werte:=Werte, i:=1 Case "ANTIGUA" PopulateANTIGUA Werte:=Werte, i:=1 ... End Select The called procedure Sub PopulateALICO(ByRef Werte() As Single, i As Integer) .. **************************************************************************** ****** When I check in the main program, the array Werte() is still unmanipulated. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From marksimms at verizon.net Sun Dec 19 18:43:14 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 19 Dec 2010 19:43:14 -0500 Subject: [AccessD] And the beat goes on... In-Reply-To: <4D0D0C1B.8030907@colbyconsulting.com> References: <4D0D0C1B.8030907@colbyconsulting.com> Message-ID: <007501cb9fde$e2eefba0$a8ccf2e0$@net> Good stuff John....and totally amazing that venerable Western Digital is on the BOTTOM of the heap performance-wise ! I wonder when exactly the Sandforce controllers are going to out in circulation. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, December 18, 2010 2:32 PM > To: Access Developers discussion and problem solving; VBA; Sqlserver- > Dba > Subject: [AccessD] And the beat goes on... > > > > http://thessdreview.com/latest-buzz/sandforce-firmware-update- > confirmed-great-news-for-new-ssd-buyers/ > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sun Dec 19 20:38:23 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sun, 19 Dec 2010 19:38:23 -0700 Subject: [AccessD] OT: Passing an Array in VBA In-Reply-To: <000f01cb9fbd$bfbb0050$3f3100f0$@com> References: <000f01cb9fbd$bfbb0050$3f3100f0$@com> Message-ID: In Access VBA I always pass arrays to receiving variant variable without the trailing (). I've had problems trying to pass them as arrays of a declared type. I also generally rename the recieving variable even if passed By Ref. Sub PopulateALICO(WerteIn As Variant, i As Integer) This is exactly how I pass an array for processing, like to a sort procedure. In the example below, I've got a form module level declared variant, mvArTemplates, that needs to be sorted ascending or descending on one of the columns. The sort procedure also receives the number of columns to be received: Caller: qSort mvArTemplates, lngColumn, blnAsc, 4 SubRoutine" Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From: rlister at actuarial-files.com To: accessd at databaseadvisors.com Date: Sun, 19 Dec 2010 16:46:00 -0400 Subject: [AccessD] OT: Passing an Array in VBA Hello, Sorry to bother with an Excel 2007 problem. I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, manipulate Werte() there. Then the manipulated Werte()-Array is passed again to the main program. My Code: The main program Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single .. With Activesheet Select Case .Range("D" & "" & i + 1 & "").Value Case "ALICO" PopulateALICO Werte:=Werte, i:=1 Case "ANTIGUA" PopulateANTIGUA Werte:=Werte, i:=1 ... End Select The called procedure Sub PopulateALICO(ByRef Werte() As Single, i As Integer) .. **************************************************************************** ****** When I check in the main program, the array Werte() is still unmanipulated. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Dec 19 22:08:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 19 Dec 2010 23:08:55 -0500 Subject: [AccessD] OT: Passing an Array in VBA In-Reply-To: References: <000f01cb9fbd$bfbb0050$3f3100f0$@com> Message-ID: <4D0ED6D7.10907@colbyconsulting.com> I like the datatype as well. John W. Colby www.ColbyConsulting.com On 12/19/2010 7:04 PM, Asger Blond wrote: > Don't see why your code shouldn't work. > But BTW I don't like multidimensional arrays because you can't data type the dimensions. > When in need of an array with more than one dimension I always create a TYPE procedure to define a data type with the wanted dimensions and data types, then create a one dimensional array using that data type. > Don't know if this hurts performance compared to a multidimensional array - but it's simpler and (crucial) offers data constraint. Any objections? > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Ralf Lister > Sendt: 19. december 2010 21:46 > Til: accessd at databaseadvisors.com > Emne: [AccessD] OT: Passing an Array in VBA > > Hello, > > > > Sorry to bother with an Excel 2007 problem. > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, > manipulate Werte() there. Then the manipulated Werte()-Array is passed again > to the main program. > > > > My Code: > > The main program > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > .. > > With Activesheet > > Select Case .Range("D"& ""& i + 1& "").Value > > Case "ALICO" > > PopulateALICO Werte:=Werte, i:=1 > > Case "ANTIGUA" > > PopulateANTIGUA Werte:=Werte, i:=1 > > ... > > End Select > > > > The called procedure > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > .. > > **************************************************************************** > ****** > > When I check in the main program, the array Werte() is still unmanipulated. > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Registrado en ASFI > > No. Registro: Act.Mat. 001 > > NIT: 1016725022 > > Skype Name: ralf.martin.lister > > Tel.: 222 26 61, Cel. 70136531 > > rlister at actuarial-files.com > > www.actuarial-files.com > > Environment > > > > > From jwcolby at colbyconsulting.com Sun Dec 19 22:09:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 19 Dec 2010 23:09:31 -0500 Subject: [AccessD] And the beat goes on... In-Reply-To: <007501cb9fde$e2eefba0$a8ccf2e0$@net> References: <4D0D0C1B.8030907@colbyconsulting.com> <007501cb9fde$e2eefba0$a8ccf2e0$@net> Message-ID: <4D0ED6FB.1010708@colbyconsulting.com> It appears that they are already. Look at the advertised IOPS on this one. http://www.newegg.com/Product/Product.aspx?Item=N82E16820226151 http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100008120%2050001504&IsNodeId=1&name=Mushkin%20Enhanced John W. Colby www.ColbyConsulting.com On 12/19/2010 7:43 PM, Mark Simms wrote: > Good stuff John....and totally amazing that venerable Western Digital is on > the BOTTOM of the heap performance-wise ! > I wonder when exactly the Sandforce controllers are going to out in > circulation. > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd- >> bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, December 18, 2010 2:32 PM >> To: Access Developers discussion and problem solving; VBA; Sqlserver- >> Dba >> Subject: [AccessD] And the beat goes on... >> >> >> >> http://thessdreview.com/latest-buzz/sandforce-firmware-update- >> confirmed-great-news-for-new-ssd-buyers/ >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > From iggy at nanaimo.ark.com Mon Dec 20 09:17:56 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 20 Dec 2010 07:17:56 -0800 Subject: [AccessD] List Boxes In-Reply-To: <07AE28640A514A32B11743ADDF65B824@DanWaters> References: <4D0E2D3C.9060602@nanaimo.ark.com> <07AE28640A514A32B11743ADDF65B824@DanWaters> Message-ID: <4D0F73A4.9040802@nanaimo.ark.com> Hey Dan Thanks, tried it out and I am still getting jumps (no rhyme or reason) going up and down the list and also selecting the same record several times. I get a range from 1219 to 2141 when running the queries and this can vary if I close and open the form again. Oh well, I guess I will just have to live with it. Thanks again. Dan Waters wrote: >Hi Tony, > >I did this timing thing a couple of times. The problem is that access >timing is only accurate to about a second, as your data shows. There is a >function named GetTickCount which will give you time (I think) in >milliseconds. > > >Put the following code into the same module where you are calling the >queries: > >----------------------- >Public Declare Function GetTickCount Lib "kernel32" () As Long > >Private MblnStartupTimes As Boolean >Private MvarStartupTimes() As Variant >Private MintProcedureCount As Integer >Private MlngStart As Long > >----------------------- >Private Sub CollectStartupTimeInfo(stgProcedureName As String) > > Dim lngDuration As Long > > If MblnStartupTimes = False Then Exit Sub > > lngDuration = GetTickCount - MlngStart > > ReDim Preserve MvarStartupTimes(2, MintProcedureCount) > > MvarStartupTimes(0, MintProcedureCount) = Now() '-- >Procedure Time > MvarStartupTimes(1, MintProcedureCount) = stgProcedureName '-- >Procedure Name > MvarStartupTimes(2, MintProcedureCount) = lngDuration '-- >Milliseconds > > MintProcedureCount = MintProcedureCount + 1 > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > >End Sub >----------------------- > >Now in your procedure which calls the queries, add this code: > >----------------------- >Private Sub YourProcedure1() > > MlngStart = GetTickCount > > '-- Run Query 1 > > Call CollectStartupTimeInfo("YourProcedure1") > >End Sub >----------------------- > >Now, when you're done, put the array values into a table. (Obviously you >need to rewrite this. >---------------------- > DoCmd.SetWarnings False > For intCount = 0 To UBound(MvarStartupTimes, 2) > stg = "INSERT INTO tblAdminStartupTimes ( ProcedureTime, Person, >ComputerName, ProcedureName, MilliSeconds ) IN '" & stgBEFullPath & "'" _ > & " VALUES (#" & MvarStartupTimes(0, intCount) & "#, '" & >stgCurrentPerson & "', '" & stgComputerName & "', '" & MvarStartupTimes(1, >intCount) & "', " & MvarStartupTimes(2, intCount) & ")" > DoCmd.RunSQL stg > Next > DoCmd.SetWarnings True >---------------------- > >You can also rearrange to run all this in one procedure. > >Good Luck, >Dan > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Sunday, December 19, 2010 10:05 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] List Boxes > >Hey All >Not a biggy, just would like to know out of curiosity. >I put a timer on my continuous forms to see how long it takes for the 9 >queries to fire. Was trying to figure out what query was taking longer >then the others, so maybe I could approach it a different way and >increase the speed (many of the queries involve a set of sub queries). >What I found was interesting. When clicking on a specific record I >could get several different times to run all 9 queries and the times >were random when running a the queries >Times to complete in seconds >0.9999999997205 >1.000000008 >1.9999999998001 >2.0000000016 >I didn't matter what record I chose in the list I could get anyone of >the various times recorded above to run all 9 queries. Does anyone know >what would cause this??? > > > From rockysmolin at bchacc.com Mon Dec 20 10:40:26 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 20 Dec 2010 08:40:26 -0800 Subject: [AccessD] OT: Passing an Array in VBA] Message-ID: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> -------- Original Message -------- Subject: RE: [AccessD] OT: Passing an Array in VBA From: Date: Sun, December 19, 2010 8:50 pm To: "Access Developers discussion and problem solving" At the risk of being flamed might I suggest making the array Global -then you don't have to pass it anywhere, it's available to the whole program as is. I know many people live in fear and loathing of globals but really, they're quite innocuous. Globals are our friends. Rocky -------- Original Message -------- Subject: Re: [AccessD] OT: Passing an Array in VBA From: Jurgen Welz Date: Sun, December 19, 2010 7:38 pm To: In Access VBA I always pass arrays to receiving variant variable without the trailing (). I've had problems trying to pass them as arrays of a declared type. I also generally rename the recieving variable even if passed By Ref. Sub PopulateALICO(WerteIn As Variant, i As Integer) This is exactly how I pass an array for processing, like to a sort procedure. In the example below, I've got a form module level declared variant, mvArTemplates, that needs to be sorted ascending or descending on one of the columns. The sort procedure also receives the number of columns to be received: Caller: qSort mvArTemplates, lngColumn, blnAsc, 4 SubRoutine" Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From: rlister at actuarial-files.com To: accessd at databaseadvisors.com Date: Sun, 19 Dec 2010 16:46:00 -0400 Subject: [AccessD] OT: Passing an Array in VBA Hello, Sorry to bother with an Excel 2007 problem. I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, manipulate Werte() there. Then the manipulated Werte()-Array is passed again to the main program. My Code: The main program Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single .. With Activesheet Select Case .Range("D" & "" & i + 1 & "").Value Case "ALICO" PopulateALICO Werte:=Werte, i:=1 Case "ANTIGUA" PopulateANTIGUA Werte:=Werte, i:=1 ... End Select The called procedure Sub PopulateALICO(ByRef Werte() As Single, i As Integer) .. **************************************************************************** ****** When I check in the main program, the array Werte() is still unmanipulated. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Dec 20 11:00:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 20 Dec 2010 12:00:35 -0500 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> Message-ID: <4D0F8BB3.6020202@colbyconsulting.com> >I know many people live in fear and loathing of globals but really, they're quite innocuous. Globals are our friends. LOL. John W. Colby www.ColbyConsulting.com On 12/20/2010 11:40 AM, Rocky Smolin wrote: > -------- Original Message -------- > Subject: RE: [AccessD] OT: Passing an Array in VBA > From: > Date: Sun, December 19, 2010 8:50 pm > To: "Access Developers discussion and problem solving" > > > > At the risk of being flamed might I suggest making the array Global -then > you don't have to pass it anywhere, it's available to the whole program as > is. I know many people live in fear and loathing of globals but really, > they're quite innocuous. Globals are our friends. > > Rocky From drawbridgej at sympatico.ca Mon Dec 20 11:02:13 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 20 Dec 2010 12:02:13 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: Message-ID: I have uninstalled the program and reinstalled it. Same result - ProcedureCallers window is not showing??? Any thoughts? Thanks jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Sunday, December 19, 2010 12:56 PM To: accessd at databaseadvisors.com Subject: [AccessD] for vba issueMZTools Hi Folks, I was doing some review of vba code and was using my MZTools for VBA V3.0. I noticed the ProcedureCallers utility was not reporting any caller routines. I went to the MZTools site and saw I was using an older version, so downloaded the latest 3.0.1193. Installed it, and test the ProcedureCallers utility. Still nothing being reported??? Has anyone else got this situation? Has anyone had it and resolved it? Other features seem to be working fine. Any thoughts would be appreciated. Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Mon Dec 20 11:09:28 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 20 Dec 2010 12:09:28 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: Message-ID: The *Windows* is not showing , or it shows up with nothing listed in it? If it's just the windows not showing up then perhaps it is being displayed 'off-screen'. In which case cascading the windows on your system should take care of that. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Monday, December 20, 2010 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MZTools for vba issue I have uninstalled the program and reinstalled it. Same result - ProcedureCallers window is not showing??? Any thoughts? Thanks jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Sunday, December 19, 2010 12:56 PM To: accessd at databaseadvisors.com Subject: [AccessD] for vba issueMZTools Hi Folks, I was doing some review of vba code and was using my MZTools for VBA V3.0. I noticed the ProcedureCallers utility was not reporting any caller routines. I went to the MZTools site and saw I was using an older version, so downloaded the latest 3.0.1193. Installed it, and test the ProcedureCallers utility. Still nothing being reported??? Has anyone else got this situation? Has anyone had it and resolved it? Other features seem to be working fine. Any thoughts would be appreciated. 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 jackandpat.d at gmail.com Mon Dec 20 11:27:26 2010 From: jackandpat.d at gmail.com (jack drawbridge) Date: Mon, 20 Dec 2010 12:27:26 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: Message-ID: Hey Lambert, Thank you. That's exactly what happened. I just tried it again and then did a move on a frame. The ProcedureCallers showed up between Immediate Window and Locals. Thanks again. I've been using MZTools for a long time and have not had this situation before. Jack On Mon, Dec 20, 2010 at 12:09 PM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > The *Windows* is not showing , or it shows up with nothing listed in it? > > If it's just the windows not showing up then perhaps it is being displayed > 'off-screen'. In which case cascading the windows on your system should take > care of that. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat > Sent: Monday, December 20, 2010 12:02 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > I have uninstalled the program and reinstalled it. Same result - > ProcedureCallers window is not showing??? > Any thoughts? > > Thanks > > jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat > Sent: Sunday, December 19, 2010 12:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] for vba issueMZTools > > Hi Folks, > > > > I was doing some review of vba code and was using my MZTools for VBA V3.0. > I noticed the ProcedureCallers utility was not reporting any caller > routines. > I went to the MZTools site and saw I was using an older version, so > downloaded the latest 3.0.1193. Installed it, and test the ProcedureCallers > utility. Still nothing being reported??? > > Has anyone else got this situation? Has anyone had it and resolved it? > > > > Other features seem to be working fine. > > > > Any thoughts would be appreciated. > > > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Dec 20 12:11:50 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 20 Dec 2010 13:11:50 -0500 Subject: [AccessD] Multiple instances of SQl Server express Message-ID: <4D0F9C66.6000300@colbyconsulting.com> I have a client using Access BEs which I would like to move to SQL Server Express. The biggest issue in my mind is near term expansion. One reason we need to move is simply that we have already split the BEs a couple of times to keep the size reasonable. We have a BE at 850 MB, 750MB and 500 MB. These are just too big for Access IMHO. OTOH merging them all back into a single SQL Server express BE would result in a pretty large database (by Express standards), although it appears that they did increase the SSE 2008 limitation to 10 gigs. Is anyone using SS Express to try to run a small business - under 50 employees, ~25 users in the db most of the day? Any insights, gotchas, words of wisdom? -- John W. Colby www.ColbyConsulting.com From rusty.hammond at cpiqpc.com Mon Dec 20 12:27:55 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Mon, 20 Dec 2010 12:27:55 -0600 Subject: [AccessD] Multiple instances of SQl Server express In-Reply-To: <4D0F9C66.6000300@colbyconsulting.com> References: <4D0F9C66.6000300@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDCFF@CPIEMAIL-EVS1.CPIQPC.NET> I'm running one with ~25 users on the system and in the database most of the day. My database size is only about 100MB but have had no issues. It's a backend for an Access front end. I'm running SSE 2005 on a MS Small Business Server 2003 machine. That same instance of SSE is running the backend database for Vipre Enterprise. HTH Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, December 20, 2010 12:12 PM To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba Subject: [AccessD] Multiple instances of SQl Server express I have a client using Access BEs which I would like to move to SQL Server Express. The biggest issue in my mind is near term expansion. One reason we need to move is simply that we have already split the BEs a couple of times to keep the size reasonable. We have a BE at 850 MB, 750MB and 500 MB. These are just too big for Access IMHO. OTOH merging them all back into a single SQL Server express BE would result in a pretty large database (by Express standards), although it appears that they did increase the SSE 2008 limitation to 10 gigs. Is anyone using SS Express to try to run a small business - under 50 employees, ~25 users in the db most of the day? Any insights, gotchas, words of wisdom? -- John W. Colby www.ColbyConsulting.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 Lambert.Heenan at chartisinsurance.com Mon Dec 20 12:28:17 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 20 Dec 2010 13:28:17 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: Message-ID: Jack, Good to hear it's solved. Life without MZ tools would be just that bit more difficult! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Monday, December 20, 2010 12:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZTools for vba issue Hey Lambert, Thank you. That's exactly what happened. I just tried it again and then did a move on a frame. The ProcedureCallers showed up between Immediate Window and Locals. Thanks again. I've been using MZTools for a long time and have not had this situation before. Jack On Mon, Dec 20, 2010 at 12:09 PM, Heenan, Lambert < Lambert.Heenan at chartisinsurance.com> wrote: > The *Windows* is not showing , or it shows up with nothing listed in it? > > If it's just the windows not showing up then perhaps it is being > displayed 'off-screen'. In which case cascading the windows on your > system should take care of that. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat > Sent: Monday, December 20, 2010 12:02 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > I have uninstalled the program and reinstalled it. Same result - > ProcedureCallers window is not showing??? > Any thoughts? > > Thanks > > jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and > Pat > Sent: Sunday, December 19, 2010 12:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] for vba issueMZTools > > Hi Folks, > > > > I was doing some review of vba code and was using my MZTools for VBA V3.0. > I noticed the ProcedureCallers utility was not reporting any caller > routines. > I went to the MZTools site and saw I was using an older version, so > downloaded the latest 3.0.1193. Installed it, and test the > ProcedureCallers utility. Still nothing being reported??? > > Has anyone else got this situation? Has anyone had it and resolved it? > > > > Other features seem to be working fine. > > > > Any thoughts would be appreciated. > > > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Dec 20 13:05:37 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 20 Dec 2010 13:05:37 -0600 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> Message-ID: LOL... I use Global class objects all the time.... They are our friends! LOL ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, December 20, 2010 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Passing an Array in VBA] -------- Original Message -------- Subject: RE: [AccessD] OT: Passing an Array in VBA From: Date: Sun, December 19, 2010 8:50 pm To: "Access Developers discussion and problem solving" At the risk of being flamed might I suggest making the array Global -then you don't have to pass it anywhere, it's available to the whole program as is. I know many people live in fear and loathing of globals but really, they're quite innocuous. Globals are our friends. Rocky -------- Original Message -------- Subject: Re: [AccessD] OT: Passing an Array in VBA From: Jurgen Welz Date: Sun, December 19, 2010 7:38 pm To: In Access VBA I always pass arrays to receiving variant variable without the trailing (). I've had problems trying to pass them as arrays of a declared type. I also generally rename the recieving variable even if passed By Ref. Sub PopulateALICO(WerteIn As Variant, i As Integer) This is exactly how I pass an array for processing, like to a sort procedure. In the example below, I've got a form module level declared variant, mvArTemplates, that needs to be sorted ascending or descending on one of the columns. The sort procedure also receives the number of columns to be received: Caller: qSort mvArTemplates, lngColumn, blnAsc, 4 SubRoutine" Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From: rlister at actuarial-files.com To: accessd at databaseadvisors.com Date: Sun, 19 Dec 2010 16:46:00 -0400 Subject: [AccessD] OT: Passing an Array in VBA Hello, Sorry to bother with an Excel 2007 problem. I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, manipulate Werte() there. Then the manipulated Werte()-Array is passed again to the main program. My Code: The main program Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single .. With Activesheet Select Case .Range("D" & "" & i + 1 & "").Value Case "ALICO" PopulateALICO Werte:=Werte, i:=1 Case "ANTIGUA" PopulateANTIGUA Werte:=Werte, i:=1 ... End Select The called procedure Sub PopulateALICO(ByRef Werte() As Single, i As Integer) .. **************************************************************************** ****** When I check in the main program, the array Werte() is still unmanipulated. Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Business Sensitive 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 Dec 20 13:21:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 20 Dec 2010 14:21:31 -0500 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> Message-ID: <4D0FACBB.1030008@colbyconsulting.com> I use a global framework class pointer. ;) John W. Colby www.ColbyConsulting.com On 12/20/2010 2:05 PM, Drew Wutka wrote: > LOL... I use Global class objects all the time.... > > They are our friends! LOL ;) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, December 20, 2010 10:40 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Passing an Array in VBA] > > -------- Original Message -------- > Subject: RE: [AccessD] OT: Passing an Array in VBA > From: > Date: Sun, December 19, 2010 8:50 pm > To: "Access Developers discussion and problem solving" > > > > At the risk of being flamed might I suggest making the array Global -then > you don't have to pass it anywhere, it's available to the whole program as > is. I know many people live in fear and loathing of globals but really, > they're quite innocuous. Globals are our friends. > > Rocky > > > > > -------- Original Message -------- > Subject: Re: [AccessD] OT: Passing an Array in VBA > From: Jurgen Welz > Date: Sun, December 19, 2010 7:38 pm > To: > > > In Access VBA I always pass arrays to receiving variant variable without the > trailing (). I've had problems trying to pass them as arrays of a declared > type. I also generally rename the recieving variable even if passed By Ref. > > Sub PopulateALICO(WerteIn As Variant, i As Integer) > > This is exactly how I pass an array for processing, like to a sort > procedure. In the example below, I've got a form module level declared > variant, mvArTemplates, that needs to be sorted ascending or descending on > one of the columns. The sort procedure also receives the number of columns > to be received: > > Caller: > qSort mvArTemplates, lngColumn, blnAsc, 4 > > SubRoutine" > Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As Long, > Optional lngL As _ > Long = -2, Optional lngR As Long = -2) > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > From: rlister at actuarial-files.com > To: accessd at databaseadvisors.com > Date: Sun, 19 Dec 2010 16:46:00 -0400 > Subject: [AccessD] OT: Passing an Array in VBA > > Hello, > > > > Sorry to bother with an Excel 2007 problem. > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a Procedure, > manipulate Werte() there. Then the manipulated Werte()-Array is passed again > to the main program. > > > > My Code: > > The main program > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > .. > > With Activesheet > > Select Case .Range("D"& ""& i + 1& "").Value > > Case "ALICO" > > PopulateALICO Werte:=Werte, i:=1 > > Case "ANTIGUA" > > PopulateANTIGUA Werte:=Werte, i:=1 > > ... > > End Select > > > > The called procedure > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > .. > > **************************************************************************** > ****** > > When I check in the main program, the array Werte() is still unmanipulated. > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Registrado en ASFI > > No. Registro: Act.Mat. 001 > > NIT: 1016725022 > > Skype Name: ralf.martin.lister > > Tel.: 222 26 61, Cel. 70136531 > > rlister at actuarial-files.com > > www.actuarial-files.com > > Environment > > > > > -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com From john at winhaven.net Mon Dec 20 14:16:07 2010 From: john at winhaven.net (John Bartow) Date: Mon, 20 Dec 2010 14:16:07 -0600 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: Message-ID: <016601cba082$bddc38b0$3994aa10$@winhaven.net> What are the features of MZ Tools that people here use the like the most? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Good to hear it's solved. Life without MZ tools would be just that bit more difficult! Lambert From davidmcafee at gmail.com Mon Dec 20 14:21:40 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 20 Dec 2010 12:21:40 -0800 Subject: [AccessD] MZTools for vba issue In-Reply-To: <016601cba082$bddc38b0$3994aa10$@winhaven.net> References: <016601cba082$bddc38b0$3994aa10$@winhaven.net> Message-ID: I love the Error handler adder and (now that Lambert has shown me) the Review Source code. David McAfee On Mon, Dec 20, 2010 at 12:16 PM, John Bartow wrote: > What are the features of MZ Tools that people here use the like the most? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > > Good to hear it's solved. Life without MZ tools would be just that bit more > difficult! > > Lambert > > -- > 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 Dec 20 14:29:06 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 20 Dec 2010 15:29:06 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: References: <016601cba082$bddc38b0$3994aa10$@winhaven.net> Message-ID: I habitually use the Add Procedure tool, as opposed to the native way of doing the same. I use lots of other features too, and it's tough to select a few favourites. Arthur On Mon, Dec 20, 2010 at 3:21 PM, David McAfee wrote: > I love the Error handler adder and (now that Lambert has shown me) the > Review Source code. > > > David McAfee > > On Mon, Dec 20, 2010 at 12:16 PM, John Bartow wrote: > > > What are the features of MZ Tools that people here use the like the most? > > > From stuart at lexacorp.com.pg Mon Dec 20 15:51:42 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 21 Dec 2010 07:51:42 +1000 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> Message-ID: <4D0FCFEE.25681.1E0EA7A1@stuart.lexacorp.com.pg> I concur, but it is generally a good idea to stick to the principle of "write in one place, read in many" :-) -- Stuart On 20 Dec 2010 at 8:40, Rocky Smolin wrote: > -------- Original Message -------- > Subject: RE: [AccessD] OT: Passing an Array in VBA > From: > Date: Sun, December 19, 2010 8:50 pm > To: "Access Developers discussion and problem solving" > > > > At the risk of being flamed might I suggest making the array Global > -then you don't have to pass it anywhere, it's available to the whole > program as is. I know many people live in fear and loathing of > globals but really, they're quite innocuous. Globals are our friends. > > Rocky > > > > > -------- Original Message -------- > Subject: Re: [AccessD] OT: Passing an Array in VBA > From: Jurgen Welz > Date: Sun, December 19, 2010 7:38 pm > To: > > > In Access VBA I always pass arrays to receiving variant variable > without the trailing (). I've had problems trying to pass them as > arrays of a declared type. I also generally rename the recieving > variable even if passed By Ref. > > Sub PopulateALICO(WerteIn As Variant, i As Integer) > > This is exactly how I pass an array for processing, like to a sort > procedure. In the example below, I've got a form module level declared > variant, mvArTemplates, that needs to be sorted ascending or > descending on one of the columns. The sort procedure also receives the > number of columns to be received: > > Caller: > qSort mvArTemplates, lngColumn, blnAsc, 4 > > SubRoutine" > Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As > Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > From: rlister at actuarial-files.com > To: accessd at databaseadvisors.com > Date: Sun, 19 Dec 2010 16:46:00 -0400 > Subject: [AccessD] OT: Passing an Array in VBA > > Hello, > > > > Sorry to bother with an Excel 2007 problem. > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a > Procedure, manipulate Werte() there. Then the manipulated > Werte()-Array is passed again to the main program. > > > > My Code: > > The main program > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > .. > > With Activesheet > > Select Case .Range("D" & "" & i + 1 & "").Value > > Case "ALICO" > > PopulateALICO Werte:=Werte, i:=1 > > Case "ANTIGUA" > > PopulateANTIGUA Werte:=Werte, i:=1 > > ... > > End Select > > > > The called procedure > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > .. > > ********************************************************************** > ****** ****** > > When I check in the main program, the array Werte() is still > unmanipulated. > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Registrado en ASFI > > No. Registro: Act.Mat. 001 > > NIT: 1016725022 > > Skype Name: ralf.martin.lister > > Tel.: 222 26 61, Cel. 70136531 > > rlister at actuarial-files.com > > www.actuarial-files.com > > Environment > > > > > -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at chartisinsurance.com Mon Dec 20 16:00:13 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 20 Dec 2010 17:00:13 -0500 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: <4D0FCFEE.25681.1E0EA7A1@stuart.lexacorp.com.pg> References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005> <4D0FCFEE.25681.1E0EA7A1@stuart.lexacorp.com.pg> Message-ID: Which is the trouble with globals use carelessly. It is impossible to *enforce* writing in only one place. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, December 20, 2010 4:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Passing an Array in VBA] I concur, but it is generally a good idea to stick to the principle of "write in one place, read in many" :-) -- Stuart On 20 Dec 2010 at 8:40, Rocky Smolin wrote: > -------- Original Message -------- > Subject: RE: [AccessD] OT: Passing an Array in VBA > From: > Date: Sun, December 19, 2010 8:50 pm > To: "Access Developers discussion and problem solving" > > > > At the risk of being flamed might I suggest making the array Global > -then you don't have to pass it anywhere, it's available to the whole > program as is. I know many people live in fear and loathing of > globals but really, they're quite innocuous. Globals are our friends. > > Rocky > > > > > -------- Original Message -------- > Subject: Re: [AccessD] OT: Passing an Array in VBA > From: Jurgen Welz > Date: Sun, December 19, 2010 7:38 pm > To: > > > In Access VBA I always pass arrays to receiving variant variable > without the trailing (). I've had problems trying to pass them as > arrays of a declared type. I also generally rename the recieving > variable even if passed By Ref. > > Sub PopulateALICO(WerteIn As Variant, i As Integer) > > This is exactly how I pass an array for processing, like to a sort > procedure. In the example below, I've got a form module level declared > variant, mvArTemplates, that needs to be sorted ascending or > descending on one of the columns. The sort procedure also receives the > number of columns to be received: > > Caller: > qSort mvArTemplates, lngColumn, blnAsc, 4 > > SubRoutine" > Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol As > Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > From: rlister at actuarial-files.com > To: accessd at databaseadvisors.com > Date: Sun, 19 Dec 2010 16:46:00 -0400 > Subject: [AccessD] OT: Passing an Array in VBA > > Hello, > > > > Sorry to bother with an Excel 2007 problem. > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a > Procedure, manipulate Werte() there. Then the manipulated > Werte()-Array is passed again to the main program. > > > > My Code: > > The main program > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > .. > > With Activesheet > > Select Case .Range("D" & "" & i + 1 & "").Value > > Case "ALICO" > > PopulateALICO Werte:=Werte, i:=1 > > Case "ANTIGUA" > > PopulateANTIGUA Werte:=Werte, i:=1 > > ... > > End Select > > > > The called procedure > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > .. > > ********************************************************************** > ****** ****** > > When I check in the main program, the array Werte() is still > unmanipulated. > > > > Saludos > > Actuary Ralf Lister > > La Paz, Bolivia > > Registrado en ASFI > > No. Registro: Act.Mat. 001 > > NIT: 1016725022 > > Skype Name: ralf.martin.lister > > Tel.: 222 26 61, Cel. 70136531 > > rlister at actuarial-files.com > > www.actuarial-files.com > > Environment > > > > > -- AccessD mailing list AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Dec 20 16:13:57 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 21 Dec 2010 08:13:57 +1000 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005>, <4D0FCFEE.25681.1E0EA7A1@stuart.lexacorp.com.pg>, Message-ID: <4D0FD525.23383.1E230616@stuart.lexacorp.com.pg> But *we* don't use them carelessly do we :-) -- Stuart On 20 Dec 2010 at 17:00, Heenan, Lambert wrote: > Which is the trouble with globals use carelessly. It is impossible to > *enforce* writing in only one place. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Monday, December 20, 2010 4:52 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] OT: > Passing an Array in VBA] > > I concur, but it is generally a good idea to stick to the principle > of "write in one place, read in many" :-) > > -- > Stuart > > On 20 Dec 2010 at 8:40, Rocky Smolin wrote: > > > -------- Original Message -------- > > Subject: RE: [AccessD] OT: Passing an Array in VBA > > From: > > Date: Sun, December 19, 2010 8:50 pm > > To: "Access Developers discussion and problem solving" > > > > > > > > At the risk of being flamed might I suggest making the array Global > > -then you don't have to pass it anywhere, it's available to the > > whole program as is. I know many people live in fear and loathing > > of globals but really, they're quite innocuous. Globals are our > > friends. > > > > Rocky > > > > > > > > > > -------- Original Message -------- > > Subject: Re: [AccessD] OT: Passing an Array in VBA > > From: Jurgen Welz > > Date: Sun, December 19, 2010 7:38 pm > > To: > > > > > > In Access VBA I always pass arrays to receiving variant variable > > without the trailing (). I've had problems trying to pass them as > > arrays of a declared type. I also generally rename the recieving > > variable even if passed By Ref. > > > > Sub PopulateALICO(WerteIn As Variant, i As Integer) > > > > This is exactly how I pass an array for processing, like to a sort > > procedure. In the example below, I've got a form module level > > declared variant, mvArTemplates, that needs to be sorted ascending > > or descending on one of the columns. The sort procedure also > > receives the number of columns to be received: > > > > Caller: > > qSort mvArTemplates, lngColumn, blnAsc, 4 > > > > SubRoutine" > > Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol > > As Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) > > > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > > > > > From: rlister at actuarial-files.com > > To: accessd at databaseadvisors.com > > Date: Sun, 19 Dec 2010 16:46:00 -0400 > > Subject: [AccessD] OT: Passing an Array in VBA > > > > Hello, > > > > > > > > Sorry to bother with an Excel 2007 problem. > > > > > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a > > Procedure, manipulate Werte() there. Then the manipulated > > Werte()-Array is passed again to the main program. > > > > > > > > My Code: > > > > The main program > > > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > > > .. > > > > With Activesheet > > > > Select Case .Range("D" & "" & i + 1 & "").Value > > > > Case "ALICO" > > > > PopulateALICO Werte:=Werte, i:=1 > > > > Case "ANTIGUA" > > > > PopulateANTIGUA Werte:=Werte, i:=1 > > > > ... > > > > End Select > > > > > > > > The called procedure > > > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > > > .. > > > > ******************************************************************** > > ** ****** ****** > > > > When I check in the main program, the array Werte() is still > > unmanipulated. > > > > > > > > Saludos > > > > Actuary Ralf Lister > > > > La Paz, Bolivia > > > > Registrado en ASFI > > > > No. Registro: Act.Mat. 001 > > > > NIT: 1016725022 > > > > Skype Name: ralf.martin.lister > > > > Tel.: 222 26 61, Cel. 70136531 > > > > rlister at actuarial-files.com > > > > www.actuarial-files.com > > > > Environment > > > > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd Website: > > http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Dec 20 18:23:14 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 20 Dec 2010 16:23:14 -0800 Subject: [AccessD] Email Problem - For Bryan? Message-ID: <23B3D519B4F54FD199B96B319DA67A84@HAL9005> Bryan: Got an email problem maybe you can help me with. When I send to any databaseadvisors.com list from Outlook the mail gets there. When on the road I used to use Mail2Web.com and had no problem. But on the road, their response time is really slow from Mail2Web so I switched Godaddy.com's web mail because they're hosting my sites. But when I send email to any databaseadvisors.com account, from the GoDaddy webmail site the mail doesn't get there and there's no bounce back. GoDaddy sez (of course) problem is not on their side. And I think maybe not since databaseadvisors is the only domain I'm having a problem with. Any idea what could be causing this? TIA Rocky -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Sunday, December 19, 2010 10:12 PM To: 'Rocky Smolin' Subject: RE: Access to Outlook VBA Hi Rocky, Thanks for the code samples and the follow ups. I finally got the email working directly through Outlook albeit with the security warning. I'm adapting some of Helen's export to Outlook code to work with this app too. I bought "Microsoft Outlook 2007 Programming" book from Amazon (Kindle version) so that I can expand my knowledge on this horrific object model even more - LOL - I'm sure this will make learning PowerPoint's Object Model seem simple. John B -----Original Message----- From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Friday, December 17, 2010 9:27 AM To: 'John Bartow' Subject: RE: Access to Outlook VBA John: The simplest method is like this: ************************************************************************** If Not IsNull(fldEmail1) Then 'Call SendMessage(fldCustomerEmail1) DoCmd.SendObject acSendNoObject, , , fldEmail1 Else MsgBox "No Email Address.", vbExclamation End If Exit Sub ************************************************************************** If Outlook's the default mail client then that's where the email shows up. Just a blank email with the email address. Here's code from my customer tracking system that gets the body text from a word doc and presents it in an email. It pulls the email address from a bound text box on the calling form. This is purely Outlook. Notice that the .Send command is commented out. I like to review the email before sending: ************************************************************************** Private Sub cmdSendLetter_Click() If Nz(Me.fraWhatToSend) = 0 Then MsgBox "Selct email to send.", vbExclamation Exit Sub End If Select Case Me.fraWhatToSend Case 1 Call MakeMessage("C:\E-Z-MRP-V22\Follow Up - Recently Shipped.doc", _ "Recently Shipped E-Z-MRP Evaluation System") Case 2 Call MakeMessage("C:\E-Z-MRP-V22\Follow Up - About To Expire.doc", _ "Your E-Z-MRP Evaluation System Is About To Expire") Case 3 Call MakeMessage("C:\E-Z-MRP-V22\Follow Up - Has Expired.doc", _ "Your E-Z-MRP Evaluation System Has Expired") Case 4 Call MakeMessage("C:\E-Z-MRP-V22\E-Z-MRP Setup Intructions-yousendit.doc", _ "Your E-Z-MRP Evaluation System Setup") End Select End Sub Private Sub MakeMessage(argDocument As String, argSubject As String) 'Dim objWord As Word.Application Dim objWord As Object Dim objWordDoc As Word.Document Dim objOutlook As Outlook.Application Dim objOutlookMsg As Outlook.MailItem Dim objOutlookRecip As Outlook.Recipient Dim objOutlookAttach As Outlook.Attachment ' Get the body text Set objWord = CreateObject("Word.Application") objWord.Documents.Open (argDocument) objWord.Selection.WholeStory strBody = objWord.Selection 'MsgBox strBody objWord.Documents.Close SaveChanges:=wdDoNotSaveChanges objWord.Quit Set objWord = Nothing ' Create the Outlook session. Set objOutlook = CreateObject("Outlook.Application") ' Create the message. Set objOutlookMsg = objOutlook.CreateItem(olMailItem) With objOutlookMsg ' Add the To recipient(s) to the message. 'If intRecipients > 1 Then ' For intI = 1 To intRecipients ' Set objOutlookRecip = .Recipients.Add(astrRecipients(intI)) ' objOutlookRecip.Type = olBCC ' Next intI 'Else ' Set objOutlookRecip = .Recipients.Add(astrRecipients(1)) ' objOutlookRecip.Type = olTo 'End If Set objOutlookRecip = .Recipients.Add(Me.fldEmail1) objOutlookRecip.Type = olTo ' Set the Subject, Body, and Importance of the message. .Subject = argSubject .Body = strBody '.Importance = olImportanceHigh 'High importance ' Resolve each Recipient's name. 'For Each objOutlookRecip In .Recipients objOutlookRecip.Resolve 'If Not objOutlookRecip.Resolve Then objOutlookMsg.Display 'End If 'Next '.Send End With Set objOutlookMsg = Nothing Set objOutlook = Nothing End Sub ************************************************************************** I've also got some code that pushes records from Access into an Outlook Calendar - including a routine to select the calendar to push them into - if you need something like that. Best, Rocky -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Thursday, December 16, 2010 9:58 PM To: 'Rocky Smolin' Subject: Access to Outlook VBA Rocky, Thanks for all those for sending contacts to Outlook. That should help a lot. I am just about there with what I need but I'm getting an error message that says I need a VB help file. Well, I can't imagine that's actually correct. I thought maybe my system was corrupt in some way but I just ran Helens samples and hers worked so I can dig through and find the culprit now. Have you got any code that you could share for sending an email from Access to Outlook? I have to replace my really nice emailing routines that use a third party email engine over to using strictly Outlook and I'm beating my head against a wall on that. It seems like I'm downgrading my app because some IT guy wants everything "just so". John B From Lambert.Heenan at chartisinsurance.com Tue Dec 21 08:10:03 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 21 Dec 2010 09:10:03 -0500 Subject: [AccessD] OT: Passing an Array in VBA] In-Reply-To: <4D0FD525.23383.1E230616@stuart.lexacorp.com.pg> References: <9D1D656935134ADE865AE0656ADFA90E@HAL9005>, <4D0FCFEE.25681.1E0EA7A1@stuart.lexacorp.com.pg>, <4D0FD525.23383.1E230616@stuart.lexacorp.com.pg> Message-ID: *We* sure hope so. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, December 20, 2010 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Passing an Array in VBA] But *we* don't use them carelessly do we :-) -- Stuart On 20 Dec 2010 at 17:00, Heenan, Lambert wrote: > Which is the trouble with globals use carelessly. It is impossible to > *enforce* writing in only one place. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Monday, December 20, 2010 4:52 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] OT: > Passing an Array in VBA] > > I concur, but it is generally a good idea to stick to the principle > of "write in one place, read in many" :-) > > -- > Stuart > > On 20 Dec 2010 at 8:40, Rocky Smolin wrote: > > > -------- Original Message -------- > > Subject: RE: [AccessD] OT: Passing an Array in VBA > > From: > > Date: Sun, December 19, 2010 8:50 pm > > To: "Access Developers discussion and problem solving" > > > > > > > > At the risk of being flamed might I suggest making the array Global > > -then you don't have to pass it anywhere, it's available to the > > whole program as is. I know many people live in fear and loathing > > of globals but really, they're quite innocuous. Globals are our > > friends. > > > > Rocky > > > > > > > > > > -------- Original Message -------- > > Subject: Re: [AccessD] OT: Passing an Array in VBA > > From: Jurgen Welz > > Date: Sun, December 19, 2010 7:38 pm > > To: > > > > > > In Access VBA I always pass arrays to receiving variant variable > > without the trailing (). I've had problems trying to pass them as > > arrays of a declared type. I also generally rename the recieving > > variable even if passed By Ref. > > > > Sub PopulateALICO(WerteIn As Variant, i As Integer) > > > > This is exactly how I pass an array for processing, like to a sort > > procedure. In the example below, I've got a form module level > > declared variant, mvArTemplates, that needs to be sorted ascending > > or descending on one of the columns. The sort procedure also > > receives the number of columns to be received: > > > > Caller: > > qSort mvArTemplates, lngColumn, blnAsc, 4 > > > > SubRoutine" > > Sub qSort(varAr As Variant, fld As Long, Asc As Boolean, NumberCol > > As Long, Optional lngL As _ Long = -2, Optional lngR As Long = -2) > > > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > > > > > From: rlister at actuarial-files.com > > To: accessd at databaseadvisors.com > > Date: Sun, 19 Dec 2010 16:46:00 -0400 > > Subject: [AccessD] OT: Passing an Array in VBA > > > > Hello, > > > > > > > > Sorry to bother with an Excel 2007 problem. > > > > > > > > I try to pass an three-dimensional-array Werte(I, j. k) to a > > Procedure, manipulate Werte() there. Then the manipulated > > Werte()-Array is passed again to the main program. > > > > > > > > My Code: > > > > The main program > > > > Dim Werte(1 To 9, 1 To 42, 1 To 7) As Single > > > > .. > > > > With Activesheet > > > > Select Case .Range("D" & "" & i + 1 & "").Value > > > > Case "ALICO" > > > > PopulateALICO Werte:=Werte, i:=1 > > > > Case "ANTIGUA" > > > > PopulateANTIGUA Werte:=Werte, i:=1 > > > > ... > > > > End Select > > > > > > > > The called procedure > > > > Sub PopulateALICO(ByRef Werte() As Single, i As Integer) > > > > .. > > > > ******************************************************************** > > ** ****** ****** > > > > When I check in the main program, the array Werte() is still > > unmanipulated. > > > > > > > > Saludos > > > > Actuary Ralf Lister > > > > La Paz, Bolivia > > > > Registrado en ASFI > > > > No. Registro: Act.Mat. 001 > > > > NIT: 1016725022 > > > > Skype Name: ralf.martin.lister > > > > Tel.: 222 26 61, Cel. 70136531 > > > > rlister at actuarial-files.com > > > > www.actuarial-files.com > > > > Environment > > > > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd Website: > > http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Dec 21 09:07:17 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 21 Dec 2010 10:07:17 -0500 Subject: [AccessD] CAL aware software Message-ID: <4D10C2A5.8060007@colbyconsulting.com> I am trying to understand the CAL requirements of Microsoft's Windows 2008 Server and SQL Server 2008. The way I understand it, you buy CALs for each simultaneous connection. Server software gets rather expensive once you buy the software itself and then 30 or more CALs for the OS as well as for SQL Server. Do any of you spend time worrying about how to minimize the effect of the database on CAL utilization? For example do linked tables count differently than ado disconnected recordsets? Linked tables are connected from the time the person opens access to the time they close it as opposed to disconnected recordsets where a connection is made just long enough to get the data. Would the user be legally "connected" even though the application used disconnected recordsets? Any thoughts on how all this applies to CAL requirements. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Dec 21 15:52:48 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 21 Dec 2010 16:52:48 -0500 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing Message-ID: <4D1121B0.3020101@colbyconsulting.com> Need to model an atomic bomb? -- John W. Colby www.ColbyConsulting.com http://www.networkcomputing.com/cloud-computing/microsoft-bringing-supercomputing-to-the-masses.php From jimdettman at verizon.net Tue Dec 21 15:56:11 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 21 Dec 2010 16:56:11 -0500 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing In-Reply-To: <4D1121B0.3020101@colbyconsulting.com> References: <4D1121B0.3020101@colbyconsulting.com> Message-ID: John, Your on the FBI watch list for sure now... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, December 21, 2010 04:53 PM To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing Need to model an atomic bomb? -- John W. Colby www.ColbyConsulting.com http://www.networkcomputing.com/cloud-computing/microsoft-bringing-supercomp uting-to-the-masses.php -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Dec 21 17:21:18 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 21 Dec 2010 18:21:18 -0500 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing In-Reply-To: References: <4D1121B0.3020101@colbyconsulting.com> Message-ID: <4D11366E.4080606@colbyconsulting.com> And ALL OF YOU TOO! ;) John W. Colby www.ColbyConsulting.com On 12/21/2010 4:56 PM, Jim Dettman wrote: > John, > > Your on the FBI watch list for sure now... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, December 21, 2010 04:53 PM > To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba > Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - > Network Computing > > Need to model an atomic bomb? > From Darryl.Collins at iag.com.au Tue Dec 21 17:54:04 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 22 Dec 2010 10:54:04 +1100 Subject: [AccessD] MZTools for vba issue In-Reply-To: <016601cba082$bddc38b0$3994aa10$@winhaven.net> Message-ID: <201012212354.oBLNsCkl008517@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Auto add Error Handlers (which can be customised too I might add to suit). Add Headers Best of all - Add both of the above together Review Code It can be installed manually on any drive, which means you can usually install on locked down corporate PC's Create XML Documentation -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, 21 December 2010 7:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MZTools for vba issue What are the features of MZ Tools that people here use the like the most? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Good to hear it's solved. Life without MZ tools would be just that bit more difficult! Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Tue Dec 21 17:56:13 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 22 Dec 2010 10:56:13 +1100 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing In-Reply-To: Message-ID: <201012212356.oBLNuLJe010601@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ For reasons I cannot explain, I have always suspected that John would *already* be on this list (or similar) for some time now. :) merry xmas darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, 22 December 2010 8:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing John, Your on the FBI watch list for sure now... Jim. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From ab-mi at post3.tele.dk Tue Dec 21 18:02:54 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 22 Dec 2010 01:02:54 +0100 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing In-Reply-To: <4D11366E.4080606@colbyconsulting.com> References: <4D1121B0.3020101@colbyconsulting.com> <4D11366E.4080606@colbyconsulting.com> Message-ID: Except me, because I prudently keep my mouth shut and would never even think of commenting a subject like this. You hear me FBI? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby Sendt: 22. december 2010 00:21 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing And ALL OF YOU TOO! ;) John W. Colby www.ColbyConsulting.com On 12/21/2010 4:56 PM, Jim Dettman wrote: > John, > > Your on the FBI watch list for sure now... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, December 21, 2010 04:53 PM > To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba > Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - > Network Computing > > Need to model an atomic bomb? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Tue Dec 21 18:28:46 2010 From: marksimms at verizon.net (Mark Simms) Date: Tue, 21 Dec 2010 19:28:46 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: <201012212354.oBLNsCkl008517@databaseadvisors.com> References: <016601cba082$bddc38b0$3994aa10$@winhaven.net> <201012212354.oBLNsCkl008517@databaseadvisors.com> Message-ID: <001201cba16f$328f1230$97ad3690$@net> It's great. Cannot live without it. My big questions: 1) why didn't they SELL it for $30 or so ? 2) why didn't MSFT buy the rights to it ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Tuesday, December 21, 2010 6:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > > > _______________________________________________________________________ > ________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > _______________________________________________________________________ > ________________ > > > > Auto add Error Handlers (which can be customised too I might add to > suit). > Add Headers > Best of all - Add both of the above together > Review Code > It can be installed manually on any drive, which means you can usually > install on locked down corporate PC's > Create XML Documentation > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, 21 December 2010 7:16 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > What are the features of MZ Tools that people here use the like the > most? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > > Good to hear it's solved. Life without MZ tools would be just that bit > more > difficult! > > Lambert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________________________________ > ________________ > > The information transmitted in this message and its attachments (if > any) is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, 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. > > If you have received this in error, please contact the sender and > delete this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose > or distribute > the information contained in this e-mail and any attached files, with > the permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________ > ________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Tue Dec 21 19:09:05 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Wed, 22 Dec 2010 12:09:05 +1100 Subject: [AccessD] MZTools for vba issue In-Reply-To: <001201cba16f$328f1230$97ad3690$@net> Message-ID: <201012220109.oBM19EBd005654@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ I have used it for so long and it has been so useful that I did do the "Donate" thing for about $30 USD a while back, so maybe others do as well? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Wednesday, 22 December 2010 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MZTools for vba issue It's great. Cannot live without it. My big questions: 1) why didn't they SELL it for $30 or so ? 2) why didn't MSFT buy the rights to it ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Tuesday, December 21, 2010 6:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > > > _______________________________________________________________________ > ________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > _______________________________________________________________________ > ________________ > > > > Auto add Error Handlers (which can be customised too I might add to > suit). > Add Headers > Best of all - Add both of the above together > Review Code > It can be installed manually on any drive, which means you can usually > install on locked down corporate PC's > Create XML Documentation > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, 21 December 2010 7:16 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > What are the features of MZ Tools that people here use the like the > most? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > > Good to hear it's solved. Life without MZ tools would be just that bit > more > difficult! > > Lambert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________________________________ > ________________ > > The information transmitted in this message and its attachments (if > any) is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, 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. > > If you have received this in error, please contact the sender and > delete this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose > or distribute > the information contained in this e-mail and any attached files, with > the permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________ > ________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From df.waters at comcast.net Tue Dec 21 20:55:43 2010 From: df.waters at comcast.net (Dan Waters) Date: Tue, 21 Dec 2010 20:55:43 -0600 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses -Network Computing In-Reply-To: References: <4D1121B0.3020101@colbyconsulting.com><4D11366E.4080606@colbyconsulting.com> Message-ID: <52F65DF31C1F47DB97D0CD7DF2F47822@DanWaters> I guess it's OK for me to tell everyone that it's the NSA that does the monitoring. We tell the FBI when to go pick someone up. They tease us and say that they have the better job (probably true). And ... we already know that Colby Consulting is not a concern (but we watch him 'cause he gets good prices on hard drives). Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Tuesday, December 21, 2010 6:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft: Bringing Supercomputing To The Masses -Network Computing Except me, because I prudently keep my mouth shut and would never even think of commenting a subject like this. You hear me FBI? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af jwcolby Sendt: 22. december 2010 00:21 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing And ALL OF YOU TOO! ;) John W. Colby www.ColbyConsulting.com On 12/21/2010 4:56 PM, Jim Dettman wrote: > John, > > Your on the FBI watch list for sure now... > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, December 21, 2010 04:53 PM > To: Access Developers discussion and problem solving; VBA; Sqlserver-Dba > Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - > Network Computing > > Need to model an atomic bomb? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Dec 21 21:50:44 2010 From: john at winhaven.net (John Bartow) Date: Tue, 21 Dec 2010 21:50:44 -0600 Subject: [AccessD] Comctl32.ocx Message-ID: <018d01cba18b$6913c320$3b3b4960$@winhaven.net> I've been using the ComDialog control to choose folders and such but it doesn't work with Vista/Windows 7. Any suggestions to replace it? TIA John B From jwcolby at colbyconsulting.com Tue Dec 21 22:16:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 21 Dec 2010 23:16:33 -0500 Subject: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing In-Reply-To: <201012212356.oBLNuLJe010601@databaseadvisors.com> References: <201012212356.oBLNuLJe010601@databaseadvisors.com> Message-ID: <4D117BA1.2020001@colbyconsulting.com> > For reasons I cannot explain, I have always suspected that John would *already* be on this list (or similar) for some time now. ROTFL John W. Colby www.ColbyConsulting.com On 12/21/2010 6:56 PM, Darryl Collins wrote: > > _______________________________________________________________________________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom of this message. > _______________________________________________________________________________________ > > > > For reasons I cannot explain, I have always suspected that John would *already* be on this list (or similar) for some time now. > :) > > merry xmas > darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Wednesday, 22 December 2010 8:56 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Microsoft: Bringing Supercomputing To The Masses - Network Computing > > John, > > Your on the FBI watch list for sure now... > > Jim. > _______________________________________________________________________________________ > > The information transmitted in this message and its attachments (if any) is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any review, > retransmission, 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. > > If you have received this in error, please contact the sender and delete this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or distribute > the information contained in this e-mail and any attached files, with the permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________________________ > From stuart at lexacorp.com.pg Tue Dec 21 22:52:50 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 22 Dec 2010 14:52:50 +1000 Subject: [AccessD] Comctl32.ocx In-Reply-To: <018d01cba18b$6913c320$3b3b4960$@winhaven.net> References: <018d01cba18b$6913c320$3b3b4960$@winhaven.net> Message-ID: <4D118422.28272.115DF6B@stuart.lexacorp.com.pg> On 21 Dec 2010 at 21:50, John Bartow wrote: > I've been using the ComDialog control to choose folders and such but > it doesn't work with Vista/Windows 7. > > Any suggestions to replace it? Windows API calls. Here ya go. It's what I always use instead of the control. First one for File selection, second for Folder selection.\: '----------------------------------- 'For files: '-------------------------------------- Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Type OPENFILENAME lStructSize As Long hwndOwner As Long hInstance As Long lpstrFilter As String lpstrCustomFilter As String nMaxCustFilter As Long nFilterIndex As Long lpstrFile As String nMaxFile As Long lpstrFileTitle As String nMaxFileTitle As Long lpstrInitialDir As String lpstrTitle As String flags As Long nFileOffset As Integer nFileExtension As Integer lpstrDefExt As String lCustData As Long lpfnHook As Long lpTemplateName As String End Type Function GetFileName(Directory As String) As String Dim OpenFile As OPENFILENAME Dim lReturn As Long Dim sFilter As String OpenFile.lStructSize = Len(OpenFile) OpenFile.hwndOwner = 0 OpenFile.hInstance = 0 sFilter = "" & Chr(0) OpenFile.lpstrFilter = sFilter OpenFile.nFilterIndex = 0 OpenFile.lpstrFile = String(257, 0) OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1 OpenFile.lpstrFileTitle = OpenFile.lpstrFile OpenFile.nMaxFileTitle = OpenFile.nMaxFile OpenFile.lpstrInitialDir = Directory OpenFile.lpstrTitle = "Select File" OpenFile.flags = 0 lReturn = GetOpenFileName(OpenFile) GetFileName = Left$(OpenFile.lpstrFile, InStr(OpenFile.lpstrFile, Chr$(0)) - 1) End Function '---------------------------------- 'For Folders '---------------------------------- Option Compare Database Option Explicit Public Declare Function SHBrowseForFolder Lib "shell32.dll" _ Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long Public Declare Function SHGetPathFromIDList Lib "shell32.dll" _ Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, _ ByVal pszPath As String) As Long Public Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal pv As Long) Public Type BROWSEINFO 'BI hOwner As Long pidlRoot As Long pszDisplayName As String lpszTitle As String ulFlags As Long lpfn As Long lParam As Long iImage As Long End Type Function GetFolder() As String Dim pidl As Long Dim BI As BROWSEINFO Dim sPath As String Dim pos As Integer 'Fill BROWSEINFO structure data With BI .hOwner = 0 .pidlRoot = 0 .lpszTitle = "Browsing" .ulFlags = 1 .pszDisplayName = Space$(260) End With 'show dialog returning pidl to selected item pidl = SHBrowseForFolder(BI) 'if pidl is valid, parse & return the user's selection sPath = Space$(260) If SHGetPathFromIDList(ByVal pidl, ByVal sPath) Then 'SHGetPathFromIDList returns the absolute 'path to the selected item. No path is returned for virtual folders. pos = InStr(sPath, Chr$(0)) If pos Then GetFolder = Left(sPath, pos - 1) Else: GetFolder = "" End If 'free the pidl Call CoTaskMemFree(pidl) End Function From jwcolby at colbyconsulting.com Wed Dec 22 08:07:08 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 09:07:08 -0500 Subject: [AccessD] wcf reading Message-ID: <4D12060C.3010905@colbyconsulting.com> ATM my main book for studying the WCF is WCF Step By Step. I am having an issue with the fact that the book was written for VS 2005 and I am using VS 2008 and will likely move to 2010 soon. The biggest difference is the XML config tool is apparently different. In 2005 it was a tree which somewhat directly models the XML file itself. In 2008 it is a wizard which does not. Very different, completely disconnects the mind from the XML behind the scenes. And boy is WCF dense! The nice thing is that it is pretty high abstraction level and the code is mostly written. Basically you are just configuring existing classes utilizing either XML config files or directly programmatically by setting properties. What this means is that you really can concentrate on your own classes - AFTER you learn what all of the WCF classes are and what their properties do. I learned long ago that I need to read something three times to "get it". So I am facing 15 chapters X 3 to "get" WCF, but the up side is that WCF appears to be a really powerful paradigm. Chapter 2 intimated that my service class could directly create communications channels via HTTPS (no IIS required) and ended by creating a service that starts when windows starts and provides the service to the application (though using named pipes). Pretty cool! Miles to go before I sleep. And I am looking for a highly recommended (preferably by someone on this list?) book about WCF but written using VS 2008 or even 2010. -- John W. Colby www.ColbyConsulting.com From kismert at gmail.com Wed Dec 22 11:20:14 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Wed, 22 Dec 2010 11:20:14 -0600 Subject: [AccessD] OT: Passing an Array in VBA Message-ID: My take: There is no need for global object references. Public subroutines and functions in plain old modules provide all the global visibility that is required. Lambert is right -- global variables got their bad name because can be changed or destroyed by any code at any time. Globals make using code among projects harder. For sharing, you want your modules as self-contained as possible. And philosophically, I think globals promote a passive, 'reference-based' style of programming ... "Change this global, and the app should behave differently", "Do this [with an implied global in some indeterminate state]". State is lazily maintained. This often leads to "programming that is so complex, nothing is obviously wrong". What I am striving for is an active style: "Do this with this". Code is functional -- it acts only on what is given, and returns only a result. This style has no side-effects: no inputs are modified, and global state is not changed. Classes rely on external function libraries -- even module-level variables are too public! Classes written this way become 'light-weight', carrying only the 'what', not the 'how', and become much easier to understand. When most of your code is in function libraries, writing tests becomes feasible. You can't achieve purely functional code in VBA (for that, you'd need Haskell). But still, the goal is to write "code that is so simple, nothing can possibly be wrong". -Ken From rockysmolin at bchacc.com Wed Dec 22 11:32:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 22 Dec 2010 09:32:10 -0800 Subject: [AccessD] OT: Passing an Array in VBA In-Reply-To: References: Message-ID: The pass the local array through a global declaration. In the receiving routine, copy the global to a local array declaration. The global then becomes just a temporary 'messenger' array. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert Sent: Wednesday, December 22, 2010 9:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Passing an Array in VBA My take: There is no need for global object references. Public subroutines and functions in plain old modules provide all the global visibility that is required. Lambert is right -- global variables got their bad name because can be changed or destroyed by any code at any time. Globals make using code among projects harder. For sharing, you want your modules as self-contained as possible. And philosophically, I think globals promote a passive, 'reference-based' style of programming ... "Change this global, and the app should behave differently", "Do this [with an implied global in some indeterminate state]". State is lazily maintained. This often leads to "programming that is so complex, nothing is obviously wrong". What I am striving for is an active style: "Do this with this". Code is functional -- it acts only on what is given, and returns only a result. This style has no side-effects: no inputs are modified, and global state is not changed. Classes rely on external function libraries -- even module-level variables are too public! Classes written this way become 'light-weight', carrying only the 'what', not the 'how', and become much easier to understand. When most of your code is in function libraries, writing tests becomes feasible. You can't achieve purely functional code in VBA (for that, you'd need Haskell). But still, the goal is to write "code that is so simple, nothing can possibly be wrong". -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 22 14:19:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 15:19:30 -0500 Subject: [AccessD] For the price of a recordset Message-ID: <4D125D52.8020206@colbyconsulting.com> I use caches to hold infrequently changing data. I have always had an issue with being able to know when data changed back in the recordset behind the cache. For example I use users / groups / usergroups in my PLSS. If the administrator makes a change, adds a new user, group, adds a user to a group etc, how do you notify the application that has that info cached? Today a light bulb went off. We all know that in a bound form the selector displays a pencil pretty much instantaneously after someone begins an edit. Well... Suppose I open a recordset using the following code: Dim rst As DAO.Recordset Function TestfieldVal() If rst Is Nothing Then Dim db As DAO.Database Dim strSQL As String Set db = CurrentDb strSQL = "SELECT PLSSV_Val from usystblPLSSysVars WHERE PLSSV_Name = 'Test'" Set rst = db.OpenRecordset(strSQL) Set db = Nothing End If End Function Public Function cRst() As DAO.Recordset TestfieldVal Set cRst = rst End Function Now in the debug window I can do: ?cRst()!PLSSV_Val and see an edit made by another user. IOW you can edit a specific value in a specific table on one machine and I can see that edit on my machine, through the open recordset. Of course we all know this, but what this means to cache management is that I can use a central table to hold sysvars (I do this already). I can have a sysvar named PLSSDataChanged and set the value of that to some value, perhaps #12/19/2010#. In my cache system framework I can open a recordset and grab the value for that specific record, and hold the table open. So as my application loads PLSS it gets a pointer to that value in that record. My cache then loads the cache and sets a dtePLSLastRefreshed variable in the cache supervisor to Now() as the cache loads. Now, my PLSS administrator updates some data, perhaps deleting a usergroup so that a specific user no longer belongs to a specific group. My code that does that delete then updates this specific SysVar with a new datetime Now() and saves the value back into the sysvar record. Every user in my application is more or less instantly notified of the change. The next time that the PLSS needs to open a form it first checks this open record value against dtePLSLastRefreshed and if the value in this field is later than the value in the class I know I need to refresh the cache. I do so and then set dtePLSLastRefreshed to Now() resetting the clock so to speak. Instant notification of cache data changes. The cost is holding a recordset open, but I already do that on an arbitrary table in every BE in order to work around the "get a lock" slowness issue. This may be huge for my cache coherency issues. Too bad I am running out of light bulbs in my old age. -- John W. Colby www.ColbyConsulting.com From jwelz at hotmail.com Wed Dec 22 15:25:20 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 22 Dec 2010 14:25:20 -0700 Subject: [AccessD] OT: Passing an Array in VBA In-Reply-To: References: , Message-ID: As I said before, pass it as a Variant. It can be strongly typed within the calling procedure and assigned to the variant before passed and the receiving subroutine can quickly check IsArray which returns a boolean. If you absolutely need to, you can pass information about the data types and validate in the called routine, but that can get real messy with more than 2 dimensional arrays with multi data types. I gave the example of passing an array to a sort routine that can sort on a chosen column, whatever the data type. You'd have to be awful picky if you wanted to validate the datatype with the sort routine. Better to create a module with a receiving variable, validate the data and then call a sort within the module akin to how you might implement it as a class module. If you validated on each sort element, it would slow sorting down significantly. Another example, if you use getRows with a recordset, you can't be strongly typing each column if you've got mixed numeric, date, text or boolean data types. VBA transposes the row and column from what you get in Excel so what you can do in that case is a single dimension array for each column. Name them 'A()', 'B()', 'C()' and it makes sense to Excel users plus you can strongly type each one if need be. Just pass it as a variant. sheesh. You could also look up paramarray in the help, those too must be variants. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Wed, 22 Dec 2010 09:32:10 -0800 > Subject: Re: [AccessD] OT: Passing an Array in VBA > > The pass the local array through a global declaration. In the receiving > routine, copy the global to a local array declaration. The global then > becomes just a temporary 'messenger' array. > > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert > Sent: Wednesday, December 22, 2010 9:20 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Passing an Array in VBA > > My take: > > There is no need for global object references. Public subroutines and > functions in plain old modules provide all the global visibility that is > required. > > Lambert is right -- global variables got their bad name because can be > changed or destroyed by any code at any time. > > Globals make using code among projects harder. For sharing, you want your > modules as self-contained as possible. > > And philosophically, I think globals promote a passive, 'reference-based' > style of programming ... "Change this global, and the app should behave > differently", "Do this [with an implied global in some indeterminate > state]". State is lazily maintained. This often leads to "programming that > is so complex, nothing is obviously wrong". > > What I am striving for is an active style: "Do this with this". Code is > functional -- it acts only on what is given, and returns only a result. This > style has no side-effects: no inputs are modified, and global state is not > changed. Classes rely on external function libraries -- even module-level > variables are too public! Classes written this way become 'light-weight', > carrying only the 'what', not the 'how', and become much easier to > understand. When most of your code is in function libraries, writing tests > becomes feasible. > > You can't achieve purely functional code in VBA (for that, you'd need > Haskell). But still, the goal is to write "code that is so simple, nothing > can possibly be wrong". > > -Ken From jwcolby at colbyconsulting.com Wed Dec 22 16:52:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 17:52:56 -0500 Subject: [AccessD] Cache coherency monitor Message-ID: <4D128148.5000507@colbyconsulting.com> I have developed a class to allow my various cache supervisors to monitor changes to cache data. '--------------------------------------------------------------------------------------- ' Module : clsCacheState ' Author : jcolby ' Date : 12/22/2010 ' Purpose : Provide an object that tracks cache state ' 'It is occasionally necessary to cache infrequently changing data in a table so that it can be 'used in a program at full speed without having to go to the table every time you want a value. ' 'For example the security system uses Users, Groups and UserGroups. These items don't change 'often, sometimes not for weeks at a time. It is useful to be able to read the users into a 'user cache, groups into a groups cache etc. ' 'Even so, things can change so it is useful to have a way to signal the client application such 'that if something changes, it can be sensed and the cache refreshed. ' 'In order to monitor cache coherency we hold a recordset open. We select a specific record 'and then examine a specific field for a date / time. ' 'Holding that record open allows any modification to that record to be sensed instantly ' 'This class allows us to use the same sensing mechanism across different cache by using instances 'of this class in the cache supervisor class '--------------------------------------------------------------------------------------- Const cstrModule = "clsCacheState" Option Compare Database Option Explicit Private mDteRefreshed As Date 'Date the cache was refreshed Private mstrSQL As String 'The SQL statement required to obtain a date time from a cached table Private mstrSQLUpdate As String 'The SQL statement used to update at a given instant Private mdb As DAO.Database Private mstrSVTblName As String 'The name of the SV table being monitored Private mstrSVValFld As String 'The name of the field in the table to monitor Private mstrSVNameFld As String 'The name of the SV Name field (used to find the correct record) Private mstrSVName As String 'The SV name to search for (which record to monitor) Private mRst As DAO.Recordset 'The recordset to hold open to monitor the cache coherency date Private Sub Class_Terminate() On Error Resume Next mRst.Close Set mRst = Nothing End Sub '--------------------------------------------------------------------------------------- ' Procedure : mInit ' Author : jcolby ' Date : 12/22/2010 ' Purpose : Opens the recordset to a specific record and holds the rst open ' 'db is the database that the SysVar table is in 'strSVTblName is the name of the SysVar table 'strSVNameFld is the name of the field to use in searching for a specific SV record 'strSVValFld is the name of the field that will contain the SysVar value to be monitored 'strSVName is the "name" of the sysvar to search for in the SysVar table '--------------------------------------------------------------------------------------- ' Public Function mInit(db As DAO.Database, strSVTblName As String, strSVNameFld As String, strSVValFld As String, strSVName As String) On Error GoTo Err_mInit mstrSVTblName = strSVTblName mstrSVValFld = strSVValFld mstrSVNameFld = strSVNameFld mstrSVName = strSVName mstrSQL = "SELECT " & strSVValFld & " " & _ "FROM " & strSVTblName & " " & _ "WHERE " & strSVNameFld & " = '" & strSVName & "'" Set mdb = db 'Save for later Set mRst = mdb.OpenRecordset(mstrSQL) Exit_mInit: On Error Resume Next Exit Function Err_mInit: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep PLSLogErr Err.Number, Err.Description, Erl, cstrModule, "mInit" Resume Exit_mInit End Select Resume 0 '.FOR TROUBLESHOOTING End Function Property Get pSQL() As String pSQL = mstrSQL End Property Property Get pModified() As Date pModified = mRst(mstrSVValFld) End Property 'Private mstrSVTblName As String 'The name of the SV table being monitored 'Private mstrSVValFld As String 'The name of the field in the table to monitor 'Private mstrSVNameFld As String 'The name of the SV Name field (used to find the correct record) 'Private mstrSVValFld As String 'The name of rhe SV Value field to monitor 'Private mstrSVName As String 'The SV name to search for (which record to monitor) '--------------------------------------------------------------------------------------- ' Procedure : pModified ' Author : jcolby ' Date : 12/22/2010 ' Purpose : used to modify the date value in the SV table / field / record being monitored '--------------------------------------------------------------------------------------- ' Property Let pModified(ldteModified As Date) On Error GoTo Err_pModified mstrSQLUpdate = "UPDATE " & mstrSVTblName & " SET " & mstrSVTblName & "." & mstrSVValFld & " = '" & CStr(ldteModified) & "' " & _ "WHERE ((" & mstrSVTblName & "." & mstrSVNameFld & " ='" & mstrSVName & "'));" mdb.Execute mstrSQLUpdate Exit_pModified: On Error Resume Next Exit Property Err_pModified: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep PLSLogErr Err.Number, Err.Description, Erl, cstrModule, "pModified" Resume Exit_pModified End Select Resume 0 '.FOR TROUBLESHOOTING End Property Property Get pRefreshed() As Date pRefreshed = mDteRefreshed End Property ' 'Set the refreshed date when the cache is refreshed Property Let pRefreshed(ldteRefreshed As Date) mDteRefreshed = ldteRefreshed End Property ' 'Compares the datetime refreshed to the dateTime modified 'Returns true if a refresh is needed Property Get pRefreshNeeded() As Boolean pRefreshNeeded = (pRefreshed < pModified) End Property -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Dec 22 17:03:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 18:03:30 -0500 Subject: [AccessD] Using the clsCacheState Message-ID: <4D1283C2.30100@colbyconsulting.com> Place the following in a module Option Compare Database Option Explicit Private cCacheState As clsCacheState Public Function cCState() As clsCacheState If cCacheState Is Nothing Then Dim db As DAO.Database Set db = CurrentDb Set cCacheState = New clsCacheState 'The table and field names below must be changed to match your table names cCacheState.mInit db, "usystblPLSSysVars", "PLSSV_Name", "PLSSV_Val", "PLSDataUpdate" End If Set cCState = cCacheState End Function Create a table named usystblPLSSysVars with field names PLSSV_Name and PLSSV_Val. Create a record with the values PLSDataUpdate in the PLSSV_Name and anything at all in PLSSV_Val. You can actually create a table of any name with fields named whatever you want, but the above works with the module above so if you create your own table you will need to modify the test code above. Now in the debug window do the following things cCState.pRefreshed = now() ccstate.pModified = now() ?ccstate.pRefreshed 12/22/2010 4:50:48 PM ?ccstate.pModified 12/22/2010 4:51:01 PM ?ccstate.pRefreshNeeded False True You can step through and watch the class perform. You can add the class anywhere that you need to monitor a value modified by another user. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Dec 22 18:13:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 19:13:55 -0500 Subject: [AccessD] Using the clsCacheState In-Reply-To: <4D1283C2.30100@colbyconsulting.com> References: <4D1283C2.30100@colbyconsulting.com> Message-ID: <4D129443.6090609@colbyconsulting.com> Oh and I forgot, to test monitoring changes created by another user, do the below, and then open the container with the table in another session, and modify the value there, directly in the table. Watch that it does indeed show up in the class instance. John W. Colby www.ColbyConsulting.com On 12/22/2010 6:03 PM, jwcolby wrote: > Place the following in a module > > Option Compare Database > Option Explicit > > Private cCacheState As clsCacheState > > Public Function cCState() As clsCacheState > If cCacheState Is Nothing Then > Dim db As DAO.Database > Set db = CurrentDb > Set cCacheState = New clsCacheState > > 'The table and field names below must be changed to match your table names > cCacheState.mInit db, "usystblPLSSysVars", "PLSSV_Name", "PLSSV_Val", "PLSDataUpdate" > End If > Set cCState = cCacheState > End Function > > Create a table named usystblPLSSysVars with field names PLSSV_Name and PLSSV_Val. Create a record > with the values PLSDataUpdate in the PLSSV_Name and anything at all in PLSSV_Val. > > You can actually create a table of any name with fields named whatever you want, but the above works > with the module above so if you create your own table you will need to modify the test code above. > > Now in the debug window do the following things > > cCState.pRefreshed = now() > ccstate.pModified = now() > ?ccstate.pRefreshed > 12/22/2010 4:50:48 PM > ?ccstate.pModified > 12/22/2010 4:51:01 PM > ?ccstate.pRefreshNeeded > False > True > > You can step through and watch the class perform. You can add the class anywhere that you need to > monitor a value modified by another user. > From jimdettman at verizon.net Wed Dec 22 21:24:41 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 22 Dec 2010 22:24:41 -0500 Subject: [AccessD] Using the clsCacheState In-Reply-To: <4D129443.6090609@colbyconsulting.com> References: <4D1283C2.30100@colbyconsulting.com> <4D129443.6090609@colbyconsulting.com> Message-ID: Only thing you need to watch out for with holding a recordset open is your working towards the 2048 tableID limit. Start using this a lot and you could reach the limit faster then you might think. And BTW, you really need to start publishing this stuff! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, December 22, 2010 07:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using the clsCacheState Oh and I forgot, to test monitoring changes created by another user, do the below, and then open the container with the table in another session, and modify the value there, directly in the table. Watch that it does indeed show up in the class instance. John W. Colby www.ColbyConsulting.com On 12/22/2010 6:03 PM, jwcolby wrote: > Place the following in a module > > Option Compare Database > Option Explicit > > Private cCacheState As clsCacheState > > Public Function cCState() As clsCacheState > If cCacheState Is Nothing Then > Dim db As DAO.Database > Set db = CurrentDb > Set cCacheState = New clsCacheState > > 'The table and field names below must be changed to match your table names > cCacheState.mInit db, "usystblPLSSysVars", "PLSSV_Name", "PLSSV_Val", "PLSDataUpdate" > End If > Set cCState = cCacheState > End Function > > Create a table named usystblPLSSysVars with field names PLSSV_Name and PLSSV_Val. Create a record > with the values PLSDataUpdate in the PLSSV_Name and anything at all in PLSSV_Val. > > You can actually create a table of any name with fields named whatever you want, but the above works > with the module above so if you create your own table you will need to modify the test code above. > > Now in the debug window do the following things > > cCState.pRefreshed = now() > ccstate.pModified = now() > ?ccstate.pRefreshed > 12/22/2010 4:50:48 PM > ?ccstate.pModified > 12/22/2010 4:51:01 PM > ?ccstate.pRefreshNeeded > False > True > > You can step through and watch the class perform. You can add the class anywhere that you need to > monitor a value modified by another user. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Dec 22 21:51:42 2010 From: john at winhaven.net (John Bartow) Date: Wed, 22 Dec 2010 21:51:42 -0600 Subject: [AccessD] Comctl32.ocx In-Reply-To: <4D118422.28272.115DF6B@stuart.lexacorp.com.pg> References: <018d01cba18b$6913c320$3b3b4960$@winhaven.net> <4D118422.28272.115DF6B@stuart.lexacorp.com.pg> Message-ID: <02bb01cba254$b654bb70$22fe3250$@winhaven.net> Thanks a lot Stuart, that works great! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, December 21, 2010 10:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Comctl32.ocx On 21 Dec 2010 at 21:50, John Bartow wrote: > I've been using the ComDialog control to choose folders and such but > it doesn't work with Vista/Windows 7. > > Any suggestions to replace it? Windows API calls. Here ya go. It's what I always use instead of the control. First one for File selection, second for Folder selection.\: '----------------------------------- 'For files: '-------------------------------------- Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Type OPENFILENAME lStructSize As Long hwndOwner As Long hInstance As Long lpstrFilter As String lpstrCustomFilter As String nMaxCustFilter As Long nFilterIndex As Long lpstrFile As String nMaxFile As Long lpstrFileTitle As String nMaxFileTitle As Long lpstrInitialDir As String lpstrTitle As String flags As Long nFileOffset As Integer nFileExtension As Integer lpstrDefExt As String lCustData As Long lpfnHook As Long lpTemplateName As String End Type Function GetFileName(Directory As String) As String Dim OpenFile As OPENFILENAME Dim lReturn As Long Dim sFilter As String OpenFile.lStructSize = Len(OpenFile) OpenFile.hwndOwner = 0 OpenFile.hInstance = 0 sFilter = "" & Chr(0) OpenFile.lpstrFilter = sFilter OpenFile.nFilterIndex = 0 OpenFile.lpstrFile = String(257, 0) OpenFile.nMaxFile = Len(OpenFile.lpstrFile) - 1 OpenFile.lpstrFileTitle = OpenFile.lpstrFile OpenFile.nMaxFileTitle = OpenFile.nMaxFile OpenFile.lpstrInitialDir = Directory OpenFile.lpstrTitle = "Select File" OpenFile.flags = 0 lReturn = GetOpenFileName(OpenFile) GetFileName = Left$(OpenFile.lpstrFile, InStr(OpenFile.lpstrFile, Chr$(0)) - 1) End Function '---------------------------------- 'For Folders '---------------------------------- Option Compare Database Option Explicit Public Declare Function SHBrowseForFolder Lib "shell32.dll" _ Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long Public Declare Function SHGetPathFromIDList Lib "shell32.dll" _ Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, _ ByVal pszPath As String) As Long Public Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal pv As Long) Public Type BROWSEINFO 'BI hOwner As Long pidlRoot As Long pszDisplayName As String lpszTitle As String ulFlags As Long lpfn As Long lParam As Long iImage As Long End Type Function GetFolder() As String Dim pidl As Long Dim BI As BROWSEINFO Dim sPath As String Dim pos As Integer 'Fill BROWSEINFO structure data With BI .hOwner = 0 .pidlRoot = 0 .lpszTitle = "Browsing" .ulFlags = 1 .pszDisplayName = Space$(260) End With 'show dialog returning pidl to selected item pidl = SHBrowseForFolder(BI) 'if pidl is valid, parse & return the user's selection sPath = Space$(260) If SHGetPathFromIDList(ByVal pidl, ByVal sPath) Then 'SHGetPathFromIDList returns the absolute 'path to the selected item. No path is returned for virtual folders. pos = InStr(sPath, Chr$(0)) If pos Then GetFolder = Left(sPath, pos - 1) Else: GetFolder = "" End If 'free the pidl Call CoTaskMemFree(pidl) End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Dec 22 21:53:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 22:53:12 -0500 Subject: [AccessD] Using the clsCacheState In-Reply-To: References: <4D1283C2.30100@colbyconsulting.com> <4D129443.6090609@colbyconsulting.com> Message-ID: <4D12C7A8.2040509@colbyconsulting.com> > Only thing you need to watch out for with holding a recordset open is your working towards the 2048 tableID limit. It is theoretically possible to use the old "single record with multiple fields" to use a single recordset. This has the obvious disadvantage of requiring you to add a new field to the table every time you want a new monitor point. That is the entire reason I designed mySysVar classes to begin with. Now I can actually monitor SysVar cache coherency. 8) > And BTW, you really need to start publishing this stuff! I thought I just did publish this stuff. ;) John W. Colby www.ColbyConsulting.com On 12/22/2010 10:24 PM, Jim Dettman wrote: > > Only thing you need to watch out for with holding a recordset open is your > working towards the 2048 tableID limit. Start using this a lot and you > could reach the limit faster then you might think. > > And BTW, you really need to start publishing this stuff! > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, December 22, 2010 07:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using the clsCacheState > > Oh and I forgot, to test monitoring changes created by another user, do the > below, and then open the > container with the table in another session, and modify the value there, > directly in the table. > Watch that it does indeed show up in the class instance. > > John W. Colby > www.ColbyConsulting.com > > On 12/22/2010 6:03 PM, jwcolby wrote: >> Place the following in a module >> >> Option Compare Database >> Option Explicit >> >> Private cCacheState As clsCacheState >> >> Public Function cCState() As clsCacheState >> If cCacheState Is Nothing Then >> Dim db As DAO.Database >> Set db = CurrentDb >> Set cCacheState = New clsCacheState >> >> 'The table and field names below must be changed to match your > table names >> cCacheState.mInit db, "usystblPLSSysVars", "PLSSV_Name", > "PLSSV_Val", "PLSDataUpdate" >> End If >> Set cCState = cCacheState >> End Function >> >> Create a table named usystblPLSSysVars with field names PLSSV_Name and > PLSSV_Val. Create a record >> with the values PLSDataUpdate in the PLSSV_Name and anything at all in > PLSSV_Val. >> >> You can actually create a table of any name with fields named whatever you > want, but the above works >> with the module above so if you create your own table you will need to > modify the test code above. >> >> Now in the debug window do the following things >> >> cCState.pRefreshed = now() >> ccstate.pModified = now() >> ?ccstate.pRefreshed >> 12/22/2010 4:50:48 PM >> ?ccstate.pModified >> 12/22/2010 4:51:01 PM >> ?ccstate.pRefreshNeeded >> False >> True >> >> You can step through and watch the class perform. You can add the class > anywhere that you need to >> monitor a value modified by another user. >> From jwcolby at colbyconsulting.com Wed Dec 22 22:11:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 23:11:35 -0500 Subject: [AccessD] Using the clsCacheState In-Reply-To: References: <4D1283C2.30100@colbyconsulting.com> <4D129443.6090609@colbyconsulting.com> Message-ID: <4D12CBF7.4000008@colbyconsulting.com> Just a caution, if you are placing code and tables out into a library (as I do) you need to be careful to use CodeDb and CurrentDb correctly so that you open the table in the right place. Generally if you are going to monitor a value you will do so in the CurrentDb so that the value is picked out of a (linked?) table in the application. This allows the code to work for many different applications using the same physical copy of the library. John W. Colby www.ColbyConsulting.com On 12/22/2010 10:24 PM, Jim Dettman wrote: > > Only thing you need to watch out for with holding a recordset open is your > working towards the 2048 tableID limit. Start using this a lot and you > could reach the limit faster then you might think. > > And BTW, you really need to start publishing this stuff! > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, December 22, 2010 07:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using the clsCacheState > > Oh and I forgot, to test monitoring changes created by another user, do the > below, and then open the > container with the table in another session, and modify the value there, > directly in the table. > Watch that it does indeed show up in the class instance. > > John W. Colby > www.ColbyConsulting.com > > On 12/22/2010 6:03 PM, jwcolby wrote: >> Place the following in a module >> >> Option Compare Database >> Option Explicit >> >> Private cCacheState As clsCacheState >> >> Public Function cCState() As clsCacheState >> If cCacheState Is Nothing Then >> Dim db As DAO.Database >> Set db = CurrentDb >> Set cCacheState = New clsCacheState >> >> 'The table and field names below must be changed to match your > table names >> cCacheState.mInit db, "usystblPLSSysVars", "PLSSV_Name", > "PLSSV_Val", "PLSDataUpdate" >> End If >> Set cCState = cCacheState >> End Function >> >> Create a table named usystblPLSSysVars with field names PLSSV_Name and > PLSSV_Val. Create a record >> with the values PLSDataUpdate in the PLSSV_Name and anything at all in > PLSSV_Val. >> >> You can actually create a table of any name with fields named whatever you > want, but the above works >> with the module above so if you create your own table you will need to > modify the test code above. >> >> Now in the debug window do the following things >> >> cCState.pRefreshed = now() >> ccstate.pModified = now() >> ?ccstate.pRefreshed >> 12/22/2010 4:50:48 PM >> ?ccstate.pModified >> 12/22/2010 4:51:01 PM >> ?ccstate.pRefreshNeeded >> False >> True >> >> You can step through and watch the class perform. You can add the class > anywhere that you need to >> monitor a value modified by another user. >> From jwcolby at colbyconsulting.com Wed Dec 22 22:13:45 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Dec 2010 23:13:45 -0500 Subject: [AccessD] Classes Class by JW Colby In-Reply-To: <3eadb.7e2d3df2.39a3877f@aol.com> References: <3eadb.7e2d3df2.39a3877f@aol.com> Message-ID: <4D12CC79.8050702@colbyconsulting.com> John Cliviger is working on editing the emails I published. Ping on him if you are getting antsy. ;) John W. Colby www.ColbyConsulting.com On 8/23/2010 4:12 AM, Johncliviger at aol.com wrote: > Hi John Colby > > Your right I did make the offer and it still stands. I did start to look at > your essays on Class Modules but soon got lost. The pressure of work and a > burst appendix pushed it down the priority list. But I am willing to have > a second bit (or is it byte) at this job. > > JC If you can pull together the notes and demos in one zip that will help > greatly. > > > regards > John Cliviger From jwcolby at colbyconsulting.com Thu Dec 23 10:22:25 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 23 Dec 2010 11:22:25 -0500 Subject: [AccessD] OCZ's RevoDrive Preview: An Affordable PCIe SSD - AnandTech :: Your Source for Hardware Analysis and News Message-ID: <4D137741.1020907@colbyconsulting.com> http://www.anandtech.com/show/3788/oczs-revodrive-pcie-ssd-preview-an-affordable-pcie-ssd/8 http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100008120%2050001550%20600038468&IsNodeId=1&name=PCI-E -- John W. Colby www.ColbyConsulting.com From marksimms at verizon.net Thu Dec 23 11:47:08 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 23 Dec 2010 12:47:08 -0500 Subject: [AccessD] OCZ's RevoDrive Preview: An Affordable PCIe SSD - AnandTech :: Your Source for Hardware Analysis and News In-Reply-To: <4D137741.1020907@colbyconsulting.com> References: <4D137741.1020907@colbyconsulting.com> Message-ID: <003301cba2c9$6bb56f90$43204eb0$@net> Sounds like this is going the same route as LCD HD TVs. $1500 last year....$800 this year. From marksimms at verizon.net Thu Dec 23 11:53:35 2010 From: marksimms at verizon.net (Mark Simms) Date: Thu, 23 Dec 2010 12:53:35 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: <201012220109.oBM19EBd005654@databaseadvisors.com> References: <001201cba16f$328f1230$97ad3690$@net> <201012220109.oBM19EBd005654@databaseadvisors.com> Message-ID: <003401cba2ca$52dd00e0$f89702a0$@net> What about the second question about MSFT ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Tuesday, December 21, 2010 8:09 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > It's great. Cannot live without it. > My big questions: > 1) why didn't they SELL it for $30 or so ? > 2) why didn't MSFT buy the rights to it ? From jwcolby at colbyconsulting.com Thu Dec 23 12:13:53 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 23 Dec 2010 13:13:53 -0500 Subject: [AccessD] OCZ's RevoDrive Preview: An Affordable PCIe SSD - AnandTech :: Your Source for Hardware Analysis and News In-Reply-To: <003301cba2c9$6bb56f90$43204eb0$@net> References: <4D137741.1020907@colbyconsulting.com> <003301cba2c9$6bb56f90$43204eb0$@net> Message-ID: <4D139161.7050403@colbyconsulting.com> > Sounds like this is going the same route as LCD HD TVs. $1500 last year....$800 this year. Yes maybe... SSD prices are driven by the cost of flash memory. To this point Flash prices have dropped on a $/g (gig / chip) basis but the technology is leveling out in terms of density on a single chip. OTOH SSDs are all the rage now which means SSD units sold is climbing rapidly, which is driving production capacity so we should still see some price decline on the cost / chip front as manufacturing continues to ramp up. Prices held level for a long time, then dropped rapidly this last year but seem to be leveling off now (for how long?). I bought my first perhaps 18 months ago. I now have 4 SSD drives in house, one as a boot disk for one of my HTPCs, one as a Read-Mostly for a third party program that needs fast access to db files, and two hosting my central SQL Server database files. I am about to buy one for my two year old laptop to give it a mid life performance boost. I will probably continue to buy / use them for my central database files. John W. Colby www.ColbyConsulting.com On 12/23/2010 12:47 PM, Mark Simms wrote: > Sounds like this is going the same route as LCD HD TVs. > $1500 last year....$800 this year. > > From patrinod at gmail.com Thu Dec 23 13:40:22 2010 From: patrinod at gmail.com (Den Patrino) Date: Thu, 23 Dec 2010 14:40:22 -0500 Subject: [AccessD] query/procedure help Message-ID: Fellow listers ... I am working on a system (Access2003) that I need help with. Production data is written automatically to a table every 1 second. The data collection system is turned on approx. 2 minutes before a batch production is started and not turned off until sometime after the batch production has ended. This results in many records that are not required as data before production starts is meaningless as well as data after the batch is completed. The table currently has > 700,000 records. Hopefully the examples below illustrate the problem. 1) I need help to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a batch weight of 0, except the record with the latest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 13:43:54 0 MP123 22-Mar-2010 13:43:55 0 MP123 22-Mar-2010 13:43:56 0 MP123 22-Mar-2010 13:43:57 0 MP123 22-Mar-2010 13:43:58 0 MP123 22-Mar-2010 13:43:59 0 MP123 22-Mar-2010 13:44:00 0 MP123 22-Mar-2010 13:44:01 0 MP123 22-Mar-2010 13:44:02 0 MP123 22-Mar-2010 13:44:03 0 MP123 22-Mar-2010 13:44:04 0 ------------------------------------------ MP123 22-Mar-2010 13:44:05 0 'delete records previous to this. MP123 22-Mar-2010 13:44:06 1 MP123 22-Mar-2010 13:44:07 2 At the end of the batch run, there will be multiple records with the same weight. (the max. weight of the batch) 2) I need to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a where the batch weight = maximum weight for the batch, except the record with the earliest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 14:37:23 11531 ------------------------------------- MP123 22-Mar-2010 14:37:24 11531 - delete from here down MP123 22-Mar-2010 14:37:25 11531 MP123 22-Mar-2010 14:37:26 11531 MP123 22-Mar-2010 14:37:27 11531 MP123 22-Mar-2010 14:37:28 11531 MP123 22-Mar-2010 14:37:29 11531 MP123 22-Mar-2010 14:37:30 11531 MP123 22-Mar-2010 14:37:31 11531 MP123 22-Mar-2010 14:37:32 11531 MP123 22-Mar-2010 14:37:33 11531 MP123 22-Mar-2010 14:37:34 11531 MP123 22-Mar-2010 14:37:35 11531 MP123 22-Mar-2010 14:37:36 11531 MP123 22-Mar-2010 14:37:37 11531 TIA. Patty From Darryl.Collins at iag.com.au Thu Dec 23 16:36:52 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 24 Dec 2010 09:36:52 +1100 Subject: [AccessD] MZTools for vba issue In-Reply-To: <003401cba2ca$52dd00e0$f89702a0$@net> Message-ID: <201012232237.oBNMb1SR005788@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ In Excel there is a free Addin from Decision Models (Name Manger) that is a far superior product to anything MS has produced, and another one called "Fink Links" that is invaluable. I am sure there are plenty of other examples. regards Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Friday, 24 December 2010 4:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MZTools for vba issue What about the second question about MSFT ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Tuesday, December 21, 2010 8:09 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > It's great. Cannot live without it. > My big questions: > 1) why didn't they SELL it for $30 or so ? > 2) why didn't MSFT buy the rights to it ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From gustav at cactus.dk Fri Dec 24 08:02:58 2010 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 24 Dec 2010 15:02:58 +0100 Subject: [AccessD] OT: Merry Christmas Message-ID: Hi all Approaching the end of 2010 (boy, do those years just rush by) I wish all of my fellow listers a Merry Christmas and also a Happy New Year! /gustav From jackandpat.d at gmail.com Fri Dec 24 08:02:06 2010 From: jackandpat.d at gmail.com (jack drawbridge) Date: Fri, 24 Dec 2010 09:02:06 -0500 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: Merry Christmas to you Gustav and all AccessD posters and followers. Jack On Fri, Dec 24, 2010 at 9:02 AM, Gustav Brock wrote: > Hi all > > Approaching the end of 2010 (boy, do those years just rush by) I wish all > of my fellow listers a Merry Christmas and also a Happy New Year! > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Dec 24 08:34:04 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 24 Dec 2010 06:34:04 -0800 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: They DO go by faster. When you're over the hill you pick up speed. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 24, 2010 6:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Merry Christmas Hi all Approaching the end of 2010 (boy, do those years just rush by) I wish all of my fellow listers a Merry Christmas and also a Happy New Year! /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 Dec 24 08:54:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 09:54:00 -0500 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: <4D14B408.4000808@colbyconsulting.com> Not being Jewish I didn't realize that Hanukkah varies all over the month. Having looked it up I now know I am late in wishing you happy Hanukkah! John W. Colby www.ColbyConsulting.com On 12/24/2010 9:34 AM, Rocky Smolin wrote: > They DO go by faster. When you're over the hill you pick up speed. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, December 24, 2010 6:03 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Merry Christmas > > Hi all > > Approaching the end of 2010 (boy, do those years just rush by) I wish all of > my fellow listers a Merry Christmas and also a Happy New Year! > > /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 Dec 24 08:54:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 09:54:59 -0500 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: <4D14B443.9040105@colbyconsulting.com> Merry Christmas and a very belated Happy Hanukkah. John W. Colby www.ColbyConsulting.com On 12/24/2010 9:02 AM, Gustav Brock wrote: > Hi all > > Approaching the end of 2010 (boy, do those years just rush by) I wish all of my fellow listers a Merry Christmas and also a Happy New Year! > > /gustav > > From rockysmolin at bchacc.com Fri Dec 24 09:42:51 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 24 Dec 2010 07:42:51 -0800 Subject: [AccessD] OT: Merry Christmas In-Reply-To: <4D14B408.4000808@colbyconsulting.com> References: <4D14B408.4000808@colbyconsulting.com> Message-ID: <4E81EAB0A7834311AEC19A91EC797FB8@HAL9005> Thanks. Yeah - early this year. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 24, 2010 6:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Merry Christmas Not being Jewish I didn't realize that Hanukkah varies all over the month. Having looked it up I now know I am late in wishing you happy Hanukkah! John W. Colby www.ColbyConsulting.com On 12/24/2010 9:34 AM, Rocky Smolin wrote: > They DO go by faster. When you're over the hill you pick up speed. > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Friday, December 24, 2010 6:03 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Merry Christmas > > Hi all > > Approaching the end of 2010 (boy, do those years just rush by) I wish > all of my fellow listers a Merry Christmas and also a Happy New Year! > > /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 accessd at shaw.ca Fri Dec 24 11:28:33 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 24 Dec 2010 09:28:33 -0800 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: Hi All: Have a good one too Gustav... ...and to all the other demonizes of the Access List have a great holiday with family and friends. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, December 24, 2010 6:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Merry Christmas Hi all Approaching the end of 2010 (boy, do those years just rush by) I wish all of my fellow listers a Merry Christmas and also a Happy New Year! /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 Dec 24 11:40:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 12:40:57 -0500 Subject: [AccessD] The old laptop is slowing down Message-ID: <4D14DB29.9090906@colbyconsulting.com> It is sad and somewhat annoying when the laptop starts slowing down. Is it just perception? Am I accustomed now to remote desktop into faster machines and working in snappier systems? Is it an accumulation of crap? Do I need a reinstall? Maybe a move from Vista to Windows 7, with a clean install along the way? An SSD? All I know is that things don't load fast any more. Even doing compiles on VS 2008 is a "sit and wait" experience. I think I really need a new quad core Intel (bad John, BAD John!) iXXX core running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who makes up these names?) controller. It is Christmas after all! Now to convince the wife! -- John W. Colby www.ColbyConsulting.com From jimdettman at verizon.net Fri Dec 24 12:01:38 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 24 Dec 2010 13:01:38 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D14DB29.9090906@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com> Message-ID: <5397F459E5564A228207E444CA6B8E94@XPS> <> No. <> Yes. The registry never really cleans itself out. <> It helps. <> Well load Windows 3.11 and you'll be absolutely AMAZED how fast it runs. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 24, 2010 12:41 PM To: Access Developers discussion and problem solving Subject: [AccessD] The old laptop is slowing down It is sad and somewhat annoying when the laptop starts slowing down. Is it just perception? Am I accustomed now to remote desktop into faster machines and working in snappier systems? Is it an accumulation of crap? Do I need a reinstall? Maybe a move from Vista to Windows 7, with a clean install along the way? An SSD? All I know is that things don't load fast any more. Even doing compiles on VS 2008 is a "sit and wait" experience. I think I really need a new quad core Intel (bad John, BAD John!) iXXX core running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who makes up these names?) controller. It is Christmas after all! Now to convince the wife! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Dec 24 12:12:13 2010 From: df.waters at comcast.net (Dan Waters) Date: Fri, 24 Dec 2010 12:12:13 -0600 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D14DB29.9090906@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com> Message-ID: <9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> If you're waiting for compiles, you need to change something. I'd suggest a desktop - one you build yourself that you can easily update. Get an Intel i950 core (not all that expensive right now ($229 at http://www.microcenter.com/search/search_results.phtml?Ntt=i7-950&N=0&submit .x=0&submit.y=0), an SSD drive for the operating system and apps, and maybe another HD for file storage, and 6/8 Gb Ram. Get two monitors. With this in place you'll be able to do things at least twice as fast as you do now. Before you spring for any more MS software, look at the Design and Development Action Pack (https://partner.microsoft.com/40132997). This includes VS 2010, SQL Server, W7 64, and many others. It's $429/year. I went from a laptop as my dev machine to a desktop with two 1600 X 1200 monitors, and it's a significant difference. If you spent $3000 on new equipment + the Action Pack, and you can work twice as fast, how long would it take to recoup the expense? Not long I'd bet. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 24, 2010 11:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] The old laptop is slowing down It is sad and somewhat annoying when the laptop starts slowing down. Is it just perception? Am I accustomed now to remote desktop into faster machines and working in snappier systems? Is it an accumulation of crap? Do I need a reinstall? Maybe a move from Vista to Windows 7, with a clean install along the way? An SSD? All I know is that things don't load fast any more. Even doing compiles on VS 2008 is a "sit and wait" experience. I think I really need a new quad core Intel (bad John, BAD John!) iXXX core running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who makes up these names?) controller. It is Christmas after all! Now to convince the wife! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Dec 24 12:38:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 24 Dec 2010 10:38:21 -0800 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D14DB29.9090906@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com> Message-ID: I moved from Vista to W7 and got a nice bump in response time. Vista is such a pig. I assume you went through your processes and killed all the unnecessary ones. Crap does accumulate. 4GB Ram? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 24, 2010 9:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] The old laptop is slowing down It is sad and somewhat annoying when the laptop starts slowing down. Is it just perception? Am I accustomed now to remote desktop into faster machines and working in snappier systems? Is it an accumulation of crap? Do I need a reinstall? Maybe a move from Vista to Windows 7, with a clean install along the way? An SSD? All I know is that things don't load fast any more. Even doing compiles on VS 2008 is a "sit and wait" experience. I think I really need a new quad core Intel (bad John, BAD John!) iXXX core running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who makes up these names?) controller. It is Christmas after all! Now to convince the wife! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thewaddles at sbcglobal.net Fri Dec 24 13:00:37 2010 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Fri, 24 Dec 2010 11:00:37 -0800 Subject: [AccessD] query/procedure help In-Reply-To: References: Message-ID: <01cd01cba39c$da729880$8f57c980$@net> Don, Look at the DMax and DMin functions Delete Zero Weights: DELETE Table1.* FROM Table1 WHERE (((Table1.BatchID)="MP123") AND ((Table1.BatchTime)<>DMax("[BatchTime]","Table1","[BatchWeight] = 0")) AND ((Table1.BatchWeight)=0)); Kevin Waddle thewaddles at sbcglobal.net From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Den Patrino Sent: Thursday, December 23, 2010 11:40 AM To: accessd at databaseadvisors.com Subject: [AccessD] query/procedure help Fellow listers ... I am working on a system (Access2003) that I need help with. Production data is written automatically to a table every 1 second. The data collection system is turned on approx. 2 minutes before a batch production is started and not turned off until sometime after the batch production has ended. This results in many records that are not required as data before production starts is meaningless as well as data after the batch is completed. The table currently has > 700,000 records. Hopefully the examples below illustrate the problem. 1) I need help to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a batch weight of 0, except the record with the latest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 13:43:54 0 MP123 22-Mar-2010 13:43:55 0 MP123 22-Mar-2010 13:43:56 0 MP123 22-Mar-2010 13:43:57 0 MP123 22-Mar-2010 13:43:58 0 MP123 22-Mar-2010 13:43:59 0 MP123 22-Mar-2010 13:44:00 0 MP123 22-Mar-2010 13:44:01 0 MP123 22-Mar-2010 13:44:02 0 MP123 22-Mar-2010 13:44:03 0 MP123 22-Mar-2010 13:44:04 0 ------------------------------------------ MP123 22-Mar-2010 13:44:05 0 'delete records previous to this. MP123 22-Mar-2010 13:44:06 1 MP123 22-Mar-2010 13:44:07 2 At the end of the batch run, there will be multiple records with the same weight. (the max. weight of the batch) 2) I need to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a where the batch weight = maximum weight for the batch, except the record with the earliest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 14:37:23 11531 ------------------------------------- MP123 22-Mar-2010 14:37:24 11531 - delete from here down MP123 22-Mar-2010 14:37:25 11531 MP123 22-Mar-2010 14:37:26 11531 MP123 22-Mar-2010 14:37:27 11531 MP123 22-Mar-2010 14:37:28 11531 MP123 22-Mar-2010 14:37:29 11531 MP123 22-Mar-2010 14:37:30 11531 MP123 22-Mar-2010 14:37:31 11531 MP123 22-Mar-2010 14:37:32 11531 MP123 22-Mar-2010 14:37:33 11531 MP123 22-Mar-2010 14:37:34 11531 MP123 22-Mar-2010 14:37:35 11531 MP123 22-Mar-2010 14:37:36 11531 MP123 22-Mar-2010 14:37:37 11531 TIA. Patty -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thewaddles at sbcglobal.net Fri Dec 24 15:53:20 2010 From: thewaddles at sbcglobal.net (Kevin Waddle) Date: Fri, 24 Dec 2010 13:53:20 -0800 Subject: [AccessD] query/procedure help In-Reply-To: References: <01cd01cba39c$da729880$8f57c980$@net> Message-ID: <01e501cba3b4$fb3fbc10$f1bf3430$@net> Don, This will loop through the records?modify the SQL as required to match your table Sub LoopThroughQuery() Dim db As Database Dim rs As Recordset Dim strSQL As String Dim strSQLDelete As String Set db = CurrentDb strSQL = "SELECT Distinct Table1.BatchID FROM Table1;" Set rs = db.OpenRecordset(strSQL) rs.MoveFirst DoCmd.SetWarnings False Do While Not rs.EOF strSQLDelete = "DELETE Table1.* FROM Table1 WHERE (((Table1.BatchID)='" & rs.Fields("BatchID") & "') AND ((Table1.BatchTime)<>DMax('[BatchTime]','Table1','[BatchWeight] = 0')) AND ((Table1.BatchWeight)=0));" DoCmd.RunSQL strSQLDelete rs.MoveNext Loop DoCmd.SetWarnings True Set rs = Nothing Set db = Nothing End Sub Kevin Waddle thewaddles at sbcglobal.net From: Den Patrino [mailto:patrinod at gmail.com] Sent: Friday, December 24, 2010 11:29 AM To: Kevin Waddle Subject: Re: [AccessD] query/procedure help Kevin ... Thanks for the quey. I've used the DMax and DMin functions in 2 separate queries and never thought of combining the 2. My problem now is how do I cycle through the table without hard-coding the BatchID number and running the query. Something like: (I'm not sure how to do this) For each BatchID in rs DoCmd.RunSql "theQuery" End for Thanks for your suggestion of combining the DMin and DMax. The problem of going through all BatchID's has been driving me nuts With your query, if I can figure out the rest it will make things much easier. It's really good to have people like you share their knowledge. Thanks agains Dennis On Fri, Dec 24, 2010 at 2:00 PM, Kevin Waddle wrote: Don, Look at the DMax and DMin functions Delete Zero Weights: DELETE Table1.* FROM Table1 WHERE (((Table1.BatchID)="MP123") AND ((Table1.BatchTime)<>DMax("[BatchTime]","Table1","[BatchWeight] = 0")) AND ((Table1.BatchWeight)=0)); Kevin Waddle thewaddles at sbcglobal.net From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Den Patrino Sent: Thursday, December 23, 2010 11:40 AM To: accessd at databaseadvisors.com Subject: [AccessD] query/procedure help Fellow listers ... I am working on a system (Access2003) that I need help with. Production data is written automatically to a table every 1 second. The data collection system is turned on approx. 2 minutes before a batch production is started and not turned off until sometime after the batch production has ended. This results in many records that are not required as data before production starts is meaningless as well as data after the batch is completed. The table currently has > 700,000 records. Hopefully the examples below illustrate the problem. 1) I need help to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a batch weight of 0, except the record with the latest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 13:43:54 0 MP123 22-Mar-2010 13:43:55 0 MP123 22-Mar-2010 13:43:56 0 MP123 22-Mar-2010 13:43:57 0 MP123 22-Mar-2010 13:43:58 0 MP123 22-Mar-2010 13:43:59 0 MP123 22-Mar-2010 13:44:00 0 MP123 22-Mar-2010 13:44:01 0 MP123 22-Mar-2010 13:44:02 0 MP123 22-Mar-2010 13:44:03 0 MP123 22-Mar-2010 13:44:04 0 ------------------------------------------ MP123 22-Mar-2010 13:44:05 0 'delete records previous to this. MP123 22-Mar-2010 13:44:06 1 MP123 22-Mar-2010 13:44:07 2 At the end of the batch run, there will be multiple records with the same weight. (the max. weight of the batch) 2) I need to create of procedure that loops through the table records and for every unique BatchID, deletes all records with a where the batch weight = maximum weight for the batch, except the record with the earliest time. Example data. Pertinent Table fields and data. BatchID (text), BatchTime (date/time) BatchWeight (long) MP123 22-Mar-2010 14:37:23 11531 ------------------------------------- MP123 22-Mar-2010 14:37:24 11531 - delete from here down MP123 22-Mar-2010 14:37:25 11531 MP123 22-Mar-2010 14:37:26 11531 MP123 22-Mar-2010 14:37:27 11531 MP123 22-Mar-2010 14:37:28 11531 MP123 22-Mar-2010 14:37:29 11531 MP123 22-Mar-2010 14:37:30 11531 MP123 22-Mar-2010 14:37:31 11531 MP123 22-Mar-2010 14:37:32 11531 MP123 22-Mar-2010 14:37:33 11531 MP123 22-Mar-2010 14:37:34 11531 MP123 22-Mar-2010 14:37:35 11531 MP123 22-Mar-2010 14:37:36 11531 MP123 22-Mar-2010 14:37:37 11531 TIA. Patty -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 24 16:52:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 17:52:00 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: References: <4D14DB29.9090906@colbyconsulting.com> Message-ID: <4D152410.3060803@colbyconsulting.com> > I moved from Vista to W7 and got a nice bump in response time. Vista is such a pig. Tell me! I installed Vista on this laptop a couple of years ago and have hated it ever since. I think I will try an upgrade to 2007 just to see if that helps at all. >I assume you went through your processes and killed all the unnecessary ones. Crap does accumulate. I do that every 6 months or so. >4GB Ram? It has 4 gigs now. Unfortunately unknown to me I was sold a laptop with a chip set that cannot access more than 3.5 gigs. Who would suspect such a thing? John W. Colby www.ColbyConsulting.com On 12/24/2010 1:38 PM, Rocky Smolin wrote: > I moved from Vista to W7 and got a nice bump in response time. Vista is > such a pig. I assume you went through your processes and killed all the > unnecessary ones. Crap does accumulate. 4GB Ram? > > R > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, December 24, 2010 9:41 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] The old laptop is slowing down > > It is sad and somewhat annoying when the laptop starts slowing down. Is it > just perception? Am I accustomed now to remote desktop into faster machines > and working in snappier systems? Is it an accumulation of crap? Do I need > a reinstall? Maybe a move from Vista to Windows 7, with a clean install > along the way? An SSD? > > All I know is that things don't load fast any more. Even doing compiles on > VS 2008 is a "sit and wait" experience. > > I think I really need a new quad core Intel (bad John, BAD John!) iXXX core > running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the > latest Sandforce (who makes up these names?) controller. It is Christmas > after all! > > Now to convince the wife! > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Fri Dec 24 16:54:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 17:54:47 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> References: <4D14DB29.9090906@colbyconsulting.com> <9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> Message-ID: <4D1524B7.3080601@colbyconsulting.com> As it happens I have a new server with 8 cores and 32 gigs of ram running Windows 2008, SQL Server 2008 and VS 2008. I remote desktop into that to do some stuff and it is probably the reason my laptop feels so slow. I just re-upped for the action pack. The payment hasn't cleared yet so I can't yet download but I am using software from the old one right now. John W. Colby www.ColbyConsulting.com On 12/24/2010 1:12 PM, Dan Waters wrote: > If you're waiting for compiles, you need to change something. > > I'd suggest a desktop - one you build yourself that you can easily update. > Get an Intel i950 core (not all that expensive right now ($229 at > http://www.microcenter.com/search/search_results.phtml?Ntt=i7-950&N=0&submit > .x=0&submit.y=0), an SSD drive for the operating system and apps, and maybe > another HD for file storage, and 6/8 Gb Ram. Get two monitors. With this > in place you'll be able to do things at least twice as fast as you do now. > > Before you spring for any more MS software, look at the Design and > Development Action Pack (https://partner.microsoft.com/40132997). This > includes VS 2010, SQL Server, W7 64, and many others. It's $429/year. > > I went from a laptop as my dev machine to a desktop with two 1600 X 1200 > monitors, and it's a significant difference. If you spent $3000 on new > equipment + the Action Pack, and you can work twice as fast, how long would > it take to recoup the expense? Not long I'd bet. > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, December 24, 2010 11:41 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] The old laptop is slowing down > > It is sad and somewhat annoying when the laptop starts slowing down. Is it > just perception? Am I > accustomed now to remote desktop into faster machines and working in > snappier systems? Is it an > accumulation of crap? Do I need a reinstall? Maybe a move from Vista to > Windows 7, with a clean > install along the way? An SSD? > > All I know is that things don't load fast any more. Even doing compiles on > VS 2008 is a "sit and > wait" experience. > > I think I really need a new quad core Intel (bad John, BAD John!) iXXX core > running Windows 7 X64 > and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who > makes up these names?) > controller. It is Christmas after all! > > Now to convince the wife! > From davidmcafee at gmail.com Fri Dec 24 19:14:55 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 24 Dec 2010 17:14:55 -0800 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D152410.3060803@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com> <4D152410.3060803@colbyconsulting.com> Message-ID: I thought it was the limit for 32 bit o.s. to access 4gb or more, you need 64 bit o.s. Sent from my Droid phone. On Dec 24, 2010 2:53 PM, "jwcolby" wrote: > > I moved from Vista to W7 and got a nice bump in response time. Vista is such a pig. > > Tell me! I installed Vista on this laptop a couple of years ago and have hated it ever since. I > think I will try an upgrade to 2007 just to see if that helps at all. > > >I assume you went through your processes and killed all the unnecessary ones. Crap does accumulate. > > I do that every 6 months or so. > > >4GB Ram? > > It has 4 gigs now. Unfortunately unknown to me I was sold a laptop with a chip set that cannot > access more than 3.5 gigs. Who would suspect such a thing? > > > > John W. Colby > www.ColbyConsulting.com > > On 12/24/2010 1:38 PM, Rocky Smolin wrote: >> I moved from Vista to W7 and got a nice bump in response time. Vista is >> such a pig. I assume you went through your processes and killed all the >> unnecessary ones. Crap does accumulate. 4GB Ram? >> >> R >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Friday, December 24, 2010 9:41 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] The old laptop is slowing down >> >> It is sad and somewhat annoying when the laptop starts slowing down. Is it >> just perception? Am I accustomed now to remote desktop into faster machines >> and working in snappier systems? Is it an accumulation of crap? Do I need >> a reinstall? Maybe a move from Vista to Windows 7, with a clean install >> along the way? An SSD? >> >> All I know is that things don't load fast any more. Even doing compiles on >> VS 2008 is a "sit and wait" experience. >> >> I think I really need a new quad core Intel (bad John, BAD John!) iXXX core >> running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the >> latest Sandforce (who makes up these names?) controller. It is Christmas >> after all! >> >> Now to convince the wife! >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 24 20:11:48 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 24 Dec 2010 21:11:48 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: References: <4D14DB29.9090906@colbyconsulting.com> <4D152410.3060803@colbyconsulting.com> Message-ID: <4D1552E4.5030807@colbyconsulting.com> > I thought it was the limit for 32 bit o.s. to access 4gb or more, you need 64 bit o.s. It is, but if I were to put 8 gigs in the laptop, the hardware would only show 4 gigs. I will put Win7 x64 on there anyway. John W. Colby www.ColbyConsulting.com On 12/24/2010 8:14 PM, David McAfee wrote: > I thought it was the limit for 32 bit o.s. to access 4gb or more, you need > 64 bit o.s. > > Sent from my Droid phone. > On Dec 24, 2010 2:53 PM, "jwcolby" wrote: >>> I moved from Vista to W7 and got a nice bump in response time. Vista is > such a pig. >> >> Tell me! I installed Vista on this laptop a couple of years ago and have > hated it ever since. I >> think I will try an upgrade to 2007 just to see if that helps at all. >> >>> I assume you went through your processes and killed all the unnecessary > ones. Crap does accumulate. >> >> I do that every 6 months or so. >> >>> 4GB Ram? >> >> It has 4 gigs now. Unfortunately unknown to me I was sold a laptop with a > chip set that cannot >> access more than 3.5 gigs. Who would suspect such a thing? >> >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 12/24/2010 1:38 PM, Rocky Smolin wrote: >>> I moved from Vista to W7 and got a nice bump in response time. Vista is >>> such a pig. I assume you went through your processes and killed all the >>> unnecessary ones. Crap does accumulate. 4GB Ram? >>> >>> R >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Friday, December 24, 2010 9:41 AM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] The old laptop is slowing down >>> >>> It is sad and somewhat annoying when the laptop starts slowing down. Is > it >>> just perception? Am I accustomed now to remote desktop into faster > machines >>> and working in snappier systems? Is it an accumulation of crap? Do I need >>> a reinstall? Maybe a move from Vista to Windows 7, with a clean install >>> along the way? An SSD? >>> >>> All I know is that things don't load fast any more. Even doing compiles > on >>> VS 2008 is a "sit and wait" experience. >>> >>> I think I really need a new quad core Intel (bad John, BAD John!) iXXX > core >>> running Windows 7 X64 and 16 gigs of ram, all on a 512 G SSD running the >>> latest Sandforce (who makes up these names?) controller. It is Christmas >>> after all! >>> >>> Now to convince the wife! >>> >>> -- >>> John W. Colby >>> www.ColbyConsulting.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com From actebs at actebs.com.au Sat Dec 25 07:23:52 2010 From: actebs at actebs.com.au (ACTEBS) Date: Sun, 26 Dec 2010 00:23:52 +1100 Subject: [AccessD] OT: Merry Christmas In-Reply-To: References: Message-ID: <000001cba436$f8ea1230$eabe3690$@com.au> Hi Gustav, Have an awesome Christmas and an even more awesome New Year. The same goes to everyone at AccessD... :) Regards Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, 25 December 2010 1:03 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Merry Christmas Hi all Approaching the end of 2010 (boy, do those years just rush by) I wish all of my fellow listers a Merry Christmas and also a Happy New Year! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sat Dec 25 14:45:04 2010 From: df.waters at comcast.net (Dan Waters) Date: Sat, 25 Dec 2010 14:45:04 -0600 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D1524B7.3080601@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com><9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> <4D1524B7.3080601@colbyconsulting.com> Message-ID: Just curious - I haven't been able to get the pages to open for the Design/Development Action Pack so I haven't been able to sign up yet. Did you go for that one or the Solution Provider Action Pack? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 24, 2010 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The old laptop is slowing down As it happens I have a new server with 8 cores and 32 gigs of ram running Windows 2008, SQL Server 2008 and VS 2008. I remote desktop into that to do some stuff and it is probably the reason my laptop feels so slow. I just re-upped for the action pack. The payment hasn't cleared yet so I can't yet download but I am using software from the old one right now. John W. Colby www.ColbyConsulting.com On 12/24/2010 1:12 PM, Dan Waters wrote: > If you're waiting for compiles, you need to change something. > > I'd suggest a desktop - one you build yourself that you can easily update. > Get an Intel i950 core (not all that expensive right now ($229 at > http://www.microcenter.com/search/search_results.phtml?Ntt=i7-950&N=0&submit > .x=0&submit.y=0), an SSD drive for the operating system and apps, and maybe > another HD for file storage, and 6/8 Gb Ram. Get two monitors. With this > in place you'll be able to do things at least twice as fast as you do now. > > Before you spring for any more MS software, look at the Design and > Development Action Pack (https://partner.microsoft.com/40132997). This > includes VS 2010, SQL Server, W7 64, and many others. It's $429/year. > > I went from a laptop as my dev machine to a desktop with two 1600 X 1200 > monitors, and it's a significant difference. If you spent $3000 on new > equipment + the Action Pack, and you can work twice as fast, how long would > it take to recoup the expense? Not long I'd bet. > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, December 24, 2010 11:41 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] The old laptop is slowing down > > It is sad and somewhat annoying when the laptop starts slowing down. Is it > just perception? Am I > accustomed now to remote desktop into faster machines and working in > snappier systems? Is it an > accumulation of crap? Do I need a reinstall? Maybe a move from Vista to > Windows 7, with a clean > install along the way? An SSD? > > All I know is that things don't load fast any more. Even doing compiles on > VS 2008 is a "sit and > wait" experience. > > I think I really need a new quad core Intel (bad John, BAD John!) iXXX core > running Windows 7 X64 > and 16 gigs of ram, all on a 512 G SSD running the latest Sandforce (who > makes up these names?) > controller. It is Christmas after all! > > Now to convince the wife! > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Dec 25 17:48:55 2010 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 26 Dec 2010 00:48:55 +0100 Subject: [AccessD] The old laptop is slowing down Message-ID: Hi Dan The Design/Development Action Pack is for you. The other option is for admin and techie guys/gals. /gustav >>> df.waters at comcast.net 25-12-2010 21:45 >>> Just curious - I haven't been able to get the pages to open for the Design/Development Action Pack so I haven't been able to sign up yet. Did you go for that one or the Solution Provider Action Pack? Dan From jwcolby at colbyconsulting.com Sat Dec 25 22:40:17 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 25 Dec 2010 23:40:17 -0500 Subject: [AccessD] SQL Server Express version Message-ID: <4D16C731.4080203@colbyconsulting.com> I have SQL Server Express 10 on my laptop (dev machine). That appears to be 2005. I actually have the service there (not running) but I cannot seem to find it in the "programs and features". So how do I uninstall it in order to install the 2008 version? Or if I just do an install will it overwrite the old one? I suspect not. I just installed VS 2010 yesterday and kind of expected that it would install the latest express as part of its install but it does not seem to have done so. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Dec 25 22:51:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 25 Dec 2010 23:51:58 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: References: <4D14DB29.9090906@colbyconsulting.com><9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> <4D1524B7.3080601@colbyconsulting.com> Message-ID: <4D16C9EE.8030708@colbyconsulting.com> Try it using Firefox and just click through the warning that it won't work well. I can't get on using IE. John W. Colby www.ColbyConsulting.com On 12/25/2010 3:45 PM, Dan Waters wrote: > Just curious - I haven't been able to get the pages to open for the > Design/Development Action Pack so I haven't been able to sign up yet. Did > you go for that one or the Solution Provider Action Pack? > > Dan From marksimms at verizon.net Sun Dec 26 04:53:22 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 26 Dec 2010 05:53:22 -0500 Subject: [AccessD] MZTools for vba issue In-Reply-To: <201012232237.oBNMb1SR005788@databaseadvisors.com> References: <003401cba2ca$52dd00e0$f89702a0$@net> <201012232237.oBNMb1SR005788@databaseadvisors.com> Message-ID: <000001cba4eb$1dd59ec0$5980dc40$@net> I heard of the Name Manager before...but nothing about Fink Links. A google search on Fink Links produces nothing about an Excel addin. Do you have a URL reference ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Thursday, December 23, 2010 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > > > _______________________________________________________________________ > ________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > _______________________________________________________________________ > ________________ > > > > In Excel there is a free Addin from Decision Models (Name Manger) that > is a far superior product to anything MS has produced, and another one > called "Fink Links" that is invaluable. I am sure there are plenty of > other examples. > > regards > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Friday, 24 December 2010 4:54 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > What about the second question about MSFT ? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > > Sent: Tuesday, December 21, 2010 8:09 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] MZTools for vba issue > > It's great. Cannot live without it. > > My big questions: > > 1) why didn't they SELL it for $30 or so ? > > 2) why didn't MSFT buy the rights to it ? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________________________________ > ________________ > > The information transmitted in this message and its attachments (if > any) is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, 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. > > If you have received this in error, please contact the sender and > delete this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose > or distribute > the information contained in this e-mail and any attached files, with > the permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________ > ________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Dec 26 11:35:22 2010 From: df.waters at comcast.net (Dan Waters) Date: Sun, 26 Dec 2010 11:35:22 -0600 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D16C9EE.8030708@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com><9E78DEFBF9B24FD68F892D89329A06CA@DanWaters> <4D1524B7.3080601@colbyconsulting.com> <4D16C9EE.8030708@colbyconsulting.com> Message-ID: <5967BB9308444C518714C6DEAB7925EE@DanWaters> LOL!! Normally that site won't work with anything but IE, so that's all I tried. Crossing my fingers ... ! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, December 25, 2010 10:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The old laptop is slowing down Try it using Firefox and just click through the warning that it won't work well. I can't get on using IE. John W. Colby www.ColbyConsulting.com On 12/25/2010 3:45 PM, Dan Waters wrote: > Just curious - I haven't been able to get the pages to open for the > Design/Development Action Pack so I haven't been able to sign up yet. Did > you go for that one or the Solution Provider Action Pack? > > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Sun Dec 26 13:14:05 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 26 Dec 2010 14:14:05 -0500 Subject: [AccessD] The old laptop is slowing down In-Reply-To: <4D14DB29.9090906@colbyconsulting.com> References: <4D14DB29.9090906@colbyconsulting.com> Message-ID: <010701cba531$10e9cf10$32bd6d30$@net> It's been my experience that the Windows REGISTRY is the culprit. That being said, I TRIED ALL OF THE REG CLEANERS. None are that great. I've had more success going in and cleaning things out manually.... But this is not for the "faint of heart". Microsoft did create a special utility for uninstalling programs where the built-in uninstall program did not do the job completely. Even their own MS Office has this problem ! Office never uninstalls completely. Go figure ! From marksimms at verizon.net Sun Dec 26 13:16:47 2010 From: marksimms at verizon.net (Mark Simms) Date: Sun, 26 Dec 2010 14:16:47 -0500 Subject: [AccessD] SQL Server Express version In-Reply-To: <4D16C731.4080203@colbyconsulting.com> References: <4D16C731.4080203@colbyconsulting.com> Message-ID: <010801cba531$715c8360$54158a20$@net> Your experience matches mine: Always wondering whether or not a new release install UPDATES the old release and completely removes the old, or ADDS the app as a NEW RELEASE. Worst attribute of the Windows environment IMHO. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, December 25, 2010 11:40 PM > To: VBA; Access Developers discussion and problem solving > Subject: [AccessD] SQL Server Express version > > I have SQL Server Express 10 on my laptop (dev machine). That appears > to be 2005. I actually have > the service there (not running) but I cannot seem to find it in the > "programs and features". So how > do I uninstall it in order to install the 2008 version? Or if I just > do an install will it > overwrite the old one? I suspect not. From shamil at smsconsulting.spb.ru Sun Dec 26 14:17:33 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 26 Dec 2010 23:17:33 +0300 Subject: [AccessD] SQL Server Express version In-Reply-To: <010801cba531$715c8360$54158a20$@net> References: <4D16C731.4080203@colbyconsulting.com> <010801cba531$715c8360$54158a20$@net> Message-ID: <930B589AC9EE4D859B34F1B58AF049B4@nant> MS SQL 2008 seems to have the worst setup since MS SQL 7. At least that was my experience. And there is also MS SQL 2008 R2, which has incompatible to MS SQL 2008 back-up format - that's a PITA. I'd remove MS SQL 2005 completely. Then I'd get installed MS SQL 2008 (if MS SQL 2008 R2 is commonly used there then I'd install it). Then if needed you can install MS SQL 2005 (Express) instance in its own folder - that will work OK in parallel to MS SQL 2008 (R2) instance(s). And you can control MS SQL 2005 instance from within MS SQL 2008 (R2) Management Studio (Express) I didn't try to install MS SQL 2008 instance on a PC with MS SQL 2008 R2 installed. Anybody? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: 26 ??????? 2010 ?. 22:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SQL Server Express version Your experience matches mine: Always wondering whether or not a new release install UPDATES the old release and completely removes the old, or ADDS the app as a NEW RELEASE. Worst attribute of the Windows environment IMHO. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, December 25, 2010 11:40 PM > To: VBA; Access Developers discussion and problem solving > Subject: [AccessD] SQL Server Express version > > I have SQL Server Express 10 on my laptop (dev machine). That appears > to be 2005. I actually have the service there (not running) but I > cannot seem to find it in the "programs and features". So how do I > uninstall it in order to install the 2008 version? Or if I just do an > install will it overwrite the old one? I suspect not. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Dec 26 18:31:40 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 26 Dec 2010 19:31:40 -0500 Subject: [AccessD] SQL Server Express version In-Reply-To: <930B589AC9EE4D859B34F1B58AF049B4@nant> References: <4D16C731.4080203@colbyconsulting.com> <010801cba531$715c8360$54158a20$@net> <930B589AC9EE4D859B34F1B58AF049B4@nant> Message-ID: <4D17DE6C.1040804@colbyconsulting.com> I specifically need SQL Server 2008 Express. I am doing development in C# which will use Express and why go to 2005 at this point. John W. Colby www.ColbyConsulting.com On 12/26/2010 3:17 PM, Shamil Salakhetdinov wrote: > MS SQL 2008 seems to have the worst setup since MS SQL 7. > At least that was my experience. > And there is also MS SQL 2008 R2, which has incompatible to MS SQL 2008 > back-up format - that's a PITA. > > I'd remove MS SQL 2005 completely. > Then I'd get installed MS SQL 2008 (if MS SQL 2008 R2 is commonly used there > then I'd install it). > > Then if needed you can install MS SQL 2005 (Express) instance in its own > folder - that will work OK in parallel to MS SQL 2008 (R2) instance(s). > And you can control MS SQL 2005 instance from within MS SQL 2008 (R2) > Management Studio (Express) > > I didn't try to install MS SQL 2008 instance on a PC with MS SQL 2008 R2 > installed. Anybody? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: 26 ??????? 2010 ?. 22:17 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SQL Server Express version > > Your experience matches mine: > Always wondering whether or not a new release install UPDATES the old > release and completely removes the old, or ADDS the app as a NEW RELEASE. > Worst attribute of the Windows environment IMHO. > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd- >> bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, December 25, 2010 11:40 PM >> To: VBA; Access Developers discussion and problem solving >> Subject: [AccessD] SQL Server Express version >> >> I have SQL Server Express 10 on my laptop (dev machine). That appears >> to be 2005. I actually have the service there (not running) but I >> cannot seem to find it in the "programs and features". So how do I >> uninstall it in order to install the 2008 version? Or if I just do an >> install will it overwrite the old one? I suspect not. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at iag.com.au Mon Dec 27 21:11:52 2010 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 28 Dec 2010 14:11:52 +1100 Subject: [AccessD] MZTools for vba issue In-Reply-To: <000001cba4eb$1dd59ec0$5980dc40$@net> References: <003401cba2ca$52dd00e0$f89702a0$@net> <201012232237.oBNMb1SR005788@databaseadvisors.com>, <000001cba4eb$1dd59ec0$5980dc40$@net> Message-ID: <201012280314.oBS3E16m010087@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Name Manager is available here: <> Charles's site is great if you want to poke around in Excel's calculation engine. Find Links can be download as a zip file from here: <> hope that helps. Cheers Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms [marksimms at verizon.net] Sent: Sunday, 26 December 2010 9:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MZTools for vba issue I heard of the Name Manager before...but nothing about Fink Links. A google search on Fink Links produces nothing about an Excel addin. Do you have a URL reference ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > Sent: Thursday, December 23, 2010 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MZTools for vba issue > > > _______________________________________________________________________ > ________________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > _______________________________________________________________________ > ________________ > > > > In Excel there is a free Addin from Decision Models (Name Manger) that > is a far superior product to anything MS has produced, and another one > called "Fink Links" that is invaluable. I am sure there are plenty of > other examples. > > regards > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Friday, 24 December 2010 4:54 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] MZTools for vba issue > > What about the second question about MSFT ? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > > bounces at databaseadvisors.com] On Behalf Of Darryl Collins > > Sent: Tuesday, December 21, 2010 8:09 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] MZTools for vba issue > > It's great. Cannot live without it. > > My big questions: > > 1) why didn't they SELL it for $30 or so ? > > 2) why didn't MSFT buy the rights to it ? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________________________________ > ________________ > > The information transmitted in this message and its attachments (if > any) is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, 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. > > If you have received this in error, please contact the sender and > delete this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose > or distribute > the information contained in this e-mail and any attached files, with > the permission > of the sender. > > This message has been scanned for viruses. > _______________________________________________________________________ > ________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, 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. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From listmaster at databaseadvisors.com Wed Dec 29 07:19:58 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Wed, 29 Dec 2010 08:19:58 -0500 Subject: [AccessD] Administrivia - Server Upgrade Message-ID: Good morning folks, The server will be going down in half an hour, at approx 845 ET It will be down for approx 4-6 hours for a complete upgrade. I will send out another email, once we are all back up and running again. If you have any questions while the server is done, please get in touch with me at carbonnb at gmail.com -- Bryan Carbonnell - list master at databaseadvisors.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 30 08:50:48 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:50:48 -0500 Subject: [AccessD] Test Message-ID: Just checking to see if we are back up and running. -- 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 listmaster at databaseadvisors.com Thu Dec 30 08:59:57 2010 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:59:57 -0500 Subject: [AccessD] Administrivia - Server Upgrade - UPDATE - Dec 30 @ 0955 Message-ID: Good Morning folks, I hope you didn't suffer too many withdrawals from not having your favourite lists yesterday and this morning. The Server upgrade was a challenge to say the least. A Royal PITA to say it closer to what it really was. There are still lots of things to work out, like putting the archives back online. Have no fear, your words of wisdom are being archived (for those lists that have archiving turned on), but the archives aren't available yet. The main goal was to get the lists back up and running, which it appears they are. If you encounter any abnormalities, please let me know ASAP so I can look into it. Things will slowly become normal again over the remainder of the week. Thanks for your patience. during the upgrade. -- Bryan Carbonnell - listmaster at databaseadvisors.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Dec 30 08:18:34 2010 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 30 Dec 2010 09:18:34 -0500 Subject: [AccessD] Testing In-Reply-To: References: Message-ID: Just checking to see if we are back up and configured correctly -- 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 shamil at smsconsulting.spb.ru Thu Dec 30 10:39:57 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 30 Dec 2010 19:39:57 +0300 Subject: [AccessD] Test In-Reply-To: References: Message-ID: <5F8B5059BCBF47EC8B86D25EE33F2CE2@nant> Hi Bryan -- Yes, it works! Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 30 ??????? 2010 ?. 17:51 To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking to see if we are back up and running. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 11:21:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 09:21:10 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Message-ID: Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From davidmcafee at gmail.com Thu Dec 30 11:56:00 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 30 Dec 2010 09:56:00 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Dec 30 12:01:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:01:21 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: I just converted the A2K3 mdb to A2K7 accdb to see if it would make a difference but got the same behavior. The txt box descriptions below, BTW, did not get formatted well. This might be easier to read: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 Dear List: I have an app which I developed and delivered to the client in A2K3. He runs is mostly in A2K7. This is a legal app which, among other things tracks time spent. The problem is on the Timesheet form where the lawyer enters time by client and matter. In the Timesheet Form Header section there are four text boxes: txtHoursWorked - control source is =Sum([HoursWorked]) txtHoursBillable - control source is =Sum([HoursBillable]) txtAmountBilled - control source is =Sum([AmountBilled]) txtAmountToPay which is unbound and is update by a call to a module ComputePay The first three change after an update of one of those three fields in a detail section. Whenever a field which affects one of these fields is updated, I call ComputePay and this updates the unbound text box txtAmountToPay. This works perfectly in 2003. In 2007, however, after an update the values in the first three boxes disappear and the fourth one doesn't change. But they're actually there. If I alt-Tab away from the form and then alt-Tab back, the numbers appear. I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no soap. I confirmed that this happens on my test bed machine as well as on his box. Both are running SP2. Any ideas what might be causing this? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Dec 30 12:16:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:16:12 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Dec 30 12:33:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 13:33:43 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Dec 30 12:44:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 30 Dec 2010 10:44:07 -0800 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Dec 30 13:07:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 30 Dec 2010 14:07:58 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: <4D1CD88E.4080106@colbyconsulting.com> LOL, yea, Office 2007 is causing this. But you knew that I suppose. ;) The nice part is that they have pretty tool bars to look at when they can't see the actual data for the application. I KNEW those tool bars would be good for SOMETHING!!! John W. Colby www.ColbyConsulting.com On 12/30/2010 12:21 PM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. He > runs is mostly in A2K7. This is a legal app which, among other things > tracks time spent. The problem is on the Timesheet form where the lawyer > enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in a > detail section. Whenever a field which affects one of these fields is > updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the values > in the first three boxes disappear and the fourth one doesn't change. But > they're actually there. If I alt-Tab away from the form and then alt-Tab > back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but no > soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > From Lambert.Heenan at chartisinsurance.com Thu Dec 30 15:33:56 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 30 Dec 2010 16:33:56 -0500 Subject: [AccessD] Text Boxes displaying in 2003 and not in 2007 In-Reply-To: References: Message-ID: Yay! Something works in Access 2007! Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 Lambert: Me.Recalc in the ComputePay routine worked!!! Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, December 30, 2010 10:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 What about Me.Recalc as the last line in the Sub ComputePay (assuming that sub is local to the form)? Also, have you put a Debug.Print statement inside the AfterUpdate event handler to be sure it is being called? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, December 30, 2010 1:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 David: The first three text boxes, where the problem lies, are bound (=Sum([fieldname]). I put DoEvents into the AftertUpdate event of the text box but didn't help. Also tried DoEvents in the Form_Update event - no soap. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, December 30, 2010 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Text Boxes displaying in 2003 and not in 2007 I've been seeing weird repaint/refresh problems too in A2K7. Can you try using a DoEvents after each field is updated? On Thu, Dec 30, 2010 at 9:21 AM, Rocky Smolin wrote: > Dear List: > > I have an app which I developed and delivered to the client in A2K3. > He runs is mostly in A2K7. This is a legal app which, among other > things tracks time spent. The problem is on the Timesheet form where > the lawyer enters time by client and matter. > > In the Timesheet Form Header section there are four text boxes: > > txtHoursWorked - control source is =Sum([HoursWorked]) > txtHoursBillable - control source is =Sum([HoursBillable]) > txtAmountBilled - control source is =Sum([AmountBilled]) > txtAmountToPay which is unbound and is update by a call to a module > ComputePay > > The first three change after an update of one of those three fields in > a detail section. Whenever a field which affects one of these fields > is updated, I call ComputePay and this updates the unbound text box > txtAmountToPay. > > This works perfectly in 2003. In 2007, however, after an update the > values in the first three boxes disappear and the fourth one doesn't > change. But they're actually there. If I alt-Tab away from the form > and then alt-Tab back, the numbers appear. > > I have tried Me.Repaint and Me.Refresh in the ComputePay routine but > no soap. > > I confirmed that this happens on my test bed machine as well as on his box. > Both are running SP2. > > Any ideas what might be causing this? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 smsconsulting.spb.ru Fri Dec 31 06:13:44 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 31 Dec 2010 15:13:44 +0300 Subject: [AccessD] Ded Moroz sends you links on sample projects... :) Message-ID: <88C8330964FC47F7A753561E66B42346@nant> Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Fri Dec 31 09:32:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 10:32:52 -0500 Subject: [AccessD] Ya know they tell ya to remove power... Message-ID: <4D1DF7A4.5070308@colbyconsulting.com> A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com From robert at servicexp.com Fri Dec 31 13:19:40 2010 From: robert at servicexp.com (Robert) Date: Fri, 31 Dec 2010 14:19:40 -0500 Subject: [AccessD] Ya know they tell ya to remove power... In-Reply-To: <4D1DF7A4.5070308@colbyconsulting.com> References: <4D1DF7A4.5070308@colbyconsulting.com> Message-ID: <001301cba91f$af2774b0$0d765e10$@com> I just love stories with happy endings.... :-) especially at the end of the year. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, December 31, 2010 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Ya know they tell ya to remove power... A "funny" story with a happy ending. I was working on a new server I am building for doing a VM. All done, working well. I had an iRam card which is an old card which holds up to 4 gigs of RAM and turns it into an SATA 1 hard disk. It works fine with vista and previous but it does not work with Win7 and 2008 clean installs. Apparently they just don't have drivers to make it happen. So I removed the iRam, which was in a PCI slot and I neglected to put the little metal tab in the back to cover the hold in the back panel where the card screwed down. The next day I decided to install an Areca 1220 I had laying around. The Areca is a PCI Express card. Not watching what I was doing I tried to insert it into the slot adjacent to the pci express slot which happens to be PCI. The computer *turns on* and I start smelling that sickening smell of toasted something. Since I am installing an Areca 1220 I assume that the toasted something is a $450 Areca raid controller card. I quickly yanked the card out and turn the computer back off. I then *remove the power*... and decide what the heck, let's see whether I actually fried the Areca. Looking closely at the card I notice a connector trace on each side burned. My guess is that these two traces are shorted together on the PCI Express but are power / ground on the PCI. As it turns out the Areca was otherwise undamaged, just a couple of connector pins seriously overheated and damaged. My motherboard wasn't fried. *Very lucky* all in all. Ya know they tell ya to remove power... -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Dec 31 20:56:06 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 31 Dec 2010 21:56:06 -0500 Subject: [AccessD] Happy new year Message-ID: <4D1E97C6.3060000@colbyconsulting.com> To all our members around the world, may the new year be a good one. I am about to go down stairs and watch a movie with my wife, and ring in the new year with a glass of sparkling cider. If you party, do so with restraint. This is a particularly dangerous night to be out on the roads. Happy new year. -- John W. Colby www.ColbyConsulting.com