From Gustav at cactus.dk Mon Mar 1 04:57:06 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Mar 2010 11:57:06 +0100 Subject: [AccessD] (H)OT: Tradeshift Message-ID: Hi all This could represent a major step forward: Tradeshift is the world's first open global business platform. It connects all suppliers and business partners electronically, delivering better, smarter and above all, safer business transactions. http://www.tradeshift.com/ The article in Wired that has boosted this: http://www.wired.com/magazine/2010/02/ff_futureofmoney It is at page 4. /gustav From jimdettman at verizon.net Mon Mar 1 08:40:27 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 01 Mar 2010 09:40:27 -0500 Subject: [AccessD] Using macros - good thing or bad? In-Reply-To: <935A88BEA5F3438BABD65D53CFDBABA1@stevePC> References: <7c7841601002241318x1eea1357q1196856430d65f48@mail.gmail.com> <4B85B581.4594.AD3019E@stuart.lexacorp.com.pg> <993889405DAB4DF9BD70F16F85E8F2B2@jislaptopdev> <39AE27F925B44D9A9B09D39AB7CC12E9@XPS> <7240323E78624C25A654F46CD51FF943@XPS> <935A88BEA5F3438BABD65D53CFDBABA1@stevePC> Message-ID: <928E37322F884894A47D32AA39DE2C0C@XPS> Steve, << Do you ever wish there was an 'Undo' button on a mailing list? >> Many Just look at that first post I made on this: "I there is a 64bit version of ACE in the works, but nothing is planned for JET that I am aware." Should have been "I think there is". Amazing what I edit in when I read through a post before I send it. Then after I see it on the list, it's always "how could I post something like that?" Have wished for a recall button many, many times. <> No issues here And a lot of what is flying around at the moment is just hearsay until something actually happens. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Saturday, February 27, 2010 3:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using macros - good thing or bad? Jim, and all, Do you ever wish there was an 'Undo' button on a mailing list? I am very sorry about my comment about 64 bit JET. I had posted my comment hastily and in a state of confusion, and I was wrong. Apologies, for both my tone and my incorrectness, and please pretend that comment did not exist. I have no knowledge either way about any plans for a 64 bit JET version. Regards Steve -------------------------------------------------- From: "Jim Dettman" Sent: Sunday, February 28, 2010 8:50 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Using macros - good thing or bad? > > and just to be clear, that may be unclear. Everyone keeps referring to > JET and ACE as being one in the same. All I've heard at this point is > that > there would be no "native 64 bit version of JET". > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Saturday, February 27, 2010 2:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Using macros - good thing or bad? > > Steve, > > I there is a 64bit version of ACE in the works, but nothing is planned > for > JET that I am aware. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, February 26, 2010 5:50 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using macros - good thing or bad? > > Jim, > > -------------------------------------------------- > From: "Jim Dettman" > Sent: Saturday, February 27, 2010 9:43 AM > >> I've also heard that Microsoft has no plans for a 64 bit version of JET, > > You've heard wrong. :-) > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 1 10:31:42 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 08:31:42 -0800 Subject: [AccessD] Email problem. Again Message-ID: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From dwaters at usinternet.com Mon Mar 1 12:25:16 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 1 Mar 2010 12:25:16 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From robert at servicexp.com Mon Mar 1 12:25:52 2010 From: robert at servicexp.com (Robert) Date: Mon, 1 Mar 2010 13:25:52 -0500 Subject: [AccessD] Email problem. Again In-Reply-To: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: <001401cab96c$a2020b90$e60622b0$@com> I know this doesn't help you Rocky but, IMHO it's much better to use a 3rd part control for internet IO functions from with-in Access. I for 2 years, played that cat and mouse game regarding e-mail from Access, I never looked back after I moved to IPWorks. It always just works.... WBR Robert I have been using IPWorks for that last 7 years with VERY VERY little problems. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 11:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From jimdettman at verizon.net Mon Mar 1 13:38:26 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 01 Mar 2010 14:38:26 -0500 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: <3635D8C1441341A9BBCD1BBC268F3B88@XPS> Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 Mon Mar 1 13:41:40 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 11:41:40 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: Dan: That looks good - I'll give it a go. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 max.wanadoo at gmail.com Mon Mar 1 13:43:18 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 19:43:18 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <3635D8C1441341A9BBCD1BBC268F3B88@XPS> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> <3635D8C1441341A9BBCD1BBC268F3B88@XPS> Message-ID: Well, you could always open a Gmail account with Google called Rocky.Clients at googlemail.com and then use their smtp to send out your client emails. You could also use it to handle their emails to you. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 01 March 2010 19:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 tinanfields at torchlake.com Mon Mar 1 13:49:11 2010 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 01 Mar 2010 14:49:11 -0500 Subject: [AccessD] OT Friday: Programmers interview In-Reply-To: <4b817595.9615f10a.1543.7f7d@mx.google.com> References: <4B7EC410.5050908@nanaimo.ark.com> <20100219203644.DRZF14639.mta03.xtra.co.nz@Dalyn.dalyn.co.nz> <4b817595.9615f10a.1543.7f7d@mx.google.com> Message-ID: <4B8C1A37.1010705@torchlake.com> I got 14 of 20. T Max Wanadoo wrote: > Bit late, but... > > You are interviewing a programmer for an important job and you ask him "Can > you program really well in MS Access" and he says "Sure I can" and smiles at > you. > > Is he lying or telling the truth. > > Judge for yourself. Can you tell the liar? > > I got 15/20. > > http://www.bbc.co.uk/science/humanbody/mind/surveys/smiles/ > > Max > > > From rockysmolin at bchacc.com Mon Mar 1 14:17:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 12:17:29 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><3635D8C1441341A9BBCD1BBC268F3B88@XPS> Message-ID: Yeah, but it's not for me - it's for a client and then he's going to try to resell the app to others. So it has to be pretty general case. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well, you could always open a Gmail account with Google called Rocky.Clients at googlemail.com and then use their smtp to send out your client emails. You could also use it to handle their emails to you. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 01 March 2010 19:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 Mon Mar 1 14:18:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 12:18:07 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <3635D8C1441341A9BBCD1BBC268F3B88@XPS> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> <3635D8C1441341A9BBCD1BBC268F3B88@XPS> Message-ID: <739E07AF9BF348AA861826DBD7A23E0C@HAL9005> " you need to know how it wants to authenticate." I wonder if that could be what changed at his site. I don't know what the options are for authentication (don't even know what the hell it is), but in the code it's using .Item(cdoSMTPAuthenticate) = cdoBasic but I can't find out what cdoBasic refers to. Any ideas there? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, March 01, 2010 11:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 max.wanadoo at gmail.com Mon Mar 1 14:24:10 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 20:24:10 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><3635D8C1441341A9BBCD1BBC268F3B88@XPS> Message-ID: <83D6700AA89845EABCC5FE9841BE7874@Server> Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yeah, but it's not for me - it's for a client and then he's going to try to resell the app to others. So it has to be pretty general case. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well, you could always open a Gmail account with Google called Rocky.Clients at googlemail.com and then use their smtp to send out your client emails. You could also use it to handle their emails to you. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 01 March 2010 19:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 max.wanadoo at gmail.com Mon Mar 1 14:25:30 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 20:25:30 -0000 Subject: [AccessD] OT Friday: Programmers interview In-Reply-To: <4B8C1A37.1010705@torchlake.com> References: <4B7EC410.5050908@nanaimo.ark.com> <20100219203644.DRZF14639.mta03.xtra.co.nz@Dalyn.dalyn.co.nz><4b817595.9615f10a.1543.7f7d@mx.google.com> <4B8C1A37.1010705@torchlake.com> Message-ID: Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: 01 March 2010 19:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday: Programmers interview I got 14 of 20. T Max Wanadoo wrote: > Bit late, but... > > You are interviewing a programmer for an important job and you ask him > "Can you program really well in MS Access" and he says "Sure I can" > and smiles at you. > > Is he lying or telling the truth. > > Judge for yourself. Can you tell the liar? > > I got 15/20. > > http://www.bbc.co.uk/science/humanbody/mind/surveys/smiles/ > > Max > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 1 14:38:01 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 12:38:01 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <83D6700AA89845EABCC5FE9841BE7874@Server> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><3635D8C1441341A9BBCD1BBC268F3B88@XPS> <83D6700AA89845EABCC5FE9841BE7874@Server> Message-ID: Law firm - they want copies of all emails coming and going and they want it in-house. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 12:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yeah, but it's not for me - it's for a client and then he's going to try to resell the app to others. So it has to be pretty general case. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well, you could always open a Gmail account with Google called Rocky.Clients at googlemail.com and then use their smtp to send out your client emails. You could also use it to handle their emails to you. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 01 March 2010 19:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 rockysmolin at bchacc.com Mon Mar 1 14:56:56 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 12:56:56 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: Dan: I'm using this code and it runs right through to the end but no email shows up in my inbox. Do you see a problem with the way I'm trying to use it? Private Sub cmdSend_Click() 'Assumes you have a form with text boxes named as below Set poSendMail = New vbSendMail.clsSendMail poSendMail.SMTPHost = Me.txtSMTPMailServer poSendMail.From = Me.txtSMTPUserName poSendMail.FromDisplayName = Me.txtSMTPUserName poSendMail.Recipient = Me.txtTestTo poSendMail.RecipientDisplayName = Me.txtTestTo poSendMail.ReplyToAddress = Me.txtSMTPUserName poSendMail.Subject = Me.txtTestSubject poSendMail.Attachment = Me.txtTestAttachment 'attached file name poSendMail.Message = Me.txtTestMessage poSendMail.Password = Me.txtSMTPPassword poSendMail.Send Set poSendMail = Nothing End Sub TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 max.wanadoo at gmail.com Mon Mar 1 15:12:08 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 21:12:08 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><3635D8C1441341A9BBCD1BBC268F3B88@XPS><83D6700AA89845EABCC5FE9841BE7874@Server> Message-ID: <781F9B93DC7D4CE385D09D22004BBD55@Server> Then print them from the client as per normal. Regardless of how they transit through the internet, they will arrive in your law firm's inbox and outgoing will originate from there too. Routing through googlemail wont affect that one way or the other. With your CDO you are using Microsoft credentials. All I am saying is use Google's. At my charity, ALL emails are re-directed to googlemail and we auto-download from there. We hardly ever, ever get spam and because we tell google to retain a copy, then we have an archive for everybody - nobody can delete an email and pretend they never got it because there is a copy on google. Think outside the box. Make it work for your needs. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Law firm - they want copies of all emails coming and going and they want it in-house. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 12:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yeah, but it's not for me - it's for a client and then he's going to try to resell the app to others. So it has to be pretty general case. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 11:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well, you could always open a Gmail account with Google called Rocky.Clients at googlemail.com and then use their smtp to send out your client emails. You could also use it to handle their emails to you. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 01 March 2010 19:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 1 15:35:05 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 1 Mar 2010 15:35:05 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan From max.wanadoo at gmail.com Mon Mar 1 15:36:07 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 21:36:07 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: What does the code for clsSendMail look like? Presumable you have a field like this = CreateObject("CDO.Message") Put make-up data for sensitive fields Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I'm using this code and it runs right through to the end but no email shows up in my inbox. Do you see a problem with the way I'm trying to use it? Private Sub cmdSend_Click() 'Assumes you have a form with text boxes named as below Set poSendMail = New vbSendMail.clsSendMail poSendMail.SMTPHost = Me.txtSMTPMailServer poSendMail.From = Me.txtSMTPUserName poSendMail.FromDisplayName = Me.txtSMTPUserName poSendMail.Recipient = Me.txtTestTo poSendMail.RecipientDisplayName = Me.txtTestTo poSendMail.ReplyToAddress = Me.txtSMTPUserName poSendMail.Subject = Me.txtTestSubject poSendMail.Attachment = Me.txtTestAttachment 'attached file name poSendMail.Message = Me.txtTestMessage poSendMail.Password = Me.txtSMTPPassword poSendMail.Send Set poSendMail = Nothing End Sub TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 Gustav at cactus.dk Mon Mar 1 15:44:52 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Mar 2010 22:44:52 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Jim > ..you need to know the SMTP server, > you need and account and password, and > you need to know how it wants to authenticate. But if you, as a service, host your own SMTP server you can more or less hardcode a set of standard user credentials in the client. That leaves only one problem: An open port 25. Even that can be circumvented if you run your dedicated SMTP server off-standard at port 80 which practically always is open for web browsing. And an SMTP is no big deal; it was a standard service from Win NT to Win XP/2003/2008. It was left out from Vista and Win 7. > Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Nope, sorry, don't know anything about IPworks except for its incredible price tag! /gustav >>> jimdettman at verizon.net 01-03-2010 20:38 >>> Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software From dwaters at usinternet.com Mon Mar 1 15:46:52 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 1 Mar 2010 15:46:52 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: clsSendMail is in the vbSendMail.dll file that you download. This file and mswinsck.ocx must be registered. On each using PC - which can be done programmatically. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again What does the code for clsSendMail look like? Presumable you have a field like this = CreateObject("CDO.Message") Put make-up data for sensitive fields Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I'm using this code and it runs right through to the end but no email shows up in my inbox. Do you see a problem with the way I'm trying to use it? Private Sub cmdSend_Click() 'Assumes you have a form with text boxes named as below Set poSendMail = New vbSendMail.clsSendMail poSendMail.SMTPHost = Me.txtSMTPMailServer poSendMail.From = Me.txtSMTPUserName poSendMail.FromDisplayName = Me.txtSMTPUserName poSendMail.Recipient = Me.txtTestTo poSendMail.RecipientDisplayName = Me.txtTestTo poSendMail.ReplyToAddress = Me.txtSMTPUserName poSendMail.Subject = Me.txtTestSubject poSendMail.Attachment = Me.txtTestAttachment 'attached file name poSendMail.Message = Me.txtTestMessage poSendMail.Password = Me.txtSMTPPassword poSendMail.Send Set poSendMail = Nothing End Sub TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 Gustav at cactus.dk Mon Mar 1 15:55:31 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Mar 2010 22:55:31 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Max You don't set up some auto-download. You can set up a fixed forwarding of any or some mails arriving at the GMail account. And right you are; with this method you have a 7.5 GB mail store backup for free which is persistent even if you don't pay the bill (that isn't there). For the Google Apps setup Free Version you can have 50 such accounts for your own domain if you like, still for free. If that wasn't enough, GMail offers not even POP3 and Web access but also IMAP, secure as well as (standard) non-secure. An incredible offer payed by the advertisers at Google. /gustav >>> max.wanadoo at gmail.com 01-03-2010 22:12 >>> Then print them from the client as per normal. Regardless of how they transit through the internet, they will arrive in your law firm's inbox and outgoing will originate from there too. Routing through googlemail wont affect that one way or the other. With your CDO you are using Microsoft credentials. All I am saying is use Google's. At my charity, ALL emails are re-directed to googlemail and we auto-download from there. We hardly ever, ever get spam and because we tell google to retain a copy, then we have an archive for everybody - nobody can delete an email and pretend they never got it because there is a copy on google. Think outside the box. Make it work for your needs. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Law firm - they want copies of all emails coming and going and they want it in-house. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 12:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max From jimdettman at verizon.net Mon Mar 1 15:58:57 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 01 Mar 2010 16:58:57 -0500 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: <37E09D1243F441C8AB224980369235DE@XPS> Rocky, In addition to what Dan said about using withevents and getting a status message back, you can also test SMPT (and POP servers using TELNET, a command line utility). http://technet.microsoft.com/en-us/library/bb123686.aspx You enter in commands step by step and can send an e-mail manually. Some reasons your code might be failing (and the code you have is correct BTW, it just may not be all that you need with this one server): 1. Wrong server IP. 2. Wrong username/password. 3. Relaying is not allowed by the server - you must be sending from an IP address that is on the same network as the server. 4. The server requires login to the POP3 server before you can send mail. 5. The server requires an authenticated login. #3 you may not be able to do anything about. #4 and #5 would be a slight change to your code. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I'm using this code and it runs right through to the end but no email shows up in my inbox. Do you see a problem with the way I'm trying to use it? Private Sub cmdSend_Click() 'Assumes you have a form with text boxes named as below Set poSendMail = New vbSendMail.clsSendMail poSendMail.SMTPHost = Me.txtSMTPMailServer poSendMail.From = Me.txtSMTPUserName poSendMail.FromDisplayName = Me.txtSMTPUserName poSendMail.Recipient = Me.txtTestTo poSendMail.RecipientDisplayName = Me.txtTestTo poSendMail.ReplyToAddress = Me.txtSMTPUserName poSendMail.Subject = Me.txtTestSubject poSendMail.Attachment = Me.txtTestAttachment 'attached file name poSendMail.Message = Me.txtTestMessage poSendMail.Password = Me.txtSMTPPassword poSendMail.Send Set poSendMail = Nothing End Sub TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 10:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 rockysmolin at bchacc.com Mon Mar 1 16:31:46 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 14:31:46 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: "It was left out from Vista and Win 7." Does that mean that if he's trying to send emails and using Vista, it won't work? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 01, 2010 1:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Jim > ..you need to know the SMTP server, > you need and account and password, and you need to know how it wants > to authenticate. But if you, as a service, host your own SMTP server you can more or less hardcode a set of standard user credentials in the client. That leaves only one problem: An open port 25. Even that can be circumvented if you run your dedicated SMTP server off-standard at port 80 which practically always is open for web browsing. And an SMTP is no big deal; it was a standard service from Win NT to Win XP/2003/2008. It was left out from Vista and Win 7. > Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Nope, sorry, don't know anything about IPworks except for its incredible price tag! /gustav >>> jimdettman at verizon.net 01-03-2010 20:38 >>> Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 1 16:30:41 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 22:30:41 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: Hi Gustav, by auto-download I simply meant in Outlook set it up as pop3 or imap to get your mail every x minutes. It will automatically connect to google and the client doesn't really care which smtp server it gets it from. With our hosting email site, we simply do a auto-redirect to the same name on google and in google we set up the reply as an alias to the original name. Works great. And yep, what you say about their offer is spot on. I didn't have the stats you quote but aren't they fantastic feebies? Cheers Gustav Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 01 March 2010 21:56 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Max You don't set up some auto-download. You can set up a fixed forwarding of any or some mails arriving at the GMail account. And right you are; with this method you have a 7.5 GB mail store backup for free which is persistent even if you don't pay the bill (that isn't there). For the Google Apps setup Free Version you can have 50 such accounts for your own domain if you like, still for free. If that wasn't enough, GMail offers not even POP3 and Web access but also IMAP, secure as well as (standard) non-secure. An incredible offer payed by the advertisers at Google. /gustav >>> max.wanadoo at gmail.com 01-03-2010 22:12 >>> Then print them from the client as per normal. Regardless of how they transit through the internet, they will arrive in your law firm's inbox and outgoing will originate from there too. Routing through googlemail wont affect that one way or the other. With your CDO you are using Microsoft credentials. All I am saying is use Google's. At my charity, ALL emails are re-directed to googlemail and we auto-download from there. We hardly ever, ever get spam and because we tell google to retain a copy, then we have an archive for everybody - nobody can delete an email and pretend they never got it because there is a copy on google. Think outside the box. Make it work for your needs. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Law firm - they want copies of all emails coming and going and they want it in-house. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 12:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max -- 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 Mar 1 16:46:12 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 Mar 2010 08:46:12 +1000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005>, <83D6700AA89845EABCC5FE9841BE7874@Server>, Message-ID: <4B8C43B4.5722.ED6DC86@stuart.lexacorp.com.pg> In which case, they need an in-house mail server. If they are using an in-house mail server, you just need to store the IP address of the server. There are plenty of good low-cost mail servers out there that are simple to set up and maintain. -- Stuart On 1 Mar 2010 at 12:38, Rocky Smolin wrote: > Law firm - they want copies of all emails coming and going and they want it > in-house. > > R > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, March 01, 2010 12:24 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Why is that a problem. Google lets you have as many as you want. > > Rocky.client1name at goolemail.com > Rocky.client2name at goolemail.com > Rocky.client3name at goolemail.com > > You can even take out a business solution from them with Google docs etc, > etc. Google gives you tons of stuff that MS does not. > > Etc. > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: 01 March 2010 20:17 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Yeah, but it's not for me - it's for a client and then he's going to try to > resell the app to others. So it has to be pretty general case. > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, March 01, 2010 11:43 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > > Well, you could always open a Gmail account with Google called > Rocky.Clients at googlemail.com and then use their smtp to send out your > client emails. You could also use it to handle their emails to you. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: 01 March 2010 19:38 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Dan, > > I've used the vbSendMail.DLL for many years, but Rocky will still have the > same issues that he has with CDO; that is you need to know the SMTP server, > you need and account and password, and you need to know how it wants to > authenticate. > > vbSendMail does have some code to support finding the SMTP server via the > DNS MX record, but it still won't help if you don't have an account to > authenticate with nor know how the server wants to. Unfortunately, the days > of open SMTP servers that will accept mail from anyone are gone. > > The only issue with CDO is that there are different CDO libs, but most of > those have retired by now (NT4 was different then 2000, etc). Other then > that, it's similar to vbSendMail in terms of functionality. However you are > relying on something being installed on the client as you would be with > Outlook. > > Like you, I've found vbSendMail easy to use and it works as a drop in even > though it reads as VB 6.0. I even wrote a class wrapper for it because it > had too many options for most of what I do with mail, which worked fine. > > Haven't used IPWorks, but I believe it's Gustav that likes it a lot. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, March 01, 2010 1:25 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Hi Rocky, > > Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this > application and .dll. > > This includes an application form where you can enter all your info and send > an email. After you register the files vbSendMail.dll and mswinsck.ocx, and > then the email doesn't go, then it's a network issue. > > I've also converted this to use with Access, and it's completely reliable. > > Good luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, March 01, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Email problem. Again > > Dear List: > > Couple years ago I got a lead here on how to automatically send emails with > reports attached from an app for one of my clients client - a patent > attorney who needs to send regular reports to all his clients. I ended up > with a routine I got from a link called SendSMTPMail which requires a > reference to Microsoft CDO for Windows 2000 library. > > It requires that you pass to the routine the mail server name, user name, > password, and port. > > And it worked for many months. Then it stopped. It works on my machine > with my personal but at their site, where they're using Exchange server, > something may have changed. Who knows? We had a session with their network > guy but couldn't get it to work. > > OTOH, I had the client try the routine at home on his laptop using his > personal account and he reported that it failed. Now I don't know for sure > what parameters he passed to the SendSMTPMail routine so I don't know if > they were the right ones. But if he has the right ones, and it failed on > his personal account, then that might point to the CDO? But that's been the > same (AFAIK) since day 1. > > In any event, 2 questions: > > 1) any ideas why this would stop working? > > 2) is there a more "moderne" approach to this sending of emails? He and I > discussed using the Outlook object - I've got that code in other apps, but > since he has ambitions to resell this system to other law firms, it should > be independent of Outlook. > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 1 16:47:09 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 1 Mar 2010 22:47:09 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: If Port 25 is blocked then try 587 or 465 Or run your own SMTP server MiniRelay from http://www.pendriveapps.com/portable-smtp-server-mini-relay/ Tons of sites to download from (Ignore the strange name of NetVicous - I started using it some 5/6 years ago (or maybe not quite that long, time warps at my age)) Or directly from http://netvicious.com if you read Spanish. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 22:32 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again "It was left out from Vista and Win 7." Does that mean that if he's trying to send emails and using Vista, it won't work? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 01, 2010 1:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Jim > ..you need to know the SMTP server, > you need and account and password, and you need to know how it wants > to authenticate. But if you, as a service, host your own SMTP server you can more or less hardcode a set of standard user credentials in the client. That leaves only one problem: An open port 25. Even that can be circumvented if you run your dedicated SMTP server off-standard at port 80 which practically always is open for web browsing. And an SMTP is no big deal; it was a standard service from Win NT to Win XP/2003/2008. It was left out from Vista and Win 7. > Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Nope, sorry, don't know anything about IPworks except for its incredible price tag! /gustav >>> jimdettman at verizon.net 01-03-2010 20:38 >>> Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 1 16:50:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 14:50:53 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 1 19:37:33 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 1 Mar 2010 19:37:33 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> Message-ID: <4BFF853EDBCE4B6A8E437876D5E10372@danwaters> Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! 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 rockysmolin at bchacc.com Mon Mar 1 22:08:45 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 1 Mar 2010 20:08:45 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <4BFF853EDBCE4B6A8E437876D5E10372@danwaters> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> <4BFF853EDBCE4B6A8E437876D5E10372@danwaters> Message-ID: Got it. Thank you. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 2 02:21:28 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Mar 2010 09:21:28 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Rocky No no, it means that he sends mail to your SMTP server which you either can set up at home as described (using the SMTP service of IIS running on some old box) or hosted somewhere and this somewhere could very well be GMail which "always" is accessible and is free to use and manage. Using a hosted solution, including GMail, limits you however to use the standard ports for sending mail which are 25 and 587 and in some cases 465 which means that one of these ports must be open for outbound traffic. This is not the case in locked-down environments which typically are found at banks and other secure organisations. /gustav >>> rockysmolin at bchacc.com 01-03-2010 23:31 >>> "It was left out from Vista and Win 7." Does that mean that if he's trying to send emails and using Vista, it won't work? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 01, 2010 1:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Jim > ..you need to know the SMTP server, > you need and account and password, and you need to know how it wants > to authenticate. But if you, as a service, host your own SMTP server you can more or less hardcode a set of standard user credentials in the client. That leaves only one problem: An open port 25. Even that can be circumvented if you run your dedicated SMTP server off-standard at port 80 which practically always is open for web browsing. And an SMTP is no big deal; it was a standard service from Win NT to Win XP/2003/2008. It was left out from Vista and Win 7. > Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Nope, sorry, don't know anything about IPworks except for its incredible price tag! /gustav >>> jimdettman at verizon.net 01-03-2010 20:38 >>> Dan, I've used the vbSendMail.DLL for many years, but Rocky will still have the same issues that he has with CDO; that is you need to know the SMTP server, you need and account and password, and you need to know how it wants to authenticate. vbSendMail does have some code to support finding the SMTP server via the DNS MX record, but it still won't help if you don't have an account to authenticate with nor know how the server wants to. Unfortunately, the days of open SMTP servers that will accept mail from anyone are gone. The only issue with CDO is that there are different CDO libs, but most of those have retired by now (NT4 was different then 2000, etc). Other then that, it's similar to vbSendMail in terms of functionality. However you are relying on something being installed on the client as you would be with Outlook. Like you, I've found vbSendMail easy to use and it works as a drop in even though it reads as VB 6.0. I even wrote a class wrapper for it because it had too many options for most of what I do with mail, which worked fine. Haven't used IPWorks, but I believe it's Gustav that likes it a lot. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Go to http://www.freevbcode.com/ShowCode.Asp?ID=109 to download this application and .dll. This includes an application form where you can enter all your info and send an email. After you register the files vbSendMail.dll and mswinsck.ocx, and then the email doesn't go, then it's a network issue. I've also converted this to use with Access, and it's completely reliable. Good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Email problem. Again Dear List: Couple years ago I got a lead here on how to automatically send emails with reports attached from an app for one of my clients client - a patent attorney who needs to send regular reports to all his clients. I ended up with a routine I got from a link called SendSMTPMail which requires a reference to Microsoft CDO for Windows 2000 library. It requires that you pass to the routine the mail server name, user name, password, and port. And it worked for many months. Then it stopped. It works on my machine with my personal but at their site, where they're using Exchange server, something may have changed. Who knows? We had a session with their network guy but couldn't get it to work. OTOH, I had the client try the routine at home on his laptop using his personal account and he reported that it failed. Now I don't know for sure what parameters he passed to the SendSMTPMail routine so I don't know if they were the right ones. But if he has the right ones, and it failed on his personal account, then that might point to the CDO? But that's been the same (AFAIK) since day 1. In any event, 2 questions: 1) any ideas why this would stop working? 2) is there a more "moderne" approach to this sending of emails? He and I discussed using the Outlook object - I've got that code in other apps, but since he has ambitions to resell this system to other law firms, it should be independent of Outlook. MTIA Rocky Smolin Beach Access Software From Gustav at cactus.dk Tue Mar 2 02:24:05 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Mar 2010 09:24:05 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Max OK, it was talking about forwarding the mail from GMail to the in-house mail server which they, as Stuart mentions, must have - and probably do have - to store their mail in-house. /gustav >>> max.wanadoo at gmail.com 01-03-2010 23:30 >>> Hi Gustav, by auto-download I simply meant in Outlook set it up as pop3 or imap to get your mail every x minutes. It will automatically connect to google and the client doesn't really care which smtp server it gets it from. With our hosting email site, we simply do a auto-redirect to the same name on google and in google we set up the reply as an alias to the original name. Works great. And yep, what you say about their offer is spot on. I didn't have the stats you quote but aren't they fantastic feebies? Cheers Gustav Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 01 March 2010 21:56 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Max You don't set up some auto-download. You can set up a fixed forwarding of any or some mails arriving at the GMail account. And right you are; with this method you have a 7.5 GB mail store backup for free which is persistent even if you don't pay the bill (that isn't there). For the Google Apps setup Free Version you can have 50 such accounts for your own domain if you like, still for free. If that wasn't enough, GMail offers not even POP3 and Web access but also IMAP, secure as well as (standard) non-secure. An incredible offer payed by the advertisers at Google. /gustav >>> max.wanadoo at gmail.com 01-03-2010 22:12 >>> Then print them from the client as per normal. Regardless of how they transit through the internet, they will arrive in your law firm's inbox and outgoing will originate from there too. Routing through googlemail wont affect that one way or the other. With your CDO you are using Microsoft credentials. All I am saying is use Google's. At my charity, ALL emails are re-directed to googlemail and we auto-download from there. We hardly ever, ever get spam and because we tell google to retain a copy, then we have an archive for everybody - nobody can delete an email and pretend they never got it because there is a copy on google. Think outside the box. Make it work for your needs. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 01 March 2010 20:38 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Law firm - they want copies of all emails coming and going and they want it in-house. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 01, 2010 12:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Why is that a problem. Google lets you have as many as you want. Rocky.client1name at goolemail.com Rocky.client2name at goolemail.com Rocky.client3name at goolemail.com You can even take out a business solution from them with Google docs etc, etc. Google gives you tons of stuff that MS does not. Etc. Max From rockysmolin at bchacc.com Tue Mar 2 11:30:41 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 09:30:41 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <4BFF853EDBCE4B6A8E437876D5E10372@danwaters> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005> <4BFF853EDBCE4B6A8E437876D5E10372@danwaters> Message-ID: <69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Tue Mar 2 11:47:59 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Tue, 2 Mar 2010 11:47:59 -0600 Subject: [AccessD] OT: Microsoft Project 2000 Book Message-ID: <7c7841601003020947q48159408if97f0c5b07e6f21b@mail.gmail.com> Does anyone know of a really good book on Microsoft Project? I'm trying to use Project to manage a big project at work, and it's kicking my ass. I need something that talks about the basic concepts clearly, and provides sound practices for maintaining large projects. So much on the web is details without understanding, or marketing BS from consultancy sites. Thanks, -Ken From dwaters at usinternet.com Tue Mar 2 12:36:12 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 2 Mar 2010 12:36:12 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: <69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters> <69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> Message-ID: Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 2 12:42:39 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 2 Mar 2010 12:42:39 -0600 Subject: [AccessD] OT: Microsoft Project 2000 Book In-Reply-To: <7c7841601003020947q48159408if97f0c5b07e6f21b@mail.gmail.com> References: <7c7841601003020947q48159408if97f0c5b07e6f21b@mail.gmail.com> Message-ID: <0F2EDC8760654522AF5B1FCC32AFB16C@danwaters> Ken, I have a book named 'Dynamic Scheduling w/ MS Project 2003'. I like it, and it has 4 1/2 stars on Amazon. But I don't know the differences between Project 2000 and Project 2003. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert Sent: Tuesday, March 02, 2010 11:48 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Microsoft Project 2000 Book Does anyone know of a really good book on Microsoft Project? I'm trying to use Project to manage a big project at work, and it's kicking my ass. I need something that talks about the basic concepts clearly, and provides sound practices for maintaining large projects. So much on the web is details without understanding, or marketing BS from consultancy sites. Thanks, -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 12:47:30 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 10:47:30 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> Message-ID: Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 2 13:42:03 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 2 Mar 2010 13:42:03 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> Message-ID: <5CD722FFBD8749D09732AE3BD525E82F@danwaters> Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 14:16:23 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 12:16:23 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <5CD722FFBD8749D09732AE3BD525E82F@danwaters> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005> <5CD722FFBD8749D09732AE3BD525E82F@danwaters> Message-ID: <9545C2D6850D484A93DF172E4F73C159@HAL9005> Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 2 15:38:13 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 2 Mar 2010 21:38:13 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <9545C2D6850D484A93DF172E4F73C159@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters> <9545C2D6850D484A93DF172E4F73C159@HAL9005> Message-ID: <7EC5B649F07C4614B9C6EECCC868858E@Server> Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 15:48:10 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 13:48:10 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <7EC5B649F07C4614B9C6EECCC868858E@Server> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005> <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: <1377E48D6FDD44509553A94535598E8D@HAL9005> Yes, but in where? There's no authenticate method parameter that I can see. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 2 15:48:57 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 2 Mar 2010 21:48:57 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <9545C2D6850D484A93DF172E4F73C159@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters> <9545C2D6850D484A93DF172E4F73C159@HAL9005> Message-ID: Rocky, I cannot recall how all this started,but have you tried something like this. Function Email() Dim strTable As String, strTo As String, strCC As String, strBCC As String Dim strSubject As String, strBody As String Dim bPreview As Boolean DoCmd.SendObject acSendTable, strTable, acFormatXLS, strTo, strCC, strBCC, strSubject, strBody, bPreview End Function whereby you can set up a dummy table to satisfy the requirments of the docmd. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 2 15:53:51 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 2 Mar 2010 21:53:51 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <1377E48D6FDD44509553A94535598E8D@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005><7EC5B649F07C4614B9C6EECCC868858E@Server> <1377E48D6FDD44509553A94535598E8D@HAL9005> Message-ID: Mine is handled like this below: Varauthenicate is set to cdoBasic which has the value of 1. Max Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.From = strFrom objMessage.To = strEmail objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody '"This is some sample message text.." & vbCrLf & "It was sent using SMTP authentication." ' objMessage.HTMLBody = strHTML' Or you could use HTML as: ' ATTACHMENT : Add an attachment Can be any valid url objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendusing") = varPort objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpserver") = varSendVia objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpauthenticate") = varAuthenticate objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendusername") = strUserName objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendpassword") = strPwd objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpserverport") = varServerPort objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpusessl") = strUseSSL objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpconnectiontimeout") = varSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration MsgBox objMessage.GetStream.ReadText ' Use to show the message. objMessage.Send ' Send the message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 21:48 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, but in where? There's no authenticate method parameter that I can see. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Mar 2 16:01:55 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Mar 2010 08:01:55 +1000 Subject: [AccessD] Email problem. Again In-Reply-To: <9545C2D6850D484A93DF172E4F73C159@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005>, <5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005> Message-ID: <4B8D8AD3.5475.13D4ADC3@stuart.lexacorp.com.pg> What SMTP server are you sending this through? Do you know anything about the way it is configured? Generally an SMTP server will be set up with various "relay" controls. These will be a combination of any of the following: 1. Acccept email for specified (local) domains from anyoine. 2. Accept email for delivery to anyone from specified (local) IP addresses 3. Accept email for delivery to anyone if the request comes from an IP address which has just ( withint x minutes?) made a POP3 connection using a vaild login name/password 4. Accept email for delvery to anyone as long as they use SMTP Authentication methods. In your case the server is saying that it is rejecting the To address because the domain of the recipient isn't local and is not in a specified list of external domains. This may be because and absolute restriction or it may be because it operates on a combination of rules 1 and 4 above. If it is an AUTH problem, it gets quite tricky. There are several types of Authentication, AUTH-LOGIN, AUTH-PLAIN and AUTH-CRAM5 The server may support, one, tow or all three of these methods, the only way to find out is to look at the response the server gives to a EHLO command. Each of these methods requires a different set of commands/parameters. This is further complicated by the fact that the server may require a TSL/SSL encryted connection. To put it simply, processes such as the Class under discussion are fine for communicating with a local (on the same internal network) SMTP server but don't have the necessary "grunt" to handle the far more complicated processes involved in working with external servers which have anti-relaying restrictions in place. If an external server doesn't have anti-relay restrictions in place, the spammers will find it very quickly and flood it with delivery requests, On 2 Mar 2010 at 12:16, Rocky Smolin wrote: > Apparently I need to "authenticate my outgoing server" whatever the hell > that means. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, March 02, 2010 11:42 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Well - that's out of scope for me. But I bet someone else on this list > knows exactly what it means. > > I would try copying that complete error message into a google/bing search > field and see what comes up. > > Good to see that the vbSendMail code actually told you what's wrong. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, March 02, 2010 12:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Dan: > > 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message > I get. > > > What it means? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, March 02, 2010 10:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Hi Rocky, > > This is a class so it's done a little differently. > > The class name is 'EmailSMTP', and we've set up a public variable to > represent that class - 'ES'. > > So you can call a procedure in that class like this: > > Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ > Me.txtSMTPUserName, _ > Me.txtSMTPUserName, _ > Me.txtTestSubject, _ > Me.txtTestTo, _ > Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) > > And I think that should do it. > > > But there's one more thing - change this procedure as shown here: > (This was code for my error trapping framework.) > > ------------------------------------------------------- > Private Sub poSendMail_SendFailed(Explanation As String) > > DELETE THIS PERMANENTLY: > '-- The SMTPEmailFailed procedure is called so that ErrEx will record > the Call Stack and also the value of Explanation > Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) > > ADD THIS FOR TESTING: > MsgBox Explanation > > End Sub > ------------------------------------------------------- > > I'll be interested to hear what the problem was that you're having! > > Dan > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, March 02, 2010 11:31 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Dan: > > I put your stuff right into the existing app (plan for success). I put your > code into a class module named EmailSMTP and Public ES As New EmailSMTP into > the module with all the PUBLICs. And the app does compile. > > Now, I'm trying to call the Send Email sub with > > Dim varReturn As Variant > > varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ > Me.txtSMTPUserName, _ > Me.txtSMTPUserName, _ > Me.txtTestSubject, _ > Me.txtTestTo, _ > Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) > > But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. > > What am I doing wrong? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, March 01, 2010 5:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Hi Rocky, > > Sorry - badly worded advice! > > What I'd suggest to start with is to get this working in a new mdb. Then > when you know it will work, just move the class module and standard module > over to your mdb. Of course for the standard module you could just put > > Public ES As New EmailSMTP > > in any standard module. > > Because you're setting poSendMail as an object using WithEvents, you must > reference the vbSendMail.dll, which typically you would place in the > System32 folder. > > Hope that's better, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, March 01, 2010 4:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Dan: > > If I put that into a class module in a new mdb, how will the app that needs > to send the email 'see' the class module? > > "Now put this into a standard module:" in the new mdb, yes? > > Does this have to go into a new mdb or can I put it into the application > that I'm trying to fix? > > TIA, > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, March 01, 2010 1:35 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Email problem. Again > > Rocky, > > Open a new mdb and put this into a class module named 'EmailSMTP': > ---------------------------------------------------------- > ' C Copyright ProMation Systems, Inc. > ' Module : EmailSMTP > ' Author : Dan Waters > > Option Compare Database > Option Explicit > > Private WithEvents poSendMail As vbSendMail.clsSendMail > > Private Sub poSendMail_SendFailed(Explanation As String) > > '-- The SMTPEmailFailed procedure is called so that ErrEx will record > the Call Stack and also the value of Explanation > Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) > > End Sub > > 'Private Sub poSendMail_Progress(PercentComplete As Long) ' > ' Debug.Print "poSendMail_Progress " & PercentComplete > ' > ' Exit Sub > ' ErrEx.Bookmark = BOOKMARK_ONERROR > ' > 'End Sub > > 'Private Sub poSendMail_SendSuccesful() > ' > ' Debug.Print "poSendMail_SendSuccesful " > ' > ' Exit Sub > ' ErrEx.Bookmark = BOOKMARK_ONERROR > ' > 'End Sub > > 'Private Sub poSendMail_Status(Status As String) ' > ' Debug.Print "poSendMail_Status " & Status > ' > ' Exit Sub > ' ErrEx.Bookmark = BOOKMARK_ONERROR > ' > 'End Sub > > Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ > stgSMTPFromDisplayName As String, _ > stgSMTPFromAddress As String, _ > stgSMTPSubject As String, _ > stgSMTPRecipientDisplayName As String, _ > stgSMTPRecipientAddress As String, _ > Optional blnSMTPAsHTML As Boolean, _ > Optional stgSMTPMessage As String, _ > Optional stgSMTPAttachmentList As String, _ > Optional stgSMTPReplyToAddress) > > If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or > stgSMTPRecipientAddress = "No Email Address" Then > Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send > Email") > Exit Sub > End If > > Set poSendMail = New vbSendMail.clsSendMail > > ' -- Set up email paramaters > poSendMail.SMTPHost = stgSMTPHost > poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName > poSendMail.Recipient = stgSMTPRecipientAddress > poSendMail.FromDisplayName = stgSMTPFromDisplayName > poSendMail.from = stgSMTPFromAddress > poSendMail.Subject = stgSMTPSubject > > If Not IsMissing(blnSMTPAsHTML) Then > poSendMail.AsHTML = blnSMTPAsHTML > End If > If Not IsMissing(stgSMTPMessage) Then > If stgSMTPMessage <> "" Then > poSendMail.message = stgSMTPMessage > End If > End If > If Not IsMissing(stgSMTPAttachmentList) Then > If stgSMTPAttachmentList <> "" Then > poSendMail.Attachment = stgSMTPAttachmentList > End If > End If > If Not IsMissing(stgSMTPReplyToAddress) Then > If stgSMTPReplyToAddress <> "" Then > poSendMail.ReplyToAddress = stgSMTPReplyToAddress > End If > End If > > '-- When email is originated from the developer's PC, don't actually > send email > If Environ("ComputerName") <> "DanWaters" Then > poSendMail.Connect > DoEvents > poSendMail.Send > DoEvents > poSendMail.Disconnect > DoEvents > End If > > Set poSendMail = Nothing > > End Sub > ---------------------------------------------------------- > > > > Now put this into a standard module: > ---------------------------------------------------------- > Option Compare Database > Option Explicit > > Public ES As New EmailSMTP > ---------------------------------------------------------- > > A nice feature of vbSendMail is that it will give you a report of when and > why an SMTP email failed. But you need to use 'WithEvents' in a class > module for this to work. > > You must register both the vbSendMail.dll file and the mswinsck.ocx file. > > If you comment out the .SMTPHost line, vbSendMail will try to find the host > name. That's OK if there's only one. But if there's more than one and you > want to use a specific host, then you need that host name. > > The instruction manual for vbSendMail is really good. > > The only significant thing I see different is that I use the > poSendMail.Connect and .Disconnect commands. Can't remember if those are > necessary or not. > > Good Luck! > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 16:04:08 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 14:04:08 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005> Message-ID: <3B9A4A75099B4150956BA9F222DC06AD@HAL9005> Oh, I'm not using send object. I'm trying to implement the vbSendMain that Dan turned me on to. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, I cannot recall how all this started,but have you tried something like this. Function Email() Dim strTable As String, strTo As String, strCC As String, strBCC As String Dim strSubject As String, strBody As String Dim bPreview As Boolean DoCmd.SendObject acSendTable, strTable, acFormatXLS, strTo, strCC, strBCC, strSubject, strBody, bPreview End Function whereby you can set up a dummy table to satisfy the requirments of the docmd. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 16:05:13 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 14:05:13 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005><7EC5B649F07C4614B9C6EECCC868858E@Server><1377E48D6FDD44509553A94535598E8D@HAL9005> Message-ID: That's what my existing code was doing, using cdoBasic. But it stopped working. SO I was looking for another method. Hence, vbSendMail. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Mine is handled like this below: Varauthenicate is set to cdoBasic which has the value of 1. Max Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.From = strFrom objMessage.To = strEmail objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody '"This is some sample message text.." & vbCrLf & "It was sent using SMTP authentication." ' objMessage.HTMLBody = strHTML' Or you could use HTML as: ' ATTACHMENT : Add an attachment Can be any valid url objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendusing") = varPort objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpserver") = varSendVia objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpauthenticate") = varAuthenticate objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendusername") = strUserName objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/sendpassword") = strPwd objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpserverport") = varServerPort objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpusessl") = strUseSSL objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/confi guration/smtpconnectiontimeout") = varSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration MsgBox objMessage.GetStream.ReadText ' Use to show the message. objMessage.Send ' Send the message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 21:48 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, but in where? There's no authenticate method parameter that I can see. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 2 16:07:01 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 2 Mar 2010 22:07:01 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <3B9A4A75099B4150956BA9F222DC06AD@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005> <3B9A4A75099B4150956BA9F222DC06AD@HAL9005> Message-ID: <8AC92BD9EB9A48C9B1D0FF45C92F4E20@Server> I thought the aim was to send an email. Docmd.Sendobject does that as does the CreateObject("CDO.Message") The first uses your installed email client, the second requires nought! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 22:04 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Oh, I'm not using send object. I'm trying to implement the vbSendMain that Dan turned me on to. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, I cannot recall how all this started,but have you tried something like this. Function Email() Dim strTable As String, strTo As String, strCC As String, strBCC As String Dim strSubject As String, strBody As String Dim bPreview As Boolean DoCmd.SendObject acSendTable, strTable, acFormatXLS, strTo, strCC, strBCC, strSubject, strBody, bPreview End Function whereby you can set up a dummy table to satisfy the requirments of the docmd. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Tue Mar 2 16:15:40 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Tue, 2 Mar 2010 16:15:40 -0600 Subject: [AccessD] AccessD Digest, Vol 85, Issue 4 In-Reply-To: References: Message-ID: <7c7841601003021415v4b8ed4c8m7ba66f50c69e8b95@mail.gmail.com> Dan, Thanks for the tip! > Dan Waters: > I have a book named 'Dynamic Scheduling w/ MS Project 2003'... > > >Kenneth Ismert: > >Does anyone know of a really good book on Microsoft Project?... > From rockysmolin at bchacc.com Tue Mar 2 17:52:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 15:52:29 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <8AC92BD9EB9A48C9B1D0FF45C92F4E20@Server> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005><3B9A4A75099B4150956BA9F222DC06AD@HAL9005> <8AC92BD9EB9A48C9B1D0FF45C92F4E20@Server> Message-ID: <6650BB5EA0C34EAD8F2870FBFEE5D7F5@HAL9005> I use send object myself. If this vbSendMail can't get going I'll try that. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again I thought the aim was to send an email. Docmd.Sendobject does that as does the CreateObject("CDO.Message") The first uses your installed email client, the second requires nought! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 22:04 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Oh, I'm not using send object. I'm trying to implement the vbSendMain that Dan turned me on to. r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, I cannot recall how all this started,but have you tried something like this. Function Email() Dim strTable As String, strTo As String, strCC As String, strBCC As String Dim strSubject As String, strBody As String Dim bPreview As Boolean DoCmd.SendObject acSendTable, strTable, acFormatXLS, strTo, strCC, strBCC, strSubject, strBody, bPreview End Function whereby you can set up a dummy table to satisfy the requirments of the docmd. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 19:07:09 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 17:07:09 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <7EC5B649F07C4614B9C6EECCC868858E@Server> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005> <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: <2C8A8E87057244CABE9EF9629D29332F@HAL9005> I have to attach 2 pdf files to the email. Can that be done with SendObject? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 2 19:26:01 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 17:26:01 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <2C8A8E87057244CABE9EF9629D29332F@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005><7EC5B649F07C4614B9C6EECCC868858E@Server> <2C8A8E87057244CABE9EF9629D29332F@HAL9005> Message-ID: Actually found an answer: http://www.granite.ab.ca/access/email/sendobject.htm But I don't know if this restriction has been lifted in A2003. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 5:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again I have to attach 2 pdf files to the email. Can that be done with SendObject? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 2 19:29:07 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 2 Mar 2010 19:29:07 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: <2C8A8E87057244CABE9EF9629D29332F@HAL9005> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters><9545C2D6850D484A93DF172E4F73C159@HAL9005><7EC5B649F07C4614B9C6EECCC868858E@Server> <2C8A8E87057244CABE9EF9629D29332F@HAL9005> Message-ID: <3FA24F4543A64680AD7789A196E5E76F@danwaters> Hi Rocky, That's the problem with DoCmd.SendObject. The only thing you can attach to the email is an Access object. You can use DoCmd.SendObject to send a table or query as a spreadsheet, or a report as a snapshot, but if you can't attach a separate file that's already created. Now, if you are using the Outlook model, you can send any type of object. But you do run into Microsoft's email security model, which can be a headache. So SMTP is a good choice, assuming you can specify a host which is set to allow sending an email outside the company. One of my customers allows this, the other two don't. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 7:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again I have to attach 2 pdf files to the email. Can that be done with SendObject? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 02, 2010 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Put a 1 in there as the value to authenticate. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 02 March 2010 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 11:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Well - that's out of scope for me. But I bet someone else on this list knows exactly what it means. I would try copying that complete error message into a google/bing search field and see what comes up. Good to see that the vbSendMail code actually told you what's wrong. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: 533 Sorry, that domain isn't in my list of allowed rcpthosts is the message I get. What it means? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 02, 2010 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, This is a class so it's done a little differently. The class name is 'EmailSMTP', and we've set up a public variable to represent that class - 'ES'. So you can call a procedure in that class like this: Call ES.SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) And I think that should do it. But there's one more thing - change this procedure as shown here: (This was code for my error trapping framework.) ------------------------------------------------------- Private Sub poSendMail_SendFailed(Explanation As String) DELETE THIS PERMANENTLY: '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) ADD THIS FOR TESTING: MsgBox Explanation End Sub ------------------------------------------------------- I'll be interested to hear what the problem was that you're having! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 02, 2010 11:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: I put your stuff right into the existing app (plan for success). I put your code into a class module named EmailSMTP and Public ES As New EmailSMTP into the module with all the PUBLICs. And the app does compile. Now, I'm trying to call the Send Email sub with Dim varReturn As Variant varReturn = SendEmailsNowSMTP(Me.txtSMTPMailServer, _ Me.txtSMTPUserName, _ Me.txtSMTPUserName, _ Me.txtTestSubject, _ Me.txtTestTo, _ Me.txtTestTo, , Me.txtTestMessage, Me.txtTestAttachment) But I get a Sub or Function not defined with SendEmailsNowSMTP highlighted. What am I doing wrong? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Hi Rocky, Sorry - badly worded advice! What I'd suggest to start with is to get this working in a new mdb. Then when you know it will work, just move the class module and standard module over to your mdb. Of course for the standard module you could just put Public ES As New EmailSMTP in any standard module. Because you're setting poSendMail as an object using WithEvents, you must reference the vbSendMail.dll, which typically you would place in the System32 folder. Hope that's better, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 01, 2010 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Dan: If I put that into a class module in a new mdb, how will the app that needs to send the email 'see' the class module? "Now put this into a standard module:" in the new mdb, yes? Does this have to go into a new mdb or can I put it into the application that I'm trying to fix? TIA, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 01, 2010 1:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Rocky, Open a new mdb and put this into a class module named 'EmailSMTP': ---------------------------------------------------------- ' C Copyright ProMation Systems, Inc. ' Module : EmailSMTP ' Author : Dan Waters Option Compare Database Option Explicit Private WithEvents poSendMail As vbSendMail.clsSendMail Private Sub poSendMail_SendFailed(Explanation As String) '-- The SMTPEmailFailed procedure is called so that ErrEx will record the Call Stack and also the value of Explanation Call Run("SMTPErrorRaise", 600, "poSendMail_SendFailed", Explanation) End Sub 'Private Sub poSendMail_Progress(PercentComplete As Long) ' ' Debug.Print "poSendMail_Progress " & PercentComplete ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_SendSuccesful() ' ' Debug.Print "poSendMail_SendSuccesful " ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub 'Private Sub poSendMail_Status(Status As String) ' ' Debug.Print "poSendMail_Status " & Status ' ' Exit Sub ' ErrEx.Bookmark = BOOKMARK_ONERROR ' 'End Sub Public Sub SendEmailsNowSMTP(stgSMTPHost As String, _ stgSMTPFromDisplayName As String, _ stgSMTPFromAddress As String, _ stgSMTPSubject As String, _ stgSMTPRecipientDisplayName As String, _ stgSMTPRecipientAddress As String, _ Optional blnSMTPAsHTML As Boolean, _ Optional stgSMTPMessage As String, _ Optional stgSMTPAttachmentList As String, _ Optional stgSMTPReplyToAddress) If stgSMTPRecipientDisplayName = "" Or stgSMTPRecipientAddress = "" Or stgSMTPRecipientAddress = "No Email Address" Then Call Run("SMTPErrorRaise", 601, "SendEmailsNowSMTP", "Cannot Send Email") Exit Sub End If Set poSendMail = New vbSendMail.clsSendMail ' -- Set up email paramaters poSendMail.SMTPHost = stgSMTPHost poSendMail.RecipientDisplayName = stgSMTPRecipientDisplayName poSendMail.Recipient = stgSMTPRecipientAddress poSendMail.FromDisplayName = stgSMTPFromDisplayName poSendMail.from = stgSMTPFromAddress poSendMail.Subject = stgSMTPSubject If Not IsMissing(blnSMTPAsHTML) Then poSendMail.AsHTML = blnSMTPAsHTML End If If Not IsMissing(stgSMTPMessage) Then If stgSMTPMessage <> "" Then poSendMail.message = stgSMTPMessage End If End If If Not IsMissing(stgSMTPAttachmentList) Then If stgSMTPAttachmentList <> "" Then poSendMail.Attachment = stgSMTPAttachmentList End If End If If Not IsMissing(stgSMTPReplyToAddress) Then If stgSMTPReplyToAddress <> "" Then poSendMail.ReplyToAddress = stgSMTPReplyToAddress End If End If '-- When email is originated from the developer's PC, don't actually send email If Environ("ComputerName") <> "DanWaters" Then poSendMail.Connect DoEvents poSendMail.Send DoEvents poSendMail.Disconnect DoEvents End If Set poSendMail = Nothing End Sub ---------------------------------------------------------- Now put this into a standard module: ---------------------------------------------------------- Option Compare Database Option Explicit Public ES As New EmailSMTP ---------------------------------------------------------- A nice feature of vbSendMail is that it will give you a report of when and why an SMTP email failed. But you need to use 'WithEvents' in a class module for this to work. You must register both the vbSendMail.dll file and the mswinsck.ocx file. If you comment out the .SMTPHost line, vbSendMail will try to find the host name. That's OK if there's only one. But if there's more than one and you want to use a specific host, then you need that host name. The instruction manual for vbSendMail is really good. The only significant thing I see different is that I use the poSendMail.Connect and .Disconnect commands. Can't remember if those are necessary or not. Good Luck! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 3 01:36:00 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Mar 2010 08:36:00 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Rocky That means you must supply a username and a password. Study Stuart's explanation - it tells all about this. However, since your old code stopped working, the case may exactly be that the host of the SMTP server you use has changed how to address it - before authentication was not needed, now it is. This is one of the reasons why I suggest in some cases to run your own SMTP server which you will have in full control. Another is the change the SMTP server to that of the ISP which the client uses. Such an SMTP server runs normally without authentication for those on the same network as it "knows" who the sender is ("he is on my network"). If you cannot use another SMTP server, you will have to obtain user credentials and authentication method from the admin of the SMTP server you currently use. /gustav >>> rockysmolin at bchacc.com 02-03-2010 21:16 >>> Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky From rockysmolin at bchacc.com Wed Mar 3 01:49:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 2 Mar 2010 23:49:31 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Thanks Gustav. And Stuart. I'll forward to the client who can forward to his network guy and I'll report back. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 02, 2010 11:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Rocky That means you must supply a username and a password. Study Stuart's explanation - it tells all about this. However, since your old code stopped working, the case may exactly be that the host of the SMTP server you use has changed how to address it - before authentication was not needed, now it is. This is one of the reasons why I suggest in some cases to run your own SMTP server which you will have in full control. Another is the change the SMTP server to that of the ISP which the client uses. Such an SMTP server runs normally without authentication for those on the same network as it "knows" who the sender is ("he is on my network"). If you cannot use another SMTP server, you will have to obtain user credentials and authentication method from the admin of the SMTP server you currently use. /gustav >>> rockysmolin at bchacc.com 02-03-2010 21:16 >>> Apparently I need to "authenticate my outgoing server" whatever the hell that means. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 04:40:12 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 10:40:12 +0000 Subject: [AccessD] Email problem. Again In-Reply-To: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: Here are THREE examples that work using CDO. Nothing to Register, just replace the examples with real data. Max Option Compare Database Option Explicit ' intServerPort could be 587 or 465 but usually 25 ' intAuthenticate can be 0 = Anonymous, 1 = Basic 2= cdoNTLM, 3 = cdoMessage Sub SendVia1() Call pfEmailByCDO( _ strFrom:="Server ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com;secretary at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="mail.myserver.com", _ strSMTPUserName:="server at myserver.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendVia2() Call pfEmailByCDO( _ strFrom:="Developer ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.developers.com", _ strSMTPUserName:="great.stuff at developers.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendViaGoogle() Call pfEmailByCDO( _ strFrom:="My Google ", _ strSubject:="My Google Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.gmail.com", _ strSMTPUserName:="me.google", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="true", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=465, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Public Function pfEmailByCDO(strFrom As String, strSubject As String, strBody As String, _ strTo As String, strCC As String, strBCC As String, _ strSMTPServer, strSMTPUserName, strSMTPPwd, strUsesSSL, _ intPort, intServerPort, intAuthenticate, intSecs2Wait, _ bDisplay As Boolean, Optional strAttachment As String) On Error GoTo errhandler Const conErr1 As String = "The SMTP server rejected one or more recipient addresses. Response was: 550 " Const conErr2 As String = "The SMTP server rejected one or more recipient addresses. Response was: 501 bad address syntax: <" Const ConErrX As String = "The transport failed to connect to the SMTP server" Dim strErr As String Dim objMessage Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.from = strFrom objMessage.To = strTo objMessage.cc = strCC objMessage.bcc = strBCC objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusername") = strSMTPUserName objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSMTPPwd objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strUsesSSL objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intServerPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = intAuthenticate objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusing") = intPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = intSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration If bDisplay Then MsgBox objMessage.GetStream.ReadText ' Use to show the message. End If objMessage.Send ' Send the message. DoEvents exithere: Exit Function errhandler: strErr = "pfEmailByCDO - Send Errors " & Err.Description If InStr(strErr, ConErrX) > 0 Then strErr = strErr & " No Email Sent" End If Debug.Print strErr MsgBox strErr GoTo exithere End Function Private Function fFileContents(strFilePath As String) As String 'These constants are defined to make the code more readable Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") 'Open the file for reading Set f = fso.OpenTextFile(strFilePath, ForReading) 'The ReadAll method reads the entire file fFileContents = f.ReadAll f.Close 'Close the file Set f = Nothing Set fso = Nothing End Function From max.wanadoo at gmail.com Wed Mar 3 05:22:19 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 11:22:19 +0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: Here is the SENDOJECT examples - uses ClickYes, but this is not necessary if you are happy for the user to click the send button or preview the email. Max Option Compare Database Option Explicit ' Declare Windows' API functions Private Declare Function RegisterWindowMessage _ Lib "User32" Alias "RegisterWindowMessageA" _ (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" _ Alias "FindWindowA" (ByVal lpClassName As Any, _ ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" _ Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Any) As Long Public Function pfSendUsingObject() Dim bPreview As Boolean 'if you do want to preview then you do not need the ClickYes stuff. ' but if you don't want to preview and you just want to send it without being informed that ' it is being sent, then use the ClickYes stuff. bPreview = False If bPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", bPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", bPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) 'Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. 'http://www.contextmagic.com/express-clickyes/ Dim wnd As Long, uClickYes As Long, Res As Long ' Register a message to send uClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") ' Find ClickYes Window by classname wnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then ' Send the message to Resume ClickYes Res = SendMessage(wnd, uClickYes, 1, 0) Else ' Send the message to Suspend ClickYes Res = SendMessage(wnd, uClickYes, 0, 0) End If End Function From rockysmolin at bchacc.com Wed Mar 3 08:21:43 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 3 Mar 2010 06:21:43 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: <3D7B8A5DB04A486093DA700230C6AAD3@HAL9005> Max: Thanks for the code. I may use that instead of the existing code as it looks like the problem may not have been my code or CDO but authentication. Using the vbSendMail that Dan pointed me to, I was able to raise the error event and it appeared to be an authentication problem. If so, then the network guy should have some input for us. I see in your code, however, a comment on what the authentication constants are. The original CDO code used Basic. I'm wondering if one of the others might work. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again Here are THREE examples that work using CDO. Nothing to Register, just replace the examples with real data. Max Option Compare Database Option Explicit ' intServerPort could be 587 or 465 but usually 25 ' intAuthenticate can be 0 = Anonymous, 1 = Basic 2= cdoNTLM, 3 = cdoMessage Sub SendVia1() Call pfEmailByCDO( _ strFrom:="Server ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com;secretary at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="mail.myserver.com", _ strSMTPUserName:="server at myserver.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendVia2() Call pfEmailByCDO( _ strFrom:="Developer ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.developers.com", _ strSMTPUserName:="great.stuff at developers.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendViaGoogle() Call pfEmailByCDO( _ strFrom:="My Google ", _ strSubject:="My Google Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.gmail.com", _ strSMTPUserName:="me.google", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="true", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=465, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Public Function pfEmailByCDO(strFrom As String, strSubject As String, strBody As String, _ strTo As String, strCC As String, strBCC As String, _ strSMTPServer, strSMTPUserName, strSMTPPwd, strUsesSSL, _ intPort, intServerPort, intAuthenticate, intSecs2Wait, _ bDisplay As Boolean, Optional strAttachment As String) On Error GoTo errhandler Const conErr1 As String = "The SMTP server rejected one or more recipient addresses. Response was: 550 " Const conErr2 As String = "The SMTP server rejected one or more recipient addresses. Response was: 501 bad address syntax: <" Const ConErrX As String = "The transport failed to connect to the SMTP server" Dim strErr As String Dim objMessage Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.from = strFrom objMessage.To = strTo objMessage.cc = strCC objMessage.bcc = strBCC objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusername") = strSMTPUserName objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSMTPPwd objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strUsesSSL objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intServerPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = intAuthenticate objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusing") = intPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = intSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration If bDisplay Then MsgBox objMessage.GetStream.ReadText ' Use to show the message. End If objMessage.Send ' Send the message. DoEvents exithere: Exit Function errhandler: strErr = "pfEmailByCDO - Send Errors " & Err.Description If InStr(strErr, ConErrX) > 0 Then strErr = strErr & " No Email Sent" End If Debug.Print strErr MsgBox strErr GoTo exithere End Function Private Function fFileContents(strFilePath As String) As String 'These constants are defined to make the code more readable Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") 'Open the file for reading Set f = fso.OpenTextFile(strFilePath, ForReading) 'The ReadAll method reads the entire file fFileContents = f.ReadAll f.Close 'Close the file Set f = Nothing Set fso = Nothing End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 08:38:48 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 14:38:48 +0000 Subject: [AccessD] Email problem. Again In-Reply-To: <3D7B8A5DB04A486093DA700230C6AAD3@HAL9005> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <3D7B8A5DB04A486093DA700230C6AAD3@HAL9005> Message-ID: Just a suggestion, but why dont you use BOTH and then if one stops, just swap to the other. I know that the 3 examples I posted all work when the correct smtp connections are entered including the one for Google. I havent tried Dan's and that should be ok once the authentication is overcome but having both means you can switch to your own server or Google server or client server at the drop of the proverbial hat. The CDO code has been sending me emails every single night for about 8 years of so on the outcome of the nightly backups and creation of web site content. never missed. No Registration and runs immediately and has attachments. Not shown in the code I posted, but it actually takes it recipients source from a table and write an event log to a table too. It is ideal if you want a distribution list or newletter list etc. max On 3 March 2010 14:21, Rocky Smolin wrote: > Max: > > Thanks for the code. I may use that instead of the existing code as it > looks like the problem may not have been my code or CDO but authentication. > Using the vbSendMail that Dan pointed me to, I was able to raise the error > event and it appeared to be an authentication problem. If so, then the > network guy should have some input for us. > > I see in your code, however, a comment on what the authentication constants > are. The original CDO code used Basic. I'm wondering if one of the others > might work. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 03, 2010 2:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Email problem. Again > > Here are THREE examples that work using CDO. Nothing to Register, just > replace the examples with real data. > > Max > > Option Compare Database > Option Explicit > ' intServerPort could be 587 or 465 but usually 25 ' intAuthenticate can > be > 0 = Anonymous, 1 = Basic 2= cdoNTLM, 3 = cdoMessage Sub SendVia1() > Call pfEmailByCDO( _ > strFrom:="Server ", _ > strSubject:="My Subject", _ > strBody:="My Body", _ > strTo:="my.client at client.com;secretary at client.com", _ > strCC:="", _ > strBCC:="", _ > strSMTPServer:="mail.myserver.com", _ > strSMTPUserName:="server at myserver.com", _ > strSMTPPwd:="mysecretpassword", _ > strUsesSSL:="False", _ > bDisplay:=True, _ > intPort:=2, _ > intServerPort:=25, _ > intAuthenticate:=1, _ > intSecs2Wait:=60, _ > strAttachment:="c:\MyTest.txt") End Sub Sub SendVia2() > Call pfEmailByCDO( _ > strFrom:="Developer ", _ > strSubject:="My Subject", _ > strBody:="My Body", _ > strTo:="my.client at client.com", _ > strCC:="", _ > strBCC:="", _ > strSMTPServer:="smtp.developers.com", _ > strSMTPUserName:="great.stuff at developers.com", _ > strSMTPPwd:="mysecretpassword", _ > strUsesSSL:="False", _ > bDisplay:=True, _ > intPort:=2, _ > intServerPort:=25, _ > intAuthenticate:=1, _ > intSecs2Wait:=60, _ > strAttachment:="c:\MyTest.txt") End Sub Sub SendViaGoogle() > Call pfEmailByCDO( _ > strFrom:="My Google ", _ > strSubject:="My Google Subject", _ > strBody:="My Body", _ > strTo:="my.client at client.com", _ > strCC:="", _ > strBCC:="", _ > strSMTPServer:="smtp.gmail.com", _ > strSMTPUserName:="me.google", _ > strSMTPPwd:="mysecretpassword", _ > strUsesSSL:="true", _ > bDisplay:=True, _ > intPort:=2, _ > intServerPort:=465, _ > intAuthenticate:=1, _ > intSecs2Wait:=60, _ > strAttachment:="c:\MyTest.txt") End Sub > > Public Function pfEmailByCDO(strFrom As String, strSubject As String, > strBody As String, _ > strTo As String, strCC As String, strBCC As > String, _ > strSMTPServer, strSMTPUserName, strSMTPPwd, > strUsesSSL, _ > intPort, intServerPort, intAuthenticate, > intSecs2Wait, _ > bDisplay As Boolean, Optional strAttachment As > String) > On Error GoTo errhandler > Const conErr1 As String = "The SMTP server rejected one or more > recipient addresses. Response was: 550 " > Const conErr2 As String = "The SMTP server rejected one or more > recipient addresses. Response was: 501 bad address syntax: <" > Const ConErrX As String = "The transport failed to connect to the SMTP > server" > Dim strErr As String > Dim objMessage > Set objMessage = CreateObject("CDO.Message") ' Create the message > object. > objMessage.from = strFrom > objMessage.To = strTo > objMessage.cc = strCC > objMessage.bcc = strBCC > objMessage.Subject = strSubject > ' Now for the Message Options Part. > objMessage.TextBody = strBody > objMessage.AddAttachment strAttachment > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/smtpserver") = > strSMTPServer > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/sendusername") = > strSMTPUserName > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSMTPPwd > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strUsesSSL > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/smtpserverport") = > intServerPort > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = > intAuthenticate > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/sendusing") = intPort > objMessage.Configuration.Fields.Item(" > http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = > intSecs2Wait > objMessage.Configuration.Fields.Update ' Update configuration > If bDisplay Then > MsgBox objMessage.GetStream.ReadText ' Use to show the message. > End If > objMessage.Send ' Send the message. > DoEvents > exithere: > Exit Function > errhandler: > strErr = "pfEmailByCDO - Send Errors " & Err.Description > If InStr(strErr, ConErrX) > 0 Then > strErr = strErr & " No Email Sent" > End If > Debug.Print strErr > MsgBox strErr > GoTo exithere > End Function > Private Function fFileContents(strFilePath As String) As String 'These > constants are defined to make the code more readable > Const ForReading = 1, ForWriting = 2, ForAppending = 8 > Dim fso, f > Set fso = CreateObject("Scripting.FileSystemObject") > 'Open the file for reading > Set f = fso.OpenTextFile(strFilePath, ForReading) > 'The ReadAll method reads the entire file > fFileContents = f.ReadAll > f.Close 'Close the file > Set f = Nothing > Set fso = Nothing > End Function > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Wed Mar 3 10:24:12 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Mar 2010 10:24:12 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: Max, The problem with CDO is that it may not be there. That's the reason we started using Redemption years ago. CDO is no longer installed with Windows or with Office. If the user doesn't take steps to install it, it won't be available. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again Here are THREE examples that work using CDO. Nothing to Register, just replace the examples with real data. Max Option Compare Database Option Explicit ' intServerPort could be 587 or 465 but usually 25 ' intAuthenticate can be 0 = Anonymous, 1 = Basic 2= cdoNTLM, 3 = cdoMessage Sub SendVia1() Call pfEmailByCDO( _ strFrom:="Server ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com;secretary at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="mail.myserver.com", _ strSMTPUserName:="server at myserver.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendVia2() Call pfEmailByCDO( _ strFrom:="Developer ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.developers.com", _ strSMTPUserName:="great.stuff at developers.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendViaGoogle() Call pfEmailByCDO( _ strFrom:="My Google ", _ strSubject:="My Google Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.gmail.com", _ strSMTPUserName:="me.google", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="true", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=465, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Public Function pfEmailByCDO(strFrom As String, strSubject As String, strBody As String, _ strTo As String, strCC As String, strBCC As String, _ strSMTPServer, strSMTPUserName, strSMTPPwd, strUsesSSL, _ intPort, intServerPort, intAuthenticate, intSecs2Wait, _ bDisplay As Boolean, Optional strAttachment As String) On Error GoTo errhandler Const conErr1 As String = "The SMTP server rejected one or more recipient addresses. Response was: 550 " Const conErr2 As String = "The SMTP server rejected one or more recipient addresses. Response was: 501 bad address syntax: <" Const ConErrX As String = "The transport failed to connect to the SMTP server" Dim strErr As String Dim objMessage Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.from = strFrom objMessage.To = strTo objMessage.cc = strCC objMessage.bcc = strBCC objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusername") = strSMTPUserName objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSMTPPwd objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strUsesSSL objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intServerPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = intAuthenticate objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusing") = intPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = intSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration If bDisplay Then MsgBox objMessage.GetStream.ReadText ' Use to show the message. End If objMessage.Send ' Send the message. DoEvents exithere: Exit Function errhandler: strErr = "pfEmailByCDO - Send Errors " & Err.Description If InStr(strErr, ConErrX) > 0 Then strErr = strErr & " No Email Sent" End If Debug.Print strErr MsgBox strErr GoTo exithere End Function Private Function fFileContents(strFilePath As String) As String 'These constants are defined to make the code more readable Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") 'Open the file for reading Set f = fso.OpenTextFile(strFilePath, ForReading) 'The ReadAll method reads the entire file fFileContents = f.ReadAll f.Close 'Close the file Set f = Nothing Set fso = Nothing End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Wed Mar 3 11:06:45 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 03 Mar 2010 12:06:45 -0500 Subject: [AccessD] Import or Export query between Access DBs In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: <4B8E50D4.167F.006B.0@niagaracounty.com> A user of mine needed help w/a query. So, I made a copy of her DB (A2007) to my machine, so that I wasn't playing w/her live data...and it is quicker being local, because she is across town. I created a new query, which does what she wants and I'd like to share it w/her. However, I don't want to copy over the whole MDB file, because she probably has added to it. I thought I remembered exporting a single object (query, form, etc.) to another DB, in the past...or importing from the other end. Yes, no? How? From jm.hwsn at gmail.com Wed Mar 3 11:17:30 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Wed, 3 Mar 2010 11:17:30 -0600 Subject: [AccessD] Import or Export query between Access DBs In-Reply-To: <4B8E50D4.167F.006B.0@niagaracounty.com> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <4B8E50D4.167F.006B.0@niagaracounty.com> Message-ID: <4b8e99a0.47c1f10a.46d8.ffffd5fb@mx.google.com> May I suggest you copy the queries SQL statement, paste it into a text file and give that to her. She will open a new Query Def, without adding any tables, select the SQL view. Then copy and paste the contents of the text file into the SQL view. Save the query and it's done. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 03, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Import or Export query between Access DBs A user of mine needed help w/a query. So, I made a copy of her DB (A2007) to my machine, so that I wasn't playing w/her live data...and it is quicker being local, because she is across town. I created a new query, which does what she wants and I'd like to share it w/her. However, I don't want to copy over the whole MDB file, because she probably has added to it. I thought I remembered exporting a single object (query, form, etc.) to another DB, in the past...or importing from the other end. Yes, no? How? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Mar 3 11:21:05 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 3 Mar 2010 09:21:05 -0800 Subject: [AccessD] Import or Export query between Access DBs In-Reply-To: <4B8E50D4.167F.006B.0@niagaracounty.com> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <4B8E50D4.167F.006B.0@niagaracounty.com> Message-ID: <9CF563D579B94ED989B8AB543E4746F5@HAL9005> If you can walk her through this over the phone... First, you create an empty mdb and import the query into that mdb (File-->Get External Data). Send her the mdb with the query. Have her save it someplace where she knows where it is (preferably the same folder with her production mdb) Have her open her production mdb and click File-->Get External Data, etc. You might test this on a copy of her original mdb before sending it - but I've done this with users that aren't afraid of the database container and it's worked. What I do for those who can't find 'File Edit View' on the screen is ask them to stop work, send their production mdb over, update it, and I send it back. Turnaround time - just a few minutes. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 03, 2010 9:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Import or Export query between Access DBs A user of mine needed help w/a query. So, I made a copy of her DB (A2007) to my machine, so that I wasn't playing w/her live data...and it is quicker being local, because she is across town. I created a new query, which does what she wants and I'd like to share it w/her. However, I don't want to copy over the whole MDB file, because she probably has added to it. I thought I remembered exporting a single object (query, form, etc.) to another DB, in the past...or importing from the other end. Yes, no? How? -- 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 Mar 3 11:31:01 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 3 Mar 2010 12:31:01 -0500 Subject: [AccessD] Import or Export query between Access DBs In-Reply-To: <4B8E50D4.167F.006B.0@niagaracounty.com> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <4B8E50D4.167F.006B.0@niagaracounty.com> Message-ID: Like Jim said. It's just a query, so past the SQL into an email and send it over. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 03, 2010 12:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Import or Export query between Access DBs A user of mine needed help w/a query. So, I made a copy of her DB (A2007) to my machine, so that I wasn't playing w/her live data...and it is quicker being local, because she is across town. I created a new query, which does what she wants and I'd like to share it w/her. However, I don't want to copy over the whole MDB file, because she probably has added to it. I thought I remembered exporting a single object (query, form, etc.) to another DB, in the past...or importing from the other end. Yes, no? How? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 11:37:53 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 17:37:53 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 03 March 2010 16:24 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again Max, The problem with CDO is that it may not be there. That's the reason we started using Redemption years ago. CDO is no longer installed with Windows or with Office. If the user doesn't take steps to install it, it won't be available. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again Here are THREE examples that work using CDO. Nothing to Register, just replace the examples with real data. Max Option Compare Database Option Explicit ' intServerPort could be 587 or 465 but usually 25 ' intAuthenticate can be 0 = Anonymous, 1 = Basic 2= cdoNTLM, 3 = cdoMessage Sub SendVia1() Call pfEmailByCDO( _ strFrom:="Server ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com;secretary at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="mail.myserver.com", _ strSMTPUserName:="server at myserver.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendVia2() Call pfEmailByCDO( _ strFrom:="Developer ", _ strSubject:="My Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.developers.com", _ strSMTPUserName:="great.stuff at developers.com", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="False", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=25, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Sub SendViaGoogle() Call pfEmailByCDO( _ strFrom:="My Google ", _ strSubject:="My Google Subject", _ strBody:="My Body", _ strTo:="my.client at client.com", _ strCC:="", _ strBCC:="", _ strSMTPServer:="smtp.gmail.com", _ strSMTPUserName:="me.google", _ strSMTPPwd:="mysecretpassword", _ strUsesSSL:="true", _ bDisplay:=True, _ intPort:=2, _ intServerPort:=465, _ intAuthenticate:=1, _ intSecs2Wait:=60, _ strAttachment:="c:\MyTest.txt") End Sub Public Function pfEmailByCDO(strFrom As String, strSubject As String, strBody As String, _ strTo As String, strCC As String, strBCC As String, _ strSMTPServer, strSMTPUserName, strSMTPPwd, strUsesSSL, _ intPort, intServerPort, intAuthenticate, intSecs2Wait, _ bDisplay As Boolean, Optional strAttachment As String) On Error GoTo errhandler Const conErr1 As String = "The SMTP server rejected one or more recipient addresses. Response was: 550 " Const conErr2 As String = "The SMTP server rejected one or more recipient addresses. Response was: 501 bad address syntax: <" Const ConErrX As String = "The transport failed to connect to the SMTP server" Dim strErr As String Dim objMessage Set objMessage = CreateObject("CDO.Message") ' Create the message object. objMessage.from = strFrom objMessage.To = strTo objMessage.cc = strCC objMessage.bcc = strBCC objMessage.Subject = strSubject ' Now for the Message Options Part. objMessage.TextBody = strBody objMessage.AddAttachment strAttachment objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusername") = strSMTPUserName objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendpassword") = strSMTPPwd objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpusessl") = strUsesSSL objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intServerPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = intAuthenticate objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/sendusing") = intPort objMessage.Configuration.Fields.Item(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = intSecs2Wait objMessage.Configuration.Fields.Update ' Update configuration If bDisplay Then MsgBox objMessage.GetStream.ReadText ' Use to show the message. End If objMessage.Send ' Send the message. DoEvents exithere: Exit Function errhandler: strErr = "pfEmailByCDO - Send Errors " & Err.Description If InStr(strErr, ConErrX) > 0 Then strErr = strErr & " No Email Sent" End If Debug.Print strErr MsgBox strErr GoTo exithere End Function Private Function fFileContents(strFilePath As String) As String 'These constants are defined to make the code more readable Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") 'Open the file for reading Set f = fso.OpenTextFile(strFilePath, ForReading) 'The ReadAll method reads the entire file fFileContents = f.ReadAll f.Close 'Close the file Set f = Nothing Set fso = Nothing End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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.Clark at niagaracounty.com Wed Mar 3 11:59:59 2010 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 03 Mar 2010 12:59:59 -0500 Subject: [AccessD] Import or Export query between Access DBs In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <4B8E50D4.167F.006B.0@niagaracounty.com> Message-ID: <4B8E5D4E.167F.006B.0@niagaracounty.com> Thanks for the quick response all...I sent the question just before headed out to lunch, about a half-hour ago, and I just got back to find 3 responses...and I'm sure a couple were held up in our spam blocker, because they always are. I did think of copying over the sql code, but I was being stubborn...I knew I could import it, and I just couldn't remember how. It then occurred to me that I was looking in the wrong spot...actually Rocky's response said something that made me think of this. What I was looking for was in the "External Data" menu...there is an import; click on the "Access" icon and there ya have it. So, I got into her MDB, and I imported my query for her. As usual, thanks for the help, and the quick response...I thought Rocky would be playing hookie and out riding that fresh new bike of his ;o) >>> "Heenan, Lambert" 3/3/2010 12:31 PM >>> Like Jim said. It's just a query, so past the SQL into an email and send it over. Lambert From cfoust at infostatsystems.com Wed Mar 3 16:31:58 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Mar 2010 16:31:58 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Mar 3 16:47:45 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 3 Mar 2010 14:47:45 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: <54CA6568E5B144FA94851A916541B062@HAL9005> Charlotte: I think I should read up on Redemption. Wasn't able to Google it. Do you have a link to the company or product description? Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 16:52:55 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 22:52:55 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) Overview CDO 1.2.1 (Collaboration Data Objects, version 1.2.1) is a package providing access to Outlook-compatible objects through a COM-based API. Using CDO, a program can connect to a MAPI store, and then perform operations against that store, including creating and processing calendar items, and resolving and handling mail recipients. Starting with Exchange Server 2007 and Outlook 2007, Microsoft will distribute CDO 1.2.1 as a Web download, separated from the two products. Tons of references here: Google search:- "microsoft cdo download" You will also find it in ASP web sites, etc etc. It is everywhere and is FREE. Redemption is a COM object as is CDO. Same diff really, except CDO is everywhere and Redemption isn't. CDO is free and Redemption isn't. I don't think CDO is going anywhere in my lifetime...oops, tempting fate there.. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 10:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 16:53:28 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 22:53:28 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: <54CA6568E5B144FA94851A916541B062@HAL9005> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <54CA6568E5B144FA94851A916541B062@HAL9005> Message-ID: <326EAF8BD1F24FDF9FF3CAB93F830FB8@Server> http://www.dimastr.com/redemption/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 03, 2010 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Charlotte: I think I should read up on Redemption. Wasn't able to Google it. Do you have a link to the company or product description? Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 3 17:21:22 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Mar 2010 17:21:22 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: No Max, that isn't what I'm saying. Redemption is part of our application. It's a dll that we call into. Why would we make a client download anything? That isn't what they expect from us. They buy a commercial product and they expect it to run ... out of the box. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) From cfoust at infostatsystems.com Wed Mar 3 17:24:03 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Mar 2010 17:24:03 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: <54CA6568E5B144FA94851A916541B062@HAL9005> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> <54CA6568E5B144FA94851A916541B062@HAL9005> Message-ID: http://www.dimastr.com/redemption/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 03, 2010 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Charlotte: I think I should read up on Redemption. Wasn't able to Google it. Do you have a link to the company or product description? Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 3 17:27:49 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 3 Mar 2010 15:27:49 -0800 Subject: [AccessD] Email problem. Again In-Reply-To: <326EAF8BD1F24FDF9FF3CAB93F830FB8@Server> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005><54CA6568E5B144FA94851A916541B062@HAL9005> <326EAF8BD1F24FDF9FF3CAB93F830FB8@Server> Message-ID: <93706E94C0114E9689DD72D21CD65C35@HAL9005> Thanks. Does Redemption require Outlook to be installed? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again http://www.dimastr.com/redemption/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 03, 2010 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Charlotte: I think I should read up on Redemption. Wasn't able to Google it. Do you have a link to the company or product description? Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 3 17:27:12 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 3 Mar 2010 23:27:12 -0000 Subject: [AccessD] Email problem. Again In-Reply-To: References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005> Message-ID: Ok, I understand where you are coming from. Thanks for the explanation. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 11:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No Max, that isn't what I'm saying. Redemption is part of our application. It's a dll that we call into. Why would we make a client download anything? That isn't what they expect from us. They buy a commercial product and they expect it to run ... out of the box. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 4 01:59:05 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Mar 2010 08:59:05 +0100 Subject: [AccessD] Email problem. Again Message-ID: Hi Charlotte Maybe Max thinks he understand what you are saying - he is so polite - but I don't. First, doesn't redemption require Outlook to be installed? That's what they tell anyway. If so, how do you handle those clients not using Outlook? Then, if you install one com object or another can't make much difference. I see nothing about MS preventing you to distribute CDO(EX). Also, if one component is free, I would have that as the first choice. I know, of course, that some paid component may have advantages. In this case, though, I don't see any. So while I can imagine redemption being the right choice for some scenarios (I have never used it), I cannot see it as the universal solution for any scenario. /gustav >>> cfoust at infostatsystems.com 04-03-2010 00:21 >>> No Max, that isn't what I'm saying. Redemption is part of our application. It's a dll that we call into. Why would we make a client download anything? That isn't what they expect from us. They buy a commercial product and they expect it to run ... out of the box. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) From jimdettman at verizon.net Thu Mar 4 08:58:05 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 04 Mar 2010 09:58:05 -0500 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: Gustav I have not used it either, but it looks like it would solve many problems. It will run standalone, is a direct replacement for CDO, supports extended MAPI and exchange environments and if Outlook is there, supports some of that as well. Sounds like one solution to code against regardless of the client environment. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 04, 2010 2:59 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Charlotte Maybe Max thinks he understand what you are saying - he is so polite - but I don't. First, doesn't redemption require Outlook to be installed? That's what they tell anyway. If so, how do you handle those clients not using Outlook? Then, if you install one com object or another can't make much difference. I see nothing about MS preventing you to distribute CDO(EX). Also, if one component is free, I would have that as the first choice. I know, of course, that some paid component may have advantages. In this case, though, I don't see any. So while I can imagine redemption being the right choice for some scenarios (I have never used it), I cannot see it as the universal solution for any scenario. /gustav >>> cfoust at infostatsystems.com 04-03-2010 00:21 >>> No Max, that isn't what I'm saying. Redemption is part of our application. It's a dll that we call into. Why would we make a client download anything? That isn't what they expect from us. They buy a commercial product and they expect it to run ... out of the box. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Mar 4 09:46:55 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 4 Mar 2010 08:46:55 -0700 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: <7EC5B649F07C4614B9C6EECCC868858E@Server> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005>, <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: I have recently assisted our parent company head office in updating my application to work with a newly deployed environment. in the past, we had 4 separate regional servers and a number of shared application and file servers supporting 65 concurrent users. Just over a year ago we switched from an mdb backend to a straight ODBC linked Sql Server setup because of 'disk or network' errors that continued after the switch to Sql Server. It turns out there was a problem on the file server hosting the front end. The new deployment is hosted on some serious hardware with 14 virtual machines run in 2 switchable banks and a pair of test servers for trying out service packs and new software installs. A set of emergency backup servers is housed across the street in a separate buildings. Additional servers can be built and deployed by scripts in a matter of an hour and a half. There are huge permanent Cat diesel backup generators in place. We now have 5 time zones set up on the servers based on the IP of the thin clients and several of the offices are moving up to fiber optic connections to the virtual servers. The problem is that the system is slower than it has ever been. We were trouble shooting some complaints yesterday and in my thin client session on one of the machines and another users session on the same machine, an inactive instance of my frontend on those sessions was sharing 100% of the cpu between the two Access applications. I deployed an older version of the front end that predated the change in environment and things are not improving. While the older environment was occasionally overwhelmed by resource demands, the problem arises far more frequently now despite the fact that we have provided significant increases to the hardware and the load balancer does a great job of ensuring that the number of users on any one server is well below the prior spec. When Access pins the processor at 100%, every other persons session on that VM essentially freezes. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 From kismert at gmail.com Thu Mar 4 10:04:05 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Thu, 4 Mar 2010 10:04:05 -0600 Subject: [AccessD] OT: IE6 Funeral Message-ID: <7c7841601003040804g3d014410n2bd1cc18b977a0ed@mail.gmail.com> http://ie6funeral.com/ http://edition.cnn.com/2010/TECH/03/04/ie6.funeral/ As you probably know, Google is dropping support for IE6 this month. Those who made the mistake (in hindsight) of binding their web apps tightly to IE6 are now faced with the painful choice of upgrading their apps to standard, or maintaining a piece of software that has been a prime target of hackers and viruses for more than a decade. -Ken From cfoust at infostatsystems.com Thu Mar 4 10:29:50 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Mar 2010 10:29:50 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: <93706E94C0114E9689DD72D21CD65C35@HAL9005> References: <0B1F07FD5125410CA9C66960E02BF0A6@HAL9005><54CA6568E5B144FA94851A916541B062@HAL9005> <326EAF8BD1F24FDF9FF3CAB93F830FB8@Server> <93706E94C0114E9689DD72D21CD65C35@HAL9005> Message-ID: Nope. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 03, 2010 3:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Thanks. Does Redemption require Outlook to be installed? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again http://www.dimastr.com/redemption/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 03, 2010 10:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Charlotte: I think I should read up on Redemption. Wasn't able to Google it. Do you have a link to the company or product description? Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 03, 2010 2:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email problem. Again No, Max. We ran into problems because CDO has nothing to do with Access. It used to be installed with Outlook, but no more. Several versions of Windows back it stopped being installed at all unless the user specified it. It isn't about Access, any version, it's about the fact that not every machine has CDO installed. You might be lucky but we weren't, especially since we have clients all over the world and Outlook isn't always there anyhow. We had to find a method that would work regardless of whether or not Outlook was installed or CDO was installed. Rocky seems to have the same issues, which you are completely ignoring in favor of what has worked for you. YMMV Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 9:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again > That's the reason we started using Redemption years ago Exactly, Charlotte. Years ago. And it is still here after all that worry! I was going to stop developing in A2k3 years ago thinking it would be around much longer and not only is A2k3 still here but people are still developing in A97! CDO will be around as long as A2k3 databases are around. And if the day comes, handle it then. I have been using it for years and before that cdos. But, I also use minirelay and send directly from my PC. Max p://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Mar 4 10:34:22 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 04 Mar 2010 08:34:22 -0800 Subject: [AccessD] OT: IE6 Funeral In-Reply-To: <7c7841601003040804g3d014410n2bd1cc18b977a0ed@mail.gmail.com> References: <7c7841601003040804g3d014410n2bd1cc18b977a0ed@mail.gmail.com> Message-ID: All I can say Kenneth, is thank GOD. As a web designer the costs and time waste of making site compliant, adapting to IE6, has been a nightmare.? Jim ----- Original Message ----- From: Kenneth Ismert Date: Thursday, March 4, 2010 8:04 am Subject: [AccessD] OT: IE6 Funeral To: accessd at databaseadvisors.com > http://ie6funeral.com/ > > http://edition.cnn.com/2010/TECH/03/04/ie6.funeral/ > > As you probably know, Google is dropping support for IE6 this > month. Those > who made the mistake (in hindsight) of binding their web apps > tightly to IE6 > are now faced with the painful choice of upgrading their apps to > standard,or maintaining a piece of software that has been a > prime target of hackers > and viruses for more than a decade. > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Thu Mar 4 10:35:19 2010 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 4 Mar 2010 10:35:19 -0600 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005>, <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: <7706DBAFABF44A6A92E8A37C1CB503A8@danwaters> Are you using a single .mdw file for everyone? If so, that could cause a slowdown with 65 users. Does everyone have their own 'User Directory' on the server? I have one system on a Citrix server, and their each person is running a distinct FE file. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Thursday, March 04, 2010 9:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] A 2003 on VM Ware I have recently assisted our parent company head office in updating my application to work with a newly deployed environment. in the past, we had 4 separate regional servers and a number of shared application and file servers supporting 65 concurrent users. Just over a year ago we switched from an mdb backend to a straight ODBC linked Sql Server setup because of 'disk or network' errors that continued after the switch to Sql Server. It turns out there was a problem on the file server hosting the front end. The new deployment is hosted on some serious hardware with 14 virtual machines run in 2 switchable banks and a pair of test servers for trying out service packs and new software installs. A set of emergency backup servers is housed across the street in a separate buildings. Additional servers can be built and deployed by scripts in a matter of an hour and a half. There are huge permanent Cat diesel backup generators in place. We now have 5 time zones set up on the servers based on the IP of the thin clients and several of the offices are moving up to fiber optic connections to the virtual servers. The problem is that the system is slower than it has ever been. We were trouble shooting some complaints yesterday and in my thin client session on one of the machines and another users session on the same machine, an inactive instance of my frontend on those sessions was sharing 100% of the cpu between the two Access applications. I deployed an older version of the front end that predated the change in environment and things are not improving. While the older environment was occasionally overwhelmed by resource demands, the problem arises far more frequently now despite the fact that we have provided significant increases to the hardware and the load balancer does a great job of ensuring that the number of users on any one server is well below the prior spec. When Access pins the processor at 100%, every other persons session on that VM essentially freezes. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 4 10:34:27 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Mar 2010 10:34:27 -0600 Subject: [AccessD] Email problem. Again In-Reply-To: References: Message-ID: It is, Jim. And there used to be a redistributable CDO, although I believe it was pulled at one time. However, it is more and more common not to be able to install things like that, and CDO has to be installed. Redemption is just a dll we program against. In our current .Net environment, we still use Redemption, just as we did with Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, March 04, 2010 6:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Gustav I have not used it either, but it looks like it would solve many problems. It will run standalone, is a direct replacement for CDO, supports extended MAPI and exchange environments and if Outlook is there, supports some of that as well. Sounds like one solution to code against regardless of the client environment. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 04, 2010 2:59 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email problem. Again Hi Charlotte Maybe Max thinks he understand what you are saying - he is so polite - but I don't. First, doesn't redemption require Outlook to be installed? That's what they tell anyway. If so, how do you handle those clients not using Outlook? Then, if you install one com object or another can't make much difference. I see nothing about MS preventing you to distribute CDO(EX). Also, if one component is free, I would have that as the first choice. I know, of course, that some paid component may have advantages. In this case, though, I don't see any. So while I can imagine redemption being the right choice for some scenarios (I have never used it), I cannot see it as the universal solution for any scenario. /gustav >>> cfoust at infostatsystems.com 04-03-2010 00:21 >>> No Max, that isn't what I'm saying. Redemption is part of our application. It's a dll that we call into. Why would we make a client download anything? That isn't what they expect from us. They buy a commercial product and they expect it to run ... out of the box. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 03, 2010 2:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Email problem. Again Yes, I understand what you are saying Charlotte. But, if you have a client who does not have CDO installed they you are saying that you get them Redemption, but you could just as easy get them ( or provide a script for them ) which downloads CDO (http://www.microsoft.com/downloads/details.aspx?FamilyID=2714320d-c997-4de1 -986f-24f081725d36&displaylang=en) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Mar 4 12:04:31 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 4 Mar 2010 11:04:31 -0700 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server>, Message-ID: I've added an OLEUnbound32 control to a new form that uses a linked Word file that is set on the fly. The form is used to display individual Word files that can be opened from the form for edit or printing. The purpose of the form is to provide a searchable index to 10s of thousands of cataloged equipment components. This allows us to search for categories such as drills, scaffold, forklifts, hand tools... by unit number, description, name or numerous other ways. The form displays a single page Word doc of ~600 KB that contains a JPG and a bit of text with a header and footer WMF graphic. Take away the JPG and the file is 64 KB. Take away the logo in the footer and the wire frame graphic in the header and the size of the Word doc is typically 50 to 60 KB. The application FE size is 16 megabytes. When I add the new form, decompile, compact and all that good stuff, the file size is over 50 megabytes if I leave a linked file in place. Remove the single control and compact and the size goes back down to 16 megabytes. Keeping the control in place, after navigating to the first item, the size goes from 16 to 50 megabytes. Navigate to a 2nd item and the size bloats to 83 megabytes. Thereafter it appears to creep another 300 KB per record navigated. Every time a person runs the shortcut to open the FE application, they get a new fresh copy and it will always start out at 16 megabytes. My only real concern is, what happens when someone is working on compiling a scaffold manual of 500 or so components? The code that sets the linked file: Private Function DisplayDoc(ctlDocControl As Control, strDocPath As Variant) As String With ctlDocControl If Len(Dir(strDocPath & "")) Then .Visible = True .OLETypeAllowed = acOLELinked .SourceDoc = strDocPath .Action = acOLECreateLink Else .Visible = False End If Me.cboLookUp.SetFocus End With Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 From jwelz at hotmail.com Thu Mar 4 12:30:46 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 4 Mar 2010 11:30:46 -0700 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: <7706DBAFABF44A6A92E8A37C1CB503A8@danwaters> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , <7706DBAFABF44A6A92E8A37C1CB503A8@danwaters> Message-ID: There is a script that runs at login that sets up the envrionment and shortcuts for each user. The shortcut that launches the application gets a fresh copy of the front end into each user folder and then launches it. There is an 'If Exists' clause in the shortcut script that provides for launching multiple instances for each user. This allows someone to open another application when they run invoicing, which generates a couple hundred Word docs and requires intensive processing that effectively ties up the application for that user. It's not the number of users and it's not the horsepower. Access is not playing nice. I have more servers with more processors and more ram per user than I've ever had. The system was designed from ground up to kick serious butt. I have specialized high speed disks for the most intensive file work, and multi channel fibre optic connections to SQL Server. Sure its still only ODBC, but, other things being pretty much constant, I've had nothing but performance upgrades. The new environment has some Windows upgrades to what had remained pretty static for the last few years while we operated in an environment pretty much isolated from parent company systems. They've been getting upgrades on a bank of servers while maintainining a rollback bank until everything is proved to be working. We pretty much inherited their base environment and bank of servers concepts and tacked on our specialty software that includes things like Pervasive database services, Pervasive ODBC that were also running in our old environment. Until this latest deployment, our division was operating on 4 VM terminal servers with the same OS and MS Office install. >From the tools they have to monitor resources, Access is intermittently behaving like a pig even when it is simply statically displaying a form that is open behind another application. When it acts up, other people on a bogged down server are unable to do things as simple as closing an Acrobat Reader file. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: dwaters at usinternet.com > To: accessd at databaseadvisors.com > Date: Thu, 4 Mar 2010 10:35:19 -0600 > Subject: Re: [AccessD] A 2003 on VM Ware > > Are you using a single .mdw file for everyone? If so, that could cause a > slowdown with 65 users. > > Does everyone have their own 'User Directory' on the server? I have one > system on a Citrix server, and their each person is running a distinct FE > file. > > Good Luck! > Dan _________________________________________________________________ Take your contacts everywhere http://go.microsoft.com/?linkid=9712959 From davidmcafee at gmail.com Thu Mar 4 13:23:17 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 4 Mar 2010 11:23:17 -0800 Subject: [AccessD] Sql password In-Reply-To: <4b88013e.15185e0a.43f1.1260@mx.google.com> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> Message-ID: <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> Did you ever find an answer to your question? On Fri, Feb 26, 2010 at 9:12 AM, Max Wanadoo wrote: > Hi > I have been downloading some stuff from microsoft for web development. > Dotnetnuke, joomla, acquia, etc. > > It installed SQL 2008 and Visual Studio 2008 but I dont know what the admin > username or password is. > > I have tried root and sa but no good. > > Any idea of how I even get them open so that I can try to set them up. > Without them I cannot install the other stuff. > > Sorry to be vague but I am out of my depth a bit here... > > thanks > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Mar 4 15:28:01 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 4 Mar 2010 21:28:01 -0000 Subject: [AccessD] Sql password In-Reply-To: <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> Message-ID: <64D82F8FFC95494D880EACB0B90DF03C@Server> No, Uninstalled it and started over...this time I made a note of all the "Defaults" which I didn't think I would need - being defaults an' all! Then MS decided to prompt for them and gives absolutely no help at all. Thanks for asking Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, March 04, 2010 7:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sql password Did you ever find an answer to your question? On Fri, Feb 26, 2010 at 9:12 AM, Max Wanadoo wrote: > Hi > I have been downloading some stuff from microsoft for web development. > Dotnetnuke, joomla, acquia, etc. > > It installed SQL 2008 and Visual Studio 2008 but I dont know what the > admin username or password is. > > I have tried root and sa but no good. > > Any idea of how I even get them open so that I can try to set them up. > Without them I cannot install the other stuff. > > Sorry to be vague but I am out of my depth a bit here... > > thanks > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 4 15:35:50 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 4 Mar 2010 21:35:50 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> Message-ID: <50E9BD7469A845D98B86E75B01EBB9F9@Server> Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub From DWUTKA at Marlow.com Thu Mar 4 16:38:57 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 4 Mar 2010 16:38:57 -0600 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005>, <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: Jurgen, I am no expert in VMWare. I use Virtual PC and Virtual Server, both MS based systems. And for 'remote clients' that want to use a 'desktop' here, they use Remote Desktop (it used to be MS's Terminal Server), so if you are using Citrix for that, I don't have much experience there either. HOWEVER, I think I may know where your problem lies...at least the direction it's in. I think the problem is two fold. First, Access 97 used to use up CPU processing during idle time, and MS swears that went away with Access 2000, but I've seen A2k and up do that 'maxing the CPU' thing. Now, on a normal machine, it's no big deal, because Access is willing and ready to give up the processing time. But, in a virtual machine, you have to realize that your VM programs aren't getting direct processor time. Instead, they are getting 'virtual processor' time. On top of that, in a Citrix/Terminal Server setting, you are practically running a virtual machine, inside a virtual machine. So with all of those lines getting tangled, Access may not be releasing the 'virtual CPU time' as readily as it should. http://insights.oetiker.ch/linux/vmware.html That is a link to a google search about terminal services inside a VM. Try those pointers, see if that helps. Personally,.... Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Thursday, March 04, 2010 9:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] A 2003 on VM Ware I have recently assisted our parent company head office in updating my application to work with a newly deployed environment. in the past, we had 4 separate regional servers and a number of shared application and file servers supporting 65 concurrent users. Just over a year ago we switched from an mdb backend to a straight ODBC linked Sql Server setup because of 'disk or network' errors that continued after the switch to Sql Server. It turns out there was a problem on the file server hosting the front end. The new deployment is hosted on some serious hardware with 14 virtual machines run in 2 switchable banks and a pair of test servers for trying out service packs and new software installs. A set of emergency backup servers is housed across the street in a separate buildings. Additional servers can be built and deployed by scripts in a matter of an hour and a half. There are huge permanent Cat diesel backup generators in place. We now have 5 time zones set up on the servers based on the IP of the thin clients and several of the offices are moving up to fiber optic connections to the virtual servers. The problem is that the system is slower than it has ever been. We were trouble shooting some complaints yesterday and in my thin client session on one of the machines and another users session on the same machine, an inactive instance of my frontend on those sessions was sharing 100% of the cpu between the two Access applications. I deployed an older version of the front end that predated the change in environment and things are not improving. While the older environment was occasionally overwhelmed by resource demands, the problem arises far more frequently now despite the fact that we have provided significant increases to the hardware and the load balancer does a great job of ensuring that the number of users on any one server is well below the prior spec. When Access pins the processor at 100%, every other persons session on that VM essentially freezes. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 -- 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 stuart at lexacorp.com.pg Thu Mar 4 16:53:39 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Mar 2010 08:53:39 +1000 Subject: [AccessD] Shelling to a batch file In-Reply-To: <50E9BD7469A845D98B86E75B01EBB9F9@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com>, <50E9BD7469A845D98B86E75B01EBB9F9@Server> Message-ID: <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Several problems. You are not currently using the SHELL command, you are using ShellExecute which is Windows API call. Any reason for that? You are ShellExecuting a string that looks like "CD /D C;\MyAppDir" CD is an internal DOS command. You can't run it directly , you need to invoke a command shell. Something along the lines of sPath = conQuote & "C:\Windows\System32\CMD.exe", " /C CD /D " _ & CurrentProject.Path & conQuote. Note that in this example, the path to CMD.exe is hard coded. To be portable, you actually need to determine the location of CMD.Exe on the workstation and embed this in the string. I have code to do it somewhere, I'll try to dig it out later. But that still won't do what you want. What happens here is that you are invoking a command shell and changing directory in it. You then close that shell and invole a second one to run Blat. That second shell will again run in your working directory, not your application directory. A couple of alternatives: 1. Include the CD command as the first line in Blat.bat You just need to build it once when the application is installed, or it may be preferable to build Blat.bat with a CD to currentproject.path and save it immediately before shelling to it. 2. Change your applications working directory in VBA immediately before and after calling Blat.bat. Here's a simple example of doing so: Function test() Dim strDirStore As String strDirStore = CurDir Debug.Print CurDir ChDir CurrentProject.Path Debug.Print CurDir ChDir strDirStore Debug.Print CurDir End Function On 4 Mar 2010 at 21:35, Max Wanadoo wrote: > Hi All, > > I am struggling to get the SHELL command to run a batch file from Access. > > Any clues or tips? > > The batch file in turn will run and executable in the same folder as the > currentproject.path BUT this exe file is NOT installed so it is necessary to > ensure that I first move to that folder and then run the batch.bat file. > > Eg: > g\_MyTest is my currentproject.path within Access > In there I have blat.exe which is not installed and which I do not want to > install - so nothing in the Registry. > I also have blat.bat which I have created from Access. > I want to run the batch file which in turn will invoke the blat.exe and pass > it parameters. > > The batch file runs fine if manually invoked. This is the last bit of > running Blat from within Access. > I will then post the lot to the List. > > Thanks > > Max > > This is where I am at: > > Private Sub sShell(sFile) > ' sfile will be "blat.bat" > const conQuote as string = """" > Dim sPath As String > ' move into the current folder because we havn't installed Blat.exe > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > Debug.Print sPath > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > vbNormalFocus > > ' now run the batch file > 'sFile = conQuote & sFile & conQuote > Debug.Print sFile > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > vbNormalFocus > End Sub > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Mar 4 16:57:36 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 4 Mar 2010 14:57:36 -0800 Subject: [AccessD] Sql password In-Reply-To: <64D82F8FFC95494D880EACB0B90DF03C@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> <64D82F8FFC95494D880EACB0B90DF03C@Server> Message-ID: <8786a4c01003041457g5b5fc0f8i48bfccf2a7cd07ad@mail.gmail.com> I found this link, and thought of this thread. http://stackoverflow.com/questions/237006/forgot-sql-server-password On Thu, Mar 4, 2010 at 1:28 PM, Max Wanadoo wrote: > No, > Uninstalled it and started over...this time I made a note of all the > "Defaults" which I didn't think I would need - being defaults an' all! > Then MS decided to prompt for them and gives absolutely no help at all. > > Thanks for asking > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Thursday, March 04, 2010 7:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sql password > > Did you ever find an answer to your question? > > On Fri, Feb 26, 2010 at 9:12 AM, Max Wanadoo wrote: >> Hi >> I have been downloading some stuff from microsoft for web development. >> Dotnetnuke, joomla, acquia, etc. >> >> It installed SQL 2008 and Visual Studio 2008 but I dont know what the >> admin username or password is. >> >> I have tried root and sa but no good. >> >> Any idea of how I even get them open so that I can try to set them up. >> Without them I cannot install the other stuff. >> >> Sorry to be vague but I am out of my depth a bit here... >> >> thanks >> >> Max >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Mar 4 17:35:55 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 4 Mar 2010 23:35:55 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com>, <50E9BD7469A845D98B86E75B01EBB9F9@Server> <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: <0049D74FDE6A4A0DB3090E9FE9BD4E57@Server> Thanks Stuart, That put me on the right track. Cheers Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 04, 2010 10:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Several problems. You are not currently using the SHELL command, you are using ShellExecute which is Windows API call. Any reason for that? You are ShellExecuting a string that looks like "CD /D C;\MyAppDir" CD is an internal DOS command. You can't run it directly , you need to invoke a command shell. Something along the lines of sPath = conQuote & "C:\Windows\System32\CMD.exe", " /C CD /D " _ & CurrentProject.Path & conQuote. Note that in this example, the path to CMD.exe is hard coded. To be portable, you actually need to determine the location of CMD.Exe on the workstation and embed this in the string. I have code to do it somewhere, I'll try to dig it out later. But that still won't do what you want. What happens here is that you are invoking a command shell and changing directory in it. You then close that shell and invole a second one to run Blat. That second shell will again run in your working directory, not your application directory. A couple of alternatives: 1. Include the CD command as the first line in Blat.bat You just need to build it once when the application is installed, or it may be preferable to build Blat.bat with a CD to currentproject.path and save it immediately before shelling to it. 2. Change your applications working directory in VBA immediately before and after calling Blat.bat. Here's a simple example of doing so: Function test() Dim strDirStore As String strDirStore = CurDir Debug.Print CurDir ChDir CurrentProject.Path Debug.Print CurDir ChDir strDirStore Debug.Print CurDir End Function On 4 Mar 2010 at 21:35, Max Wanadoo wrote: > Hi All, > > I am struggling to get the SHELL command to run a batch file from Access. > > Any clues or tips? > > The batch file in turn will run and executable in the same folder as > the currentproject.path BUT this exe file is NOT installed so it is > necessary to ensure that I first move to that folder and then run the batch.bat file. > > Eg: > g\_MyTest is my currentproject.path within Access In there I have > blat.exe which is not installed and which I do not want to install - > so nothing in the Registry. > I also have blat.bat which I have created from Access. > I want to run the batch file which in turn will invoke the blat.exe > and pass it parameters. > > The batch file runs fine if manually invoked. This is the last bit of > running Blat from within Access. > I will then post the lot to the List. > > Thanks > > Max > > This is where I am at: > > Private Sub sShell(sFile) > ' sfile will be "blat.bat" > const conQuote as string = """" > Dim sPath As String > ' move into the current folder because we havn't installed Blat.exe > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > Debug.Print sPath > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > vbNormalFocus > > ' now run the batch file > 'sFile = conQuote & sFile & conQuote > Debug.Print sFile > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > vbNormalFocus End Sub > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 4 17:59:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 4 Mar 2010 23:59:26 -0000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com>, <50E9BD7469A845D98B86E75B01EBB9F9@Server> <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: Hi Guys, Here is an example of using BLAT as an Emailer. Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc FREE. I have used it in 32bit and this example was just used in 64bit so the program (blat) is pretty stable. Example is tested in A2k3 Example is tested using a know smtp server with login details. I have not tried it in gmail. (yest) Replace smtp login details with your own. Max Option Compare Database Option Explicit ' Example by Max.Wanadoo at gmail.com ' Thanks to Stuart for helping to get the batch call running correctly. ' NOW:Forget CDO. ' Forget Redemption ' Forget SendObject ' We have BLAT. ' Free and NO installation - just put a copy in your project folder and build some text files. ' Download Blat.zip from http://www.blat.net/ ' extract the contents and place them in your app folder (we only need the blat.exe but the rest will be worth reading. ' you can then create a FORM where the user can enter variables. We will assume some constants, but these can ' be variables as well. ' You can also store them in tables if you wish (I would) ' This is just an exampls so that you understand how it works. ' full details of all the options are in the downloaded text files from blat.net ' HERE are the contents of the text files used as examples. You can create these on the fly from within Access. ' Subject.txt = "Hello World" ' Body.txt = This is a test email from Blat. ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To unsubscribe send an email to helpmeplease at heaven.com Private sBlatFile, sBlatLog Sub BlatExample() 'place these varibles in a form for the user to enter. We will just create them 'from here to show how they fit together to make Blat work. ' What I have done is to put the contents of the various bits into external text files and call them with these ' variables but you can put them directly into the varible if you change the calling Blat Switch where required. ' See Blat file for documentation or drop me a line. EG, -tf (to file) becomes -to (address list to send to) ' The files I have used are arbitarily named and I would antipate generting them from within Access where appropriate. If BlatCreate( _ sFrom:="me at mydomain.org", _ sRecipients:="Recipients.txt", _ sCC:="CC.txt", _ sBCC:="bcc.txt", _ sSubject:="subject.txt", _ sBody:="Body.txt", _ sSMTPServer:="smtp.mydomain.org", _ sSMTPUser:="me at mydomain.org", _ sSMTPPwd:="mysecretsmtppassword", _ sSignature:="Signature.txt", _ sPS:="ps.txt", _ sAttach:="Attach.txt") = 0 Then Call sShell(sBlatFile) End If End Sub Function BlatCreate( _ sFrom As String, _ sRecipients As String, _ sCC As String, _ sBCC As String, _ sSubject As String, _ sBody As String, _ sSMTPServer As String, _ sSMTPUser As String, _ sSMTPPwd As String, _ sSignature As String, _ sPS As String, _ sAttach As String) As Long On Error GoTo EH Dim sContents As String sBlatFile = CurrentProject.Path & "\blat.bat" sBlatLog = CurrentProject.Path & "\blat.log" sContents = "Blat.exe " & sBody & _ " -f " & sFrom & _ " -serverSMTP " & sSMTPServer & _ " -u " & sSMTPUser & _ " -pw " & sSMTPPwd & _ " -tf " & sRecipients & _ " -cf " & sCC & _ " -bf " & sBCC & _ " -sf " & sSubject & _ " -sig " & sSignature & _ " -ps " & sPS & _ " -attach " & sAttach ' That is all the varibles, we will now put our constants in, but ' if you want any of these to be changeable then just make them variables. ' NB there are no cr/lf in this file. ' this example asks for a read receipt, etc. sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" Close 1 On Error Resume Next Kill sBlatFile Kill sBlatLog On Error GoTo EH Open sBlatFile For Output As #1 Print #1, sContents Close 1 EX: Close 1 Exit Function EH: BlatCreate = Err.Number Select Case BlatCreate Case Else MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description End Select Resume EH End Function Private Sub sShell(sFile) Dim strCurPath As String, strCurDrive As String, strProjPath As String, strProjDrive As String ' get the project location strProjPath = CurrentProject.Path strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, strProjPath ' get the current location strCurPath = CurDir strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, strCurPath ' change the current location to the project location ' so that we can run the blat.exe via the blat.bat file ChDrive strProjDrive ChDir strProjPath ' now run the batch file Shell sFile ' now restore the current location back to what it was. ChDrive strCurDrive ChDir strCurPath End Sub From max.wanadoo at gmail.com Thu Mar 4 18:02:55 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 00:02:55 -0000 Subject: [AccessD] Sql password In-Reply-To: <8786a4c01003041457g5b5fc0f8i48bfccf2a7cd07ad@mail.gmail.com> References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><64D82F8FFC95494D880EACB0B90DF03C@Server> <8786a4c01003041457g5b5fc0f8i48bfccf2a7cd07ad@mail.gmail.com> Message-ID: <834A56916D724F9986DD5F4542C7D68C@Server> Interesting, Thanks David. I am currently looking at LifeRay CMS systems. Last week end I looked at Dotnetnuke, Joomlia, Urbunto, Stripes, mojoportal and a host of others. Phew, so much out there. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, March 04, 2010 10:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sql password I found this link, and thought of this thread. http://stackoverflow.com/questions/237006/forgot-sql-server-password On Thu, Mar 4, 2010 at 1:28 PM, Max Wanadoo wrote: > No, > Uninstalled it and started over...this time I made a note of all the > "Defaults" which I didn't think I would need - being defaults an' all! > Then MS decided to prompt for them and gives absolutely no help at all. > > Thanks for asking > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, March 04, 2010 7:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sql password > > Did you ever find an answer to your question? > > On Fri, Feb 26, 2010 at 9:12 AM, Max Wanadoo wrote: >> Hi >> I have been downloading some stuff from microsoft for web development. >> Dotnetnuke, joomla, acquia, etc. >> >> It installed SQL 2008 and Visual Studio 2008 but I dont know what the >> admin username or password is. >> >> I have tried root and sa but no good. >> >> Any idea of how I even get them open so that I can try to set them up. >> Without them I cannot install the other stuff. >> >> Sorry to be vague but I am out of my depth a bit here... >> >> thanks >> >> Max >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Mar 4 18:37:35 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 4 Mar 2010 16:37:35 -0800 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com>, <50E9BD7469A845D98B86E75B01EBB9F9@Server><4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: What about the authentication problem? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using BLAT as an Emailer Hi Guys, Here is an example of using BLAT as an Emailer. Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc FREE. I have used it in 32bit and this example was just used in 64bit so the program (blat) is pretty stable. Example is tested in A2k3 Example is tested using a know smtp server with login details. I have not tried it in gmail. (yest) Replace smtp login details with your own. Max Option Compare Database Option Explicit ' Example by Max.Wanadoo at gmail.com ' Thanks to Stuart for helping to get the batch call running correctly. ' NOW:Forget CDO. ' Forget Redemption ' Forget SendObject ' We have BLAT. ' Free and NO installation - just put a copy in your project folder and build some text files. ' Download Blat.zip from http://www.blat.net/ ' extract the contents and place them in your app folder (we only need the blat.exe but the rest will be worth reading. ' you can then create a FORM where the user can enter variables. We will assume some constants, but these can ' be variables as well. ' You can also store them in tables if you wish (I would) ' This is just an exampls so that you understand how it works. ' full details of all the options are in the downloaded text files from blat.net ' HERE are the contents of the text files used as examples. You can create these on the fly from within Access. ' Subject.txt = "Hello World" ' Body.txt = This is a test email from Blat. ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To unsubscribe send an email to helpmeplease at heaven.com Private sBlatFile, sBlatLog Sub BlatExample() 'place these varibles in a form for the user to enter. We will just create them 'from here to show how they fit together to make Blat work. ' What I have done is to put the contents of the various bits into external text files and call them with these ' variables but you can put them directly into the varible if you change the calling Blat Switch where required. ' See Blat file for documentation or drop me a line. EG, -tf (to file) becomes -to (address list to send to) ' The files I have used are arbitarily named and I would antipate generting them from within Access where appropriate. If BlatCreate( _ sFrom:="me at mydomain.org", _ sRecipients:="Recipients.txt", _ sCC:="CC.txt", _ sBCC:="bcc.txt", _ sSubject:="subject.txt", _ sBody:="Body.txt", _ sSMTPServer:="smtp.mydomain.org", _ sSMTPUser:="me at mydomain.org", _ sSMTPPwd:="mysecretsmtppassword", _ sSignature:="Signature.txt", _ sPS:="ps.txt", _ sAttach:="Attach.txt") = 0 Then Call sShell(sBlatFile) End If End Sub Function BlatCreate( _ sFrom As String, _ sRecipients As String, _ sCC As String, _ sBCC As String, _ sSubject As String, _ sBody As String, _ sSMTPServer As String, _ sSMTPUser As String, _ sSMTPPwd As String, _ sSignature As String, _ sPS As String, _ sAttach As String) As Long On Error GoTo EH Dim sContents As String sBlatFile = CurrentProject.Path & "\blat.bat" sBlatLog = CurrentProject.Path & "\blat.log" sContents = "Blat.exe " & sBody & _ " -f " & sFrom & _ " -serverSMTP " & sSMTPServer & _ " -u " & sSMTPUser & _ " -pw " & sSMTPPwd & _ " -tf " & sRecipients & _ " -cf " & sCC & _ " -bf " & sBCC & _ " -sf " & sSubject & _ " -sig " & sSignature & _ " -ps " & sPS & _ " -attach " & sAttach ' That is all the varibles, we will now put our constants in, but ' if you want any of these to be changeable then just make them variables. ' NB there are no cr/lf in this file. ' this example asks for a read receipt, etc. sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" Close 1 On Error Resume Next Kill sBlatFile Kill sBlatLog On Error GoTo EH Open sBlatFile For Output As #1 Print #1, sContents Close 1 EX: Close 1 Exit Function EH: BlatCreate = Err.Number Select Case BlatCreate Case Else MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description End Select Resume EH End Function Private Sub sShell(sFile) Dim strCurPath As String, strCurDrive As String, strProjPath As String, strProjDrive As String ' get the project location strProjPath = CurrentProject.Path strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, strProjPath ' get the current location strCurPath = CurDir strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, strCurPath ' change the current location to the project location ' so that we can run the blat.exe via the blat.bat file ChDrive strProjDrive ChDir strProjPath ' now run the batch file Shell sFile ' now restore the current location back to what it was. ChDrive strCurDrive ChDir strCurPath End Sub -- 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 Mar 4 19:06:28 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Mar 2010 11:06:28 +1000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, , Message-ID: <4B905914.7703.1ECA61DF@stuart.lexacorp.com.pg> Blat supports several form of AUTH and also POP3 login before send. You just need to pass the Username/PW as parameters. -- Stuart On 4 Mar 2010 at 16:37, Rocky Smolin wrote: > What about the authentication problem? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 04, 2010 3:59 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Using BLAT as an Emailer > > > Hi Guys, > > Here is an example of using BLAT as an Emailer. > Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc > > FREE. I have used it in 32bit and this example was just used in 64bit so the > program (blat) is pretty stable. > Example is tested in A2k3 > Example is tested using a know smtp server with login details. I have not > tried it in gmail. (yest) > > Replace smtp login details with your own. > > Max > > > Option Compare Database > Option Explicit > ' Example by Max.Wanadoo at gmail.com > ' Thanks to Stuart for helping to get the batch call running correctly. > > ' NOW:Forget CDO. > ' Forget Redemption > ' Forget SendObject > ' We have BLAT. > ' Free and NO installation - just put a copy in your project folder and > build some text files. > > > ' Download Blat.zip from http://www.blat.net/ ' extract the contents and > place them in your app folder (we only need the blat.exe but the rest will > be worth reading. > ' you can then create a FORM where the user can enter variables. We will > assume some constants, but these can ' be variables as well. > ' You can also store them in tables if you wish (I would) ' This is just an > exampls so that you understand how it works. > ' full details of all the options are in the downloaded text files from > blat.net > > ' HERE are the contents of the text files used as examples. You can create > these on the fly from within Access. > > ' Subject.txt = "Hello World" > ' Body.txt = This is a test email from Blat. > ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, > max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = > max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To > unsubscribe send an email to helpmeplease at heaven.com > > > Private sBlatFile, sBlatLog > > Sub BlatExample() > 'place these varibles in a form for the user to enter. We will just create > them 'from here to show how they fit together to make Blat work. > ' What I have done is to put the contents of the various bits into external > text files and call them with these ' variables but you can put them > directly into the varible if you change the calling Blat Switch where > required. > ' See Blat file for documentation or drop me a line. EG, -tf (to file) > becomes -to (address list to send to) ' The files I have used are arbitarily > named and I would antipate generting them from within Access where > appropriate. > > If BlatCreate( _ > sFrom:="me at mydomain.org", _ > sRecipients:="Recipients.txt", _ > sCC:="CC.txt", _ > sBCC:="bcc.txt", _ > sSubject:="subject.txt", _ > sBody:="Body.txt", _ > sSMTPServer:="smtp.mydomain.org", _ > sSMTPUser:="me at mydomain.org", _ > sSMTPPwd:="mysecretsmtppassword", _ > sSignature:="Signature.txt", _ > sPS:="ps.txt", _ > sAttach:="Attach.txt") = 0 Then > Call sShell(sBlatFile) > End If > End Sub > > Function BlatCreate( _ > sFrom As String, _ > sRecipients As String, _ > sCC As String, _ > sBCC As String, _ > sSubject As String, _ > sBody As String, _ > sSMTPServer As String, _ > sSMTPUser As String, _ > sSMTPPwd As String, _ > sSignature As String, _ > sPS As String, _ > sAttach As String) As Long > On Error GoTo EH > > Dim sContents As String > sBlatFile = CurrentProject.Path & "\blat.bat" > sBlatLog = CurrentProject.Path & "\blat.log" > > sContents = "Blat.exe " & sBody & _ > " -f " & sFrom & _ > " -serverSMTP " & sSMTPServer & _ > " -u " & sSMTPUser & _ > " -pw " & sSMTPPwd & _ > " -tf " & sRecipients & _ > " -cf " & sCC & _ > " -bf " & sBCC & _ > " -sf " & sSubject & _ > " -sig " & sSignature & _ > " -ps " & sPS & _ > " -attach " & sAttach > > ' That is all the varibles, we will now put our constants in, but > ' if you want any of these to be changeable then just make them > variables. > ' NB there are no cr/lf in this file. > ' this example asks for a read receipt, etc. > > > sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log > -timestamp -ti 60 -try 3 -hostname MyHostName" > > Close 1 > On Error Resume Next > Kill sBlatFile > Kill sBlatLog > On Error GoTo EH > Open sBlatFile For Output As #1 > Print #1, sContents > Close 1 > EX: > Close 1 > Exit Function > EH: > BlatCreate = Err.Number > Select Case BlatCreate > Case Else > MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description > End Select > Resume EH > End Function > > Private Sub sShell(sFile) > Dim strCurPath As String, strCurDrive As String, strProjPath As String, > strProjDrive As String > ' get the project location > strProjPath = CurrentProject.Path > strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, > strProjPath > > ' get the current location > strCurPath = CurDir > strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, > strCurPath > > ' change the current location to the project location > ' so that we can run the blat.exe via the blat.bat file > ChDrive strProjDrive > ChDir strProjPath > > ' now run the batch file > Shell sFile > > ' now restore the current location back to what it was. > ChDrive strCurDrive > ChDir strCurPath > End Sub > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 4 19:33:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 04 Mar 2010 20:33:57 -0500 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005>, <7EC5B649F07C4614B9C6EECCC868858E@Server> Message-ID: <4B905F85.9090907@colbyconsulting.com> Jurgen, I think Drew might be right in that Access is supposed to sense "other applications" wanting the processor and releasing the cycles. If Access is all that is running inside of that VM, then it never senses "other applications" wanting the cycles because those other applications are isolated by the walls of the VM. Thus the VM ends up requesting real cpu cycles to service the Access FE and essentially tying up an entire core per FE. As for whether Access still does this anymore, I have not seen it continuously do this, however I have seen it do this for a "long period" where long period is 30 seconds or more, and then eventually stop. I have three virtual machines running on a quad core "server". I quote the server simply because it is just a reasonably powerful quad core AMD, NOT a true SERVER machine. After much research I discovered that VMs are not all they appear. For example the recommendation is NEVER give a single VM multiple "CPUs" even though it is possible to do so. Likewise the recommendation is to always leave a core not assigned to a VM, iow if it is a quad core machine, only run three VMs and leave the fourth core to run the VMWare host software (and Windows of course). I have a third party application which is written in Foxpro for Windows. It runs well in the VM however... it eventually locks up the VM. No idea why, but if I allow it to do its processing for 24 or 48 hours it will eventually lock up the VM. The VM responds, but "responds" as in 2 minutes to respond to a mouse click and so forth. Once this happens, it is damned difficult and sometimes impossible to regain control of the VM. I end up just "removing power" to the VM (the equivalent of hitting the power button). I have seen it do something to the VMWare host software such that a reboot of the actual server was required to get the VMs working again. SOMETIMES I can simply close VMWare and restart it, sometimes that doesn't work and a reboot of the physical machine is required. All of this happens with an application other than Access, so that indicates that application software running in a VM is quite capable of bringing the entire server to its knees. In my mind that should not be possible and VMWare needs to figure this out and fix it from their side. So far they have not, and there are complaints about this on their forums. I have just fired up my server and will do a little testing. I do not have office installed on the VMs but I will install Office 2003, and then get a simple FE running talking to a BE up on the VMWare server machine. I will then be able to tell you if I see anything like what you are seeing. I suspect that I will not however. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Jurgen, I am no expert in VMWare. I use Virtual PC and Virtual Server, both MS based systems. And for 'remote clients' that want to use a 'desktop' here, they use Remote Desktop (it used to be MS's Terminal Server), so if you are using Citrix for that, I don't have much experience there either. > > HOWEVER, I think I may know where your problem lies...at least the direction it's in. I think the problem is two fold. First, Access 97 used to use up CPU processing during idle time, and MS swears that went away with Access 2000, but I've seen A2k and up do that 'maxing the CPU' thing. Now, on a normal machine, it's no big deal, because Access is willing and ready to give up the processing time. But, in a virtual machine, you have to realize that your VM programs aren't getting direct processor time. Instead, they are getting 'virtual processor' time. On top of that, in a Citrix/Terminal Server setting, you are practically running a virtual machine, inside a virtual machine. So with all of those lines getting tangled, Access may not be releasing the 'virtual CPU time' as readily as it should. > > http://insights.oetiker.ch/linux/vmware.html That is a link to a google search about terminal services inside a VM. Try those pointers, see if that helps. > > Personally,.... > > > Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. > > But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. > > > ;) > > Drew > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Thursday, March 04, 2010 9:47 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] A 2003 on VM Ware > > > I have recently assisted our parent company head office in updating my application to work with a newly deployed environment. in the past, we had 4 separate regional servers and a number of shared application and file servers supporting 65 concurrent users. Just over a year ago we switched from an mdb backend to a straight ODBC linked Sql Server setup because of 'disk or network' errors that continued after the switch to Sql Server. It turns out there was a problem on the file server hosting the front end. > > > > The new deployment is hosted on some serious hardware with 14 virtual machines run in 2 switchable banks and a pair of test servers for trying out service packs and new software installs. A set of emergency backup servers is housed across the street in a separate buildings. Additional servers can be built and deployed by scripts in a matter of an hour and a half. There are huge permanent Cat diesel backup generators in place. We now have 5 time zones set up on the servers based on the IP of the thin clients and several of the offices are moving up to fiber optic connections to the virtual servers. > > > > The problem is that the system is slower than it has ever been. We were trouble shooting some complaints yesterday and in my thin client session on one of the machines and another users session on the same machine, an inactive instance of my frontend on those sessions was sharing 100% of the cpu between the two Access applications. > > > > I deployed an older version of the front end that predated the change in environment and things are not improving. While the older environment was occasionally overwhelmed by resource demands, the problem arises far more frequently now despite the fact that we have provided significant increases to the hardware and the load balancer does a great job of ensuring that the number of users on any one server is well below the prior spec. > > > > When Access pins the processor at 100%, every other persons session on that VM essentially freezes. > > Ciao J?rgen Welz > > Edmonton, Alberta jwelz at hotmail.com > > _________________________________________________________________ > Live connected with Messenger on your phone > http://go.microsoft.com/?linkid=9712958 From davidmcafee at gmail.com Thu Mar 4 19:42:06 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 4 Mar 2010 17:42:06 -0800 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: <4B905914.7703.1ECA61DF@stuart.lexacorp.com.pg> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <4B905914.7703.1ECA61DF@stuart.lexacorp.com.pg> Message-ID: <8786a4c01003041742h64fbf4fcpacde2361859c3087@mail.gmail.com> Fransisco and I used BLAT in one of our old ADPs when we worked together. It was awesome. We even built it into the error handler to email us the error number, the form name, the sub name and if needed certain parameter values. We started using Blat after MS released that draconian patch for Outlook 2000. I think they are still using it at that company. David On Thu, Mar 4, 2010 at 5:06 PM, Stuart McLachlan wrote: > Blat supports several form of AUTH and also POP3 login before send. > You just need to pass the Username/PW as parameters. > > > > -- > Stuart > > On 4 Mar 2010 at 16:37, Rocky Smolin wrote: > >> What about the authentication problem? >> >> r >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >> Sent: Thursday, March 04, 2010 3:59 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Using BLAT as an Emailer >> >> >> Hi Guys, >> >> Here is an example of using BLAT as an Emailer. >> Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc >> >> FREE. I have used it in 32bit and this example was just used in 64bit so the >> program (blat) is pretty stable. >> Example is tested in A2k3 >> Example is tested using a know smtp server with login details. I have not >> tried it in gmail. (yest) >> >> Replace smtp login details with your own. >> >> Max >> >> >> Option Compare Database >> Option Explicit >> ' Example by Max.Wanadoo at gmail.com >> ' Thanks to Stuart for helping to get the ?batch call running correctly. >> >> ' NOW:Forget ?CDO. >> ' Forget Redemption >> ' Forget SendObject >> ' We have BLAT. >> ' Free and NO installation - just put a copy in your project folder and >> build some text files. >> >> >> ' Download Blat.zip from http://www.blat.net/ ' extract the contents and >> place them in your app folder (we only need the blat.exe but the rest will >> be worth reading. >> ' you can then create a FORM where the user can enter variables. ?We will >> assume some constants, ?but these can ' be variables as well. >> ' You can also store them in tables if ?you wish (I would) ' This is just an >> exampls so that you understand how it works. >> ' full details of all the options are in the downloaded text files from >> blat.net >> >> ' HERE are the contents of the text files used as examples. You can create >> these on the fly from within Access. >> >> ' Subject.txt = "Hello World" >> ' Body.txt = This is a test email from Blat. >> ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, >> max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = >> max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To >> unsubscribe send an email to helpmeplease at heaven.com >> >> >> Private sBlatFile, sBlatLog >> >> Sub BlatExample() >> 'place these varibles in a form ?for the user ?to enter. We will just create >> them 'from here ?to show how they fit together to make Blat work. >> ' What I have done is to put the contents of the various bits into external >> text files and call them with these ' variables but you can put them >> directly into the varible if you change the calling Blat Switch where >> required. >> ' See Blat file for documentation or drop me a line. ?EG, -tf (to file) >> becomes -to (address list to send to) ' The files I have used are arbitarily >> named and I would antipate generting them from within Access where >> appropriate. >> >> ? ? If BlatCreate( _ >> ? ? ? ?sFrom:="me at mydomain.org", _ >> ? ? ? ?sRecipients:="Recipients.txt", _ >> ? ? ? ?sCC:="CC.txt", _ >> ? ? ? ?sBCC:="bcc.txt", _ >> ? ? ? ?sSubject:="subject.txt", _ >> ? ? ? ?sBody:="Body.txt", _ >> ? ? ? ?sSMTPServer:="smtp.mydomain.org", _ >> ? ? ? ?sSMTPUser:="me at mydomain.org", _ >> ? ? ? ?sSMTPPwd:="mysecretsmtppassword", _ >> ? ? ? ?sSignature:="Signature.txt", _ >> ? ? ? ?sPS:="ps.txt", _ >> ? ? ? ?sAttach:="Attach.txt") = 0 Then >> ? ? ? ? Call sShell(sBlatFile) >> ? ? End If >> End Sub >> >> Function BlatCreate( _ >> ? ? ? ? ?sFrom As String, _ >> ? ? ? ? ?sRecipients As String, _ >> ? ? ? ? ?sCC As String, _ >> ? ? ? ? ?sBCC As String, _ >> ? ? ? ? ?sSubject As String, _ >> ? ? ? ? ?sBody As String, _ >> ? ? ? ? ?sSMTPServer As String, _ >> ? ? ? ? ?sSMTPUser As String, _ >> ? ? ? ? ?sSMTPPwd As String, _ >> ? ? ? ? ?sSignature As String, _ >> ? ? ? ? ?sPS As String, _ >> ? ? ? ? ?sAttach As String) As Long >> ? ? On Error GoTo EH >> >> ? ? Dim sContents As String >> ? ? sBlatFile = CurrentProject.Path & "\blat.bat" >> ? ? sBlatLog = CurrentProject.Path & "\blat.log" >> >> ? ? sContents = "Blat.exe " & sBody & _ >> ? ? ? ? ? ? ? " -f " & sFrom & _ >> ? ? ? ? ? ? ? " -serverSMTP " & sSMTPServer & _ >> ? ? ? ? ? ? ? " -u " & sSMTPUser & _ >> ? ? ? ? ? ? ? " -pw " & sSMTPPwd & _ >> ? ? ? ? ? ? ? " -tf " & sRecipients & _ >> ? ? ? ? ? ? ? " -cf " & sCC & _ >> ? ? ? ? ? ? ? " -bf " & sBCC & _ >> ? ? ? ? ? ? ? " -sf " & sSubject & _ >> ? ? ? ? ? ? ? " -sig " & sSignature & _ >> ? ? ? ? ? ? ? " -ps " & sPS & _ >> ? ? ? ? ? ? ? " -attach " & sAttach >> >> ? ? ' That is ?all the varibles, we will now put our constants in, but >> ? ? ' if you want any of these to be changeable then just make them >> variables. >> ? ? ' NB there are no cr/lf in this file. >> ? ? ' this example asks for a read ?receipt, etc. >> >> >> ? ? sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log >> -timestamp -ti 60 -try 3 -hostname MyHostName" >> >> ? ? Close 1 >> ? ? On Error Resume Next >> ? ? Kill sBlatFile >> ? ? Kill sBlatLog >> ? ? On Error GoTo EH >> ? ? Open sBlatFile For Output As #1 >> ? ? Print #1, sContents >> ? ? Close 1 >> EX: >> ? ? Close 1 >> ? ? Exit Function >> EH: >> ? ? BlatCreate = Err.Number >> ? ? Select Case BlatCreate >> ? ? Case Else >> ? ? ? ? MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description >> ? ? End Select >> ? ? Resume EH >> End Function >> >> Private Sub sShell(sFile) >> ? ? Dim strCurPath As String, strCurDrive As String, strProjPath As String, >> strProjDrive As String >> ? ? ' get the project location >> ? ? strProjPath = CurrentProject.Path >> ? ? strProjDrive = Left(strProjPath, 1): ? ?'Debug.Print strProjDrive, >> strProjPath >> >> ? ? ' get the current location >> ? ? strCurPath = CurDir >> ? ? strCurDrive = Left(strCurPath, 1): ? ?'Debug.Print strCurDrive, >> strCurPath >> >> ? ? ' change the current location to the project location >> ? ? ' so that we can run the blat.exe via ?the blat.bat file >> ? ? ChDrive strProjDrive >> ? ? ChDir strProjPath >> >> ? ? ' now run the batch file >> ? ? Shell sFile >> >> ? ? ' now restore the current location back to what it was. >> ? ? ChDrive strCurDrive >> ? ? ChDir strCurPath >> End Sub >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Thu Mar 4 08:57:12 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Mar 2010 15:57:12 +0100 Subject: [AccessD] OT Friday: Diskettes on the fly? Message-ID: Hi all Not humour (or is it?) but I discussed with a colleague, if anyone is still using 3?" diskettes? Are you aware of any? We have a bunch of those in a filed box. What could they be used for? /gustav From max.wanadoo at gmail.com Fri Mar 5 02:01:29 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 08:01:29 -0000 Subject: [AccessD] OT: Friday Humour In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com>, <50E9BD7469A845D98B86E75B01EBB9F9@Server><4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: <5833F8265C0D4F7C87FF4DE662125DEE@Server> http://musikfavorite.com/category/rock/police-rock/ Police hunt for supermarket bum sniffer. First video. Max Ps. It is nothing to be sniffed at.... From Gustav at cactus.dk Fri Mar 5 02:16:38 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Mar 2010 09:16:38 +0100 Subject: [AccessD] So much out there (was: Sql password) Message-ID: Hi Max Joomla? That's PHP stuff. Do you really want to mess with that? You missed Unbraco: http://umbraco.org/ which MS has chosen to drive the new ASP.NET site. /gustav >>> max.wanadoo at gmail.com 05-03-2010 01:02 >>> Interesting, Thanks David. I am currently looking at LifeRay CMS systems. Last week end I looked at Dotnetnuke, Joomlia, Urbunto, Stripes, mojoportal and a host of others. Phew, so much out there. Max From max.wanadoo at gmail.com Fri Mar 5 02:24:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 08:24:25 -0000 Subject: [AccessD] So much out there (was: Sql password) In-Reply-To: References: Message-ID: <9DC6B267241C45E78026674E49D6D8DB@Server> > and a host of others. No, done Umbraco. It fell under the title of ".. and a host of others." Just couldn't remember them all. PHP is fine, just another language and fairly easy to grasp (for the easy things anyway). But PHP uses MySQL which has a lot going for it when you consider the overheads of SQL. 2p. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 05, 2010 8:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] So much out there (was: Sql password) Hi Max Joomla? That's PHP stuff. Do you really want to mess with that? You missed Unbraco: http://umbraco.org/ which MS has chosen to drive the new ASP.NET site. /gustav >>> max.wanadoo at gmail.com 05-03-2010 01:02 >>> Interesting, Thanks David. I am currently looking at LifeRay CMS systems. Last week end I looked at Dotnetnuke, Joomlia, Urbunto, Stripes, mojoportal and a host of others. Phew, so much out there. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 5 02:46:06 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Mar 2010 09:46:06 +0100 Subject: [AccessD] Using BLAT as an Emailer Message-ID: Hi Max But you are writing only one command line to that batch file so why a having the trouble. Just run the command line with Shell. /gustav >>> max.wanadoo at gmail.com 05-03-2010 00:59 >>> Hi Guys, Here is an example of using BLAT as an Emailer. Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc FREE. I have used it in 32bit and this example was just used in 64bit so the program (blat) is pretty stable. Example is tested in A2k3 Example is tested using a know smtp server with login details. I have not tried it in gmail. (yest) Replace smtp login details with your own. Max Option Compare Database Option Explicit ' Example by Max.Wanadoo at gmail.com ' Thanks to Stuart for helping to get the batch call running correctly. ' NOW:Forget CDO. ' Forget Redemption ' Forget SendObject ' We have BLAT. ' Free and NO installation - just put a copy in your project folder and build some text files. ' Download Blat.zip from http://www.blat.net/ ' extract the contents and place them in your app folder (we only need the blat.exe but the rest will be worth reading. ' you can then create a FORM where the user can enter variables. We will assume some constants, but these can ' be variables as well. ' You can also store them in tables if you wish (I would) ' This is just an exampls so that you understand how it works. ' full details of all the options are in the downloaded text files from blat.net ' HERE are the contents of the text files used as examples. You can create these on the fly from within Access. ' Subject.txt = "Hello World" ' Body.txt = This is a test email from Blat. ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To unsubscribe send an email to helpmeplease at heaven.com Private sBlatFile, sBlatLog Sub BlatExample() 'place these varibles in a form for the user to enter. We will just create them 'from here to show how they fit together to make Blat work. ' What I have done is to put the contents of the various bits into external text files and call them with these ' variables but you can put them directly into the varible if you change the calling Blat Switch where required. ' See Blat file for documentation or drop me a line. EG, -tf (to file) becomes -to (address list to send to) ' The files I have used are arbitarily named and I would antipate generting them from within Access where appropriate. If BlatCreate( _ sFrom:="me at mydomain.org", _ sRecipients:="Recipients.txt", _ sCC:="CC.txt", _ sBCC:="bcc.txt", _ sSubject:="subject.txt", _ sBody:="Body.txt", _ sSMTPServer:="smtp.mydomain.org", _ sSMTPUser:="me at mydomain.org", _ sSMTPPwd:="mysecretsmtppassword", _ sSignature:="Signature.txt", _ sPS:="ps.txt", _ sAttach:="Attach.txt") = 0 Then Call sShell(sBlatFile) End If End Sub Function BlatCreate( _ sFrom As String, _ sRecipients As String, _ sCC As String, _ sBCC As String, _ sSubject As String, _ sBody As String, _ sSMTPServer As String, _ sSMTPUser As String, _ sSMTPPwd As String, _ sSignature As String, _ sPS As String, _ sAttach As String) As Long On Error GoTo EH Dim sContents As String sBlatFile = CurrentProject.Path & "\blat.bat" sBlatLog = CurrentProject.Path & "\blat.log" sContents = "Blat.exe " & sBody & _ " -f " & sFrom & _ " -serverSMTP " & sSMTPServer & _ " -u " & sSMTPUser & _ " -pw " & sSMTPPwd & _ " -tf " & sRecipients & _ " -cf " & sCC & _ " -bf " & sBCC & _ " -sf " & sSubject & _ " -sig " & sSignature & _ " -ps " & sPS & _ " -attach " & sAttach ' That is all the varibles, we will now put our constants in, but ' if you want any of these to be changeable then just make them variables. ' NB there are no cr/lf in this file. ' this example asks for a read receipt, etc. sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" Close 1 On Error Resume Next Kill sBlatFile Kill sBlatLog On Error GoTo EH Open sBlatFile For Output As #1 Print #1, sContents Close 1 EX: Close 1 Exit Function EH: BlatCreate = Err.Number Select Case BlatCreate Case Else MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description End Select Resume EH End Function Private Sub sShell(sFile) Dim strCurPath As String, strCurDrive As String, strProjPath As String, strProjDrive As String ' get the project location strProjPath = CurrentProject.Path strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, strProjPath ' get the current location strCurPath = CurDir strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, strCurPath ' change the current location to the project location ' so that we can run the blat.exe via the blat.bat file ChDrive strProjDrive ChDir strProjPath ' now run the batch file Shell sFile ' now restore the current location back to what it was. ChDrive strCurDrive ChDir strCurPath End Sub From max.wanadoo at gmail.com Fri Mar 5 02:57:48 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 08:57:48 -0000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: Message-ID: Hi Gustav, True, but only in that example. Here is another exampe running with MiniRelay via LocalHost. TEST.BAT Del Blat.log @echo off :::::::::::::: Lets set some variables :::::::::::::: set eMail=max at myserver.com set subj=-s "Test Blat" set server=-server localhost set x=-x "X-Header-Test: Can Blat do it? Yes it Can!" set debug=-debug -log blat.log -timestamp ::::::::::::::::: Now we run Blat! ::::::::::::::::: blat %0 -to %eMail% -f %eMail% %subj% %server% %debug% %x% ...and so on. Blat is very powerful and it will take some getting used to, to handle all the options. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 05, 2010 8:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Using BLAT as an Emailer Hi Max But you are writing only one command line to that batch file so why a having the trouble. Just run the command line with Shell. /gustav >>> max.wanadoo at gmail.com 05-03-2010 00:59 >>> Hi Guys, Here is an example of using BLAT as an Emailer. Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc FREE. I have used it in 32bit and this example was just used in 64bit so the program (blat) is pretty stable. Example is tested in A2k3 Example is tested using a know smtp server with login details. I have not tried it in gmail. (yest) Replace smtp login details with your own. Max Option Compare Database Option Explicit ' Example by Max.Wanadoo at gmail.com ' Thanks to Stuart for helping to get the batch call running correctly. ' NOW:Forget CDO. ' Forget Redemption ' Forget SendObject ' We have BLAT. ' Free and NO installation - just put a copy in your project folder and build some text files. ' Download Blat.zip from http://www.blat.net/ ' extract the contents and place them in your app folder (we only need the blat.exe but the rest will be worth reading. ' you can then create a FORM where the user can enter variables. We will assume some constants, but these can ' be variables as well. ' You can also store them in tables if you wish (I would) ' This is just an exampls so that you understand how it works. ' full details of all the options are in the downloaded text files from blat.net ' HERE are the contents of the text files used as examples. You can create these on the fly from within Access. ' Subject.txt = "Hello World" ' Body.txt = This is a test email from Blat. ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To unsubscribe send an email to helpmeplease at heaven.com Private sBlatFile, sBlatLog Sub BlatExample() 'place these varibles in a form for the user to enter. We will just create them 'from here to show how they fit together to make Blat work. ' What I have done is to put the contents of the various bits into external text files and call them with these ' variables but you can put them directly into the varible if you change the calling Blat Switch where required. ' See Blat file for documentation or drop me a line. EG, -tf (to file) becomes -to (address list to send to) ' The files I have used are arbitarily named and I would antipate generting them from within Access where appropriate. If BlatCreate( _ sFrom:="me at mydomain.org", _ sRecipients:="Recipients.txt", _ sCC:="CC.txt", _ sBCC:="bcc.txt", _ sSubject:="subject.txt", _ sBody:="Body.txt", _ sSMTPServer:="smtp.mydomain.org", _ sSMTPUser:="me at mydomain.org", _ sSMTPPwd:="mysecretsmtppassword", _ sSignature:="Signature.txt", _ sPS:="ps.txt", _ sAttach:="Attach.txt") = 0 Then Call sShell(sBlatFile) End If End Sub Function BlatCreate( _ sFrom As String, _ sRecipients As String, _ sCC As String, _ sBCC As String, _ sSubject As String, _ sBody As String, _ sSMTPServer As String, _ sSMTPUser As String, _ sSMTPPwd As String, _ sSignature As String, _ sPS As String, _ sAttach As String) As Long On Error GoTo EH Dim sContents As String sBlatFile = CurrentProject.Path & "\blat.bat" sBlatLog = CurrentProject.Path & "\blat.log" sContents = "Blat.exe " & sBody & _ " -f " & sFrom & _ " -serverSMTP " & sSMTPServer & _ " -u " & sSMTPUser & _ " -pw " & sSMTPPwd & _ " -tf " & sRecipients & _ " -cf " & sCC & _ " -bf " & sBCC & _ " -sf " & sSubject & _ " -sig " & sSignature & _ " -ps " & sPS & _ " -attach " & sAttach ' That is all the varibles, we will now put our constants in, but ' if you want any of these to be changeable then just make them variables. ' NB there are no cr/lf in this file. ' this example asks for a read receipt, etc. sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" Close 1 On Error Resume Next Kill sBlatFile Kill sBlatLog On Error GoTo EH Open sBlatFile For Output As #1 Print #1, sContents Close 1 EX: Close 1 Exit Function EH: BlatCreate = Err.Number Select Case BlatCreate Case Else MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description End Select Resume EH End Function Private Sub sShell(sFile) Dim strCurPath As String, strCurDrive As String, strProjPath As String, strProjDrive As String ' get the project location strProjPath = CurrentProject.Path strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, strProjPath ' get the current location strCurPath = CurDir strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, strCurPath ' change the current location to the project location ' so that we can run the blat.exe via the blat.bat file ChDrive strProjDrive ChDir strProjPath ' now run the batch file Shell sFile ' now restore the current location back to what it was. ChDrive strCurDrive ChDir strCurPath End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 5 03:06:36 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 09:06:36 -0000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: Message-ID: <2DA5C8C33B804679989FD1B1B4E8F263@Server> Here is another example of Blat where you might want to send an email as HTML with some graphics embedded in it. Again, just a one-liner so, as Gustav says, could be shell'ed straight out or written as a Batch file and then invoked from there. G:\MyDummyBlatEmailer\blat.exe G:\MyDummyBlatEmailer\EmailTest.htm -bf G:\MyDummyBlatEmailer\sendlist.txt -subject "Your Email Subject" -hostname MyHostNameSubjectOrTitle -f myemail at mydomain.com -noh2 -html -embed G:\MyDummyBlatEmailer\Myjpg1.jpg,G:\MyDummyBlatEmailer\Myjpg2.jpg,G:\MyDummy BlatEmailer\Myjpg3.jpg,G:\MyDummyBlatEmailer\Myjpg4.jpg -alttextf G:\MyDummyBlatEmailer\Email.txt -log G:\MyDummyBlatEmailer\serverlog.txt -timestamp -ti 3 Max From jwcolby at colbyconsulting.com Fri Mar 5 07:40:15 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 05 Mar 2010 08:40:15 -0500 Subject: [AccessD] SPAM-LOW: Re: A 2003 on VM Ware In-Reply-To: <4B905F85.9090907@colbyconsulting.com> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, <9545C2D6850D484A93DF172E4F73C159@HAL9005>, <7EC5B649F07C4614B9C6EECCC868858E@Server> <4B905F85.9090907@colbyconsulting.com> Message-ID: <4B9109BF.2010408@colbyconsulting.com> Jurgen, OK, I installed Office 2003 on the VM. Both the host and the VM are running Windows 2003 standard. I created and shared a directory on the host. On the VM I mapped the shared host directory to drive Y:. I set up an Access BE in the VMWare host shared directory. Then I created an FE in that VM and linked all of the tables in the BE in the host shared directory through the mapped drive. This "mapped shared directory" is my standard operating procedure since my clients are all small and allow me to do this. BTW, the last I heard using a URL for the table links is a known speed issue in Access. I created a form to one of the more complex tables and opened the form. As I started navigating through the form the CPU usage in the VM averaged around 40%, and way less than that on the VMWare host. It appears that Access caches the data because after navigating through every record via the subform, I could navigate back and forth through the records and the CPU usage stayed at close to zero. After writing this much, I went back in and navigated through the data again, and again the CPU usage shot up. After moving back and forth a few times the CPU usage in the VM again settled to zero. Apparently the Access cache is purged after some period of inactivity, so that it has to be refreshed if you start loading data again. One way or the other, the CPU usage on the VM does not stay at 100% more than the time it takes to grab the data. This is admittedly a much simpler scenario than you are working with but it may point you somewhere. If it were me I would do some troubleshooting. Is the VM CPU usage pegging as soon as the FE is opened? If so create a simple FE that does not do anything and try opening that. Then build a simple form bound to one of the tables and try opening that. Does the CPU usage peg now? If not... It certainly appears that your FE is doing something behind the scenes that keeps data moving. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Mar 5 07:53:32 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 05 Mar 2010 08:53:32 -0500 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: References: Message-ID: <4B910CDC.1040405@colbyconsulting.com> In 1997 while living down in Mexico, I gave away my collection of software on floppy. Even 10 years ago the floppy was pretty much useless. I still keep about 20 simply because they are getting hard to buy and the older versions of windows still require them for the driver install when installing windows. Even that is finally going away (thank goodness) with Vista and beyond. I would say they are good for making the trash heap a little bigger. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi all > > Not humour (or is it?) but I discussed with a colleague, if anyone is still using 3?" diskettes? > Are you aware of any? > > We have a bunch of those in a filed box. What could they be used for? > > /gustav > > From fuller.artful at gmail.com Fri Mar 5 08:31:00 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 5 Mar 2010 09:31:00 -0500 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: <4B910CDC.1040405@colbyconsulting.com> References: <4B910CDC.1040405@colbyconsulting.com> Message-ID: <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> I remember a program called FastBack that I used to back up my 10MB hard disk. LOL. It took about 50 diskettes to do a single backup. Now I'm faced with similar problems. You know many dual-layer DVDs it takes to back up a Terabyte? Sheesh. Arthur On Fri, Mar 5, 2010 at 8:53 AM, jwcolby wrote: > In 1997 while living down in Mexico, I gave away my collection of software > on floppy. Even 10 years > ago the floppy was pretty much useless. > > I still keep about 20 simply because they are getting hard to buy and the > older versions of windows > still require them for the driver install when installing windows. Even > that is finally going away > (thank goodness) with Vista and beyond. > > I would say they are good for making the trash heap a little bigger. > > John W. Colby > www.ColbyConsulting.com > > From accessd at shaw.ca Thu Mar 4 23:35:21 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 04 Mar 2010 21:35:21 -0800 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> <50E9BD7469A845D98B86E75B01EBB9F9@Server> <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: Max: I have just integrated BLAT and PDFCreator with a new client and now they, very seamlessly I might add, send any report or form, as a PDF attachment, to their clients. These are both a wonderful set of apps and easily ?to use. Jim ? ----- Original Message ----- From: Max Wanadoo Date: Thursday, March 4, 2010 4:00 pm Subject: [AccessD] Using BLAT as an Emailer To: 'Access Developers discussion and problem solving' > > Hi Guys, > > Here is an example of using BLAT as an Emailer. > Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, > etc, etc > > FREE. I have used it in 32bit and this example was just used in > 64bit so the > program (blat) is pretty stable. > Example is tested in A2k3 > Example is tested using a know smtp server with login details. I > have not > tried it in gmail. (yest) > > Replace smtp login details with your own. > > Max > > > Option Compare Database > Option Explicit > ' Example by Max.Wanadoo at gmail.com > ' Thanks to Stuart for helping to get the? batch call > running correctly. > > ' NOW:Forget? CDO. > ' Forget Redemption > ' Forget SendObject > ' We have BLAT. > ' Free and NO installation - just put a copy in your project > folder and > build some text files. > > > ' Download Blat.zip from http://www.blat.net/ > ' extract the contents and place them in your app folder (we > only need the > blat.exe but the rest will be worth reading. > ' you can then create a FORM where the user can enter > variables.? We will > assume some constants,? but these can > ' be variables as well. > ' You can also store them in tables if? you wish (I would) > ' This is just an exampls so that you understand how it works. > ' full details of all the options are in the downloaded text > files from > blat.net > > ' HERE are the contents of the text files used as examples. You > can create > these on the fly from within Access. > > ' Subject.txt = "Hello World" > ' Body.txt = This is a test email from Blat. > ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, > max.wanadoo at gmail.com > ' cc.txt = max.wandoo at gmail.com > ' bcc.txt = max.wanadoo at gmail.com > ' Signature.txt = Max, Manager > ' ps.txt = PS. To unsubscribe send an email to helpmeplease at heaven.com > > > Private sBlatFile, sBlatLog > > Sub BlatExample() > 'place these varibles in a form? for the user? to > enter. We will just create > them > 'from here? to show how they fit together to make Blat work. > ' What I have done is to put the contents of the various bits > into external > text files and call them with these > ' variables but you can put them directly into the varible if > you change the > calling Blat Switch where required. > ' See Blat file for documentation or drop me a line.? EG, - > tf (to file) > becomes -to (address list to send to) > ' The files I have used are arbitarily named and I would > antipate generting > them from within Access where appropriate. > > ??? If BlatCreate( _ > ?????? sFrom:="me at mydomain.org", _ > ?????? > sRecipients:="Recipients.txt", _ > ?????? sCC:="CC.txt", _ > ?????? sBCC:="bcc.txt", _ > ?????? sSubject:="subject.txt", _ > ?????? sBody:="Body.txt", _ > ?????? > sSMTPServer:="smtp.mydomain.org", _ > ?????? > sSMTPUser:="me at mydomain.org", _ > ?????? > sSMTPPwd:="mysecretsmtppassword", _ > ?????? > sSignature:="Signature.txt", _ > ?????? sPS:="ps.txt", _ > ?????? sAttach:="Attach.txt") = 0 Then > ??????? Call sShell(sBlatFile) > ??? End If > End Sub > > Function BlatCreate( _ > ???????? sFrom As > String, _ > ???????? sRecipients As > String, _ > ???????? sCC As String, _ > ???????? sBCC As String, _ > ???????? sSubject As > String, _ > ???????? sBody As > String, _ > ???????? sSMTPServer As > String, _ > ???????? sSMTPUser As > String, _ > ???????? sSMTPPwd As > String, _ > ???????? sSignature As > String, _ > ???????? sPS As String, _ > ???????? sAttach As > String) As Long > ??? On Error GoTo EH > > ??? Dim sContents As String > ??? sBlatFile = CurrentProject.Path & "\blat.bat" > ??? sBlatLog = CurrentProject.Path & "\blat.log" > > ??? sContents = "Blat.exe " & sBody & _ > ????????????? " -f " & sFrom & _ > ????????????? " -serverSMTP " & sSMTPServer & _ > ????????????? " -u " & sSMTPUser & _ > ????????????? " -pw " & sSMTPPwd & _ > ????????????? " -tf " & sRecipients & _ > ????????????? " -cf " & sCC & _ > ????????????? " -bf " & sBCC & _ > ????????????? " -sf " & sSubject & _ > ????????????? " -sig " & sSignature & _ > ????????????? " -ps " & sPS & _ > ????????????? " -attach " & sAttach > > ??? ' That is? all the varibles, we will now > put our constants in, but > ??? ' if you want any of these to be changeable > then just make them > variables. > ??? ' NB there are no cr/lf in this file. > ??? ' this example asks for a read? receipt, etc. > ??? > > ??? sContents = sContents & " -noh2 -d -r -dsn > sfd -priority 1 -log blat.log > -timestamp -ti 60 -try 3 -hostname MyHostName" > > ??? Close 1 > ??? On Error Resume Next > ??? Kill sBlatFile > ??? Kill sBlatLog > ??? On Error GoTo EH > ??? Open sBlatFile For Output As #1 > ??? Print #1, sContents > ??? Close 1 > EX: > ??? Close 1 > ??? Exit Function > EH: > ??? BlatCreate = Err.Number > ??? Select Case BlatCreate > ??? Case Else > ??????? MsgBox "Error: " & > BlatCreate & vbCrLf & Err.Description > ??? End Select > ??? Resume EH > End Function > > Private Sub sShell(sFile) > ??? Dim strCurPath As String, strCurDrive As > String, strProjPath As String, > strProjDrive As String > ??? ' get the project location > ??? strProjPath = CurrentProject.Path > ??? strProjDrive = Left(strProjPath, > 1):??? 'Debug.Print strProjDrive, > strProjPath > > ??? ' get the current location > ??? strCurPath = CurDir > ??? strCurDrive = Left(strCurPath, > 1):??? 'Debug.Print strCurDrive, > strCurPath > > ??? ' change the current location to the project > location??? ' so that we can run the blat.exe > via? the blat.bat file > ??? ChDrive strProjDrive > ??? ChDir strProjPath > > ??? ' now run the batch file > ??? Shell sFile > > ??? ' now restore the current location back to > what it was. > ??? ChDrive strCurDrive > ??? ChDir strCurPath > End Sub > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Fri Mar 5 08:37:28 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 14:37:28 -0000 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> References: <4B910CDC.1040405@colbyconsulting.com> <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> Message-ID: <73BC802EE5204B7DB350C0588DB0CB37@Server> Arthur, why don't you back the 1TB to another 1TB - they are cheap enough these days. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 05, 2010 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday: Diskettes on the fly? I remember a program called FastBack that I used to back up my 10MB hard disk. LOL. It took about 50 diskettes to do a single backup. Now I'm faced with similar problems. You know many dual-layer DVDs it takes to back up a Terabyte? Sheesh. Arthur On Fri, Mar 5, 2010 at 8:53 AM, jwcolby wrote: > In 1997 while living down in Mexico, I gave away my collection of > software on floppy. Even 10 years ago the floppy was pretty much > useless. > > I still keep about 20 simply because they are getting hard to buy and > the older versions of windows still require them for the driver > install when installing windows. Even that is finally going away > (thank goodness) with Vista and beyond. > > I would say they are good for making the trash heap a little bigger. > > 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 Gustav at cactus.dk Fri Mar 5 08:53:09 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Mar 2010 15:53:09 +0100 Subject: [AccessD] OT Friday: Diskettes on the fly? Message-ID: Hi Arthur Yes, FastBack was used a lot and some others as well, even Microsoft had a util (MSBackup?) for a similar purpose. Your alternative was a tape station. I recall a 40 MB tape drive in a Compaq 386 server, a machine with a ~10k USD price tag. But I can beat those. In the days of the shareware libraries you could order diskettes with all sorts of utils. Once I received one with a util, Vdisk I think, which emulated a harddisk on floppy disks! That was, you could stack up, say, 20 HD disks of 1.2 MB to emulate a 24 MB harddisk. As you read from or wrote to the emulated harddisk, the util would ask you to insert the disk which contained the data for the part of the "harddisk" you accessed. Even for those days this was weird but it worked - I tried it but for fun only. /gustav >>> fuller.artful at gmail.com 05-03-2010 15:31 >>> I remember a program called FastBack that I used to back up my 10MB hard disk. LOL. It took about 50 diskettes to do a single backup. Now I'm faced with similar problems. You know many dual-layer DVDs it takes to back up a Terabyte? Sheesh. Arthur On Fri, Mar 5, 2010 at 8:53 AM, jwcolby wrote: > In 1997 while living down in Mexico, I gave away my collection of software > on floppy. Even 10 years > ago the floppy was pretty much useless. > > I still keep about 20 simply because they are getting hard to buy and the > older versions of windows > still require them for the driver install when installing windows. Even > that is finally going away > (thank goodness) with Vista and beyond. > > I would say they are good for making the trash heap a little bigger. > > John W. Colby > www.ColbyConsulting.com From wdhindman at dejpolsystems.com Fri Mar 5 09:22:37 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 5 Mar 2010 10:22:37 -0500 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> References: <4B910CDC.1040405@colbyconsulting.com> <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> Message-ID: ...I've moved to portable usb hds for server backups ...360gb of compressed data per hd ...and fast William -------------------------------------------------- From: "Arthur Fuller" Sent: Friday, March 05, 2010 9:31 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] OT Friday: Diskettes on the fly? > I remember a program called FastBack that I used to back up my 10MB hard > disk. LOL. It took about 50 diskettes to do a single backup. Now I'm faced > with similar problems. You know many dual-layer DVDs it takes to back up a > Terabyte? Sheesh. > > Arthur > > On Fri, Mar 5, 2010 at 8:53 AM, jwcolby > wrote: > >> In 1997 while living down in Mexico, I gave away my collection of >> software >> on floppy. Even 10 years >> ago the floppy was pretty much useless. >> >> I still keep about 20 simply because they are getting hard to buy and the >> older versions of windows >> still require them for the driver install when installing windows. Even >> that is finally going away >> (thank goodness) with Vista and beyond. >> >> I would say they are good for making the trash heap a little bigger. >> >> 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 max.wanadoo at gmail.com Fri Mar 5 09:24:03 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 15:24:03 -0000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server><4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> Message-ID: <214BA953570842C1A9FA41AFC315879F@Server> Well done, Jim, I am amazed at the wealth of options within Blat. Some of them I have no real idea of what they do, however I have just completed a FORM holding all the options (about 80'ish) and will be putting some code onto them for use in creating blat files for use and also integrting it into miniRelay to send direct from pc without an external smtp server. Pretty versatile product. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 05, 2010 5:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using BLAT as an Emailer Max: I have just integrated BLAT and PDFCreator with a new client and now they, very seamlessly I might add, send any report or form, as a PDF attachment, to their clients. These are both a wonderful set of apps and easily ?to use. Jim ? ----- Original Message ----- From: Max Wanadoo Date: Thursday, March 4, 2010 4:00 pm Subject: [AccessD] Using BLAT as an Emailer To: 'Access Developers discussion and problem solving' > > Hi Guys, > > Here is an example of using BLAT as an Emailer. > Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, > etc > > FREE. I have used it in 32bit and this example was just used in 64bit > so the program (blat) is pretty stable. > Example is tested in A2k3 > Example is tested using a know smtp server with login details. I have > not tried it in gmail. (yest) > > Replace smtp login details with your own. > > Max > > > Option Compare Database > Option Explicit > ' Example by Max.Wanadoo at gmail.com > ' Thanks to Stuart for helping to get the? batch call running > correctly. > > ' NOW:Forget? CDO. > ' Forget Redemption > ' Forget SendObject > ' We have BLAT. > ' Free and NO installation - just put a copy in your project folder > and build some text files. > > > ' Download Blat.zip from http://www.blat.net/ ' extract the contents > and place them in your app folder (we only need the blat.exe but the > rest will be worth reading. > ' you can then create a FORM where the user can enter variables.? We > will assume some constants,? but these can ' be variables as well. > ' You can also store them in tables if? you wish (I would) ' This is > just an exampls so that you understand how it works. > ' full details of all the options are in the downloaded text files > from blat.net > > ' HERE are the contents of the text files used as examples. You can > create these on the fly from within Access. > > ' Subject.txt = "Hello World" > ' Body.txt = This is a test email from Blat. > ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, > max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = > max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To > unsubscribe send an email to helpmeplease at heaven.com > > > Private sBlatFile, sBlatLog > > Sub BlatExample() > 'place these varibles in a form? for the user? to enter. We will just > create them 'from here? to show how they fit together to make Blat > work. > ' What I have done is to put the contents of the various bits into > external text files and call them with these ' variables but you can > put them directly into the varible if you change the calling Blat > Switch where required. > ' See Blat file for documentation or drop me a line.? EG, - tf (to > file) becomes -to (address list to send to) ' The files I have used > are arbitarily named and I would antipate generting them from within > Access where appropriate. > > ??? If BlatCreate( _ > ?????? sFrom:="me at mydomain.org", _ > ?????? > sRecipients:="Recipients.txt", _ > ?????? sCC:="CC.txt", _ > ?????? sBCC:="bcc.txt", _ > ?????? sSubject:="subject.txt", _ > ?????? sBody:="Body.txt", _ > ?????? > sSMTPServer:="smtp.mydomain.org", _ > ?????? > sSMTPUser:="me at mydomain.org", _ > ?????? > sSMTPPwd:="mysecretsmtppassword", _ > ?????? > sSignature:="Signature.txt", _ > ?????? sPS:="ps.txt", _ > ?????? sAttach:="Attach.txt") = 0 Then > ??????? Call sShell(sBlatFile) > ??? End If > End Sub > > Function BlatCreate( _ > ???????? sFrom As > String, _ > ???????? sRecipients As > String, _ > ???????? sCC As String, _ > ???????? sBCC As String, _ > ???????? sSubject As > String, _ > ???????? sBody As > String, _ > ???????? sSMTPServer As > String, _ > ???????? sSMTPUser As > String, _ > ???????? sSMTPPwd As > String, _ > ???????? sSignature As > String, _ > ???????? sPS As String, _ > ???????? sAttach As > String) As Long > ??? On Error GoTo EH > > ??? Dim sContents As String > ??? sBlatFile = CurrentProject.Path & "\blat.bat" > ??? sBlatLog = CurrentProject.Path & "\blat.log" > > ??? sContents = "Blat.exe " & sBody & _ > ????????????? " -f " & sFrom & _ > ????????????? " -serverSMTP " & sSMTPServer & _ > ????????????? " -u " & sSMTPUser & _ > ????????????? " -pw " & sSMTPPwd & _ > ????????????? " -tf " & sRecipients & _ > ????????????? " -cf " & sCC & _ > ????????????? " -bf " & sBCC & _ > ????????????? " -sf " & sSubject & _ > ????????????? " -sig " & sSignature & _ > ????????????? " -ps " & sPS & _ > ????????????? " -attach " & sAttach > > ??? ' That is? all the varibles, we will now put our constants in, but > ??? ' if you want any of these to be changeable then just make them > variables. > ??? ' NB there are no cr/lf in this file. > ??? ' this example asks for a read? receipt, etc. > ??? > > ??? sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log > blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" > > ??? Close 1 > ??? On Error Resume Next > ??? Kill sBlatFile > ??? Kill sBlatLog > ??? On Error GoTo EH > ??? Open sBlatFile For Output As #1 > ??? Print #1, sContents > ??? Close 1 > EX: > ??? Close 1 > ??? Exit Function > EH: > ??? BlatCreate = Err.Number > ??? Select Case BlatCreate > ??? Case Else > ??????? MsgBox "Error: " & > BlatCreate & vbCrLf & Err.Description > ??? End Select > ??? Resume EH > End Function > > Private Sub sShell(sFile) > ??? Dim strCurPath As String, strCurDrive As String, strProjPath As > String, strProjDrive As String > ??? ' get the project location > ??? strProjPath = CurrentProject.Path > ??? strProjDrive = Left(strProjPath, > 1):??? 'Debug.Print strProjDrive, > strProjPath > > ??? ' get the current location > ??? strCurPath = CurDir > ??? strCurDrive = Left(strCurPath, > 1):??? 'Debug.Print strCurDrive, > strCurPath > > ??? ' change the current location to the project location??? ' so that > we can run the blat.exe via? the blat.bat file > ??? ChDrive strProjDrive > ??? ChDir strProjPath > > ??? ' now run the batch file > ??? Shell sFile > > ??? ' now restore the current location back to what it was. > ??? ChDrive strCurDrive > ??? ChDir strCurPath > End Sub > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 5 10:06:59 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Mar 2010 10:06:59 -0600 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: References: Message-ID: Coasters? Clay pigeons? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 04, 2010 6:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT Friday: Diskettes on the fly? Hi all Not humour (or is it?) but I discussed with a colleague, if anyone is still using 3?" diskettes? Are you aware of any? We have a bunch of those in a filed box. What could they be used for? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Fri Mar 5 10:05:32 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 09:05:32 -0700 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: <4B905F85.9090907@colbyconsulting.com> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server> , , <4B905F85.9090907@colbyconsulting.com> Message-ID: John/Drew: Thanks for the comments. For the most part, a great deal of common sense has been applied. Currently their web site says they have 180 job sites and about 20 offices in Omaha, Nebraska, Washington and most of the provinces in Canada. Their servers in Calgary, Alberta support over 1500 users, all using the same basic environment that runs our system. The basic setup is well thought out now that they have a team of over 30 full time professionals and consultants on staff. Our 65 odd users now have a disproportioanately high percentage of the CPU, memory and bandwidth resources and it appears that reliance on Access and the Pervasive data services for our estimating system are the only differences between their 1500 and our 65. Their management interfaces are built in Powerbuilder and ours are in Access. We use their stuff for payroll and a good deal of the project controls. Everyones' data is hosted in SQL Server. The IT reporting tools they have tell us that Access is the problem. Our former environment was 4 VMWare servers for over 60 users and is now 7 servers on better physical hardware. As far as I know, the only real changes are that we have upgraded estimating (Sage) a couple of versions, we have a bunch of new Windows service packs installed (without a bank of servers to test live they were very leery of messing with a working system so they never got service packs) and we now have access to some applications that we haven't started using such as P3 and P6 (Primavera). We deployed to the new environment 3 weeks ago and there is no going back as I had to upgrade over 200,000 estimate files and the downgrade path is ugly. We have been ironing out a few loose ends, shadow copy, anti-virus, load balancer optimization, time zone awareness... For the most part, things are very nice. Nearly all our users are running Wyse thin client terminals with dual screens via Cisco AnyConnect VPN Client and Remote Desktop. Division and company wide, they are making record profits in the North American construction market notwithstanding the economy. They had a bunch of hardware and support dollars to throw at our issues now and fingers are being pointed at Access as the likely culprit. My philosophy has aways been that a parent form be populated by a single record recordset and that sub forms fill on demand (John calls it Just in Time) as a sub form takes focus. It is exceedingly rare that a continuous sub form contain more than 20 records and I will frequently use single recordset non-continous sub forms to limit memory and bandwidth requirements. I can't imagine why a form that is open on static data while they are writing an email and working on an Excel workbook in a person's session would pin the CPU at 100%. No one at their end cares to know much about our application so they don't really understand the measures I went to in order to make this work with mdb data. The mdb limitations went away 1.5 years ago. Much of the tiny data is cached in memory and displayed via callback so the server never gets hit for tiny lookups and even so, we know that memory is not the bottleneck. I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Also, for the first time since Access 97 was brand new, I have Admin rights on our servers. I also have SQL Server tools so I no longer have to make data structure changes via DDL using MSQuery via Excel. Unfortunately, my title has been Safety Manager for the last few years and that role means that Access is more and more a part time amusement. I was pulled off other duties to coordinate migration to the new environment and build a few new enhancements. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Thu, 4 Mar 2010 20:33:57 -0500 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A 2003 on VM Ware > > Jurgen, > > I think Drew might be right in that Access is supposed to sense "other applications" wanting the > processor and releasing the cycles. If Access is all that is running inside of that VM, then it > never senses "other applications" wanting the cycles because those other applications are isolated > by the walls of the VM. Thus the VM ends up requesting real cpu cycles to service the Access FE and > essentially tying up an entire core per FE. > > As for whether Access still does this anymore, I have not seen it continuously do this, however I > have seen it do this for a "long period" where long period is 30 seconds or more, and then > eventually stop. > > I have three virtual machines running on a quad core "server". I quote the server simply because it > is just a reasonably powerful quad core AMD, NOT a true SERVER machine. After much research I > discovered that VMs are not all they appear. For example the recommendation is NEVER give a single > VM multiple "CPUs" even though it is possible to do so. Likewise the recommendation is to always > leave a core not assigned to a VM, iow if it is a quad core machine, only run three VMs and leave > the fourth core to run the VMWare host software (and Windows of course). > > I have a third party application which is written in Foxpro for Windows. It runs well in the VM > however... it eventually locks up the VM. No idea why, but if I allow it to do its processing for > 24 or 48 hours it will eventually lock up the VM. The VM responds, but "responds" as in 2 minutes > to respond to a mouse click and so forth. Once this happens, it is damned difficult and sometimes > impossible to regain control of the VM. I end up just "removing power" to the VM (the equivalent of > hitting the power button). > > I have seen it do something to the VMWare host software such that a reboot of the actual server was > required to get the VMs working again. SOMETIMES I can simply close VMWare and restart it, > sometimes that doesn't work and a reboot of the physical machine is required. > > All of this happens with an application other than Access, so that indicates that application > software running in a VM is quite capable of bringing the entire server to its knees. In my mind > that should not be possible and VMWare needs to figure this out and fix it from their side. So far > they have not, and there are complaints about this on their forums. > > I have just fired up my server and will do a little testing. I do not have office installed on the > VMs but I will install Office 2003, and then get a simple FE running talking to a BE up on the > VMWare server machine. I will then be able to tell you if I see anything like what you are seeing. > I suspect that I will not however. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > Jurgen, I am no expert in VMWare. I use Virtual PC and Virtual Server, both MS based systems. And for 'remote clients' that want to use a 'desktop' here, they use Remote Desktop (it used to be MS's Terminal Server), so if you are using Citrix for that, I don't have much experience there either. > > > > HOWEVER, I think I may know where your problem lies...at least the direction it's in. I think the problem is two fold. First, Access 97 used to use up CPU processing during idle time, and MS swears that went away with Access 2000, but I've seen A2k and up do that 'maxing the CPU' thing. Now, on a normal machine, it's no big deal, because Access is willing and ready to give up the processing time. But, in a virtual machine, you have to realize that your VM programs aren't getting direct processor time. Instead, they are getting 'virtual processor' time. On top of that, in a Citrix/Terminal Server setting, you are practically running a virtual machine, inside a virtual machine. So with all of those lines getting tangled, Access may not be releasing the 'virtual CPU time' as readily as it should. > > > > http://insights.oetiker.ch/linux/vmware.html That is a link to a google search about terminal services inside a VM. Try those pointers, see if that helps. > > > > Personally,.... > > > > > > Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. > > > > But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. > > > > > > ;) > > > > Drew _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 From fuller.artful at gmail.com Fri Mar 5 10:26:12 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 5 Mar 2010 11:26:12 -0500 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: References: Message-ID: <29f585dd1003050826h26fa336du477959830fb3c95c@mail.gmail.com> O Charlotte, what a great idea. Maybe we could glue some felt to their undersides so they really would be nice coasters! And labels for their up-sides reading "Database Advisors"! With all our collective collections of old disks, we'd have inventory for years! A. On Fri, Mar 5, 2010 at 11:06 AM, Charlotte Foust wrote: > Coasters? Clay pigeons? > > Charlotte > > From jwelz at hotmail.com Fri Mar 5 10:29:32 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 09:29:32 -0700 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: <4B905F85.9090907@colbyconsulting.com> References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server> , , <4B905F85.9090907@colbyconsulting.com> Message-ID: John/Drew: Thanks for the comments. For the most part, a great deal of common sense has been applied. Currently their web site says they have 180 job sites and about 20 offices in Omaha, Nebraska, Washington and most of the provinces in Canada. Their servers in Calgary, Alberta support over 1500 users, all using the same basic environment that runs our system. The basic setup is well thought out now that they have a team of over 30 full time professionals and consultants on staff. Our 65 odd users now have a disproportioanately high percentage of the CPU, memory and bandwidth resources and it appears that reliance on Access and the Pervasive data services for our estimating system are the only differences between their 1500 and our 65. Their management interfaces are built in Powerbuilder and ours are in Access. We use their stuff for payroll and a good deal of the project controls. Everyones' data is hosted in SQL Server. The IT reporting tools they have tell us that Access is the problem. Our fo rmer environment was 4 VMWare servers for over 60 users and is now 7 servers on better physical hardware. As far as I know, the only real changes are that we have upgraded estimating (Sage) a couple of versions, we have a bunch of new Windows service packs installed (without a bank of servers to test live they were very leery of messing with a working system so they never got service packs) and we now have access to some applications that we haven't started using such as P3 and P6 (Primavera). We deployed to the new environment 3 weeks ago and there is no going back as I had to upgrade over 200,000 estimate files and the downgrade path is ugly. We have been ironing out a few loose ends, shadow copy, anti-virus, load balancer optimization, time zone awareness... For the most part, things are very nice. Nearly all our users are running Wyse thin client terminals with dual screens via Cisco AnyConnect VPN Client and Remote Desktop. Division and company wide, they are making record profits in the North American construction market notwithstanding the economy. They had a bunch of hardware and support dollars to throw at our issues now and fingers are being pointed at Access as the likely culprit. My philosophy has aways been that a parent form be populated by a single record recordset and that sub forms fill on demand (John calls it Just in Time) as a sub form takes focus. It is exceedingly rare that a continuous sub form contain more than 20 records and I will frequently use single recordset non-continous sub forms to limit memory and bandwidth requirements. I can't imagine why a form that is open on static data while they are writing an email and working on an Excel workbook in a person's session would pin the CPU at 100%. No one at their end cares to know much about our application so they don't really understand the measures I went to in order to make this work with mdb data. The mdb limitations went away 1.5 years ago. Much of the tiny data is cached in memory and displayed via callback so the server never gets hit for tiny lookups and even so, we know that memory is not the bottleneck. I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Also, for the first time since Access 97 was brand new, I have Admin rights on our servers. I also have SQL Server tools so I no longer have to make data structure changes via DDL using MSQuery via Excel. Unfortunately, my title has been Safety Manager for the last few years and that role means that Access is more and more a part time amusement. I was pulled off other duties to coordinate migration to the new environment and build a few new enhancements. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Thu, 4 Mar 2010 20:33:57 -0500 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A 2003 on VM Ware > > Jurgen, > > I think Drew might be right in that Access is supposed to sense "other applications" wanting the > processor and releasing the cycles. If Access is all that is running inside of that VM, then it > never senses "other applications" wanting the cycles because those other applications are isolated > by the walls of the VM. Thus the VM ends up requesting real cpu cycles to service the Access FE and > essentially tying up an entire core per FE. > ....Snipped > > John W. Colby > www.ColbyConsulting.com > >snipped Drew Wutka wrote: > > > > Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. > > > > But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. > > > > > > ;) > > > > Drew _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 From john at winhaven.net Fri Mar 5 10:38:53 2010 From: john at winhaven.net (John Bartow) Date: Fri, 5 Mar 2010 10:38:53 -0600 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: References: Message-ID: <008201cabc82$5805dcb0$08119610$@net> I bought a box on sale for a couple of bucks at Staples a couple of years ago just in case. Most of the disks I had were failing and one never knows what you run into in this line of work. Most of the new disks in the box didn't work well. I had heard there was warehouses full of them that were all 10 years old but after that experience I tend to believe it ;o) I still have a 5 1/4" floppy drive "just in case" ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 04, 2010 8:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT Friday: Diskettes on the fly? Hi all Not humour (or is it?) but I discussed with a colleague, if anyone is still using 3?" diskettes? Are you aware of any? We have a bunch of those in a filed box. What could they be used for? From jwelz at hotmail.com Fri Mar 5 11:20:59 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 10:20:59 -0700 Subject: [AccessD] OT: New Laptop In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , , , , <4B905F85.9090907@colbyconsulting.com>, Message-ID: I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... Have a look at the Vaio VPCZ11Z9E. Intel Core I7 2.66 Ghz, Turbo Boost to 3.3 Ghz 8 Gigs Quad SSD (Raid 0) 512 Gig 1920 by 1080 LED Screen (13.1") NVIDIA GeForce GT 330M with 1 Gig GDDR3 VRAM (on the fly switchable to integrated graphics) Built in BlueRay Burner HDMI out Internal GPS & software Internal Verizon Wireless modem 6 hours full brightness screen on battery power fingerprint reader Dock Under keyboard LED keyboard illumination, sensor controlled Weight with Battery, 1.43 Kg (3.15 pounds) I've currently got the 3.3 pound 1600 * 900 screen Vaio Z predecessor and picked up 5 newer models (VGN Z820) for some of the other managers since Christmas. Actually I'm buying the Canada market version that lacks the GPS and Verizon wireless. I'd be tempted to pick it up in the US if I could get the Verizon unlocked to work on the Rogers network in Canada. I'm currently using a tiny Option USB Cell modem stick for internet on the road and it would be nice to have something internal. I also use a USB connected GPS though that is usually on a netbook with an SSD as my current Vaio has a 7200 RPM drive. A Canadian version becomes available for order this Sunday and I'm waiting to verify the details. The specs above are from Tom's hardware and the Sony US site. Tom's says 6 Gigabytes, Sony 8. Tom's says 256 Gig quad array, Sony says 512. Tom's says the array is 6.2 times faster than a 5400 RPM drive. You can customize the machine you want though, and the options are there to built it with lots of power. The only thing that's missing is USB 3. I love the 1600 by 900 13.1" LED screen on the one I have and can't wait to see the 1920 by 1080 screen. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 From max.wanadoo at gmail.com Fri Mar 5 11:23:15 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 17:23:15 -0000 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , <4B905F85.9090907@colbyconsulting.com> Message-ID: Jurgen, just a WAG: In Tools/Options/Advanced Tab there are some refresh options. If these are set very low it may be that the system is refreshing itself too often/too soon. Maybe? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Friday, March 05, 2010 4:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A 2003 on VM Ware John/Drew: Thanks for the comments. For the most part, a great deal of common sense has been applied. Currently their web site says they have 180 job sites and about 20 offices in Omaha, Nebraska, Washington and most of the provinces in Canada. Their servers in Calgary, Alberta support over 1500 users, all using the same basic environment that runs our system. The basic setup is well thought out now that they have a team of over 30 full time professionals and consultants on staff. Our 65 odd users now have a disproportioanately high percentage of the CPU, memory and bandwidth resources and it appears that reliance on Access and the Pervasive data services for our estimating system are the only differences between their 1500 and our 65. Their management interfaces are built in Powerbuilder and ours are in Access. We use their stuff for payroll and a good deal of the project controls. Everyones' data is hosted in SQL Server. The IT reporting tools they have tell us that Access is the problem. Our fo rmer environment was 4 VMWare servers for over 60 users and is now 7 servers on better physical hardware. As far as I know, the only real changes are that we have upgraded estimating (Sage) a couple of versions, we have a bunch of new Windows service packs installed (without a bank of servers to test live they were very leery of messing with a working system so they never got service packs) and we now have access to some applications that we haven't started using such as P3 and P6 (Primavera). We deployed to the new environment 3 weeks ago and there is no going back as I had to upgrade over 200,000 estimate files and the downgrade path is ugly. We have been ironing out a few loose ends, shadow copy, anti-virus, load balancer optimization, time zone awareness... For the most part, things are very nice. Nearly all our users are running Wyse thin client terminals with dual screens via Cisco AnyConnect VPN Client and Remote Desktop. Division and company wide, they are making record profits in the North American construction market notwithstanding the economy. They had a bunch of hardware and support dollars to throw at our issues now and fingers are being pointed at Access as the likely culprit. My philosophy has aways been that a parent form be populated by a single record recordset and that sub forms fill on demand (John calls it Just in Time) as a sub form takes focus. It is exceedingly rare that a continuous sub form contain more than 20 records and I will frequently use single recordset non-continous sub forms to limit memory and bandwidth requirements. I can't imagine why a form that is open on static data while they are writing an email and working on an Excel workbook in a person's session would pin the CPU at 100%. No one at their end cares to know much about our application so they don't really understand the measures I went to in order to make this work with mdb data. The mdb limitations went away 1.5 years ago. Much of the tiny data is cached in memory and displayed via callback so the server never gets hit for tiny lookups and even so, we know that memory is not the bottleneck. I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Also, for the first time since Access 97 was brand new, I have Admin rights on our servers. I also have SQL Server tools so I no longer have to make data structure changes via DDL using MSQuery via Excel. Unfortunately, my title has been Safety Manager for the last few years and that role means that Access is more and more a part time amusement. I was pulled off other duties to coordinate migration to the new environment and build a few new enhancements. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Thu, 4 Mar 2010 20:33:57 -0500 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A 2003 on VM Ware > > Jurgen, > > I think Drew might be right in that Access is supposed to sense "other > applications" wanting the processor and releasing the cycles. If > Access is all that is running inside of that VM, then it never senses > "other applications" wanting the cycles because those other > applications are isolated by the walls of the VM. Thus the VM ends up requesting real cpu cycles to service the Access FE and essentially tying up an entire core per FE. > ....Snipped > > John W. Colby > www.ColbyConsulting.com > >snipped Drew Wutka wrote: > > > > Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. > > > > But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. > > > > > > ;) > > > > Drew _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 5 11:29:12 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Mar 2010 18:29:12 +0100 Subject: [AccessD] OT: New Laptop Message-ID: Hi J?rgen That's a boss! /gustav >>> jwelz at hotmail.com 05-03-2010 18:20 >>> I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... From jwcolby at colbyconsulting.com Fri Mar 5 12:07:38 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 05 Mar 2010 13:07:38 -0500 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: <73BC802EE5204B7DB350C0588DB0CB37@Server> References: <4B910CDC.1040405@colbyconsulting.com> <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com> <73BC802EE5204B7DB350C0588DB0CB37@Server> Message-ID: <4B91486A.4000309@colbyconsulting.com> That is exactly what I do. I bought an external hard drive holder that interfaces via eSATA. You can buy little connector widgets that plug into an SATA port and screw down to an empty slot in the back panel. Plug in the external drive and voila, an external SATA drive. I threw a 1.5 gig hard disk in there and just leave it turned on. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Arthur, why don't you back the 1TB to another 1TB - they are cheap enough > these days. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, March 05, 2010 2:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT Friday: Diskettes on the fly? > > I remember a program called FastBack that I used to back up my 10MB hard > disk. LOL. It took about 50 diskettes to do a single backup. Now I'm faced > with similar problems. You know many dual-layer DVDs it takes to back up a > Terabyte? Sheesh. > > Arthur > > On Fri, Mar 5, 2010 at 8:53 AM, jwcolby wrote: > >> In 1997 while living down in Mexico, I gave away my collection of >> software on floppy. Even 10 years ago the floppy was pretty much >> useless. >> >> I still keep about 20 simply because they are getting hard to buy and >> the older versions of windows still require them for the driver >> install when installing windows. Even that is finally going away >> (thank goodness) with Vista and beyond. >> >> I would say they are good for making the trash heap a little bigger. >> >> 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 Mar 5 12:11:51 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 05 Mar 2010 13:11:51 -0500 Subject: [AccessD] SPAM-LOW: Re: A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server> , , <4B905F85.9090907@colbyconsulting.com> Message-ID: <4B914967.9070900@colbyconsulting.com> > I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Woah, sounds like an invitation to me! C# on SQL Server should solve your problems nicely! Or given the nature of your company, visual web developer. And it lets you fix all of the little things that inevitably creep in. John W. Colby www.ColbyConsulting.com Jurgen Welz wrote: > John/Drew: Thanks for the comments. For the most part, a great deal of common sense has been applied. Currently their web site says they have 180 job sites and about 20 offices in Omaha, Nebraska, Washington and most of the provinces in Canada. Their servers in Calgary, Alberta support over 1500 users, all using the same basic environment that runs our system. The basic setup is well thought out now that they have a team of over 30 full time professionals and consultants on staff. Our 65 odd users now have a disproportioanately high percentage of the CPU, memory and bandwidth resources and it appears that reliance on Access and the Pervasive data services for our estimating system are the only differences between their 1500 and our 65. Their management interfaces are built in Powerbuilder and ours are in Access. We use their stuff for payroll and a good deal of the project controls. Everyones' data is hosted in SQL Server. The IT reporting tools they have tell us that Access is the problem. Our former environment was 4 VMWare servers for over 60 users and is now 7 servers on better physical hardware. As far as I know, the only real changes are that we have upgraded estimating (Sage) a couple of versions, we have a bunch of new Windows service packs installed (without a bank of servers to test live they were very leery of messing with a working system so they never got service packs) and we now have access to some applications that we haven't started using such as P3 and P6 (Primavera). > > > > We deployed to the new environment 3 weeks ago and there is no going back as I had to upgrade over 200,000 estimate files and the downgrade path is ugly. We have been ironing out a few loose ends, shadow copy, anti-virus, load balancer optimization, time zone awareness... For the most part, things are very nice. Nearly all our users are running Wyse thin client terminals with dual screens via Cisco AnyConnect VPN Client and Remote Desktop. Division and company wide, they are making record profits in the North American construction market notwithstanding the economy. They had a bunch of hardware and support dollars to throw at our issues now and fingers are being pointed at Access as the likely culprit. > > > > My philosophy has aways been that a parent form be populated by a single record recordset and that sub forms fill on demand (John calls it Just in Time) as a sub form takes focus. It is exceedingly rare that a continuous sub form contain more than 20 records and I will frequently use single recordset non-continous sub forms to limit memory and bandwidth requirements. I can't imagine why a form that is open on static data while they are writing an email and working on an Excel workbook in a person's session would pin the CPU at 100%. No one at their end cares to know much about our application so they don't really understand the measures I went to in order to make this work with mdb data. The mdb limitations went away 1.5 years ago. Much of the tiny data is cached in memory and displayed via callback so the server never gets hit for tiny lookups and even so, we know that memory is not the bottleneck. > > > > I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Also, for the first time since Access 97 was brand new, I have Admin rights on our servers. I also have SQL Server tools so I no longer have to make data structure changes via DDL using MSQuery via Excel. Unfortunately, my title has been Safety Manager for the last few years and that role means that Access is more and more a part time amusement. I was pulled off other duties to coordinate migration to the new environment and build a few new enhancements. > > Ciao J?rgen Welz > > Edmonton, Alberta jwelz at hotmail.com From dwaters at usinternet.com Fri Mar 5 12:23:14 2010 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 5 Mar 2010 12:23:14 -0600 Subject: [AccessD] A 2003 on VM Ware In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , <4B905F85.9090907@colbyconsulting.com> Message-ID: <2C8669294DA34A689557B1C2A47ECB19@danwaters> Hi Jurgen, Have you gone through your code and forms and set all the recordsets from SQL Server data to the appropriate type? Perhaps some of the dbOpenDynaset recordsets could be change to dbOpenSnapshot or perhaps dbOpenForwardOnly? In any case - good luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Friday, March 05, 2010 10:06 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A 2003 on VM Ware John/Drew: Thanks for the comments. For the most part, a great deal of common sense has been applied. Currently their web site says they have 180 job sites and about 20 offices in Omaha, Nebraska, Washington and most of the provinces in Canada. Their servers in Calgary, Alberta support over 1500 users, all using the same basic environment that runs our system. The basic setup is well thought out now that they have a team of over 30 full time professionals and consultants on staff. Our 65 odd users now have a disproportioanately high percentage of the CPU, memory and bandwidth resources and it appears that reliance on Access and the Pervasive data services for our estimating system are the only differences between their 1500 and our 65. Their management interfaces are built in Powerbuilder and ours are in Access. We use their stuff for payroll and a good deal of the project controls. Everyones' data is hosted in SQL Server. The IT reporting tools they have tell us that Access is the problem. Our former environment was 4 VMWare servers for over 60 users and is now 7 servers on better physical hardware. As far as I know, the only real changes are that we have upgraded estimating (Sage) a couple of versions, we have a bunch of new Windows service packs installed (without a bank of servers to test live they were very leery of messing with a working system so they never got service packs) and we now have access to some applications that we haven't started using such as P3 and P6 (Primavera). We deployed to the new environment 3 weeks ago and there is no going back as I had to upgrade over 200,000 estimate files and the downgrade path is ugly. We have been ironing out a few loose ends, shadow copy, anti-virus, load balancer optimization, time zone awareness... For the most part, things are very nice. Nearly all our users are running Wyse thin client terminals with dual screens via Cisco AnyConnect VPN Client and Remote Desktop. Division and company wide, they are making record profits in the North American construction market notwithstanding the economy. They had a bunch of hardware and support dollars to throw at our issues now and fingers are being pointed at Access as the likely culprit. My philosophy has aways been that a parent form be populated by a single record recordset and that sub forms fill on demand (John calls it Just in Time) as a sub form takes focus. It is exceedingly rare that a continuous sub form contain more than 20 records and I will frequently use single recordset non-continous sub forms to limit memory and bandwidth requirements. I can't imagine why a form that is open on static data while they are writing an email and working on an Excel workbook in a person's session would pin the CPU at 100%. No one at their end cares to know much about our application so they don't really understand the measures I went to in order to make this work with mdb data. The mdb limitations went away 1.5 years ago. Much of the tiny data is cached in memory and displayed via callback so the server never gets hit for tiny lookups and even so, we know that memory is not the bottleneck. I'm told that they have enough MSDN licensing to give me access to the works so if I want to rewrite the whole shooting match, I can choose my weapon. Also, for the first time since Access 97 was brand new, I have Admin rights on our servers. I also have SQL Server tools so I no longer have to make data structure changes via DDL using MSQuery via Excel. Unfortunately, my title has been Safety Manager for the last few years and that role means that Access is more and more a part time amusement. I was pulled off other duties to coordinate migration to the new environment and build a few new enhancements. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Thu, 4 Mar 2010 20:33:57 -0500 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A 2003 on VM Ware > > Jurgen, > > I think Drew might be right in that Access is supposed to sense "other applications" wanting the > processor and releasing the cycles. If Access is all that is running inside of that VM, then it > never senses "other applications" wanting the cycles because those other applications are isolated > by the walls of the VM. Thus the VM ends up requesting real cpu cycles to service the Access FE and > essentially tying up an entire core per FE. > > As for whether Access still does this anymore, I have not seen it continuously do this, however I > have seen it do this for a "long period" where long period is 30 seconds or more, and then > eventually stop. > > I have three virtual machines running on a quad core "server". I quote the server simply because it > is just a reasonably powerful quad core AMD, NOT a true SERVER machine. After much research I > discovered that VMs are not all they appear. For example the recommendation is NEVER give a single > VM multiple "CPUs" even though it is possible to do so. Likewise the recommendation is to always > leave a core not assigned to a VM, iow if it is a quad core machine, only run three VMs and leave > the fourth core to run the VMWare host software (and Windows of course). > > I have a third party application which is written in Foxpro for Windows. It runs well in the VM > however... it eventually locks up the VM. No idea why, but if I allow it to do its processing for > 24 or 48 hours it will eventually lock up the VM. The VM responds, but "responds" as in 2 minutes > to respond to a mouse click and so forth. Once this happens, it is damned difficult and sometimes > impossible to regain control of the VM. I end up just "removing power" to the VM (the equivalent of > hitting the power button). > > I have seen it do something to the VMWare host software such that a reboot of the actual server was > required to get the VMs working again. SOMETIMES I can simply close VMWare and restart it, > sometimes that doesn't work and a reboot of the physical machine is required. > > All of this happens with an application other than Access, so that indicates that application > software running in a VM is quite capable of bringing the entire server to its knees. In my mind > that should not be possible and VMWare needs to figure this out and fix it from their side. So far > they have not, and there are complaints about this on their forums. > > I have just fired up my server and will do a little testing. I do not have office installed on the > VMs but I will install Office 2003, and then get a simple FE running talking to a BE up on the > VMWare server machine. I will then be able to tell you if I see anything like what you are seeing. > I suspect that I will not however. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > Jurgen, I am no expert in VMWare. I use Virtual PC and Virtual Server, both MS based systems. And for 'remote clients' that want to use a 'desktop' here, they use Remote Desktop (it used to be MS's Terminal Server), so if you are using Citrix for that, I don't have much experience there either. > > > > HOWEVER, I think I may know where your problem lies...at least the direction it's in. I think the problem is two fold. First, Access 97 used to use up CPU processing during idle time, and MS swears that went away with Access 2000, but I've seen A2k and up do that 'maxing the CPU' thing. Now, on a normal machine, it's no big deal, because Access is willing and ready to give up the processing time. But, in a virtual machine, you have to realize that your VM programs aren't getting direct processor time. Instead, they are getting 'virtual processor' time. On top of that, in a Citrix/Terminal Server setting, you are practically running a virtual machine, inside a virtual machine. So with all of those lines getting tangled, Access may not be releasing the 'virtual CPU time' as readily as it should. > > > > http://insights.oetiker.ch/linux/vmware.html That is a link to a google search about terminal services inside a VM. Try those pointers, see if that helps. > > > > Personally,.... > > > > > > Virtual machines are great. It's a great way to have multiple 'computers' running without having to have hardware for each one. HOWEVER, a virtual machine is going to inherently run slower then it's host, even with just one VM running on the host. Each VM added to the host is going to divvy up the already 'limited' resources. For single purpose machines, this isn't a problem, on hefty hardware. But the key is 'single purpose'. Terminal services, by their very nature are not 'single purpose'. And even some items that may seem single purposes, are really too large and complex to truly host inside a VM. Exchange servers, DB servers, etc, all can require massive resources, so putting them on anything but a capable box by themselves can be detrimental. The real confusion lies in the lack of understanding of what many 'server' roles require. Plus there is the inherent 'coolness' of virtualization. > > > > But there has to be some common sense applied. I'd say the best rule of thumb would be to ask yourself if what you want to do would work with a server that is 5 years old. If not, it won't work well in a virtual environment, and should be put on it's own server. > > > > > > ;) > > > > Drew _________________________________________________________________ Live connected with Messenger on your phone http://go.microsoft.com/?linkid=9712958 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Mar 5 12:26:25 2010 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 5 Mar 2010 12:26:25 -0600 Subject: [AccessD] OT: New Laptop In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , , , , <4B905F85.9090907@colbyconsulting.com>, Message-ID: Hi Jurgen, About two weeks ago I read that Sony VAIO's do not support XP Mode. This is a hardware decision that Sony made for some reason, and there is no 'fix' once you buy the PC. If he needs XP Mode (in Windows 7), you should probably look at something else. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Friday, March 05, 2010 11:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: New Laptop I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... Have a look at the Vaio VPCZ11Z9E. Intel Core I7 2.66 Ghz, Turbo Boost to 3.3 Ghz 8 Gigs Quad SSD (Raid 0) 512 Gig 1920 by 1080 LED Screen (13.1") NVIDIA GeForce GT 330M with 1 Gig GDDR3 VRAM (on the fly switchable to integrated graphics) Built in BlueRay Burner HDMI out Internal GPS & software Internal Verizon Wireless modem 6 hours full brightness screen on battery power fingerprint reader Dock Under keyboard LED keyboard illumination, sensor controlled Weight with Battery, 1.43 Kg (3.15 pounds) I've currently got the 3.3 pound 1600 * 900 screen Vaio Z predecessor and picked up 5 newer models (VGN Z820) for some of the other managers since Christmas. Actually I'm buying the Canada market version that lacks the GPS and Verizon wireless. I'd be tempted to pick it up in the US if I could get the Verizon unlocked to work on the Rogers network in Canada. I'm currently using a tiny Option USB Cell modem stick for internet on the road and it would be nice to have something internal. I also use a USB connected GPS though that is usually on a netbook with an SSD as my current Vaio has a 7200 RPM drive. A Canadian version becomes available for order this Sunday and I'm waiting to verify the details. The specs above are from Tom's hardware and the Sony US site. Tom's says 6 Gigabytes, Sony 8. Tom's says 256 Gig quad array, Sony says 512. Tom's says the array is 6.2 times faster than a 5400 RPM drive. You can customize the machine you want though, and the options are there to built it with lots of power. The only thing that's missing is USB 3. I love the 1600 by 900 13.1" LED screen on the one I have and can't wait to see the 1920 by 1080 screen. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Fri Mar 5 12:52:24 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 5 Mar 2010 10:52:24 -0800 Subject: [AccessD] Macros in 2007 Message-ID: <003401cabc94$ff567bc0$fe037340$@net> I just tried to edit a macro for the first time since I've been in 2007 and can't figure out how to open it for editing. 2003 was easy as it opened a spreadsheet type window and I could add commands to it. The existing autoexec macro is simplistic in that it maximizes the window (that's all it does). But I want to have it open a particular form as well. How do I open it to edit? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net?? From miscellany at mvps.org Fri Mar 5 13:16:25 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 06 Mar 2010 08:16:25 +1300 Subject: [AccessD] Macros in 2007 In-Reply-To: <003401cabc94$ff567bc0$fe037340$@net> References: <003401cabc94$ff567bc0$fe037340$@net> Message-ID: <1B1BFD51994743C6840F158AF91EB9C4@stevePC> Kathryn, The macro editing window in Access 2007 does look a bit different, but is basically the same concept. I would normally get to it by right-clicking the macro in the Navigation Pane, and then select Design View from the pop-up menu. Regards Steve -------------------------------------------------- From: "Kathryn Bassett" Sent: Saturday, March 06, 2010 7:52 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Macros in 2007 > I just tried to edit a macro for the first time since I've been in 2007 > and > can't figure out how to open it for editing. 2003 was easy as it opened a > spreadsheet type window and I could add commands to it. The existing > autoexec macro is simplistic in that it maximizes the window (that's all > it > does). But I want to have it open a particular form as well. How do I open > it to edit? > From jimdettman at verizon.net Fri Mar 5 13:36:01 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 05 Mar 2010 14:36:01 -0500 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: <8786a4c01003041742h64fbf4fcpacde2361859c3087@mail.gmail.com> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <4B905914.7703.1ECA61DF@stuart.lexacorp.com.pg> <8786a4c01003041742h64fbf4fcpacde2361859c3087@mail.gmail.com> Message-ID: David, Only issue I had with Blat is that the .DLL has fewer features then the command line shell and using the DLL was the only way I could find of returning an error if an e-mail was not sent. It seemed like the DLL had not been worked on in quite some time last time I looked. I always use it though for basic e-mail testing and anything that I need to do with scripting/batch jobs. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, March 04, 2010 8:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using BLAT as an Emailer Fransisco and I used BLAT in one of our old ADPs when we worked together. It was awesome. We even built it into the error handler to email us the error number, the form name, the sub name and if needed certain parameter values. We started using Blat after MS released that draconian patch for Outlook 2000. I think they are still using it at that company. David On Thu, Mar 4, 2010 at 5:06 PM, Stuart McLachlan wrote: > Blat supports several form of AUTH and also POP3 login before send. > You just need to pass the Username/PW as parameters. > > > > -- > Stuart > > On 4 Mar 2010 at 16:37, Rocky Smolin wrote: > >> What about the authentication problem? >> >> r >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >> Sent: Thursday, March 04, 2010 3:59 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Using BLAT as an Emailer >> >> >> Hi Guys, >> >> Here is an example of using BLAT as an Emailer. >> Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc >> >> FREE. I have used it in 32bit and this example was just used in 64bit so the >> program (blat) is pretty stable. >> Example is tested in A2k3 >> Example is tested using a know smtp server with login details. I have not >> tried it in gmail. (yest) >> >> Replace smtp login details with your own. >> >> Max >> >> >> Option Compare Database >> Option Explicit >> ' Example by Max.Wanadoo at gmail.com >> ' Thanks to Stuart for helping to get the ?batch call running correctly. >> >> ' NOW:Forget ?CDO. >> ' Forget Redemption >> ' Forget SendObject >> ' We have BLAT. >> ' Free and NO installation - just put a copy in your project folder and >> build some text files. >> >> >> ' Download Blat.zip from http://www.blat.net/ ' extract the contents and >> place them in your app folder (we only need the blat.exe but the rest will >> be worth reading. >> ' you can then create a FORM where the user can enter variables. ?We will >> assume some constants, ?but these can ' be variables as well. >> ' You can also store them in tables if ?you wish (I would) ' This is just an >> exampls so that you understand how it works. >> ' full details of all the options are in the downloaded text files from >> blat.net >> >> ' HERE are the contents of the text files used as examples. You can create >> these on the fly from within Access. >> >> ' Subject.txt = "Hello World" >> ' Body.txt = This is a test email from Blat. >> ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, >> max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = >> max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To >> unsubscribe send an email to helpmeplease at heaven.com >> >> >> Private sBlatFile, sBlatLog >> >> Sub BlatExample() >> 'place these varibles in a form ?for the user ?to enter. We will just create >> them 'from here ?to show how they fit together to make Blat work. >> ' What I have done is to put the contents of the various bits into external >> text files and call them with these ' variables but you can put them >> directly into the varible if you change the calling Blat Switch where >> required. >> ' See Blat file for documentation or drop me a line. ?EG, -tf (to file) >> becomes -to (address list to send to) ' The files I have used are arbitarily >> named and I would antipate generting them from within Access where >> appropriate. >> >> ? ? If BlatCreate( _ >> ? ? ? ?sFrom:="me at mydomain.org", _ >> ? ? ? ?sRecipients:="Recipients.txt", _ >> ? ? ? ?sCC:="CC.txt", _ >> ? ? ? ?sBCC:="bcc.txt", _ >> ? ? ? ?sSubject:="subject.txt", _ >> ? ? ? ?sBody:="Body.txt", _ >> ? ? ? ?sSMTPServer:="smtp.mydomain.org", _ >> ? ? ? ?sSMTPUser:="me at mydomain.org", _ >> ? ? ? ?sSMTPPwd:="mysecretsmtppassword", _ >> ? ? ? ?sSignature:="Signature.txt", _ >> ? ? ? ?sPS:="ps.txt", _ >> ? ? ? ?sAttach:="Attach.txt") = 0 Then >> ? ? ? ? Call sShell(sBlatFile) >> ? ? End If >> End Sub >> >> Function BlatCreate( _ >> ? ? ? ? ?sFrom As String, _ >> ? ? ? ? ?sRecipients As String, _ >> ? ? ? ? ?sCC As String, _ >> ? ? ? ? ?sBCC As String, _ >> ? ? ? ? ?sSubject As String, _ >> ? ? ? ? ?sBody As String, _ >> ? ? ? ? ?sSMTPServer As String, _ >> ? ? ? ? ?sSMTPUser As String, _ >> ? ? ? ? ?sSMTPPwd As String, _ >> ? ? ? ? ?sSignature As String, _ >> ? ? ? ? ?sPS As String, _ >> ? ? ? ? ?sAttach As String) As Long >> ? ? On Error GoTo EH >> >> ? ? Dim sContents As String >> ? ? sBlatFile = CurrentProject.Path & "\blat.bat" >> ? ? sBlatLog = CurrentProject.Path & "\blat.log" >> >> ? ? sContents = "Blat.exe " & sBody & _ >> ? ? ? ? ? ? ? " -f " & sFrom & _ >> ? ? ? ? ? ? ? " -serverSMTP " & sSMTPServer & _ >> ? ? ? ? ? ? ? " -u " & sSMTPUser & _ >> ? ? ? ? ? ? ? " -pw " & sSMTPPwd & _ >> ? ? ? ? ? ? ? " -tf " & sRecipients & _ >> ? ? ? ? ? ? ? " -cf " & sCC & _ >> ? ? ? ? ? ? ? " -bf " & sBCC & _ >> ? ? ? ? ? ? ? " -sf " & sSubject & _ >> ? ? ? ? ? ? ? " -sig " & sSignature & _ >> ? ? ? ? ? ? ? " -ps " & sPS & _ >> ? ? ? ? ? ? ? " -attach " & sAttach >> >> ? ? ' That is ?all the varibles, we will now put our constants in, but >> ? ? ' if you want any of these to be changeable then just make them >> variables. >> ? ? ' NB there are no cr/lf in this file. >> ? ? ' this example asks for a read ?receipt, etc. >> >> >> ? ? sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log blat.log >> -timestamp -ti 60 -try 3 -hostname MyHostName" >> >> ? ? Close 1 >> ? ? On Error Resume Next >> ? ? Kill sBlatFile >> ? ? Kill sBlatLog >> ? ? On Error GoTo EH >> ? ? Open sBlatFile For Output As #1 >> ? ? Print #1, sContents >> ? ? Close 1 >> EX: >> ? ? Close 1 >> ? ? Exit Function >> EH: >> ? ? BlatCreate = Err.Number >> ? ? Select Case BlatCreate >> ? ? Case Else >> ? ? ? ? MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description >> ? ? End Select >> ? ? Resume EH >> End Function >> >> Private Sub sShell(sFile) >> ? ? Dim strCurPath As String, strCurDrive As String, strProjPath As String, >> strProjDrive As String >> ? ? ' get the project location >> ? ? strProjPath = CurrentProject.Path >> ? ? strProjDrive = Left(strProjPath, 1): ? ?'Debug.Print strProjDrive, >> strProjPath >> >> ? ? ' get the current location >> ? ? strCurPath = CurDir >> ? ? strCurDrive = Left(strCurPath, 1): ? ?'Debug.Print strCurDrive, >> strCurPath >> >> ? ? ' change the current location to the project location >> ? ? ' so that we can run the blat.exe via ?the blat.bat file >> ? ? ChDrive strProjDrive >> ? ? ChDir strProjPath >> >> ? ? ' now run the batch file >> ? ? Shell sFile >> >> ? ? ' now restore the current location back to what it was. >> ? ? ChDrive strCurDrive >> ? ? ChDir strCurPath >> End Sub >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 5 14:29:31 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 20:29:31 -0000 Subject: [AccessD] OT Friday: Diskettes on the fly? In-Reply-To: <4B91486A.4000309@colbyconsulting.com> References: <4B910CDC.1040405@colbyconsulting.com> <29f585dd1003050631p2503091fyffb7004c4449164a@mail.gmail.com><73BC802EE5204B7DB350C0588DB0CB37@Server> <4B91486A.4000309@colbyconsulting.com> Message-ID: <588EFB1B0B8746729215380EF631C1D7@Server> I just use the external USB type. Works a treat. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 05, 2010 6:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday: Diskettes on the fly? That is exactly what I do. I bought an external hard drive holder that interfaces via eSATA. You can buy little connector widgets that plug into an SATA port and screw down to an empty slot in the back panel. Plug in the external drive and voila, an external SATA drive. I threw a 1.5 gig hard disk in there and just leave it turned on. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Arthur, why don't you back the 1TB to another 1TB - they are cheap > enough these days. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur > Fuller > Sent: Friday, March 05, 2010 2:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT Friday: Diskettes on the fly? > > I remember a program called FastBack that I used to back up my 10MB > hard disk. LOL. It took about 50 diskettes to do a single backup. Now > I'm faced with similar problems. You know many dual-layer DVDs it > takes to back up a Terabyte? Sheesh. > > Arthur > > On Fri, Mar 5, 2010 at 8:53 AM, jwcolby wrote: > >> In 1997 while living down in Mexico, I gave away my collection of >> software on floppy. Even 10 years ago the floppy was pretty much >> useless. >> >> I still keep about 20 simply because they are getting hard to buy and >> the older versions of windows still require them for the driver >> install when installing windows. Even that is finally going away >> (thank goodness) with Vista and beyond. >> >> I would say they are good for making the trash heap a little bigger. >> >> 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 jwelz at hotmail.com Fri Mar 5 14:34:05 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 13:34:05 -0700 Subject: [AccessD] OT: New Laptop In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , , , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , , , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , , , , , , , <4B905F85.9090907@colbyconsulting.com>, , , , Message-ID: Dan: I read on geek.com that this is the case. Apparently Vaio's did not support hardware virtualization but Sony is focussing on enabling this on newer models. The older Vaio Z models are excluded from this re-enabling. Apparently this was done at the BIOS level as a security measure. The article regarding the XP mode ends with the line: 'don't by (sic) a Z series Vaio... at least not without rolling up your sleeves for some dep system hacking.' I can't think of anything that needs XP except some old CSTS (Construction Safety Training System) software that has been past due and promised for upgrade for over a year. We have a few old laptops that can run this as needed. This is not something I need on my laptop. I've been running Vista on my existing Sony Vaio and it was offered with an XP downgrade when I bought it. If he wants XP, I'll downgrade my existing machine for him. For the time being, Vista is running everything I need and I need a lot more than he does. The only problem I've had with 64 bit Win 7 on the recent Vaio Zs was getting the MS Presenter Mouse 8000 working with the internal Blue tooth. It works fine with the USB Blue tooth dongle but not the built in. I'm happy to say that it's working perfectly on my 32 bit Vista Z Vaio and hope there is some kind of patch to get it to work in Win 7 64 bit. I really like the built in Mic, Blue Tooth, and Webcam on the one I have. I'll be even happier also getting rid of my USB powered keyboard light, GPS dongle and maybe even the USB wireless modem stick. Much tidier in the brief case. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: dwaters at usinternet.com > To: accessd at databaseadvisors.com > Date: Fri, 5 Mar 2010 12:26:25 -0600 > Subject: Re: [AccessD] OT: New Laptop > > Hi Jurgen, > > About two weeks ago I read that Sony VAIO's do not support XP Mode. This is > a hardware decision that Sony made for some reason, and there is no 'fix' > once you buy the PC. > > If he needs XP Mode (in Windows 7), you should probably look at something > else. > > Dan _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 From stuart at lexacorp.com.pg Fri Mar 5 15:23:17 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Mar 2010 07:23:17 +1000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <8786a4c01003041742h64fbf4fcpacde2361859c3087@mail.gmail.com>, Message-ID: <4B917645.28415.2324683C@stuart.lexacorp.com.pg> That used to be true - the DLL stayed at v 1.9.4 for a long time while development continued on the EXE but the current v 2.6.2 (Feb 2007 release) contains both Exe and DLL . It appears that the DLL and EXE are now maintained by the same people and stay in sync. Another way to return an error with Blat is to use logging and parse, then delete, the log file after sending. That has the advantage that the error messages in the log file are far more explicit than the return codes from the DLL. A return of 1 or 2 could be caused by many different conditions - the log file tell you the exact cause. I've been meaning to write a gerenic Blat log parser for some time but haven't got round to it yet. -- Stuart On 5 Mar 2010 at 14:36, Jim Dettman wrote > David, > > Only issue I had with Blat is that the .DLL has fewer features then the > command line shell and using the DLL was the only way I could find of > returning an error if an e-mail was not sent. > > It seemed like the DLL had not been worked on in quite some time last time > I looked. > > I always use it though for basic e-mail testing and anything that I need > to do with scripting/batch jobs. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Thursday, March 04, 2010 8:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Using BLAT as an Emailer > > Fransisco and I used BLAT in one of our old ADPs when we worked together. > > It was awesome. We even built it into the error handler to email us > the error number, the form name, the sub name and if needed certain > parameter values. > > We started using Blat after MS released that draconian patch for Outlook > 2000. > > I think they are still using it at that company. > > David > > On Thu, Mar 4, 2010 at 5:06 PM, Stuart McLachlan > wrote: > > Blat supports several form of AUTH and also POP3 login before send. > > You just need to pass the Username/PW as parameters. > > > > > > > > -- > > Stuart > > > > On 4 Mar 2010 at 16:37, Rocky Smolin wrote: > > > >> What about the authentication problem? > >> > >> r > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > >> Sent: Thursday, March 04, 2010 3:59 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: [AccessD] Using BLAT as an Emailer > >> > >> > >> Hi Guys, > >> > >> Here is an example of using BLAT as an Emailer. > >> Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, etc > >> > >> FREE. I have used it in 32bit and this example was just used in 64bit so > the > >> program (blat) is pretty stable. > >> Example is tested in A2k3 > >> Example is tested using a know smtp server with login details. I have not > >> tried it in gmail. (yest) > >> > >> Replace smtp login details with your own. > >> > >> Max > >> > >> > >> Option Compare Database > >> Option Explicit > >> ' Example by Max.Wanadoo at gmail.com > >> ' Thanks to Stuart for helping to get the ?batch call running correctly. > >> > >> ' NOW:Forget ?CDO. > >> ' Forget Redemption > >> ' Forget SendObject > >> ' We have BLAT. > >> ' Free and NO installation - just put a copy in your project folder and > >> build some text files. > >> > >> > >> ' Download Blat.zip from http://www.blat.net/ ' extract the contents and > >> place them in your app folder (we only need the blat.exe but the rest > will > >> be worth reading. > >> ' you can then create a FORM where the user can enter variables. ?We will > >> assume some constants, ?but these can ' be variables as well. > >> ' You can also store them in tables if ?you wish (I would) ' This is just > an > >> exampls so that you understand how it works. > >> ' full details of all the options are in the downloaded text files from > >> blat.net > >> > >> ' HERE are the contents of the text files used as examples. You can > create > >> these on the fly from within Access. > >> > >> ' Subject.txt = "Hello World" > >> ' Body.txt = This is a test email from Blat. > >> ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, > >> max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = > >> max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To > >> unsubscribe send an email to helpmeplease at heaven.com > >> > >> > >> Private sBlatFile, sBlatLog > >> > >> Sub BlatExample() > >> 'place these varibles in a form ?for the user ?to enter. We will just > create > >> them 'from here ?to show how they fit together to make Blat work. > >> ' What I have done is to put the contents of the various bits into > external > >> text files and call them with these ' variables but you can put them > >> directly into the varible if you change the calling Blat Switch where > >> required. > >> ' See Blat file for documentation or drop me a line. ?EG, -tf (to file) > >> becomes -to (address list to send to) ' The files I have used are > arbitarily > >> named and I would antipate generting them from within Access where > >> appropriate. > >> > >> ? ? If BlatCreate( _ > >> ? ? ? ?sFrom:="me at mydomain.org", _ > >> ? ? ? ?sRecipients:="Recipients.txt", _ > >> ? ? ? ?sCC:="CC.txt", _ > >> ? ? ? ?sBCC:="bcc.txt", _ > >> ? ? ? ?sSubject:="subject.txt", _ > >> ? ? ? ?sBody:="Body.txt", _ > >> ? ? ? ?sSMTPServer:="smtp.mydomain.org", _ > >> ? ? ? ?sSMTPUser:="me at mydomain.org", _ > >> ? ? ? ?sSMTPPwd:="mysecretsmtppassword", _ > >> ? ? ? ?sSignature:="Signature.txt", _ > >> ? ? ? ?sPS:="ps.txt", _ > >> ? ? ? ?sAttach:="Attach.txt") = 0 Then > >> ? ? ? ? Call sShell(sBlatFile) > >> ? ? End If > >> End Sub > >> > >> Function BlatCreate( _ > >> ? ? ? ? ?sFrom As String, _ > >> ? ? ? ? ?sRecipients As String, _ > >> ? ? ? ? ?sCC As String, _ > >> ? ? ? ? ?sBCC As String, _ > >> ? ? ? ? ?sSubject As String, _ > >> ? ? ? ? ?sBody As String, _ > >> ? ? ? ? ?sSMTPServer As String, _ > >> ? ? ? ? ?sSMTPUser As String, _ > >> ? ? ? ? ?sSMTPPwd As String, _ > >> ? ? ? ? ?sSignature As String, _ > >> ? ? ? ? ?sPS As String, _ > >> ? ? ? ? ?sAttach As String) As Long > >> ? ? On Error GoTo EH > >> > >> ? ? Dim sContents As String > >> ? ? sBlatFile = CurrentProject.Path & "\blat.bat" > >> ? ? sBlatLog = CurrentProject.Path & "\blat.log" > >> > >> ? ? sContents = "Blat.exe " & sBody & _ > >> ? ? ? ? ? ? ? " -f " & sFrom & _ > >> ? ? ? ? ? ? ? " -serverSMTP " & sSMTPServer & _ > >> ? ? ? ? ? ? ? " -u " & sSMTPUser & _ > >> ? ? ? ? ? ? ? " -pw " & sSMTPPwd & _ > >> ? ? ? ? ? ? ? " -tf " & sRecipients & _ > >> ? ? ? ? ? ? ? " -cf " & sCC & _ > >> ? ? ? ? ? ? ? " -bf " & sBCC & _ > >> ? ? ? ? ? ? ? " -sf " & sSubject & _ > >> ? ? ? ? ? ? ? " -sig " & sSignature & _ > >> ? ? ? ? ? ? ? " -ps " & sPS & _ > >> ? ? ? ? ? ? ? " -attach " & sAttach > >> > >> ? ? ' That is ?all the varibles, we will now put our constants in, but > >> ? ? ' if you want any of these to be changeable then just make them > >> variables. > >> ? ? ' NB there are no cr/lf in this file. > >> ? ? ' this example asks for a read ?receipt, etc. > >> > >> > >> ? ? sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log > blat.log > >> -timestamp -ti 60 -try 3 -hostname MyHostName" > >> > >> ? ? Close 1 > >> ? ? On Error Resume Next > >> ? ? Kill sBlatFile > >> ? ? Kill sBlatLog > >> ? ? On Error GoTo EH > >> ? ? Open sBlatFile For Output As #1 > >> ? ? Print #1, sContents > >> ? ? Close 1 > >> EX: > >> ? ? Close 1 > >> ? ? Exit Function > >> EH: > >> ? ? BlatCreate = Err.Number > >> ? ? Select Case BlatCreate > >> ? ? Case Else > >> ? ? ? ? MsgBox "Error: " & BlatCreate & vbCrLf & Err.Description > >> ? ? End Select > >> ? ? Resume EH > >> End Function > >> > >> Private Sub sShell(sFile) > >> ? ? Dim strCurPath As String, strCurDrive As String, strProjPath As > String, > >> strProjDrive As String > >> ? ? ' get the project location > >> ? ? strProjPath = CurrentProject.Path > >> ? ? strProjDrive = Left(strProjPath, 1): ? ?'Debug.Print strProjDrive, > >> strProjPath > >> > >> ? ? ' get the current location > >> ? ? strCurPath = CurDir > >> ? ? strCurDrive = Left(strCurPath, 1): ? ?'Debug.Print strCurDrive, > >> strCurPath > >> > >> ? ? ' change the current location to the project location > >> ? ? ' so that we can run the blat.exe via ?the blat.bat file > >> ? ? ChDrive strProjDrive > >> ? ? ChDir strProjPath > >> > >> ? ? ' now run the batch file > >> ? ? Shell sFile > >> > >> ? ? ' now restore the current location back to what it was. > >> ? ? ChDrive strCurDrive > >> ? ? ChDir strCurPath > >> End Sub > >> > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Mar 5 15:27:31 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 5 Mar 2010 15:27:31 -0600 Subject: [AccessD] Shelling to a batch file References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> <50E9BD7469A845D98B86E75B01EBB9F9@Server> Message-ID: Max, I use the SHELL command quite a bit to fire-up .bat and .exe files from Access. Below is a snippet of VBA code which you may find useful. I am not sure if this will help you or not, but I thought that I would share what I have. Please let me know if you have any questions. Thanks, Brad Marks '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Const Four_Quotes As String = """" Dim Var_String_For_Shell_Command Dim Var_Program_To_Be_Initiated Dim Var_Parm_Passed_To_Initiated_Program Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My Documents\InitXcel.bat" Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" Var_String_For_Shell_Command = _ Four_Quotes _ & Var_Program_To_Be_Initiated _ & Four_Quotes _ & " " _ & Four_Quotes _ & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & Var_String_For_Shell_Command Shell Var_String_For_Shell_Command '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shelling to a batch file Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub -- 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 max.wanadoo at gmail.com Fri Mar 5 15:48:56 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 21:48:56 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server> Message-ID: <0234804DF0E24480999DCBB8C7269587@Server> Thanks Brad, That actually won't work in my situation, but I have solved it. Here is the code below. We need to move into the projectpath folder and then run the batch BECAUSE in the projectpath folder we have the batch file call the blat.exe which has not been installed and is unknown to the system. BTW, the ChDir on itself is no good because that will not change the Folder (directory) so we need to use ChDrive as well. None of it can be "hard coded" because the folders could be anywhere. I appreciate the feedback though. Cheers Max Private Sub sShell(sFile) Dim strCurPath As String, strCurDrive As String, strProjPath As String, strProjDrive As String ' get the project location strProjPath = CurrentProject.Path strProjDrive = Left(strProjPath, 1): 'Debug.Print strProjDrive, strProjPath ' get the current location strCurPath = CurDir strCurDrive = Left(strCurPath, 1): 'Debug.Print strCurDrive, strCurPath ' change the current location to the project location ' so that we can run the blat.exe via the blat.bat file ChDrive strProjDrive ChDir strProjPath ' now run the batch file Shell sFile ' now restore the current location back to what it was. ChDrive strCurDrive ChDir strCurPath End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, March 05, 2010 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Max, I use the SHELL command quite a bit to fire-up .bat and .exe files from Access. Below is a snippet of VBA code which you may find useful. I am not sure if this will help you or not, but I thought that I would share what I have. Please let me know if you have any questions. Thanks, Brad Marks '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Const Four_Quotes As String = """" Dim Var_String_For_Shell_Command Dim Var_Program_To_Be_Initiated Dim Var_Parm_Passed_To_Initiated_Program Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My Documents\InitXcel.bat" Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" Var_String_For_Shell_Command = _ Four_Quotes _ & Var_Program_To_Be_Initiated _ & Four_Quotes _ & " " _ & Four_Quotes _ & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & Var_String_For_Shell_Command Shell Var_String_For_Shell_Command '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shelling to a batch file Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Mar 5 15:50:28 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 05 Mar 2010 16:50:28 -0500 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> <50E9BD7469A845D98B86E75B01EBB9F9@Server> Message-ID: and for those folks that want to pause until the Shelled process has finished: Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long ' Used for wait check. Const STILL_ACTIVE = &H103 Const PROCESS_QUERY_INFORMATION = &H400 Public Sub WaitWhileRunning(lngHWnd As Long) Dim lngExitCode As Long Dim lnghProcess As Long 10 lngExitCode = STILL_ACTIVE 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) 30 If lnghProcess > 0 Then 40 Do While lngExitCode = STILL_ACTIVE 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) 60 DoEvents 70 Loop 80 End If End Sub Call it like this: ' Execute 170 lngHWnd = Shell(strFTPScriptFile, vbHide) 180 WaitWhileRunning (lngHWnd) Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, March 05, 2010 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Max, I use the SHELL command quite a bit to fire-up .bat and .exe files from Access. Below is a snippet of VBA code which you may find useful. I am not sure if this will help you or not, but I thought that I would share what I have. Please let me know if you have any questions. Thanks, Brad Marks '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Const Four_Quotes As String = """" Dim Var_String_For_Shell_Command Dim Var_Program_To_Be_Initiated Dim Var_Parm_Passed_To_Initiated_Program Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My Documents\InitXcel.bat" Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" Var_String_For_Shell_Command = _ Four_Quotes _ & Var_Program_To_Be_Initiated _ & Four_Quotes _ & " " _ & Four_Quotes _ & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & Var_String_For_Shell_Command Shell Var_String_For_Shell_Command '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shelling to a batch file Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 5 16:02:41 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 22:02:41 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server> Message-ID: <08AFA6CC06D34E7998A302494EB6624F@Server> Hmm, I have a similar one Jim, code below. Is there any value in one over the other do you think? Max Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = -1& Public Sub pfRunUntilFinished(ByVal strApplication As String) ' EG: Call pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") Dim lProcID As Long Dim hProc As Long ' Start the App lProcID = Shell("CMD /C " & strApplication, vbHide) DoEvents ' Wait for the App hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) If hProc <> 0 Then WaitForSingleObject hProc, INFINITE CloseHandle hProc End If exithere: Exit Sub errhandler: MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description Resume exithere End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 05, 2010 9:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Shelling to a batch file and for those folks that want to pause until the Shelled process has finished: Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long ' Used for wait check. Const STILL_ACTIVE = &H103 Const PROCESS_QUERY_INFORMATION = &H400 Public Sub WaitWhileRunning(lngHWnd As Long) Dim lngExitCode As Long Dim lnghProcess As Long 10 lngExitCode = STILL_ACTIVE 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) 30 If lnghProcess > 0 Then 40 Do While lngExitCode = STILL_ACTIVE 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) 60 DoEvents 70 Loop 80 End If End Sub Call it like this: ' Execute 170 lngHWnd = Shell(strFTPScriptFile, vbHide) 180 WaitWhileRunning (lngHWnd) Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, March 05, 2010 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Max, I use the SHELL command quite a bit to fire-up .bat and .exe files from Access. Below is a snippet of VBA code which you may find useful. I am not sure if this will help you or not, but I thought that I would share what I have. Please let me know if you have any questions. Thanks, Brad Marks '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Const Four_Quotes As String = """" Dim Var_String_For_Shell_Command Dim Var_Program_To_Be_Initiated Dim Var_Parm_Passed_To_Initiated_Program Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My Documents\InitXcel.bat" Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" Var_String_For_Shell_Command = _ Four_Quotes _ & Var_Program_To_Be_Initiated _ & Four_Quotes _ & " " _ & Four_Quotes _ & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & Var_String_For_Shell_Command Shell Var_String_For_Shell_Command '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shelling to a batch file Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 5 16:19:11 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Mar 2010 08:19:11 +1000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, , Message-ID: <4B91835F.17364.23579630@stuart.lexacorp.com.pg> On 5 Mar 2010 at 16:50, Jim Dettman wrote: > > and for those folks that want to pause until the Shelled process has > finished: Here's what I use. You use ShellWait() exactly the same way you use Shell(). 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 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 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 From stuart at lexacorp.com.pg Fri Mar 5 16:23:59 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Mar 2010 08:23:59 +1000 Subject: [AccessD] Shelling to a batch file In-Reply-To: <08AFA6CC06D34E7998A302494EB6624F@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, , <08AFA6CC06D34E7998A302494EB6624F@Server> Message-ID: <4B91847F.7535.235BFCBF@stuart.lexacorp.com.pg> Both your version and the one I have just posted have the advantage of being "drop in" replacements for Shell. Jim's version requires a bit more work every time it is used. Your version is not a complete replacement for Shell because it doesn't allow the option WindowStyle parameter. I think I'll stick with mine :-) -- Stuart On 5 Mar 2010 at 22:02, Max Wanadoo wrote: > Hmm, I have a similar one Jim, code below. > > Is there any value in one over the other do you think? > > Max > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 WaitForSingleObject Lib "kernel32" (ByVal hHandle > As Long, ByVal dwMilliseconds As Long) As Long > Private Const SYNCHRONIZE = &H100000 > Private Const INFINITE = -1& > > Public Sub pfRunUntilFinished(ByVal strApplication As String) > ' EG: Call > pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") > Dim lProcID As Long > Dim hProc As Long > ' Start the App > lProcID = Shell("CMD /C " & strApplication, vbHide) > DoEvents > ' Wait for the App > hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) > If hProc <> 0 Then > WaitForSingleObject hProc, INFINITE > CloseHandle hProc > End If > exithere: > Exit Sub > errhandler: > MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description > Resume exithere > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, March 05, 2010 9:50 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Shelling to a batch file > > > and for those folks that want to pause until the Shelled process has > finished: > > Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess > As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib > "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, > ByVal dwProcessId As Long) As Long > > ' Used for wait check. > Const STILL_ACTIVE = &H103 > Const PROCESS_QUERY_INFORMATION = &H400 > > Public Sub WaitWhileRunning(lngHWnd As Long) > > Dim lngExitCode As Long > Dim lnghProcess As Long > > 10 lngExitCode = STILL_ACTIVE > 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) > > 30 If lnghProcess > 0 Then > 40 Do While lngExitCode = STILL_ACTIVE > 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) > 60 DoEvents > 70 Loop > 80 End If > > End Sub > > Call it like this: > > ' Execute > 170 lngHWnd = Shell(strFTPScriptFile, vbHide) > 180 WaitWhileRunning (lngHWnd) > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Friday, March 05, 2010 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shelling to a batch file > > Max, > > I use the SHELL command quite a bit to fire-up .bat and .exe files from > Access. > > Below is a snippet of VBA code which you may find useful. > > I am not sure if this will help you or not, but I thought that I would share > what I have. > > Please let me know if you have any questions. > > Thanks, > Brad Marks > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~ > > Const Four_Quotes As String = """" > > Dim Var_String_For_Shell_Command > > Dim Var_Program_To_Be_Initiated > > Dim Var_Parm_Passed_To_Initiated_Program > > > Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My > Documents\InitXcel.bat" > > Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" > > > Var_String_For_Shell_Command = _ > Four_Quotes _ > & Var_Program_To_Be_Initiated _ > & Four_Quotes _ > & " " _ > & Four_Quotes _ > & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes > > MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & > Var_String_For_Shell_Command > > Shell Var_String_For_Shell_Command > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 04, 2010 3:36 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Shelling to a batch file > > Hi All, > > I am struggling to get the SHELL command to run a batch file from Access. > > Any clues or tips? > > The batch file in turn will run and executable in the same folder as the > currentproject.path BUT this exe file is NOT installed so it is necessary to > ensure that I first move to that folder and then run the batch.bat file. > > Eg: > g\_MyTest is my currentproject.path within Access In there I have blat.exe > which is not installed and which I do not want to install - so nothing in > the Registry. > I also have blat.bat which I have created from Access. > I want to run the batch file which in turn will invoke the blat.exe and pass > it parameters. > > The batch file runs fine if manually invoked. This is the last bit of > running Blat from within Access. > I will then post the lot to the List. > > Thanks > > Max > > This is where I am at: > > Private Sub sShell(sFile) > ' sfile will be "blat.bat" > const conQuote as string = """" > Dim sPath As String > ' move into the current folder because we havn't installed Blat.exe > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > Debug.Print sPath > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > vbNormalFocus > > ' now run the batch file > 'sFile = conQuote & sFile & conQuote > Debug.Print sFile > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > vbNormalFocus End Sub > > > -- > 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. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 5 16:31:40 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 5 Mar 2010 22:31:40 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: <4B91847F.7535.235BFCBF@stuart.lexacorp.com.pg> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, , <08AFA6CC06D34E7998A302494EB6624F@Server> <4B91847F.7535.235BFCBF@stuart.lexacorp.com.pg> Message-ID: What does windowstyle do? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, March 05, 2010 10:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Both your version and the one I have just posted have the advantage of being "drop in" replacements for Shell. Jim's version requires a bit more work every time it is used. Your version is not a complete replacement for Shell because it doesn't allow the option WindowStyle parameter. I think I'll stick with mine :-) -- Stuart On 5 Mar 2010 at 22:02, Max Wanadoo wrote: > Hmm, I have a similar one Jim, code below. > > Is there any value in one over the other do you think? > > Max > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 > WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal > dwMilliseconds As Long) As Long Private Const SYNCHRONIZE = &H100000 > Private Const INFINITE = -1& > > Public Sub pfRunUntilFinished(ByVal strApplication As String) ' EG: > Call > pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") > Dim lProcID As Long > Dim hProc As Long > ' Start the App > lProcID = Shell("CMD /C " & strApplication, vbHide) > DoEvents > ' Wait for the App > hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) > If hProc <> 0 Then > WaitForSingleObject hProc, INFINITE > CloseHandle hProc > End If > exithere: > Exit Sub > errhandler: > MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description > Resume exithere > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, March 05, 2010 9:50 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Shelling to a batch file > > > and for those folks that want to pause until the Shelled process has > finished: > > Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal > hProcess As Long, lpExitCode As Long) As LongPrivate Declare Function > OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal > bInheritHandle As Long, ByVal dwProcessId As Long) As Long > > ' Used for wait check. > Const STILL_ACTIVE = &H103 > Const PROCESS_QUERY_INFORMATION = &H400 > > Public Sub WaitWhileRunning(lngHWnd As Long) > > Dim lngExitCode As Long > Dim lnghProcess As Long > > 10 lngExitCode = STILL_ACTIVE > 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) > > 30 If lnghProcess > 0 Then > 40 Do While lngExitCode = STILL_ACTIVE > 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) > 60 DoEvents > 70 Loop > 80 End If > > End Sub > > Call it like this: > > ' Execute > 170 lngHWnd = Shell(strFTPScriptFile, vbHide) > 180 WaitWhileRunning (lngHWnd) > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Friday, March 05, 2010 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shelling to a batch file > > Max, > > I use the SHELL command quite a bit to fire-up .bat and .exe files > from Access. > > Below is a snippet of VBA code which you may find useful. > > I am not sure if this will help you or not, but I thought that I would > share what I have. > > Please let me know if you have any questions. > > Thanks, > Brad Marks > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~ > ~~~~~~~~~~ > > Const Four_Quotes As String = """" > > Dim Var_String_For_Shell_Command > > Dim Var_Program_To_Be_Initiated > > Dim Var_Parm_Passed_To_Initiated_Program > > > Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My > Documents\InitXcel.bat" > > Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" > > > Var_String_For_Shell_Command = _ > Four_Quotes _ > & Var_Program_To_Be_Initiated _ > & Four_Quotes _ > & " " _ > & Four_Quotes _ > & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes > > MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & > Var_String_For_Shell_Command > > Shell Var_String_For_Shell_Command > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~ > ~~~~~~~~~~~~~~ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 04, 2010 3:36 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Shelling to a batch file > > Hi All, > > I am struggling to get the SHELL command to run a batch file from Access. > > Any clues or tips? > > The batch file in turn will run and executable in the same folder as > the currentproject.path BUT this exe file is NOT installed so it is > necessary to ensure that I first move to that folder and then run the batch.bat file. > > Eg: > g\_MyTest is my currentproject.path within Access In there I have > blat.exe which is not installed and which I do not want to install - > so nothing in the Registry. > I also have blat.bat which I have created from Access. > I want to run the batch file which in turn will invoke the blat.exe > and pass it parameters. > > The batch file runs fine if manually invoked. This is the last bit of > running Blat from within Access. > I will then post the lot to the List. > > Thanks > > Max > > This is where I am at: > > Private Sub sShell(sFile) > ' sfile will be "blat.bat" > const conQuote as string = """" > Dim sPath As String > ' move into the current folder because we havn't installed Blat.exe > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > Debug.Print sPath > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > vbNormalFocus > > ' now run the batch file > 'sFile = conQuote & sFile & conQuote > Debug.Print sFile > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > vbNormalFocus End Sub > > > -- > 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. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 5 16:21:31 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 15:21:31 -0700 Subject: [AccessD] Shelling to a batch file In-Reply-To: <08AFA6CC06D34E7998A302494EB6624F@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server>, , <08AFA6CC06D34E7998A302494EB6624F@Server> Message-ID: I use something very similar as well: It's similar to Max's version but calls in CreateProcessA in Kernel32 to Shell the command, bat or executable. I've used it a great deal with things like Robocopy: Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal _ dwMilliseconds As Long) As Long Public Declare Function CloseHandle Lib "kernel32" (ByVal hFile As Long) As Long Private 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, lpStartupInfor As STARTUPINFO, lProcessInformation As _ PROCESS_INFORMATION) As Long 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 Private Const STARTF_USESHOWWINDOW& = &H1 Private Const NORMAL_PRIORITY_CLASS = &H20& Private Const INFINITE = -1& Public Sub ShellWait(pathname As String, Optional WindowStyle As Long) Dim proc As PROCESS_INFORMATION Dim start As STARTUPINFO Dim ret As Long With start .cb = Len(start) If Not IsMissing(WindowStyle) Then .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = WindowStyle End If End With ret& = CreateProcessA(0&, pathname, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc) ret& = WaitForSingleObject(proc.hProcess, INFINITE) CloseHandle proc.hProcess End Sub This allows me to specify maximized, restored or hidden windows for the process though I nearly always run it hidden. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Fri, 5 Mar 2010 22:02:41 +0000 > Subject: Re: [AccessD] Shelling to a batch file > > Hmm, I have a similar one Jim, code below. > > Is there any value in one over the other do you think? > > Max > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 WaitForSingleObject Lib "kernel32" (ByVal hHandle > As Long, ByVal dwMilliseconds As Long) As Long > Private Const SYNCHRONIZE = &H100000 > Private Const INFINITE = -1& > > Public Sub pfRunUntilFinished(ByVal strApplication As String) > ' EG: Call > pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") > Dim lProcID As Long > Dim hProc As Long > ' Start the App > lProcID = Shell("CMD /C " & strApplication, vbHide) > DoEvents > ' Wait for the App > hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) > If hProc <> 0 Then > WaitForSingleObject hProc, INFINITE > CloseHandle hProc > End If > exithere: > Exit Sub > errhandler: > MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description > Resume exithere > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Friday, March 05, 2010 9:50 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Shelling to a batch file > > > and for those folks that want to pause until the Shelled process has > finished: > > Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess > As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib > "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, > ByVal dwProcessId As Long) As Long > > ' Used for wait check. > Const STILL_ACTIVE = &H103 > Const PROCESS_QUERY_INFORMATION = &H400 > > Public Sub WaitWhileRunning(lngHWnd As Long) > > Dim lngExitCode As Long > Dim lnghProcess As Long > > 10 lngExitCode = STILL_ACTIVE > 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) > > 30 If lnghProcess > 0 Then > 40 Do While lngExitCode = STILL_ACTIVE > 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) > 60 DoEvents > 70 Loop > 80 End If > > End Sub > > Call it like this: > > ' Execute > 170 lngHWnd = Shell(strFTPScriptFile, vbHide) > 180 WaitWhileRunning (lngHWnd) > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Friday, March 05, 2010 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shelling to a batch file > > Max, > > I use the SHELL command quite a bit to fire-up .bat and .exe files from > Access. > > Below is a snippet of VBA code which you may find useful. > > I am not sure if this will help you or not, but I thought that I would share > what I have. > > Please let me know if you have any questions. > > Thanks, > Brad Marks > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~ > > Const Four_Quotes As String = """" > > Dim Var_String_For_Shell_Command > > Dim Var_Program_To_Be_Initiated > > Dim Var_Parm_Passed_To_Initiated_Program > > > Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My > Documents\InitXcel.bat" > > Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" > > > Var_String_For_Shell_Command = _ > Four_Quotes _ > & Var_Program_To_Be_Initiated _ > & Four_Quotes _ > & " " _ > & Four_Quotes _ > & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes > > MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & > Var_String_For_Shell_Command > > Shell Var_String_For_Shell_Command > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 04, 2010 3:36 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Shelling to a batch file > > Hi All, > > I am struggling to get the SHELL command to run a batch file from Access. > > Any clues or tips? > > The batch file in turn will run and executable in the same folder as the > currentproject.path BUT this exe file is NOT installed so it is necessary to > ensure that I first move to that folder and then run the batch.bat file. > > Eg: > g\_MyTest is my currentproject.path within Access In there I have blat.exe > which is not installed and which I do not want to install - so nothing in > the Registry. > I also have blat.bat which I have created from Access. > I want to run the batch file which in turn will invoke the blat.exe and pass > it parameters. > > The batch file runs fine if manually invoked. This is the last bit of > running Blat from within Access. > I will then post the lot to the List. > > Thanks > > Max > > This is where I am at: > > Private Sub sShell(sFile) > ' sfile will be "blat.bat" > const conQuote as string = """" > Dim sPath As String > ' move into the current folder because we havn't installed Blat.exe > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > Debug.Print sPath > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > vbNormalFocus > > ' now run the batch file > 'sFile = conQuote & sFile & conQuote > Debug.Print sFile > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > vbNormalFocus End Sub > > > -- > 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. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 From stuart at lexacorp.com.pg Fri Mar 5 18:02:52 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Mar 2010 10:02:52 +1000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <4B91847F.7535.235BFCBF@stuart.lexacorp.com.pg>, Message-ID: <4B919BAC.15188.23B68476@stuart.lexacorp.com.pg> It determines how the Shelled application appears. The windowstyle named argument has these values: Constant Value Description vbHide 0 Window is hidden and focus is passed to the hidden window. vbNormalFocus 1 Window has focus and is restored to its original size and position. vbMinimizedFocus 2 Window is displayed as an icon with focus. vbMaximizedFocus 3 Window is maximized with focus. vbNormalNoFocus 4 Window is restored to its most recent size and position. The currently active window remains active. vbMinimizedNoFocus 6 Window is displayed as an icon. The currently active window remains active. vbHide is especially useful for calling things like Blat. The user doesn't see the DOS box. -- Stuart On 5 Mar 2010 at 22:31, Max Wanadoo wrote: > What does windowstyle do? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, March 05, 2010 10:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Shelling to a batch file > > Both your version and the one I have just posted have the advantage of being > "drop in" > replacements for Shell. Jim's version requires a bit more work every time > it is used. > > Your version is not a complete replacement for Shell because it doesn't > allow the option WindowStyle parameter. > > I think I'll stick with mine :-) > > -- > Stuart > > On 5 Mar 2010 at 22:02, Max Wanadoo wrote: > > > Hmm, I have a similar one Jim, code below. > > > > Is there any value in one over the other do you think? > > > > Max > > > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 > > WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal > > dwMilliseconds As Long) As Long Private Const SYNCHRONIZE = &H100000 > > Private Const INFINITE = -1& > > > > Public Sub pfRunUntilFinished(ByVal strApplication As String) ' EG: > > Call > > pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") > > Dim lProcID As Long > > Dim hProc As Long > > ' Start the App > > lProcID = Shell("CMD /C " & strApplication, vbHide) > > DoEvents > > ' Wait for the App > > hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) > > If hProc <> 0 Then > > WaitForSingleObject hProc, INFINITE > > CloseHandle hProc > > End If > > exithere: > > Exit Sub > > errhandler: > > MsgBox "pfRunUntilFinished - Errors for " & Err.Number & > Err.Description > > Resume exithere > > End Sub > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > > Sent: Friday, March 05, 2010 9:50 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Shelling to a batch file > > > > > > and for those folks that want to pause until the Shelled process has > > finished: > > > > Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal > > hProcess As Long, lpExitCode As Long) As LongPrivate Declare Function > > OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal > > bInheritHandle As Long, ByVal dwProcessId As Long) As Long > > > > ' Used for wait check. > > Const STILL_ACTIVE = &H103 > > Const PROCESS_QUERY_INFORMATION = &H400 > > > > Public Sub WaitWhileRunning(lngHWnd As Long) > > > > Dim lngExitCode As Long > > Dim lnghProcess As Long > > > > 10 lngExitCode = STILL_ACTIVE > > 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, > lngHWnd) > > > > 30 If lnghProcess > 0 Then > > 40 Do While lngExitCode = STILL_ACTIVE > > 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) > > 60 DoEvents > > 70 Loop > > 80 End If > > > > End Sub > > > > Call it like this: > > > > ' Execute > > 170 lngHWnd = Shell(strFTPScriptFile, vbHide) > > 180 WaitWhileRunning (lngHWnd) > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > > Sent: Friday, March 05, 2010 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Shelling to a batch file > > > > Max, > > > > I use the SHELL command quite a bit to fire-up .bat and .exe files > > from Access. > > > > Below is a snippet of VBA code which you may find useful. > > > > I am not sure if this will help you or not, but I thought that I would > > share what I have. > > > > Please let me know if you have any questions. > > > > Thanks, > > Brad Marks > > > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ~~ > > ~~~~~~~~~~ > > > > Const Four_Quotes As String = """" > > > > Dim Var_String_For_Shell_Command > > > > Dim Var_Program_To_Be_Initiated > > > > Dim Var_Parm_Passed_To_Initiated_Program > > > > > > Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My > > Documents\InitXcel.bat" > > > > Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" > > > > > > Var_String_For_Shell_Command = _ > > Four_Quotes _ > > & Var_Program_To_Be_Initiated _ > > & Four_Quotes _ > > & " " _ > > & Four_Quotes _ > > & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes > > > > MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & > > Var_String_For_Shell_Command > > > > Shell Var_String_For_Shell_Command > > > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ~~ > > ~~~~~~~~~~~~~~ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > > Sent: Thursday, March 04, 2010 3:36 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Shelling to a batch file > > > > Hi All, > > > > I am struggling to get the SHELL command to run a batch file from Access. > > > > Any clues or tips? > > > > The batch file in turn will run and executable in the same folder as > > the currentproject.path BUT this exe file is NOT installed so it is > > necessary to ensure that I first move to that folder and then run the > batch.bat file. > > > > Eg: > > g\_MyTest is my currentproject.path within Access In there I have > > blat.exe which is not installed and which I do not want to install - > > so nothing in the Registry. > > I also have blat.bat which I have created from Access. > > I want to run the batch file which in turn will invoke the blat.exe > > and pass it parameters. > > > > The batch file runs fine if manually invoked. This is the last bit of > > running Blat from within Access. > > I will then post the lot to the List. > > > > Thanks > > > > Max > > > > This is where I am at: > > > > Private Sub sShell(sFile) > > ' sfile will be "blat.bat" > > const conQuote as string = """" > > Dim sPath As String > > ' move into the current folder because we havn't installed Blat.exe > > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > > Debug.Print sPath > > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > > vbNormalFocus > > > > ' now run the batch file > > 'sFile = conQuote & sFile & conQuote > > Debug.Print sFile > > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > > vbNormalFocus End Sub > > > > > > -- > > 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. > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Mar 5 18:03:59 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 5 Mar 2010 16:03:59 -0800 Subject: [AccessD] OT: New Laptop In-Reply-To: References: Message-ID: <05802A9784D84B68B0F60836AD9544A4@HAL9005> Where'd you get it? And how much? And will he buy one for me too? (I'll give him my old one as well.) r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 05, 2010 9:29 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: New Laptop Hi J?rgen That's a boss! /gustav >>> jwelz at hotmail.com 05-03-2010 18:20 >>> I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... -- 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 Mar 5 18:03:55 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Mar 2010 10:03:55 +1000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, <08AFA6CC06D34E7998A302494EB6624F@Server>, Message-ID: <4B919BEB.17683.23B77865@stuart.lexacorp.com.pg> That's the same as mine. I've had this in my toolbox for a long time and I can't remember where I first came across it. Did I steal it from you, did you steal it from me or did we both steal it from someone else independently? :-) -- Stuart On 5 Mar 2010 at 15:21, Jurgen Welz wrote: > > I use something very similar as well: > > > > It's similar to Max's version but calls in CreateProcessA in Kernel32 to Shell the command, bat or executable. I've used it a great deal with things like Robocopy: > > > > Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal _ > dwMilliseconds As Long) As Long > > > > Public Declare Function CloseHandle Lib "kernel32" (ByVal hFile As Long) As Long > > > Private 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, lpStartupInfor As STARTUPINFO, lProcessInformation As _ > PROCESS_INFORMATION) As Long > > > > 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 > > > > Private Const STARTF_USESHOWWINDOW& = &H1 > Private Const NORMAL_PRIORITY_CLASS = &H20& > Private Const INFINITE = -1& > > > > Public Sub ShellWait(pathname As String, Optional WindowStyle As Long) > Dim proc As PROCESS_INFORMATION > Dim start As STARTUPINFO > Dim ret As Long > > With start > .cb = Len(start) > If Not IsMissing(WindowStyle) Then > .dwFlags = STARTF_USESHOWWINDOW > .wShowWindow = WindowStyle > End If > End With > ret& = CreateProcessA(0&, pathname, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc) > ret& = WaitForSingleObject(proc.hProcess, INFINITE) > CloseHandle proc.hProcess > End Sub > > > This allows me to specify maximized, restored or hidden windows for the process though I nearly always run it hidden. > > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > > > > From: max.wanadoo at gmail.com > > To: accessd at databaseadvisors.com > > Date: Fri, 5 Mar 2010 22:02:41 +0000 > > Subject: Re: [AccessD] Shelling to a batch file > > > > Hmm, I have a similar one Jim, code below. > > > > Is there any value in one over the other do you think? > > > > Max > > > > Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 WaitForSingleObject Lib "kernel32" (ByVal hHandle > > As Long, ByVal dwMilliseconds As Long) As Long > > Private Const SYNCHRONIZE = &H100000 > > Private Const INFINITE = -1& > > > > Public Sub pfRunUntilFinished(ByVal strApplication As String) > > ' EG: Call > > pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") > > Dim lProcID As Long > > Dim hProc As Long > > ' Start the App > > lProcID = Shell("CMD /C " & strApplication, vbHide) > > DoEvents > > ' Wait for the App > > hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) > > If hProc <> 0 Then > > WaitForSingleObject hProc, INFINITE > > CloseHandle hProc > > End If > > exithere: > > Exit Sub > > errhandler: > > MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description > > Resume exithere > > End Sub > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > > Sent: Friday, March 05, 2010 9:50 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Shelling to a batch file > > > > > > and for those folks that want to pause until the Shelled process has > > finished: > > > > Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess > > As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib > > "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, > > ByVal dwProcessId As Long) As Long > > > > ' Used for wait check. > > Const STILL_ACTIVE = &H103 > > Const PROCESS_QUERY_INFORMATION = &H400 > > > > Public Sub WaitWhileRunning(lngHWnd As Long) > > > > Dim lngExitCode As Long > > Dim lnghProcess As Long > > > > 10 lngExitCode = STILL_ACTIVE > > 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) > > > > 30 If lnghProcess > 0 Then > > 40 Do While lngExitCode = STILL_ACTIVE > > 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) > > 60 DoEvents > > 70 Loop > > 80 End If > > > > End Sub > > > > Call it like this: > > > > ' Execute > > 170 lngHWnd = Shell(strFTPScriptFile, vbHide) > > 180 WaitWhileRunning (lngHWnd) > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > > Sent: Friday, March 05, 2010 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Shelling to a batch file > > > > Max, > > > > I use the SHELL command quite a bit to fire-up .bat and .exe files from > > Access. > > > > Below is a snippet of VBA code which you may find useful. > > > > I am not sure if this will help you or not, but I thought that I would share > > what I have. > > > > Please let me know if you have any questions. > > > > Thanks, > > Brad Marks > > > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ~~~~~~~~~~ > > > > Const Four_Quotes As String = """" > > > > Dim Var_String_For_Shell_Command > > > > Dim Var_Program_To_Be_Initiated > > > > Dim Var_Parm_Passed_To_Initiated_Program > > > > > > Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My > > Documents\InitXcel.bat" > > > > Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" > > > > > > Var_String_For_Shell_Command = _ > > Four_Quotes _ > > & Var_Program_To_Be_Initiated _ > > & Four_Quotes _ > > & " " _ > > & Four_Quotes _ > > & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes > > > > MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & > > Var_String_For_Shell_Command > > > > Shell Var_String_For_Shell_Command > > > > '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ~~~~~~~~~~~~~~ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > > Sent: Thursday, March 04, 2010 3:36 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Shelling to a batch file > > > > Hi All, > > > > I am struggling to get the SHELL command to run a batch file from Access. > > > > Any clues or tips? > > > > The batch file in turn will run and executable in the same folder as the > > currentproject.path BUT this exe file is NOT installed so it is necessary to > > ensure that I first move to that folder and then run the batch.bat file. > > > > Eg: > > g\_MyTest is my currentproject.path within Access In there I have blat.exe > > which is not installed and which I do not want to install - so nothing in > > the Registry. > > I also have blat.bat which I have created from Access. > > I want to run the batch file which in turn will invoke the blat.exe and pass > > it parameters. > > > > The batch file runs fine if manually invoked. This is the last bit of > > running Blat from within Access. > > I will then post the lot to the List. > > > > Thanks > > > > Max > > > > This is where I am at: > > > > Private Sub sShell(sFile) > > ' sfile will be "blat.bat" > > const conQuote as string = """" > > Dim sPath As String > > ' move into the current folder because we havn't installed Blat.exe > > sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote > > Debug.Print sPath > > ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", > > vbNormalFocus > > > > ' now run the batch file > > 'sFile = conQuote & sFile & conQuote > > Debug.Print sFile > > ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", > > vbNormalFocus End Sub > > > > > > -- > > 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. > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Check your Hotmail from your phone. > http://go.microsoft.com/?linkid=9712957 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Fri Mar 5 22:10:31 2010 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 5 Mar 2010 20:10:31 -0800 Subject: [AccessD] Macros in 2007 - SOLVED In-Reply-To: <1B1BFD51994743C6840F158AF91EB9C4@stevePC> References: <003401cabc94$ff567bc0$fe037340$@net> <1B1BFD51994743C6840F158AF91EB9C4@stevePC> Message-ID: <000f01cabce2$f6ddeb10$e499c130$@net> Thanks a bunch. I never thought about right clicking. I kept trying to double click like I do for queries and reports. Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, March 05, 2010 11:16 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Macros in 2007 > > Kathryn, > > The macro editing window in Access 2007 does look a bit different, but > is > basically the same concept. > > I would normally get to it by right-clicking the macro in the > Navigation > Pane, and then select Design View from the pop-up menu. > > Regards > Steve > > > -------------------------------------------------- > From: "Kathryn Bassett" > Sent: Saturday, March 06, 2010 7:52 AM > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Macros in 2007 > > > I just tried to edit a macro for the first time since I've been in > 2007 > > and > > can't figure out how to open it for editing. 2003 was easy as it > opened a > > spreadsheet type window and I could add commands to it. The existing > > autoexec macro is simplistic in that it maximizes the window (that's > all > > it > > does). But I want to have it open a particular form as well. How do I > open > > it to edit? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwelz at hotmail.com Fri Mar 5 22:30:14 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 21:30:14 -0700 Subject: [AccessD] Shelling to a batch file In-Reply-To: <4B919BEB.17683.23B77865@stuart.lexacorp.com.pg> References: <4b88013e.15185e0a.43f1.1260@mx.google.com>, , <08AFA6CC06D34E7998A302494EB6624F@Server>, , , <4B919BEB.17683.23B77865@stuart.lexacorp.com.pg> Message-ID: I know I found it via Google. I've been doing file management since 1997. If you search ShellWait now you'll find dozens of copies of it now. I didn't write it but I'm pretty sure I didn't get it from this list. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: stuart at lexacorp.com.pg > To: accessd at databaseadvisors.com > Date: Sat, 6 Mar 2010 10:03:55 +1000 > Subject: Re: [AccessD] Shelling to a batch file > > That's the same as mine. I've had this in my toolbox for a long time and I can't remember > where I first came across it. > > Did I steal it from you, did you steal it from me or did we both steal it from someone else > independently? :-) > > -- > Stuart > _________________________________________________________________ Take your contacts everywhere http://go.microsoft.com/?linkid=9712959 From jwelz at hotmail.com Fri Mar 5 22:42:37 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 5 Mar 2010 21:42:37 -0700 Subject: [AccessD] OT: New Laptop In-Reply-To: <05802A9784D84B68B0F60836AD9544A4@HAL9005> References: ,<05802A9784D84B68B0F60836AD9544A4@HAL9005> Message-ID: I'll be ordering from Sony.ca when they are available on the site on Sunday. That's what they told me when I phoned them today. I'm not going to be totally greedy. The one I found on the US Sony site was $4500 for pre-order. I'll get 128 Gig drive and 2.66 I7 for what promises to be about $2000 CDN. No Verizon or GPS though. Some sites indicate the fanciest options won't be out until April in the US. He's not buying it. I am. They gave me a company Visa card that I use for travel and purchasing toys like the other 6 Vaios I bought after I got tired of the Dell XPS machines. You buy a new Vaio Z and you might talk him into swapping his new (my old one) Vaio with you. That's the best I can do for you. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 5 Mar 2010 16:03:59 -0800 > Subject: Re: [AccessD] OT: New Laptop > > Where'd you get it? And how much? And will he buy one for me too? (I'll > give him my old one as well.) > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, March 05, 2010 9:29 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: New Laptop > > Hi J?rgen > > That's a boss! > > /gustav > > > >>> jwelz at hotmail.com 05-03-2010 18:20 >>> > > I was told to source a new laptop for the boss so I spec'ed out something > sweet. He then told me to buy it and give him my old one... _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 From jimdettman at verizon.net Sat Mar 6 05:51:57 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 06 Mar 2010 06:51:57 -0500 Subject: [AccessD] Shelling to a batch file In-Reply-To: <08AFA6CC06D34E7998A302494EB6624F@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server> <08AFA6CC06D34E7998A302494EB6624F@Server> Message-ID: <582B49F9E65A485E8276068E6DB82805@XPS> Max, <> There is a difference. Your code uses the WaitForSingleObject API call, which pauses execution in VBA until the watched process moves into a signaled state (it releases all its threads). With my code, I'm just checking the status of a given process and code execution continues. So I loop and issue a DoEvents. I've never really used the capability, but I originally had intended to but in some type of animation/status notification, so I wanted code execution to continue. As for Stuart's point that it is a little extra work each time I use it, I suppose that's true, but then I'm not always using it to monitor a shelled process, so I keep the check separate. In general, I like to keep my building blocks of code as minimal as possible and combine when needed. I suppose I could easily do a ShellWait() type of thing, but then I would be repeating code I already have somewhere else and now I've got another procedure. Seems a lot simpler and more straight forward to me this way. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 05, 2010 5:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Shelling to a batch file Hmm, I have a similar one Jim, code below. Is there any value in one over the other do you think? Max Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject 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 WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = -1& Public Sub pfRunUntilFinished(ByVal strApplication As String) ' EG: Call pfRunUntilFinished("C:\AbyssWebServer\htdocs\MasterIndexCopy.bat") Dim lProcID As Long Dim hProc As Long ' Start the App lProcID = Shell("CMD /C " & strApplication, vbHide) DoEvents ' Wait for the App hProc = OpenProcess(SYNCHRONIZE, 0, lProcID) If hProc <> 0 Then WaitForSingleObject hProc, INFINITE CloseHandle hProc End If exithere: Exit Sub errhandler: MsgBox "pfRunUntilFinished - Errors for " & Err.Number & Err.Description Resume exithere End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 05, 2010 9:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Shelling to a batch file and for those folks that want to pause until the Shelled process has finished: Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As LongPrivate Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long ' Used for wait check. Const STILL_ACTIVE = &H103 Const PROCESS_QUERY_INFORMATION = &H400 Public Sub WaitWhileRunning(lngHWnd As Long) Dim lngExitCode As Long Dim lnghProcess As Long 10 lngExitCode = STILL_ACTIVE 20 lnghProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, lngHWnd) 30 If lnghProcess > 0 Then 40 Do While lngExitCode = STILL_ACTIVE 50 Call GetExitCodeProcess(lnghProcess, lngExitCode) 60 DoEvents 70 Loop 80 End If End Sub Call it like this: ' Execute 170 lngHWnd = Shell(strFTPScriptFile, vbHide) 180 WaitWhileRunning (lngHWnd) Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, March 05, 2010 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to a batch file Max, I use the SHELL command quite a bit to fire-up .bat and .exe files from Access. Below is a snippet of VBA code which you may find useful. I am not sure if this will help you or not, but I thought that I would share what I have. Please let me know if you have any questions. Thanks, Brad Marks '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Const Four_Quotes As String = """" Dim Var_String_For_Shell_Command Dim Var_Program_To_Be_Initiated Dim Var_Parm_Passed_To_Initiated_Program Var_Program_To_Be_Initiated = "C:\Documents and Settings\ABC\My Documents\InitXcel.bat" Var_Parm_Passed_To_Initiated_Program = "TEST-ABC" Var_String_For_Shell_Command = _ Four_Quotes _ & Var_Program_To_Be_Initiated _ & Four_Quotes _ & " " _ & Four_Quotes _ & Var_Parm_Passed_To_Initiated_Program _ & Four_Quotes MsgBox "Var_String_For_Shell_Command = " & vbLf & vbLf & Var_String_For_Shell_Command Shell Var_String_For_Shell_Command '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 04, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Shelling to a batch file Hi All, I am struggling to get the SHELL command to run a batch file from Access. Any clues or tips? The batch file in turn will run and executable in the same folder as the currentproject.path BUT this exe file is NOT installed so it is necessary to ensure that I first move to that folder and then run the batch.bat file. Eg: g\_MyTest is my currentproject.path within Access In there I have blat.exe which is not installed and which I do not want to install - so nothing in the Registry. I also have blat.bat which I have created from Access. I want to run the batch file which in turn will invoke the blat.exe and pass it parameters. The batch file runs fine if manually invoked. This is the last bit of running Blat from within Access. I will then post the lot to the List. Thanks Max This is where I am at: Private Sub sShell(sFile) ' sfile will be "blat.bat" const conQuote as string = """" Dim sPath As String ' move into the current folder because we havn't installed Blat.exe sPath = conQuote & " CD /D " & CurrentProject.Path & conQuote Debug.Print sPath ShellExecute Application.hWndAccessApp, "Open", sPath, "", "", vbNormalFocus ' now run the batch file 'sFile = conQuote & sFile & conQuote Debug.Print sFile ShellExecute Application.hWndAccessApp, "Open", sFile, "", "", vbNormalFocus End Sub -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Mar 6 09:17:51 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sat, 6 Mar 2010 08:17:51 -0700 Subject: [AccessD] Shelling to a batch file In-Reply-To: <582B49F9E65A485E8276068E6DB82805@XPS> References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server>, , <08AFA6CC06D34E7998A302494EB6624F@Server>, <582B49F9E65A485E8276068E6DB82805@XPS> Message-ID: I've never had much luck with doEvents in our Terminal Services environment. For example, I used it tu update the status bar when processing a number of files (say 100 invoice Word docs) that are written in sequence as a recordset is traversed. Generally the status bar shows progress nicely on a PC but just sort of stays put on our thin clients even with DoEvents. Polling in a loop is the kind of thing that I always worried would get me into trouble in a multi user environment. An example where shellWait shines is when I need to move a block of files into place and need to be sure that they are there before processing them. Our estimating data is housed in a header file, a sub folder and then 65 odd files in the sub folder and then there may be additional sub foldlers. That's the way of Pervasive data. I have a choice of creating an ODBC link to the file structure wherever it is or moving the files into an existing linked location and name them according to what the Access link expects. I used to do this using an API filecopy routine with an overwrite parameter by building arrays of file names using the DIR function and then creating the folders and copy/naming the files into the existing ODBC location. The process ran synchronously so the code that worked with the data in situ completed before processing the Pervasive data proceeded. By the way, moving the files is at least 30 times faster than creating the link on the fly. All that was replaced by a single call to shellWait calling Robocopy.exe (and then Name twice). Different strokes. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: jimdettman at verizon.net > To: accessd at databaseadvisors.com > Date: Sat, 6 Mar 2010 06:51:57 -0500 > Subject: Re: [AccessD] Shelling to a batch file > > Max, > > <> > > There is a difference. Your code uses the WaitForSingleObject API call, > which pauses execution in VBA until the watched process moves into a > signaled state (it releases all its threads). > > With my code, I'm just checking the status of a given process and code > execution continues. So I loop and issue a DoEvents. > > I've never really used the capability, but I originally had intended to > but in some type of animation/status notification, so I wanted code > execution to continue. > > As for Stuart's point that it is a little extra work each time I use it, I > suppose that's true, but then I'm not always using it to monitor a shelled > process, so I keep the check separate. > > In general, I like to keep my building blocks of code as minimal as > possible and combine when needed. > > I suppose I could easily do a ShellWait() type of thing, but then I would > be repeating code I already have somewhere else and now I've got another > procedure. Seems a lot simpler and more straight forward to me this way. > > Jim. _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 From max.wanadoo at gmail.com Sat Mar 6 12:04:49 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 6 Mar 2010 18:04:49 -0000 Subject: [AccessD] Shelling to a batch file In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server>, , <08AFA6CC06D34E7998A302494EB6624F@Server>, <582B49F9E65A485E8276068E6DB82805@XPS> Message-ID: Jurgen Have your tried frm.refresh : frm.repaint Sometimes when doevents doesn't doevents, the above does ;0) Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Saturday, March 06, 2010 3:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Shelling to a batch file I've never had much luck with doEvents in our Terminal Services environment. For example, I used it tu update the status bar when processing a number of files (say 100 invoice Word docs) that are written in sequence as a recordset is traversed. Generally the status bar shows progress nicely on a PC but just sort of stays put on our thin clients even with DoEvents. Polling in a loop is the kind of thing that I always worried would get me into trouble in a multi user environment. An example where shellWait shines is when I need to move a block of files into place and need to be sure that they are there before processing them. Our estimating data is housed in a header file, a sub folder and then 65 odd files in the sub folder and then there may be additional sub foldlers. That's the way of Pervasive data. I have a choice of creating an ODBC link to the file structure wherever it is or moving the files into an existing linked location and name them according to what the Access link expects. I used to do this using an API filecopy routine with an overwrite parameter by building arrays of file names using the DIR function and then creating the folders and copy/naming the files into the existing ODBC location. The process ran synchronously so the code that worked with the data in situ completed before processing the Pervasive data proceeded. By the way, moving the files is at least 30 times faster than creating the link on the fly. All that was replaced by a single call to shellWait calling Robocopy.exe (and then Name twice). Different strokes. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: jimdettman at verizon.net > To: accessd at databaseadvisors.com > Date: Sat, 6 Mar 2010 06:51:57 -0500 > Subject: Re: [AccessD] Shelling to a batch file > > Max, > > <> > > There is a difference. Your code uses the WaitForSingleObject API > call, which pauses execution in VBA until the watched process moves > into a signaled state (it releases all its threads). > > With my code, I'm just checking the status of a given process and code > execution continues. So I loop and issue a DoEvents. > > I've never really used the capability, but I originally had intended > to but in some type of animation/status notification, so I wanted code > execution to continue. > > As for Stuart's point that it is a little extra work each time I use > it, I suppose that's true, but then I'm not always using it to monitor > a shelled process, so I keep the check separate. > > In general, I like to keep my building blocks of code as minimal as > possible and combine when needed. > > I suppose I could easily do a ShellWait() type of thing, but then I > would be repeating code I already have somewhere else and now I've got > another procedure. Seems a lot simpler and more straight forward to me this way. > > Jim. _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Sat Mar 6 15:37:38 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sat, 6 Mar 2010 14:37:38 -0700 Subject: [AccessD] Shelling to a batch file - doevents In-Reply-To: References: <4b88013e.15185e0a.43f1.1260@mx.google.com><8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com><50E9BD7469A845D98B86E75B01EBB9F9@Server>, , , , <08AFA6CC06D34E7998A302494EB6624F@Server>, , <582B49F9E65A485E8276068E6DB82805@XPS>, , Message-ID: Max: I rarely use doevents. I used to initialize the status bar with a recordset count and then update the progress indicator with the absolute position in the recordset as the records are sequentially processed. Works great on a PC running a local FE. Refresh appears to go get the data again. Not overhead I wish to incur. Repaint? Haven't tried. Over VPN to thin client both are a lot of bandwith to pump over an internet connection just to get a little status bar progress indicator to move. On a workstation the doevents around 'accmdupdateprogress, lngI' or whatever the constant is to update the progress indiator in the status bar works fine and does not require a refresh or repaint. It's in the Terminal Services environment where it doesn't work for me and that's exactly where I avoid additional overhead. I still have the code in place with th doevents but all that happens is the progress bar initializes and is removed when the processes complete. The calls to update it go unheeded and I write it off as a Microsoft feature. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Sat, 6 Mar 2010 18:04:49 +0000 > Subject: Re: [AccessD] Shelling to a batch file > > Jurgen > > Have your tried frm.refresh : frm.repaint > Sometimes when doevents doesn't doevents, the above does ;0) > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Saturday, March 06, 2010 3:18 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Shelling to a batch file > > > I've never had much luck with doEvents in our Terminal Services environment. > For example, I used it tu update the status bar when processing a number of > files (say 100 invoice Word docs) that are written in sequence as a > recordset is traversed. Generally the status bar shows progress nicely on a > PC but just sort of stays put on our thin clients even with DoEvents. > Polling in a loop is the kind of thing that I always worried would get me > into trouble in a multi user environment. > > > > An example where shellWait shines is when I need to move a block of files > into place and need to be sure that they are there before processing them. > Our estimating data is housed in a header file, a sub folder and then 65 odd > files in the sub folder and then there may be additional sub foldlers. > That's the way of Pervasive data. I have a choice of creating an ODBC link > to the file structure wherever it is or moving the files into an existing > linked location and name them according to what the Access link expects. > > > > I used to do this using an API filecopy routine with an overwrite parameter > by building arrays of file names using the DIR function and then creating > the folders and copy/naming the files into the existing ODBC location. The > process ran synchronously so the code that worked with the data in situ > completed before processing the Pervasive data proceeded. > > > > By the way, moving the files is at least 30 times faster than creating the > link on the fly. > > > > All that was replaced by a single call to shellWait calling Robocopy.exe > (and then Name twice). > > > > Different strokes. > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Take your contacts everywhere http://go.microsoft.com/?linkid=9712959 From Gustav at cactus.dk Sat Mar 6 15:51:19 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Mar 2010 22:51:19 +0100 Subject: [AccessD] Shelling to a batch file - doevents Message-ID: Hi J?rgen No ... except for a little overhead, only the few pixels to paint the delta size of the progress bar should be sent and, if it's a solid bar, the amount of data will even be compressed a lot. /gustav >>> jwelz at hotmail.com 06-03-2010 22:37:38 >>> .. Over VPN to thin client both are a lot of bandwith to pump over an internet connection just to get a little status bar progress indicator to move. From jwelz at hotmail.com Sat Mar 6 21:07:19 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sat, 6 Mar 2010 20:07:19 -0700 Subject: [AccessD] Shelling to a batch file - doevents In-Reply-To: References: Message-ID: Gustav: It's the built in status bar progress indicator made of blue segments at the bottom left of the screen. I can certainly give the repaint a try. In any event, won't a refresh will still constitute a reload of the form data and load the connection to the data at the server side? Not the VPN screen update, but refreshing the form could still represent some CPU and data transfer work at the terminal server. I suppose I can give them both a try. My point was that the doEvents works to allow Access to update the progress indicator in the status bar without resorting to additional measures. It is necessary and sufficient to update the display on a workstation but is not enough via remote desktop. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Sat, 6 Mar 2010 22:51:19 +0100 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Shelling to a batch file - doevents > > Hi J?rgen > > No ... except for a little overhead, only the few pixels to paint the delta size of the progress bar should be sent and, if it's a solid bar, the amount of data will even be compressed a lot. > > /gustav > > > >>> jwelz at hotmail.com 06-03-2010 22:37:38 >>> > > .. Over VPN to thin client both are a lot of bandwith to pump over an internet connection just to get a little status bar progress indicator to move. _________________________________________________________________ Stay in touch. http://go.microsoft.com/?linkid=9712959 From jwcolby at colbyconsulting.com Sat Mar 6 21:10:20 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 06 Mar 2010 22:10:20 -0500 Subject: [AccessD] SQL Saturday Message-ID: <4B93191C.3000806@colbyconsulting.com> I went to the SQL Saturday 33 down in Charlotte today. As a non-dba it was mostly over my head but two sessions were most useful to me. One was on "the state of (solid state) disks" which was about where SSDs are today and what they can and cannot do for the database. The consensus is pretty much that they are not yet ready for prime time. That said the enterprise versions (read BIG BUCKS) are being used today! And yet for read-only applications they shine. Mine is a read-only application so I think I will proceed carefully on that front. The other session that was very interesting to me is SQL Server 2008 compression. This is currently only in Enterprise and (lucky for me) developer's edition (which is enterprise). I knew about the backup compression and started using it a couple of months ago now, but was not previously aware of the data compression side. So when I got home I started testing data compression on my databases. Interesting but probably not overly useful for me. The main table compressed about 50% IF I rearranged my CLUSTERED index to get all of the rows in Zip 5/4 order. However indexes ended up more like 18% or so. I had previously used just my int32 PKID as the key on the CLUSTERED index, but the compression was very slight with that. Reindexing on zip5/4/pkid bumped that up to 50%... for the main table. Sadly the indexes stayed well below 20%. SQL Server can compress at the row or page level and in order to get anything truly useful I had to go to the page. Even then the indexes just didn't compress spectacularly well. The problem is that they stay compressed even in memory. While that sounds good, and would be if you got a great compression ratio, it means overhead at the instant of use every time a value is used. 50% would probably be worthwhile. 18%... I am guessing not. I am not really knowledgeable enough to do good testing, but my gut tells me that 18% on indexes will be about the break even point or even less in terms of performance gain. The idea of course is that compression allows more data to move on/off the disk in a given time unit, and likewise allows more data to stay in memory at any given time. However that is at the expense of CPU overhead to do the read decompression as EACH DATA ITEM is used. Every time it is used. Indexes in particular would take a hit exactly because they are used so intensively for joins and where clauses. I had high hopes but I now doubt the usefulness in my application. If anyone out there is using this data compression and can chime in from your experience please do. One thing that MIGHT save the day is that apparently the granularity of the compression is fairly tight, i.e. you can specify that any given index is or is not compressed. It really sounds like a tuning nightmare to me. OTOH I do use the compression for backups, and am loving it. Very significant file size reduction AND speed improvements. any opinions out there? -- John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Sat Mar 6 23:15:09 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 7 Mar 2010 05:15:09 -0000 Subject: [AccessD] Shelling to a batch file - doevents In-Reply-To: References: Message-ID: <321B2F0ED2C64930AB38C7FCA530750F@Server> Jurgen/Gustav If you progress screen has a lot of data on it to refresh, the pop up a small STATUS screen with the progress bar on I and nothing else, then the Refresh won't affect the data on the main form. No? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Sunday, March 07, 2010 3:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Shelling to a batch file - doevents Gustav: It's the built in status bar progress indicator made of blue segments at the bottom left of the screen. I can certainly give the repaint a try. In any event, won't a refresh will still constitute a reload of the form data and load the connection to the data at the server side? Not the VPN screen update, but refreshing the form could still represent some CPU and data transfer work at the terminal server. I suppose I can give them both a try. My point was that the doEvents works to allow Access to update the progress indicator in the status bar without resorting to additional measures. It is necessary and sufficient to update the display on a workstation but is not enough via remote desktop. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Sat, 6 Mar 2010 22:51:19 +0100 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Shelling to a batch file - doevents > > Hi J?rgen > > No ... except for a little overhead, only the few pixels to paint the delta size of the progress bar should be sent and, if it's a solid bar, the amount of data will even be compressed a lot. > > /gustav > > > >>> jwelz at hotmail.com 06-03-2010 22:37:38 >>> > > .. Over VPN to thin client both are a lot of bandwith to pump over an internet connection just to get a little status bar progress indicator to move. _________________________________________________________________ Stay in touch. http://go.microsoft.com/?linkid=9712959 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gershontikunim at gmail.com Sat Mar 6 23:58:26 2010 From: gershontikunim at gmail.com (Gershon Markowitz) Date: Sun, 7 Mar 2010 07:58:26 +0200 Subject: [AccessD] upgrade problem to Access 2007 Message-ID: <005601cabdbb$35bea120$a13be360$@com> I recently upgraded my computer to windows 7 and office 2007. I have a small application written in access2003. Everything works in A2007, except for one small quirk which I can't figure out. When I enter the form, my first combo box gets focus. After I enter something in the combo box, the form goes out and returns information. At this point the combo box gets focus again. This works in xp-2003. But when I upgraded, focus is not set on the combo box. Interestingly, If I switch windows view, and then switch back to Access, the focus is there. I also noticed that as soon as I click on the taskbar to switch a window view, the cursor suddenly appears in the combo box. Has anyone seen this kind of behavior? Thanks Gershon Markowitz mailto:GershonTikunim at gmail.com From miscellany at mvps.org Sun Mar 7 00:10:37 2010 From: miscellany at mvps.org (Steve Schapel) Date: Sun, 07 Mar 2010 19:10:37 +1300 Subject: [AccessD] Macros in 2007 - SOLVED In-Reply-To: <000f01cabce2$f6ddeb10$e499c130$@net> References: <003401cabc94$ff567bc0$fe037340$@net> <1B1BFD51994743C6840F158AF91EB9C4@stevePC> <000f01cabce2$f6ddeb10$e499c130$@net> Message-ID: Kathryn, Double-clicking a query will open the query's datasheet, or run it if it is an action query. Double-clicking a report will open it in Print Preview or Report view (whatever is the default). So it seems to me that the right-click will be the best approach to the design view of these objects as well. In other words, macros are no different. Regards Steve -------------------------------------------------- From: "Kathryn Bassett" Sent: Saturday, March 06, 2010 5:10 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Macros in 2007 - SOLVED > Thanks a bunch. I never thought about right clicking. I kept trying to > double click like I do for queries and reports. > Kathryn > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd- >> bounces at databaseadvisors.com] On Behalf Of Steve Schapel >> Sent: Friday, March 05, 2010 11:16 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Macros in 2007 >> >> Kathryn, >> >> The macro editing window in Access 2007 does look a bit different, but >> is >> basically the same concept. >> >> I would normally get to it by right-clicking the macro in the >> Navigation >> Pane, and then select Design View from the pop-up menu. >> >> Regards >> Steve >> >> >> -------------------------------------------------- >> From: "Kathryn Bassett" >> Sent: Saturday, March 06, 2010 7:52 AM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: [AccessD] Macros in 2007 >> >> > I just tried to edit a macro for the first time since I've been in >> 2007 >> > and >> > can't figure out how to open it for editing. 2003 was easy as it >> opened a >> > spreadsheet type window and I could add commands to it. The existing >> > autoexec macro is simplistic in that it maximizes the window (that's >> all >> > it >> > does). But I want to have it open a particular form as well. How do I >> open >> > it to edit? >> > From accessd at shaw.ca Sun Mar 7 00:38:07 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 6 Mar 2010 22:38:07 -0800 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: <214BA953570842C1A9FA41AFC315879F@Server> References: <4b88013e.15185e0a.43f1.1260@mx.google.com> <8786a4c01003041123j723b58cdw65603c624437f9ce@mail.gmail.com> <50E9BD7469A845D98B86E75B01EBB9F9@Server> <4B9039F3.25959.1E50C936@stuart.lexacorp.com.pg> <214BA953570842C1A9FA41AFC315879F@Server> Message-ID: Max, you are ambitious. Well keep me posted on how it goes. BLAT is so fast as it is written in C, not even C++ like our Windows OS so it is really fast... I have found if BLAT doesn't work I immediately assume the hardware has failed. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 05, 2010 7:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using BLAT as an Emailer Well done, Jim, I am amazed at the wealth of options within Blat. Some of them I have no real idea of what they do, however I have just completed a FORM holding all the options (about 80'ish) and will be putting some code onto them for use in creating blat files for use and also integrting it into miniRelay to send direct from pc without an external smtp server. Pretty versatile product. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 05, 2010 5:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Using BLAT as an Emailer Max: I have just integrated BLAT and PDFCreator with a new client and now they, very seamlessly I might add, send any report or form, as a PDF attachment, to their clients. These are both a wonderful set of apps and easily ?to use. Jim ? ----- Original Message ----- From: Max Wanadoo Date: Thursday, March 4, 2010 4:00 pm Subject: [AccessD] Using BLAT as an Emailer To: 'Access Developers discussion and problem solving' > > Hi Guys, > > Here is an example of using BLAT as an Emailer. > Replaces CDO, Redemption, docmd.SendObject, Outlook, ClickYes, etc, > etc > > FREE. I have used it in 32bit and this example was just used in 64bit > so the program (blat) is pretty stable. > Example is tested in A2k3 > Example is tested using a know smtp server with login details. I have > not tried it in gmail. (yest) > > Replace smtp login details with your own. > > Max > > > Option Compare Database > Option Explicit > ' Example by Max.Wanadoo at gmail.com > ' Thanks to Stuart for helping to get the? batch call running > correctly. > > ' NOW:Forget? CDO. > ' Forget Redemption > ' Forget SendObject > ' We have BLAT. > ' Free and NO installation - just put a copy in your project folder > and build some text files. > > > ' Download Blat.zip from http://www.blat.net/ ' extract the contents > and place them in your app folder (we only need the blat.exe but the > rest will be worth reading. > ' you can then create a FORM where the user can enter variables.? We > will assume some constants,? but these can ' be variables as well. > ' You can also store them in tables if? you wish (I would) ' This is > just an exampls so that you understand how it works. > ' full details of all the options are in the downloaded text files > from blat.net > > ' HERE are the contents of the text files used as examples. You can > create these on the fly from within Access. > > ' Subject.txt = "Hello World" > ' Body.txt = This is a test email from Blat. > ' Recipients.txt = max.wanadoo at gmail.com, max.wanadoo at gmail.com, > max.wanadoo at gmail.com ' cc.txt = max.wandoo at gmail.com ' bcc.txt = > max.wanadoo at gmail.com ' Signature.txt = Max, Manager ' ps.txt = PS. To > unsubscribe send an email to helpmeplease at heaven.com > > > Private sBlatFile, sBlatLog > > Sub BlatExample() > 'place these varibles in a form? for the user? to enter. We will just > create them 'from here? to show how they fit together to make Blat > work. > ' What I have done is to put the contents of the various bits into > external text files and call them with these ' variables but you can > put them directly into the varible if you change the calling Blat > Switch where required. > ' See Blat file for documentation or drop me a line.? EG, - tf (to > file) becomes -to (address list to send to) ' The files I have used > are arbitarily named and I would antipate generting them from within > Access where appropriate. > > ??? If BlatCreate( _ > ?????? sFrom:="me at mydomain.org", _ > ?????? > sRecipients:="Recipients.txt", _ > ?????? sCC:="CC.txt", _ > ?????? sBCC:="bcc.txt", _ > ?????? sSubject:="subject.txt", _ > ?????? sBody:="Body.txt", _ > ?????? > sSMTPServer:="smtp.mydomain.org", _ > ?????? > sSMTPUser:="me at mydomain.org", _ > ?????? > sSMTPPwd:="mysecretsmtppassword", _ > ?????? > sSignature:="Signature.txt", _ > ?????? sPS:="ps.txt", _ > ?????? sAttach:="Attach.txt") = 0 Then > ??????? Call sShell(sBlatFile) > ??? End If > End Sub > > Function BlatCreate( _ > ???????? sFrom As > String, _ > ???????? sRecipients As > String, _ > ???????? sCC As String, _ > ???????? sBCC As String, _ > ???????? sSubject As > String, _ > ???????? sBody As > String, _ > ???????? sSMTPServer As > String, _ > ???????? sSMTPUser As > String, _ > ???????? sSMTPPwd As > String, _ > ???????? sSignature As > String, _ > ???????? sPS As String, _ > ???????? sAttach As > String) As Long > ??? On Error GoTo EH > > ??? Dim sContents As String > ??? sBlatFile = CurrentProject.Path & "\blat.bat" > ??? sBlatLog = CurrentProject.Path & "\blat.log" > > ??? sContents = "Blat.exe " & sBody & _ > ????????????? " -f " & sFrom & _ > ????????????? " -serverSMTP " & sSMTPServer & _ > ????????????? " -u " & sSMTPUser & _ > ????????????? " -pw " & sSMTPPwd & _ > ????????????? " -tf " & sRecipients & _ > ????????????? " -cf " & sCC & _ > ????????????? " -bf " & sBCC & _ > ????????????? " -sf " & sSubject & _ > ????????????? " -sig " & sSignature & _ > ????????????? " -ps " & sPS & _ > ????????????? " -attach " & sAttach > > ??? ' That is? all the varibles, we will now put our constants in, but > ??? ' if you want any of these to be changeable then just make them > variables. > ??? ' NB there are no cr/lf in this file. > ??? ' this example asks for a read? receipt, etc. > ??? > > ??? sContents = sContents & " -noh2 -d -r -dsn sfd -priority 1 -log > blat.log -timestamp -ti 60 -try 3 -hostname MyHostName" > > ??? Close 1 > ??? On Error Resume Next > ??? Kill sBlatFile > ??? Kill sBlatLog > ??? On Error GoTo EH > ??? Open sBlatFile For Output As #1 > ??? Print #1, sContents > ??? Close 1 > EX: > ??? Close 1 > ??? Exit Function > EH: > ??? BlatCreate = Err.Number > ??? Select Case BlatCreate > ??? Case Else > ??????? MsgBox "Error: " & > BlatCreate & vbCrLf & Err.Description > ??? End Select > ??? Resume EH > End Function > > Private Sub sShell(sFile) > ??? Dim strCurPath As String, strCurDrive As String, strProjPath As > String, strProjDrive As String > ??? ' get the project location > ??? strProjPath = CurrentProject.Path > ??? strProjDrive = Left(strProjPath, > 1):??? 'Debug.Print strProjDrive, > strProjPath > > ??? ' get the current location > ??? strCurPath = CurDir > ??? strCurDrive = Left(strCurPath, > 1):??? 'Debug.Print strCurDrive, > strCurPath > > ??? ' change the current location to the project location??? ' so that > we can run the blat.exe via? the blat.bat file > ??? ChDrive strProjDrive > ??? ChDir strProjPath > > ??? ' now run the batch file > ??? Shell sFile > > ??? ' now restore the current location back to what it was. > ??? ChDrive strCurDrive > ??? ChDir strCurPath > End Sub > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Mar 7 01:15:20 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 6 Mar 2010 23:15:20 -0800 Subject: [AccessD] upgrade problem to Access 2007 In-Reply-To: <005601cabdbb$35bea120$a13be360$@com> References: <005601cabdbb$35bea120$a13be360$@com> Message-ID: Gotta love 2007. I don't know, but 2007 is full of those 'quirks'. What's in the after update event? And where is the focus when the after update event completes? Maybe you could post the after update code. Can you force the behavior you want by adding a .SetFocus? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gershon Markowitz Sent: Saturday, March 06, 2010 9:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] upgrade problem to Access 2007 I recently upgraded my computer to windows 7 and office 2007. I have a small application written in access2003. Everything works in A2007, except for one small quirk which I can't figure out. When I enter the form, my first combo box gets focus. After I enter something in the combo box, the form goes out and returns information. At this point the combo box gets focus again. This works in xp-2003. But when I upgraded, focus is not set on the combo box. Interestingly, If I switch windows view, and then switch back to Access, the focus is there. I also noticed that as soon as I click on the taskbar to switch a window view, the cursor suddenly appears in the combo box. Has anyone seen this kind of behavior? Thanks Gershon Markowitz mailto:GershonTikunim at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Mar 7 02:48:25 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 Mar 2010 09:48:25 +0100 Subject: [AccessD] Shelling to a batch file - doevents Message-ID: Hi J?rgen Oh, I thought you were running some custom progress bar. In my experience, if the native progress bar runs in the status bar of Access, you can't do anything about it - except pressing Ctrl+Break if you are running a query manually. Whatever you ask your app to do, it will impose some load at server side - that's the basic idea of Citrix and other terminal services - the client only handles screen display and user interaction. One of the differences between Citrix and other terminal solutions including Remote Desktop is, as I have understood it, that it is better at compressing and optimizing data between server and client. My guess is that during this optimizing process, Citrix misses that the status bar has updated (it is not part of your nett application screen area), thus fails to send an updated screen display to your clients. As there is no event for progress-bar-updated you can't even do some API call to Citrix to force an update - and even if you could, that wouldn't help as Access will be busy with its single thread running the query. Seems like you are out of luck. Time to move to dotNet, Visual Studio and C#. I think you will love it as you have bumped nearly every corner and edge of Access through the years. As you are a man of the details you will appreciate to be able to tweak almost everything - as Charlotte wrote a while back, in dotNet you can do almost everything in not one but many ways so you can easily be caught in exploring options. /gustav >>> jwelz at hotmail.com 07-03-2010 04:07 >>> Gustav: It's the built in status bar progress indicator made of blue segments at the bottom left of the screen. I can certainly give the repaint a try. In any event, won't a refresh will still constitute a reload of the form data and load the connection to the data at the server side? Not the VPN screen update, but refreshing the form could still represent some CPU and data transfer work at the terminal server. I suppose I can give them both a try. My point was that the doEvents works to allow Access to update the progress indicator in the status bar without resorting to additional measures. It is necessary and sufficient to update the display on a workstation but is not enough via remote desktop. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Sat, 6 Mar 2010 22:51:19 +0100 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Shelling to a batch file - doevents > > Hi J?rgen > > No ... except for a little overhead, only the few pixels to paint the delta size of the progress bar should be sent and, if it's a solid bar, the amount of data will even be compressed a lot. > > /gustav > > > >>> jwelz at hotmail.com 06-03-2010 22:37:38 >>> > > .. Over VPN to thin client both are a lot of bandwith to pump over an internet connection just to get a little status bar progress indicator to move. From gershontikunim at gmail.com Sun Mar 7 09:20:24 2010 From: gershontikunim at gmail.com (Gershon Markowitz) Date: Sun, 7 Mar 2010 17:20:24 +0200 Subject: [AccessD] upgrade problem to Access 2007 In-Reply-To: References: <005601cabdbb$35bea120$a13be360$@com> Message-ID: <00f701cabe09$b735a610$25a0f230$@com> This is the code I have after my update: 'This section finds phone numbers If Me!cbophone.Value <> "" Then strSQL = strBasicSQL & strSQL1 & Me!cbophone.Value & strSQL2 & Me!cbophone.Value & _ strSQL3a & Me!cbophone.Value & strSQL4a & Me!cbophone.Value & _ strSQL3 & Me!cbophone.Value & strSQL4 & Me!cbophone.Value & strSQL5 Me!List0.RowSource = strSQL Me!List0.Requery Me!lblList.Caption = "madrich list for phone number " & Me!cbophone.Value Me!cbophone.SetFocus Cbophone is the combobox. When I also run it in debug mode, it hit's that statement and when I return to Access, it has focus. But when I run it without debug it doesn't get focus. And As I said earlier, if I switch windows when I come back to access it has focus. Thanks gm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 09:15 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] upgrade problem to Access 2007 Gotta love 2007. I don't know, but 2007 is full of those 'quirks'. What's in the after update event? And where is the focus when the after update event completes? Maybe you could post the after update code. Can you force the behavior you want by adding a .SetFocus? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gershon Markowitz Sent: Saturday, March 06, 2010 9:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] upgrade problem to Access 2007 I recently upgraded my computer to windows 7 and office 2007. I have a small application written in access2003. Everything works in A2007, except for one small quirk which I can't figure out. When I enter the form, my first combo box gets focus. After I enter something in the combo box, the form goes out and returns information. At this point the combo box gets focus again. This works in xp-2003. But when I upgraded, focus is not set on the combo box. Interestingly, If I switch windows view, and then switch back to Access, the focus is there. I also noticed that as soon as I click on the taskbar to switch a window view, the cursor suddenly appears in the combo box. Has anyone seen this kind of behavior? Thanks Gershon Markowitz mailto:GershonTikunim 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 robert at servicexp.com Sun Mar 7 09:39:31 2010 From: robert at servicexp.com (Robert) Date: Sun, 7 Mar 2010 10:39:31 -0500 Subject: [AccessD] upgrade problem to Access 2007 In-Reply-To: References: <005601cabdbb$35bea120$a13be360$@com> Message-ID: <000901cabe0c$621579a0$26406ce0$@com> This may actually be a Windows 7 Issue. I have been running an .mde (& .mdb) in Access 2007 for almost 2 years now on Windows XP machines without any of these strange bugs. All my troubles started when my program started to be deployed on Windows 7 Machines.. This bug is nothing compared to some of the others I've found. Windows 7 and Access 2007 .mde (& .mdb) have, IMO, major issues working together... The latest major one I've found is on a form/subforms where you have an OnCurrent event firing to simply requery a list box on the main form, causes (intermittently) the field the users is in to lockup and display "?Name" in the field. This throws some esoteric error. This problem does not exist with users on Windows XP Machines... Getting back to the point at hand.. :-) You may have to setfocus back on the combobox after the form fully loads and then sometime, for whatever reason, you may have to hit it twice.. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 2:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] upgrade problem to Access 2007 Gotta love 2007. I don't know, but 2007 is full of those 'quirks'. What's in the after update event? And where is the focus when the after update event completes? Maybe you could post the after update code. Can you force the behavior you want by adding a .SetFocus? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gershon Markowitz Sent: Saturday, March 06, 2010 9:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] upgrade problem to Access 2007 I recently upgraded my computer to windows 7 and office 2007. I have a small application written in access2003. Everything works in A2007, except for one small quirk which I can't figure out. When I enter the form, my first combo box gets focus. After I enter something in the combo box, the form goes out and returns information. At this point the combo box gets focus again. This works in xp-2003. But when I upgraded, focus is not set on the combo box. Interestingly, If I switch windows view, and then switch back to Access, the focus is there. I also noticed that as soon as I click on the taskbar to switch a window view, the cursor suddenly appears in the combo box. Has anyone seen this kind of behavior? Thanks Gershon Markowitz mailto:GershonTikunim 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 gershontikunim at gmail.com Sun Mar 7 10:46:10 2010 From: gershontikunim at gmail.com (Gershon Markowitz) Date: Sun, 7 Mar 2010 18:46:10 +0200 Subject: [AccessD] upgrade problem to Access 2007 In-Reply-To: <000901cabe0c$621579a0$26406ce0$@com> References: <005601cabdbb$35bea120$a13be360$@com> <000901cabe0c$621579a0$26406ce0$@com> Message-ID: <010c01cabe15$b259ca20$170d5e60$@com> What event get fired when the form reloads? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, March 07, 2010 17:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] upgrade problem to Access 2007 This may actually be a Windows 7 Issue. I have been running an .mde (& .mdb) in Access 2007 for almost 2 years now on Windows XP machines without any of these strange bugs. All my troubles started when my program started to be deployed on Windows 7 Machines.. This bug is nothing compared to some of the others I've found. Windows 7 and Access 2007 .mde (& .mdb) have, IMO, major issues working together... The latest major one I've found is on a form/subforms where you have an OnCurrent event firing to simply requery a list box on the main form, causes (intermittently) the field the users is in to lockup and display "?Name" in the field. This throws some esoteric error. This problem does not exist with users on Windows XP Machines... Getting back to the point at hand.. :-) You may have to setfocus back on the combobox after the form fully loads and then sometime, for whatever reason, you may have to hit it twice.. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 2:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] upgrade problem to Access 2007 Gotta love 2007. I don't know, but 2007 is full of those 'quirks'. What's in the after update event? And where is the focus when the after update event completes? Maybe you could post the after update code. Can you force the behavior you want by adding a .SetFocus? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gershon Markowitz Sent: Saturday, March 06, 2010 9:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] upgrade problem to Access 2007 I recently upgraded my computer to windows 7 and office 2007. I have a small application written in access2003. Everything works in A2007, except for one small quirk which I can't figure out. When I enter the form, my first combo box gets focus. After I enter something in the combo box, the form goes out and returns information. At this point the combo box gets focus again. This works in xp-2003. But when I upgraded, focus is not set on the combo box. Interestingly, If I switch windows view, and then switch back to Access, the focus is there. I also noticed that as soon as I click on the taskbar to switch a window view, the cursor suddenly appears in the combo box. Has anyone seen this kind of behavior? Thanks Gershon Markowitz mailto:GershonTikunim 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 dwaters at usinternet.com Sun Mar 7 11:08:46 2010 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Mar 2010 11:08:46 -0600 Subject: [AccessD] How to set up a license key for an Access FE/BE system? Message-ID: <28D02BF565934986B7568FE7E0F5EDF9@danwaters> I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan From jwelz at hotmail.com Sun Mar 7 11:35:26 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Sun, 7 Mar 2010 10:35:26 -0700 Subject: [AccessD] Shelling to a batch file - doevents In-Reply-To: References: Message-ID: Gustav: I believe you are right, time I moved on. Right now application development/maintenance is a part time job I fit in as other duties allow and I'd have to take learning on as a hobby which is pretty much the way I started all this. The odd emergency arises where I am the only person competent to efficiently deal with a specific IT problem. I've been tasked with finding my replacement for the past two years. The problem is that they are looking for someone who understands in house business processes and i've been unable to find someone willing or able to do what it takes. The management job in safety I've been given allows them to pay me several times over what I was previously paid and my boss sees the IT role as only an intermittent or part time job for me or any replacement. I wasn't seeking a solution for the progress bar but was merely giving an example of using ShellWait to force an external process to run synchronously with Access code and in that context, one point where I found DoEvents useful. Undoubtedly most listers are aware of the built in progress bar and I like to leverage built in capabilities and am familiar with the lack of responsiveness of the built in progress indicator when running queries. For those who haven't used it, the built in progress bar allows you to set a number representing 100% completion and allows a parameter to allow it to set where it is in relation to that completion number. It works great if Access does not commadeer its use when you want to use it. The only thing I've found is that I need to call DoEvents to allow Access to breath when it gets busy so it actually displays the bar update running on a workstation. All users now run the application from a remote site over a VPN connection and DoEvents is inadequate to update the bar. I've found and built pop up progress bar form examples but really can't be bothered. The hourglass mouse pointer works and most people have some concept of how long things take when they've used the application a few years. I hadn't bothered to log in to get the syntax I've been using but did so this morning. Given a long, lngC that represents a count of records, each of which require creation of a document or some other process that takes a fairly standard block of time per iteration: DoCmd.Hourglass True If not r.Eof r.MoveLast r.MoveFirst lngC = r.RecordCount Do While not r.Eof . . If lngC > 1 Then SysCmd acSysCmdInitMeter, lngC & " Documents selected for creation", lngC Else SysCmd acSysCmdInitMeter, "One Document selected for creation", lngC End If . .'build document . SysCmd acSysCmdUpdateMeter, lngC DoEvents r.MoveNext Loop 'exit routine DoCmd.Hourglass False SysCmd acSysCmdRemoveMeter Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Sun, 7 Mar 2010 09:48:25 +0100 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Shelling to a batch file - doevents > > Hi J?rgen > > Oh, I thought you were running some custom progress bar. > In my experience, if the native progress bar runs in the status bar of Access, you can't do anything about it - except pressing Ctrl+Break if you are running a query manually. > Whatever you ask your app to do, it will impose some load at server side - that's the basic idea of Citrix and other terminal services - the client only handles screen display and user interaction. One of the differences between Citrix and other terminal solutions including Remote Desktop is, as I have understood it, that it is better at compressing and optimizing data between server and client. > My guess is that during this optimizing process, Citrix misses that the status bar has updated (it is not part of your nett application screen area), thus fails to send an updated screen display to your clients. As there is no event for progress-bar-updated you can't even do some API call to Citrix to force an update - and even if you could, that wouldn't help as Access will be busy with its single thread running the query. Seems like you are out of luck. > > Time to move to dotNet, Visual Studio and C#. I think you will love it as you have bumped nearly every corner and edge of Access through the years. As you are a man of the details you will appreciate to be able to tweak almost everything - as Charlotte wrote a while back, in dotNet you can do almost everything in not one but many ways so you can easily be caught in exploring options. > > /gustav _________________________________________________________________ Take your contacts everywhere http://go.microsoft.com/?linkid=9712959 From rockysmolin at bchacc.com Sun Mar 7 12:08:55 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 7 Mar 2010 10:08:55 -0800 Subject: [AccessD] How to set up a license key for an Access FE/BE system? In-Reply-To: <28D02BF565934986B7568FE7E0F5EDF9@danwaters> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters> Message-ID: Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Mar 7 13:16:48 2010 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Mar 2010 13:16:48 -0600 Subject: [AccessD] How to set up a license key for an Access FE/BE system? In-Reply-To: References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters> Message-ID: <1F1DF4F849D04A219921B05552ABDBBB@danwaters> This sounds like you have the key creator routine and key reader routine written in VBA. But I think that your system is an mde? Is this correct? Mine is an mdb, so for me that method would be easily readable. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an Access FE/BE system? Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? 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 rockysmolin at bchacc.com Sun Mar 7 13:31:06 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 7 Mar 2010 11:31:06 -0800 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <1F1DF4F849D04A219921B05552ABDBBB@danwaters> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters> <1F1DF4F849D04A219921B05552ABDBBB@danwaters> Message-ID: <16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005> Well, you've got to hide it somehow, and there's no hiding in an mdb. Use vb and make a dll? Assuming that mde is not an option. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 11:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? This sounds like you have the key creator routine and key reader routine written in VBA. But I think that your system is an mde? Is this correct? Mine is an mdb, so for me that method would be easily readable. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an Access FE/BE system? Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sun Mar 7 14:06:24 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 7 Mar 2010 20:06:24 -0000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters><1F1DF4F849D04A219921B05552ABDBBB@danwaters> <16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005> Message-ID: <61DA2D9CDE254E72AE47CEF37785C494@Server> Umm, not so. You can hide as much stuff as you want by creating user properties in the BE mdb. Put your license details there plus all the expirary dates encoded, etc. All lateral stuff Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Well, you've got to hide it somehow, and there's no hiding in an mdb. Use vb and make a dll? Assuming that mde is not an option. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 11:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? This sounds like you have the key creator routine and key reader routine written in VBA. But I think that your system is an mde? Is this correct? Mine is an mdb, so for me that method would be easily readable. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an Access FE/BE system? Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sun Mar 7 15:03:43 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sun, 7 Mar 2010 14:03:43 -0700 Subject: [AccessD] The VBA stop command quit working Message-ID: <000001cabe39$abecb2f0$5bdea8c0@edz1> Yesterday, someone set me a .DOCX and I foolishly installed Microsoft's compatibility software, so I could read the DOCX. And of course, my Office 2000 started having problems, thus I de-installed the compatibility software. Well I develop mountains of VBA software. I use the debug breakpoints and the stop command to get into some running module to work on various problems. Both the VBA STOP command, and the Debug breakpoints work no longer function. Is there some setting, or something, I can do to allow said features to work again in Access 2000 ? Thanks. Sincerely, Ed Zuris. From stuart at lexacorp.com.pg Sun Mar 7 15:18:33 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 08 Mar 2010 07:18:33 +1000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <61DA2D9CDE254E72AE47CEF37785C494@Server> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005>, <61DA2D9CDE254E72AE47CEF37785C494@Server> Message-ID: <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg> But you can't "hide" the decryption/validation code in an MDB. There's no need to hide dates/licence details at all if they are encypted. It's the code that has to be hidden. -- Stuart On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > Umm, not so. > > You can hide as much stuff as you want by creating user properties in the BE > mdb. Put your license details there plus all the expirary dates encoded, > etc. > > All lateral stuff > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, March 07, 2010 7:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > Well, you've got to hide it somehow, and there's no hiding in an mdb. Use > vb and make a dll? Assuming that mde is not an option. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, March 07, 2010 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > This sounds like you have the key creator routine and key reader routine > written in VBA. But I think that your system is an mde? Is this correct? > > Mine is an mdb, so for me that method would be easily readable. > > Thanks! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, March 07, 2010 12:09 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an Access FE/BE > system? > > Dan: > > I did this for my manufacturing system. I have several pieces of > information stored in it and it's fifteen characters. I group them three at > a time for the user to input into the program to renew the license, so it > looks kind of like a Microsoft registration key. > > What I did for the expiration date was fairly simple - OK real simple - I > took the month of expiration and converted it to a letter, took the day of > expiration and converted it to two letters because it could go up to 31, and > converted the year of expiration to a letter as well, selecting a base year > far enough back so that the expiration year would not always be A or B but > would start further down the alphabet. And added constants to a couple of > these number to make decryption even harder - but that is probably overkill. > > I then scattered these three values in the key. I have a routine in the key > maker that creates a key, and a routine in the product which decodes the > key. > > Simple but effective enough for my purposes. There are several 'garbage' > characters in the key and those are generated randomly. So comparing keys > over a period of years (assuming anyone had that interest) would be > difficult. > > Finally, one of the characters is a checksum. > > > HTH > > Rocky > > P.S. Often wondered what scheme Microsoft was using and what information > they had encrypted in their key. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, March 07, 2010 9:09 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How to set up a license key for an Access FE/BE system? > > I'd like to learn how to set up an encrypted license key mechanism for a > customer using a split configuration system. The key would allow the system > to work until a specified date. > > What could I look at to learn how to do this? > > Thanks! > Dan > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From edzedz at comcast.net Sun Mar 7 15:22:34 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sun, 7 Mar 2010 14:22:34 -0700 Subject: [AccessD] The VBA stop command quit working In-Reply-To: <000001cabe39$abecb2f0$5bdea8c0@edz1> Message-ID: <000701cabe3c$4e0b2970$5bdea8c0@edz1> Sorry, my mistake. I had the Tools -> Start -> Use special-keys option checked. It is now working. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, March 07, 2010 2:04 PM To: accessd at databaseadvisors.com Subject: [AccessD] The VBA stop command quit working Yesterday, someone set me a .DOCX and I foolishly installed Microsoft's compatibility software, so I could read the DOCX. And of course, my Office 2000 started having problems, thus I de-installed the compatibility software. Well I develop mountains of VBA software. I use the debug breakpoints and the stop command to get into some running module to work on various problems. Both the VBA STOP command, and the Debug breakpoints work no longer function. Is there some setting, or something, I can do to allow said features to work again in Access 2000 ? Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sun Mar 7 15:36:45 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sun, 7 Mar 2010 14:36:45 -0700 Subject: [AccessD] How do you hide things from end users Message-ID: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> I am trying to hide some things from the end users. I have been turning things on and off in the Tools -> Startup menu. Yet there is still a command menu line at the top for File, Edit, View, etc. Is there anyway to hide that ? Also, using the Shift Key at application startup time. Is there a way to change that in case some end user knows about that feature ? Many Thanks. Sincerely, Ed Zuris. From max.wanadoo at gmail.com Sun Mar 7 15:50:40 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 7 Mar 2010 21:50:40 -0000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005>, <61DA2D9CDE254E72AE47CEF37785C494@Server> <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg> Message-ID: <711135C8538645D6A9C6CE5DCBA3173A@Server> What I would do is create the encrypt/decrypt code in a separate mdb, make it an mde and encrypt that itself. Rename it to something like, Mylibrary.lib The in the main mdb, go to references and set a reference to it. The code gets called to do its work but the user never gets to see the "inner workings". Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, March 07, 2010 9:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? But you can't "hide" the decryption/validation code in an MDB. There's no need to hide dates/licence details at all if they are encypted. It's the code that has to be hidden. -- Stuart On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > Umm, not so. > > You can hide as much stuff as you want by creating user properties in > the BE mdb. Put your license details there plus all the expirary > dates encoded, etc. > > All lateral stuff > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Sunday, March 07, 2010 7:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > Well, you've got to hide it somehow, and there's no hiding in an mdb. > Use vb and make a dll? Assuming that mde is not an option. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, March 07, 2010 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > This sounds like you have the key creator routine and key reader > routine written in VBA. But I think that your system is an mde? Is this correct? > > Mine is an mdb, so for me that method would be easily readable. > > Thanks! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Sunday, March 07, 2010 12:09 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] How to set up a license key for an Access FE/BE > system? > > Dan: > > I did this for my manufacturing system. I have several pieces of > information stored in it and it's fifteen characters. I group them > three at a time for the user to input into the program to renew the > license, so it looks kind of like a Microsoft registration key. > > What I did for the expiration date was fairly simple - OK real simple > - I took the month of expiration and converted it to a letter, took > the day of expiration and converted it to two letters because it could > go up to 31, and converted the year of expiration to a letter as well, > selecting a base year far enough back so that the expiration year > would not always be A or B but would start further down the alphabet. > And added constants to a couple of these number to make decryption even harder - but that is probably overkill. > > I then scattered these three values in the key. I have a routine in > the key maker that creates a key, and a routine in the product which > decodes the key. > > Simple but effective enough for my purposes. There are several 'garbage' > characters in the key and those are generated randomly. So comparing > keys over a period of years (assuming anyone had that interest) would > be difficult. > > Finally, one of the characters is a checksum. > > > HTH > > Rocky > > P.S. Often wondered what scheme Microsoft was using and what > information they had encrypted in their key. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, March 07, 2010 9:09 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How to set up a license key for an Access FE/BE system? > > I'd like to learn how to set up an encrypted license key mechanism for > a customer using a split configuration system. The key would allow > the system to work until a specified date. > > What could I look at to learn how to do this? > > Thanks! > Dan > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Mar 7 16:22:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 7 Mar 2010 14:22:07 -0800 Subject: [AccessD] How do you hide things from end users In-Reply-To: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> References: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> Message-ID: <5E46286DAC9C4C6AA1DBAD51A4C6D0EC@HAL9005> I believe it's the MenuBar property you want to set to false. In my mde startup I use: ChangeProperty "StartupForm", dbText, TheOpeningForm ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, False ChangeProperty "AllowBuiltInToolbars", dbBoolean, False ChangeProperty "AllowFullMenus", dbBoolean, False ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, False ChangeProperty "AllowBypassKey", dbBoolean, False ChangeProperty "MenuBar", dbBoolean, False Where Change Property is: Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Object, prp As Variant Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, March 07, 2010 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] How do you hide things from end users I am trying to hide some things from the end users. I have been turning things on and off in the Tools -> Startup menu. Yet there is still a command menu line at the top for File, Edit, View, etc. Is there anyway to hide that ? Also, using the Shift Key at application startup time. Is there a way to change that in case some end user knows about that feature ? Many Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Mar 7 16:23:39 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 08 Mar 2010 08:23:39 +1000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <711135C8538645D6A9C6CE5DCBA3173A@Server> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg>, <711135C8538645D6A9C6CE5DCBA3173A@Server> Message-ID: <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg> If you are going to the extent of a separate file, I'd just create a DLL in PowerBasic containing the crypto functions and call it when required. Much more secure, smaller, faster and doesn't need referencing. :-) -- Stuart On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > What I would do is create the encrypt/decrypt code in a separate mdb, make > it an mde and encrypt that itself. > Rename it to something like, Mylibrary.lib > > The in the main mdb, go to references and set a reference to it. The code > gets called to do its work but the user never gets to see the "inner > workings". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, March 07, 2010 9:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > But you can't "hide" the decryption/validation code in an MDB. There's no > need to hide dates/licence details at all if they are encypted. It's the > code that has to be hidden. > > -- > Stuart > > On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > > > Umm, not so. > > > > You can hide as much stuff as you want by creating user properties in > > the BE mdb. Put your license details there plus all the expirary > > dates encoded, etc. > > > > All lateral stuff > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 7:31 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > Well, you've got to hide it somehow, and there's no hiding in an mdb. > > Use vb and make a dll? Assuming that mde is not an option. > > > > R > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Sunday, March 07, 2010 11:17 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > This sounds like you have the key creator routine and key reader > > routine written in VBA. But I think that your system is an mde? Is this > correct? > > > > Mine is an mdb, so for me that method would be easily readable. > > > > Thanks! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 12:09 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an Access FE/BE > > system? > > > > Dan: > > > > I did this for my manufacturing system. I have several pieces of > > information stored in it and it's fifteen characters. I group them > > three at a time for the user to input into the program to renew the > > license, so it looks kind of like a Microsoft registration key. > > > > What I did for the expiration date was fairly simple - OK real simple > > - I took the month of expiration and converted it to a letter, took > > the day of expiration and converted it to two letters because it could > > go up to 31, and converted the year of expiration to a letter as well, > > selecting a base year far enough back so that the expiration year > > would not always be A or B but would start further down the alphabet. > > And added constants to a couple of these number to make decryption even > harder - but that is probably overkill. > > > > I then scattered these three values in the key. I have a routine in > > the key maker that creates a key, and a routine in the product which > > decodes the key. > > > > Simple but effective enough for my purposes. There are several 'garbage' > > characters in the key and those are generated randomly. So comparing > > keys over a period of years (assuming anyone had that interest) would > > be difficult. > > > > Finally, one of the characters is a checksum. > > > > > > HTH > > > > Rocky > > > > P.S. Often wondered what scheme Microsoft was using and what > > information they had encrypted in their key. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Sunday, March 07, 2010 9:09 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] How to set up a license key for an Access FE/BE system? > > > > I'd like to learn how to set up an encrypted license key mechanism for > > a customer using a split configuration system. The key would allow > > the system to work until a specified date. > > > > What could I look at to learn how to do this? > > > > Thanks! > > Dan > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sun Mar 7 16:27:34 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 7 Mar 2010 22:27:34 -0000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg>, <711135C8538645D6A9C6CE5DCBA3173A@Server> <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg> Message-ID: <9DF9C3B1AA57430C853F47DC5FC64325@Server> Exactly so. Easy to do either way. Easy peasy stuff. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, March 07, 2010 10:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? If you are going to the extent of a separate file, I'd just create a DLL in PowerBasic containing the crypto functions and call it when required. Much more secure, smaller, faster and doesn't need referencing. :-) -- Stuart On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > What I would do is create the encrypt/decrypt code in a separate mdb, > make it an mde and encrypt that itself. > Rename it to something like, Mylibrary.lib > > The in the main mdb, go to references and set a reference to it. The > code gets called to do its work but the user never gets to see the > "inner workings". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Sunday, March 07, 2010 9:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > But you can't "hide" the decryption/validation code in an MDB. > There's no need to hide dates/licence details at all if they are > encypted. It's the code that has to be hidden. > > -- > Stuart > > On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > > > Umm, not so. > > > > You can hide as much stuff as you want by creating user properties > > in the BE mdb. Put your license details there plus all the expirary > > dates encoded, etc. > > > > All lateral stuff > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 7:31 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an > > AccessFE/BE system? > > > > Well, you've got to hide it somehow, and there's no hiding in an mdb. > > Use vb and make a dll? Assuming that mde is not an option. > > > > R > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Sunday, March 07, 2010 11:17 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an > > AccessFE/BE system? > > > > This sounds like you have the key creator routine and key reader > > routine written in VBA. But I think that your system is an mde? Is > > this > correct? > > > > Mine is an mdb, so for me that method would be easily readable. > > > > Thanks! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 12:09 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an Access > > FE/BE system? > > > > Dan: > > > > I did this for my manufacturing system. I have several pieces of > > information stored in it and it's fifteen characters. I group them > > three at a time for the user to input into the program to renew the > > license, so it looks kind of like a Microsoft registration key. > > > > What I did for the expiration date was fairly simple - OK real > > simple > > - I took the month of expiration and converted it to a letter, took > > the day of expiration and converted it to two letters because it > > could go up to 31, and converted the year of expiration to a letter > > as well, selecting a base year far enough back so that the > > expiration year would not always be A or B but would start further down the alphabet. > > And added constants to a couple of these number to make decryption > > even > harder - but that is probably overkill. > > > > I then scattered these three values in the key. I have a routine in > > the key maker that creates a key, and a routine in the product which > > decodes the key. > > > > Simple but effective enough for my purposes. There are several 'garbage' > > characters in the key and those are generated randomly. So > > comparing keys over a period of years (assuming anyone had that > > interest) would be difficult. > > > > Finally, one of the characters is a checksum. > > > > > > HTH > > > > Rocky > > > > P.S. Often wondered what scheme Microsoft was using and what > > information they had encrypted in their key. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Sunday, March 07, 2010 9:09 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] How to set up a license key for an Access FE/BE system? > > > > I'd like to learn how to set up an encrypted license key mechanism > > for a customer using a split configuration system. The key would > > allow the system to work until a specified date. > > > > What could I look at to learn how to do this? > > > > Thanks! > > Dan > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Mar 7 16:34:24 2010 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Mar 2010 16:34:24 -0600 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <4B941829.19295.2D6CA64B@stuart.lexacorp.com.pg>, <711135C8538645D6A9C6CE5DCBA3173A@Server> <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg> Message-ID: <59F9A862A5AB460EAAD7C20DB87C03EB@danwaters> Where does PowerBasic come from? Free download? Could the same be done in VS? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, March 07, 2010 4:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? If you are going to the extent of a separate file, I'd just create a DLL in PowerBasic containing the crypto functions and call it when required. Much more secure, smaller, faster and doesn't need referencing. :-) -- Stuart On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > What I would do is create the encrypt/decrypt code in a separate mdb, make > it an mde and encrypt that itself. > Rename it to something like, Mylibrary.lib > > The in the main mdb, go to references and set a reference to it. The code > gets called to do its work but the user never gets to see the "inner > workings". > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, March 07, 2010 9:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > But you can't "hide" the decryption/validation code in an MDB. There's no > need to hide dates/licence details at all if they are encypted. It's the > code that has to be hidden. > > -- > Stuart > > On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > > > Umm, not so. > > > > You can hide as much stuff as you want by creating user properties in > > the BE mdb. Put your license details there plus all the expirary > > dates encoded, etc. > > > > All lateral stuff > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 7:31 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > Well, you've got to hide it somehow, and there's no hiding in an mdb. > > Use vb and make a dll? Assuming that mde is not an option. > > > > R > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Sunday, March 07, 2010 11:17 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > This sounds like you have the key creator routine and key reader > > routine written in VBA. But I think that your system is an mde? Is this > correct? > > > > Mine is an mdb, so for me that method would be easily readable. > > > > Thanks! > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin > > Sent: Sunday, March 07, 2010 12:09 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] How to set up a license key for an Access FE/BE > > system? > > > > Dan: > > > > I did this for my manufacturing system. I have several pieces of > > information stored in it and it's fifteen characters. I group them > > three at a time for the user to input into the program to renew the > > license, so it looks kind of like a Microsoft registration key. > > > > What I did for the expiration date was fairly simple - OK real simple > > - I took the month of expiration and converted it to a letter, took > > the day of expiration and converted it to two letters because it could > > go up to 31, and converted the year of expiration to a letter as well, > > selecting a base year far enough back so that the expiration year > > would not always be A or B but would start further down the alphabet. > > And added constants to a couple of these number to make decryption even > harder - but that is probably overkill. > > > > I then scattered these three values in the key. I have a routine in > > the key maker that creates a key, and a routine in the product which > > decodes the key. > > > > Simple but effective enough for my purposes. There are several 'garbage' > > characters in the key and those are generated randomly. So comparing > > keys over a period of years (assuming anyone had that interest) would > > be difficult. > > > > Finally, one of the characters is a checksum. > > > > > > HTH > > > > Rocky > > > > P.S. Often wondered what scheme Microsoft was using and what > > information they had encrypted in their key. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Sunday, March 07, 2010 9:09 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] How to set up a license key for an Access FE/BE system? > > > > I'd like to learn how to set up an encrypted license key mechanism for > > a customer using a split configuration system. The key would allow > > the system to work until a specified date. > > > > What could I look at to learn how to do this? > > > > Thanks! > > Dan > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Mar 7 16:35:35 2010 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Mar 2010 16:35:35 -0600 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <61DA2D9CDE254E72AE47CEF37785C494@Server> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters><1F1DF4F849D04A219921B05552ABDBBB@danwaters><16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005> <61DA2D9CDE254E72AE47CEF37785C494@Server> Message-ID: <31926474523E4C23B715BC28E480AF5A@danwaters> The BE I'm using is SQL Server. I need to preferably use a separate file - perhaps emailed to the administrator on a periodic basis or if I can log in then I'll install it myself. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, March 07, 2010 2:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Umm, not so. You can hide as much stuff as you want by creating user properties in the BE mdb. Put your license details there plus all the expirary dates encoded, etc. All lateral stuff Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Well, you've got to hide it somehow, and there's no hiding in an mdb. Use vb and make a dll? Assuming that mde is not an option. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 11:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? This sounds like you have the key creator routine and key reader routine written in VBA. But I think that your system is an mde? Is this correct? Mine is an mdb, so for me that method would be easily readable. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an Access FE/BE system? Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Mar 7 17:15:32 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 7 Mar 2010 15:15:32 -0800 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <31926474523E4C23B715BC28E480AF5A@danwaters> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters><1F1DF4F849D04A219921B05552ABDBBB@danwaters><16BC1C2D372A4F0DB5C27FD6C15A46C7@HAL9005><61DA2D9CDE254E72AE47CEF37785C494@Server> <31926474523E4C23B715BC28E480AF5A@danwaters> Message-ID: <71623FF9FF5C42CBB3ADAE622F1594F1@HAL9005> I put the license key and software in the front end. 60 days before expiration I pop up a nag message when the app is started telling them how many days are left and giving them a place to enter the new key. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? The BE I'm using is SQL Server. I need to preferably use a separate file - perhaps emailed to the administrator on a periodic basis or if I can log in then I'll install it myself. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, March 07, 2010 2:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Umm, not so. You can hide as much stuff as you want by creating user properties in the BE mdb. Put your license details there plus all the expirary dates encoded, etc. All lateral stuff Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Well, you've got to hide it somehow, and there's no hiding in an mdb. Use vb and make a dll? Assuming that mde is not an option. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 11:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? This sounds like you have the key creator routine and key reader routine written in VBA. But I think that your system is an mde? Is this correct? Mine is an mdb, so for me that method would be easily readable. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 12:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to set up a license key for an Access FE/BE system? Dan: I did this for my manufacturing system. I have several pieces of information stored in it and it's fifteen characters. I group them three at a time for the user to input into the program to renew the license, so it looks kind of like a Microsoft registration key. What I did for the expiration date was fairly simple - OK real simple - I took the month of expiration and converted it to a letter, took the day of expiration and converted it to two letters because it could go up to 31, and converted the year of expiration to a letter as well, selecting a base year far enough back so that the expiration year would not always be A or B but would start further down the alphabet. And added constants to a couple of these number to make decryption even harder - but that is probably overkill. I then scattered these three values in the key. I have a routine in the key maker that creates a key, and a routine in the product which decodes the key. Simple but effective enough for my purposes. There are several 'garbage' characters in the key and those are generated randomly. So comparing keys over a period of years (assuming anyone had that interest) would be difficult. Finally, one of the characters is a checksum. HTH Rocky P.S. Often wondered what scheme Microsoft was using and what information they had encrypted in their key. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, March 07, 2010 9:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to set up a license key for an Access FE/BE system? I'd like to learn how to set up an encrypted license key mechanism for a customer using a split configuration system. The key would allow the system to work until a specified date. What could I look at to learn how to do this? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Mar 7 17:24:25 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 08 Mar 2010 09:24:25 +1000 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: <59F9A862A5AB460EAAD7C20DB87C03EB@danwaters> References: <28D02BF565934986B7568FE7E0F5EDF9@danwaters>, <4B94276B.32262.2DA84098@stuart.lexacorp.com.pg>, <59F9A862A5AB460EAAD7C20DB87C03EB@danwaters> Message-ID: <4B9435A9.30629.2DDFE3F9@stuart.lexacorp.com.pg> It comes from http://www.powerbasic.com It is commercial software. However they have a great deal on at the moment on the previous version.. The current version 9 sells for $199. Version 8 is available as "Classic Powerbasic". It normally sells for $99 but is currently on special for $49. It probably could be done in VS - but not nearly as easily. -- Stuart On 7 Mar 2010 at 16:34, Dan Waters wrote: > Where does PowerBasic come from? Free download? > > Could the same be done in VS? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, March 07, 2010 4:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > If you are going to the extent of a separate file, I'd just create a DLL in > PowerBasic > containing the crypto functions and call it when required. Much more > secure, smaller, faster > and doesn't need referencing. :-) > > -- > Stuart > > On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > > > What I would do is create the encrypt/decrypt code in a separate mdb, make > > it an mde and encrypt that itself. > > Rename it to something like, Mylibrary.lib > > > > The in the main mdb, go to references and set a reference to it. The code > > gets called to do its work but the user never gets to see the "inner > > workings". > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > > Sent: Sunday, March 07, 2010 9:19 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > But you can't "hide" the decryption/validation code in an MDB. There's no > > need to hide dates/licence details at all if they are encypted. It's the > > code that has to be hidden. > > > > -- > > Stuart > > > > On 7 Mar 2010 at 20:06, Max Wanadoo wrote: > > > > > Umm, not so. > > > > > > You can hide as much stuff as you want by creating user properties in > > > the BE mdb. Put your license details there plus all the expirary > > > dates encoded, etc. > > > > > > All lateral stuff > > > > > > Max > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > > Smolin > > > Sent: Sunday, March 07, 2010 7:31 PM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > > system? > > > > > > Well, you've got to hide it somehow, and there's no hiding in an mdb. > > > Use vb and make a dll? Assuming that mde is not an option. > > > > > > R > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > > Sent: Sunday, March 07, 2010 11:17 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > > system? > > > > > > This sounds like you have the key creator routine and key reader > > > routine written in VBA. But I think that your system is an mde? Is > this > > correct? > > > > > > Mine is an mdb, so for me that method would be easily readable. > > > > > > Thanks! > > > Dan > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > > Smolin > > > Sent: Sunday, March 07, 2010 12:09 PM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] How to set up a license key for an Access FE/BE > > > system? > > > > > > Dan: > > > > > > I did this for my manufacturing system. I have several pieces of > > > information stored in it and it's fifteen characters. I group them > > > three at a time for the user to input into the program to renew the > > > license, so it looks kind of like a Microsoft registration key. > > > > > > What I did for the expiration date was fairly simple - OK real simple > > > - I took the month of expiration and converted it to a letter, took > > > the day of expiration and converted it to two letters because it could > > > go up to 31, and converted the year of expiration to a letter as well, > > > selecting a base year far enough back so that the expiration year > > > would not always be A or B but would start further down the alphabet. > > > And added constants to a couple of these number to make decryption even > > harder - but that is probably overkill. > > > > > > I then scattered these three values in the key. I have a routine in > > > the key maker that creates a key, and a routine in the product which > > > decodes the key. > > > > > > Simple but effective enough for my purposes. There are several > 'garbage' > > > characters in the key and those are generated randomly. So comparing > > > keys over a period of years (assuming anyone had that interest) would > > > be difficult. > > > > > > Finally, one of the characters is a checksum. > > > > > > > > > HTH > > > > > > Rocky > > > > > > P.S. Often wondered what scheme Microsoft was using and what > > > information they had encrypted in their key. > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > > Sent: Sunday, March 07, 2010 9:09 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: [AccessD] How to set up a license key for an Access FE/BE > system? > > > > > > I'd like to learn how to set up an encrypted license key mechanism for > > > a customer using a split configuration system. The key would allow > > > the system to work until a specified date. > > > > > > What could I look at to learn how to do this? > > > > > > Thanks! > > > Dan > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 8 01:26:21 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Mar 2010 08:26:21 +0100 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? Message-ID: Hi Rocky Or for this simple task, at zero cost, FreeBASIC: http://www.freebasic.net/index.php/about /gustav >>> stuart at lexacorp.com.pg 08-03-2010 00:24 >>> It comes from http://www.powerbasic.com It is commercial software. However they have a great deal on at the moment on the previous version.. The current version 9 sells for $199. Version 8 is available as "Classic Powerbasic". It normally sells for $99 but is currently on special for $49. It probably could be done in VS - but not nearly as easily. -- Stuart On 7 Mar 2010 at 16:34, Dan Waters wrote: > Where does PowerBasic come from? Free download? > > Could the same be done in VS? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, March 07, 2010 4:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > If you are going to the extent of a separate file, I'd just create a DLL in PowerBasic > containing the crypto functions and call it when required. Much more secure, smaller, faster > and doesn't need referencing. :-) > > -- > Stuart > > On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > > > What I would do is create the encrypt/decrypt code in a separate mdb, make > > it an mde and encrypt that itself. > > Rename it to something like, Mylibrary.lib > > > > The in the main mdb, go to references and set a reference to it. The code > > gets called to do its work but the user never gets to see the "inner workings". > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > > Sent: Sunday, March 07, 2010 9:19 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > But you can't "hide" the decryption/validation code in an MDB. There's no > > need to hide dates/licence details at all if they are encypted. It's the > > code that has to be hidden. > > > > -- > > Stuart From rockysmolin at bchacc.com Mon Mar 8 08:23:21 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 8 Mar 2010 06:23:21 -0800 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? In-Reply-To: References: Message-ID: And makes a dll as well as an exe? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, March 07, 2010 11:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Hi Rocky Or for this simple task, at zero cost, FreeBASIC: http://www.freebasic.net/index.php/about /gustav >>> stuart at lexacorp.com.pg 08-03-2010 00:24 >>> It comes from http://www.powerbasic.com It is commercial software. However they have a great deal on at the moment on the previous version.. The current version 9 sells for $199. Version 8 is available as "Classic Powerbasic". It normally sells for $99 but is currently on special for $49. It probably could be done in VS - but not nearly as easily. -- Stuart On 7 Mar 2010 at 16:34, Dan Waters wrote: > Where does PowerBasic come from? Free download? > > Could the same be done in VS? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, March 07, 2010 4:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > system? > > If you are going to the extent of a separate file, I'd just create a DLL in PowerBasic > containing the crypto functions and call it when required. Much more secure, smaller, faster > and doesn't need referencing. :-) > > -- > Stuart > > On 7 Mar 2010 at 21:50, Max Wanadoo wrote: > > > What I would do is create the encrypt/decrypt code in a separate mdb, make > > it an mde and encrypt that itself. > > Rename it to something like, Mylibrary.lib > > > > The in the main mdb, go to references and set a reference to it. The code > > gets called to do its work but the user never gets to see the "inner workings". > > > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > > Sent: Sunday, March 07, 2010 9:19 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE > > system? > > > > But you can't "hide" the decryption/validation code in an MDB. There's no > > need to hide dates/licence details at all if they are encypted. It's the > > code that has to be hidden. > > > > -- > > Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 8 08:37:19 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Mar 2010 15:37:19 +0100 Subject: [AccessD] How to set up a license key for an AccessFE/BE system? Message-ID: Hi Rocky Yes, I once made one for fun, but that's all. Haven't had any other use for it. /gustav >>> rockysmolin at bchacc.com 08-03-2010 15:23 >>> And makes a dll as well as an exe? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, March 07, 2010 11:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] How to set up a license key for an AccessFE/BE system? Hi Rocky Or for this simple task, at zero cost, FreeBASIC: http://www.freebasic.net/index.php/about /gustav From edzedz at comcast.net Mon Mar 8 09:27:13 2010 From: edzedz at comcast.net (Edward Zuris) Date: Mon, 8 Mar 2010 08:27:13 -0700 Subject: [AccessD] How do you hide things from end users In-Reply-To: <5E46286DAC9C4C6AA1DBAD51A4C6D0EC@HAL9005> Message-ID: <000101cabed3$d4301be0$5bdea8c0@edz1> Thanks Rocky. I hope this works on Access 2000 MDB as well. BTW, how do you undo the changes to fix bugs ? Once again thanks. Sincerely, Ed Zuris. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 3:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users I believe it's the MenuBar property you want to set to false. In my mde startup I use: ChangeProperty "StartupForm", dbText, TheOpeningForm ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, False ChangeProperty "AllowBuiltInToolbars", dbBoolean, False ChangeProperty "AllowFullMenus", dbBoolean, False ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, False ChangeProperty "AllowBypassKey", dbBoolean, False ChangeProperty "MenuBar", dbBoolean, False Where Change Property is: Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Object, prp As Variant Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, March 07, 2010 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] How do you hide things from end users I am trying to hide some things from the end users. I have been turning things on and off in the Tools -> Startup menu. Yet there is still a command menu line at the top for File, Edit, View, etc. Is there anyway to hide that ? Also, using the Shift Key at application startup time. Is there a way to change that in case some end user knows about that feature ? Many Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Mon Mar 8 09:46:43 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Mon, 8 Mar 2010 09:46:43 -0600 Subject: [AccessD] OT: The Trojan Horse Message-ID: <7c7841601003080746k6cdfdb23x3b46ef66806ccc9a@mail.gmail.com> http://www.sqlservercentral.com/articles/Raw+Materials/69712/ From rockysmolin at bchacc.com Mon Mar 8 10:12:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 8 Mar 2010 08:12:31 -0800 Subject: [AccessD] How do you hide things from end users In-Reply-To: <000101cabed3$d4301be0$5bdea8c0@edz1> References: <5E46286DAC9C4C6AA1DBAD51A4C6D0EC@HAL9005> <000101cabed3$d4301be0$5bdea8c0@edz1> Message-ID: <9AD64D8A97AF422F9511F9A2A2DD3961@HAL9005> I have invisible (transparent background, no border) text boxes in the upper left and right corners. When I click either one, the focus shifts to a second invisible text box where I enter a code. The left one locks the database, the right one unlocks it. The only indication to the user that there's a box there is if they pass their mouse over it and the pointer changes to the insertion icon. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Monday, March 08, 2010 7:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users Thanks Rocky. I hope this works on Access 2000 MDB as well. BTW, how do you undo the changes to fix bugs ? Once again thanks. Sincerely, Ed Zuris. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 3:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users I believe it's the MenuBar property you want to set to false. In my mde startup I use: ChangeProperty "StartupForm", dbText, TheOpeningForm ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, False ChangeProperty "AllowBuiltInToolbars", dbBoolean, False ChangeProperty "AllowFullMenus", dbBoolean, False ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, False ChangeProperty "AllowBypassKey", dbBoolean, False ChangeProperty "MenuBar", dbBoolean, False Where Change Property is: Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Object, prp As Variant Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, March 07, 2010 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] How do you hide things from end users I am trying to hide some things from the end users. I have been turning things on and off in the Tools -> Startup menu. Yet there is still a command menu line at the top for File, Edit, View, etc. Is there anyway to hide that ? Also, using the Shift Key at application startup time. Is there a way to change that in case some end user knows about that feature ? Many Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Mon Mar 8 10:21:00 2010 From: edzedz at comcast.net (Edward Zuris) Date: Mon, 8 Mar 2010 09:21:00 -0700 Subject: [AccessD] How do you hide things from end users In-Reply-To: <9AD64D8A97AF422F9511F9A2A2DD3961@HAL9005> Message-ID: <000801cabedb$57b90920$5bdea8c0@edz1> Good idea. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 08, 2010 9:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users I have invisible (transparent background, no border) text boxes in the upper left and right corners. When I click either one, the focus shifts to a second invisible text box where I enter a code. The left one locks the database, the right one unlocks it. The only indication to the user that there's a box there is if they pass their mouse over it and the pointer changes to the insertion icon. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Monday, March 08, 2010 7:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users Thanks Rocky. I hope this works on Access 2000 MDB as well. BTW, how do you undo the changes to fix bugs ? Once again thanks. Sincerely, Ed Zuris. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 07, 2010 3:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do you hide things from end users I believe it's the MenuBar property you want to set to false. In my mde startup I use: ChangeProperty "StartupForm", dbText, TheOpeningForm ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, False ChangeProperty "AllowBuiltInToolbars", dbBoolean, False ChangeProperty "AllowFullMenus", dbBoolean, False ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, False ChangeProperty "AllowBypassKey", dbBoolean, False ChangeProperty "MenuBar", dbBoolean, False Where Change Property is: Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Object, prp As Variant Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function HTH Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, March 07, 2010 1:37 PM To: accessd at databaseadvisors.com Subject: [AccessD] How do you hide things from end users I am trying to hide some things from the end users. I have been turning things on and off in the Tools -> Startup menu. Yet there is still a command menu line at the top for File, Edit, View, etc. Is there anyway to hide that ? Also, using the Shift Key at application startup time. Is there a way to change that in case some end user knows about that feature ? Many Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Mar 8 10:34:47 2010 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 8 Mar 2010 10:34:47 -0600 Subject: [AccessD] How do you hide things from end users In-Reply-To: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> References: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> Message-ID: Have a look at Tools/Startup You have to be careful you don't lock yourself out theough. So doing it in code is better with a hidden or password protected option to turn the options back on to allow the things you are taking away from most users. I used to put the "allow stuff again" on a doubleclick event on a label someplace on the form. I see Rocky sent you a good list to try via code. GK On Sun, Mar 7, 2010 at 3:36 PM, Edward Zuris wrote: > > ?I am trying to hide some things from the end users. > > ?I have been turning things on and off in the > ?Tools -> Startup menu. > > ?Yet there is still a command menu line at the top > ?for File, Edit, View, etc. > > ?Is there anyway to hide that ? > > ?Also, using the Shift Key at application startup > ?time. ?Is there a way to change that in case some > ?end user knows about that feature ? > > ?Many Thanks. > > ?Sincerely, > ?Ed Zuris. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Mon Mar 8 10:52:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 08 Mar 2010 11:52:11 -0500 Subject: [AccessD] How do you hide things from end users In-Reply-To: References: <000001cabe3e$49b9e5d0$5bdea8c0@edz1> Message-ID: <4B952B3B.2040309@colbyconsulting.com> I wrote a tool to allow you to see and unlock all of those things from outside of the database. John W. Colby www.ColbyConsulting.com Gary Kjos wrote: > Have a look at Tools/Startup You have to be careful you don't lock > yourself out theough. So doing it in code is better with a hidden or > password protected option to turn the options back on to allow the > things you are taking away from most users. I used to put the "allow > stuff again" on a doubleclick event on a label someplace on the form. > > I see Rocky sent you a good list to try via code. > > GK > > On Sun, Mar 7, 2010 at 3:36 PM, Edward Zuris wrote: >> I am trying to hide some things from the end users. >> >> I have been turning things on and off in the >> Tools -> Startup menu. >> >> Yet there is still a command menu line at the top >> for File, Edit, View, etc. >> >> Is there anyway to hide that ? >> >> Also, using the Shift Key at application startup >> time. Is there a way to change that in case some >> end user knows about that feature ? >> >> Many Thanks. >> >> Sincerely, >> Ed Zuris. >> >> -- >> 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 Mar 8 11:50:43 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Mar 2010 12:50:43 -0500 Subject: [AccessD] Access + SubVersion Message-ID: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Does anyone here use SubVersion as your VCS from Access? I used to use VSS and was satisfied with it, but it seems this product has gone away in favour of the Team stuff. I can't afford that upgrade, and so am wondering about free alternatives such as SubVersion. Does anyone here use this in practise? How ought one store a Version into SubVersion and then name it and be able to Restore any Version long after it was captured and stored? Any bugaboos in using this method are graciously invited. A. From mikedorism at verizon.net Mon Mar 8 12:57:01 2010 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 08 Mar 2010 13:57:01 -0500 Subject: [AccessD] Access + SubVersion In-Reply-To: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: We use Subversion for this purpose but we don't alter the database name in any way. Subversion assigns a unique "point in time" number to each commit batch. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 08, 2010 12:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access + SubVersion Does anyone here use SubVersion as your VCS from Access? I used to use VSS and was satisfied with it, but it seems this product has gone away in favour of the Team stuff. I can't afford that upgrade, and so am wondering about free alternatives such as SubVersion. Does anyone here use this in practise? How ought one store a Version into SubVersion and then name it and be able to Restore any Version long after it was captured and stored? Any bugaboos in using this method are graciously invited. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 8 12:57:56 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 8 Mar 2010 10:57:56 -0800 Subject: [AccessD] So much out there (was: Sql password) In-Reply-To: References: Message-ID: <2BFCC6A657EE4D969BC924794C1EE22A@creativesystemdesigns.com> Hi Guys: There is also another FrameWork that a friend has been using and swears by the product. It is another ASP.Net Windows/Linux visual developer: http://dev.dejardin.org/home The most interesting thing about each one of these type of products is that they have an excellent cache of great JavaScript coding and well as a variety of AJAX implementations....enough to entertain any geek for a few evenings. It does sound good but I have not used it...yet. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 05, 2010 12:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] So much out there (was: Sql password) Hi Max Joomla? That's PHP stuff. Do you really want to mess with that? You missed Unbraco: http://umbraco.org/ which MS has chosen to drive the new ASP.NET site. /gustav >>> max.wanadoo at gmail.com 05-03-2010 01:02 >>> Interesting, Thanks David. I am currently looking at LifeRay CMS systems. Last week end I looked at Dotnetnuke, Joomlia, Urbunto, Stripes, mojoportal and a host of others. Phew, so much out there. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 8 13:10:31 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Mar 2010 14:10:31 -0500 Subject: [AccessD] Access + SubVersion In-Reply-To: References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: <29f585dd1003081110i4295c189xe84dcda7400171b5@mail.gmail.com> Thanks Doris but I don't think that you answered my question quite in the way I hoped. Do you simply check in the entire MDB or do you export all its objects first and then check them all in individually or by batch? That's what I'm puzzling over. And in either case, can you do a Version Compare? Thanks, Arthur On Mon, Mar 8, 2010 at 1:57 PM, Doris Manning wrote: > We use Subversion for this purpose but we don't alter the database name in > any way. Subversion assigns a unique "point in time" number to each commit > batch. > > Doris Manning > Database Administrator > Hargrove Inc. > From cfoust at infostatsystems.com Mon Mar 8 14:44:41 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Mar 2010 14:44:41 -0600 Subject: [AccessD] Access + SubVersion In-Reply-To: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: We don't use SubVersion, but we moved from VSS to SourceGear. We looked at the Team stuff and decided it required too darn much effort to implement for a small team. Plus it required SharePoint services which is a headache in itself. Out project manager explored it and decided we simply didn't have time for that kind of complexity. SourceGear is a no-brainer migration from VSS and has some nice features VSS doesn't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 08, 2010 9:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access + SubVersion Does anyone here use SubVersion as your VCS from Access? I used to use VSS and was satisfied with it, but it seems this product has gone away in favour of the Team stuff. I can't afford that upgrade, and so am wondering about free alternatives such as SubVersion. Does anyone here use this in practise? How ought one store a Version into SubVersion and then name it and be able to Restore any Version long after it was captured and stored? Any bugaboos in using this method are graciously invited. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 8 14:46:41 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Mar 2010 14:46:41 -0600 Subject: [AccessD] Access + SubVersion In-Reply-To: <29f585dd1003081110i4295c189xe84dcda7400171b5@mail.gmail.com> References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> <29f585dd1003081110i4295c189xe84dcda7400171b5@mail.gmail.com> Message-ID: My mom's name was Doris, does that count? LOL I suspect the simple answer is that if there's a client that runs in Access, you create a project from Access. At least, that's the way it works in VSS and in SourceGear Vault. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 08, 2010 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access + SubVersion Thanks Doris but I don't think that you answered my question quite in the way I hoped. Do you simply check in the entire MDB or do you export all its objects first and then check them all in individually or by batch? That's what I'm puzzling over. And in either case, can you do a Version Compare? Thanks, Arthur On Mon, Mar 8, 2010 at 1:57 PM, Doris Manning wrote: > We use Subversion for this purpose but we don't alter the database name in > any way. Subversion assigns a unique "point in time" number to each commit > batch. > > Doris Manning > Database Administrator > Hargrove Inc. > -- 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 Mar 8 14:54:51 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Mar 2010 15:54:51 -0500 Subject: [AccessD] Access + SubVersion In-Reply-To: References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: <29f585dd1003081254p6e381b5fna9215108c5d2c242@mail.gmail.com> I'm about to check, but in case you reply more quickly, is SourceGear free or what? And also, how do you interface Access objects with it? Are you required to export all objects to source-code and then import all that (not necessarily a big deal, just looking for methods as to do that, if necessary). Thanks, Arthur On Mon, Mar 8, 2010 at 3:44 PM, Charlotte Foust wrote: > We don't use SubVersion, but we moved from VSS to SourceGear. We looked at > the Team stuff and decided it required too darn much effort to implement for > a small team. Plus it required SharePoint services which is a headache in > itself. Out project manager explored it and decided we simply didn't have > time for that kind of complexity. SourceGear is a no-brainer migration from > VSS and has some nice features VSS doesn't. > > Charlotte Foust > From jwcolby at colbyconsulting.com Mon Mar 8 16:18:33 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 08 Mar 2010 17:18:33 -0500 Subject: [AccessD] The Game Industry - Push cx Message-ID: <4B9577B9.3030004@colbyconsulting.com> An interesting read http://push.cx/2009/the-game-industry -- John W. Colby www.ColbyConsulting.com From cfoust at infostatsystems.com Mon Mar 8 18:37:44 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Mar 2010 18:37:44 -0600 Subject: [AccessD] Access + SubVersion In-Reply-To: <29f585dd1003081254p6e381b5fna9215108c5d2c242@mail.gmail.com> References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> <29f585dd1003081254p6e381b5fna9215108c5d2c242@mail.gmail.com> Message-ID: Not free but I don't know what the pricing is like. You interface with it just like SourceSafe. I can't tell you how it works in Access because we no longer develop in that, but there is a vault client that is very similar to the sourcesafe client, so I would imagine you install the client addin, go into Access and use the sourcecontrol tools to create a new sourcegear vault project. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 08, 2010 12:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access + SubVersion I'm about to check, but in case you reply more quickly, is SourceGear free or what? And also, how do you interface Access objects with it? Are you required to export all objects to source-code and then import all that (not necessarily a big deal, just looking for methods as to do that, if necessary). Thanks, Arthur On Mon, Mar 8, 2010 at 3:44 PM, Charlotte Foust wrote: > We don't use SubVersion, but we moved from VSS to SourceGear. We looked at > the Team stuff and decided it required too darn much effort to implement for > a small team. Plus it required SharePoint services which is a headache in > itself. Out project manager explored it and decided we simply didn't have > time for that kind of complexity. SourceGear is a no-brainer migration from > VSS and has some nice features VSS doesn't. > > Charlotte Foust > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren at activebilling.com.au Mon Mar 8 20:56:24 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 9 Mar 2010 13:56:24 +1100 Subject: [AccessD] Access + SubVersion In-Reply-To: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: Hi Arthur We use an interface to subversion called Tortoise - We don't mind using it here. it works well enough (Our real developer nerds prefer the command line version only Anyway. once you decide to set up a checkout on Folder X, each time you make changes to ANY file or files (even adding or deleting) to items in that folder then those new pieces of information 'go up' with any 'commit'. You are given the option to type stuff about the commit you are about to make also. If you decide that you need to go back to a certain version then the 'log' feature allows you to review the entire upload/download history for that checkout location. This is where whatever you type about the 'commits' is useful. There are also file comparison tools built in with this. As for filename vs objects - It's file name based. Assume I have filename called MyCooldB.mdb - I add it to subversion, each change gets committed and the whole file is placed under version control. Hope this makes sense Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, 9 March 2010 4:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access + SubVersion Does anyone here use SubVersion as your VCS from Access? I used to use VSS and was satisfied with it, but it seems this product has gone away in favour of the Team stuff. I can't afford that upgrade, and so am wondering about free alternatives such as SubVersion. Does anyone here use this in practise? How ought one store a Version into SubVersion and then name it and be able to Restore any Version long after it was captured and stored? Any bugaboos in using this method are graciously invited. A. -- 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 Mar 9 08:27:34 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 9 Mar 2010 09:27:34 -0500 Subject: [AccessD] Access + SubVersion In-Reply-To: References: <29f585dd1003080950u3e51d4e2x27b86f2b1046a5f7@mail.gmail.com> Message-ID: <29f585dd1003090627x2bfe47abya39cb39ae0a0dad2@mail.gmail.com> Thanks all. Arthur On Mon, Mar 8, 2010 at 9:56 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi Arthur > > We use an interface to subversion called Tortoise - We don't mind using it > here. it works well enough (Our real developer nerds prefer the command > line > version only > Anyway. once you decide to set up a checkout on Folder X, each time you > make changes to ANY file or files (even adding or deleting) to items in > that > folder then those new pieces of information 'go up' with any 'commit'. You > are given the option to type stuff about the commit you are about to make > also. > If you decide that you need to go back to a certain version then the > 'log' feature allows you to review the entire upload/download history for > that checkout location. This is where whatever you type about the 'commits' > is useful. > There are also file comparison tools built in with this. > As for filename vs objects - It's file name based. Assume I have > filename called MyCooldB.mdb - I add it to subversion, each change gets > committed and the whole file is placed under version control. > > Hope this makes sense > > Darren > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Tuesday, 9 March 2010 4:51 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access + SubVersion > > Does anyone here use SubVersion as your VCS from Access? I used to use VSS > and was satisfied with it, but it seems this product has gone away in > favour > of the Team stuff. I can't afford that upgrade, and so am wondering about > free alternatives such as SubVersion. Does anyone here use this in > practise? > How ought one store a Version into SubVersion and then name it and be able > to Restore any Version long after it was captured and stored? > > Any bugaboos in using this method are graciously invited. > > A. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Tue Mar 9 11:06:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 9 Mar 2010 09:06:22 -0800 Subject: [AccessD] Picking Alternate Calendar Message-ID: Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is From dwaters at usinternet.com Tue Mar 9 11:43:31 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Mar 2010 11:43:31 -0600 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: Message-ID: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters> Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is From rockysmolin at bchacc.com Tue Mar 9 12:05:06 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 9 Mar 2010 10:05:06 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters> References: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters> Message-ID: <61619F8F4C4D411B89D101CE24161F7D@HAL9005> Dan: That will push the items into the default calendar, I think. I have a second calendar - I know the name of it - and I'd like to set fld ( Dimmed: Dim fld As Outlook.MAPIFolder) to that fixed name. Set fld = nms.PickFolder works but makes the user pick the custom calendar each time. DO you know the syntax to set the fld to a specific calendar? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 09, 2010 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From dwaters at usinternet.com Tue Mar 9 12:50:33 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Mar 2010 12:50:33 -0600 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <61619F8F4C4D411B89D101CE24161F7D@HAL9005> References: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters> <61619F8F4C4D411B89D101CE24161F7D@HAL9005> Message-ID: I didn't even know that Outlook had alternate calendars. Try something like: Set objOL = CreateObject("Outlook.Application") Set objAppt = objOL.CreateItemFromTemplate("TemplatePath",Infolder) I was just scanning the Outlook help for CreateItemFromTemplate. Maybe there's something there. Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 12:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Dan: That will push the items into the default calendar, I think. I have a second calendar - I know the name of it - and I'd like to set fld ( Dimmed: Dim fld As Outlook.MAPIFolder) to that fixed name. Set fld = nms.PickFolder works but makes the user pick the custom calendar each time. DO you know the syntax to set the fld to a specific calendar? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 09, 2010 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 9 13:40:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Mar 2010 19:40:26 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <61619F8F4C4D411B89D101CE24161F7D@HAL9005> References: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters> <61619F8F4C4D411B89D101CE24161F7D@HAL9005> Message-ID: Rocky, I *think* I have an answer for you, but I have not done this before and it is quite tricky. Do you want me to send on what I have? If you have anything better, go with that...mine is just a realy hack but seems to work. I set a new Calendar up by clicking on the Calendar folder and selecting new. It is then seen as a sub calendar to the main one and the code runs against that. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 6:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Dan: That will push the items into the default calendar, I think. I have a second calendar - I know the name of it - and I'd like to set fld ( Dimmed: Dim fld As Outlook.MAPIFolder) to that fixed name. Set fld = nms.PickFolder works but makes the user pick the custom calendar each time. DO you know the syntax to set the fld to a specific calendar? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 09, 2010 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 9 14:35:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 9 Mar 2010 12:35:48 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters><61619F8F4C4D411B89D101CE24161F7D@HAL9005> Message-ID: Yes, please shoot me the code. Can't hurt. I'm making progress. The appointments are being added. But still can't direct them to the right calendar. I'm using Colby's C2dbAutomation routine to add. I'm having trouble deleting the appointments in a date range - deletes some, leaves some. Very strange. R. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 09, 2010 11:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Rocky, I *think* I have an answer for you, but I have not done this before and it is quite tricky. Do you want me to send on what I have? If you have anything better, go with that...mine is just a realy hack but seems to work. I set a new Calendar up by clicking on the Calendar folder and selecting new. It is then seen as a sub calendar to the main one and the code runs against that. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 6:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Dan: That will push the items into the default calendar, I think. I have a second calendar - I know the name of it - and I'd like to set fld ( Dimmed: Dim fld As Outlook.MAPIFolder) to that fixed name. Set fld = nms.PickFolder works but makes the user pick the custom calendar each time. DO you know the syntax to set the fld to a specific calendar? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 09, 2010 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From iggy at nanaimo.ark.com Tue Mar 9 13:24:57 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 09 Mar 2010 11:24:57 -0800 Subject: [AccessD] 2 Questions Message-ID: <4B96A089.7040309@nanaimo.ark.com> Hey All Just pondering 1. Access2003 does not seem to pick up erroneous variables. If on a form I assign for a control Dim JTnum as double then in code .................. I make a spelling error Jnum = rst.Pnum ................... rst!dnum=jnum (which gives me 0). When I run a compile I do not get an error message. In previous versions of Access I am pretty sure the above would generate an error message. Have I inadvertently turned something off???? 2. I do not use the Tools Relationship. I establish them in my queries and in my forms/subforms link or in code. I also (because I have never liked Access's error messages) warn users with my own error message if a problem might occur. Is this a feature designed for non-developers just like the table lookup (which I don't use either) or am I missing something (life has been good without it, just curious)???? From max.wanadoo at gmail.com Tue Mar 9 14:40:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Mar 2010 20:40:26 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: Message-ID: <21E8617236984899908B74F3D40293C0@Server> Rocky: Here is the code: Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") Set ofMyOutlook = onMAPI.Folders("Max Outlook") ' normally "Personal Folders" but I renamed mine Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Then MsgBox "Check the name of the user caledar as it does not appear as a sub folder of Calendar" Exit Sub End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 1:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub From max.wanadoo at gmail.com Tue Mar 9 14:41:29 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Mar 2010 20:41:29 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <0BEE80832EA24AC3A8B4D01F481A28B0@danwaters><61619F8F4C4D411B89D101CE24161F7D@HAL9005> Message-ID: <087FA6FB5C5C42CABA88F0DA876E6966@Server> That may because of the way dates change. Try the #mm/dd/yyyy# format. See what happens Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 8:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Yes, please shoot me the code. Can't hurt. I'm making progress. The appointments are being added. But still can't direct them to the right calendar. I'm using Colby's C2dbAutomation routine to add. I'm having trouble deleting the appointments in a date range - deletes some, leaves some. Very strange. R. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 09, 2010 11:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Rocky, I *think* I have an answer for you, but I have not done this before and it is quite tricky. Do you want me to send on what I have? If you have anything better, go with that...mine is just a realy hack but seems to work. I set a new Calendar up by clicking on the Calendar folder and selecting new. It is then seen as a sub calendar to the main one and the code runs against that. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 6:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Dan: That will push the items into the default calendar, I think. I have a second calendar - I know the name of it - and I'd like to set fld ( Dimmed: Dim fld As Outlook.MAPIFolder) to that fixed name. Set fld = nms.PickFolder works but makes the user pick the custom calendar each time. DO you know the syntax to set the fld to a specific calendar? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 09, 2010 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Hi Rocky, This is what I use: With objAppt .Subject = stgSubject .Start = dteStartDateTime .Duration = intMeetingMinutes '-- Make it a meeting request .MeetingStatus = olMeeting .RequiredAttendees = stgAttendees .ReminderOverrideDefault = True .ReminderSet = True .ReminderMinutesBeforeStart = 30 .ReminderPlaySound = True .Location = stgLocation .Body = stgMessage End With Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 09, 2010 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Picking Alternate Calendar Dear List: I am trying to push dates into an outlook calendar from Access. The calendar will be an alternate calendar, not the default. I'd like to hard code the calendar name but can't figure out the syntax. So far I'm using the following code which allows the user to select the calendar to push the dates into: Dim objOutlook As Outlook.Application Dim objAppt As Outlook.AppointmentItem Dim objRecurPattern As Outlook.RecurrencePattern Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Set objOutlook = CreateObject("Outlook.Application") Set objAppt = objOutlook.CreateItem(olAppointmentItem) SelectCalendarFolder: 'Allow user to select Calendar folder Set nms = objOutlook.GetNamespace("MAPI") Set fld = nms.PickFolder and that works. But does anyone know the syntax to set fld to a specific calendar folder? MTAI is -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 9 14:45:04 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Mar 2010 20:45:04 -0000 Subject: [AccessD] 2 Questions In-Reply-To: <4B96A089.7040309@nanaimo.ark.com> References: <4B96A089.7040309@nanaimo.ark.com> Message-ID: <58A93CA7EE47457296F0C3BED64076A0@Server> Tony: 1. At the top of the module put Option explict Then compile it, all the unspecified variable will be picked up. 2. Me neither. I seldom use relationship and much prefer to handle them in code. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Tuesday, March 09, 2010 7:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Questions Hey All Just pondering 1. Access2003 does not seem to pick up erroneous variables. If on a form I assign for a control Dim JTnum as double then in code .................. I make a spelling error Jnum = rst.Pnum ................... rst!dnum=jnum (which gives me 0). When I run a compile I do not get an error message. In previous versions of Access I am pretty sure the above would generate an error message. Have I inadvertently turned something off???? 2. I do not use the Tools Relationship. I establish them in my queries and in my forms/subforms link or in code. I also (because I have never liked Access's error messages) warn users with my own error message if a problem might occur. Is this a feature designed for non-developers just like the table lookup (which I don't use either) or am I missing something (life has been good without it, just curious)???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Tue Mar 9 13:56:32 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 09 Mar 2010 11:56:32 -0800 Subject: [AccessD] 2 Questions In-Reply-To: <58A93CA7EE47457296F0C3BED64076A0@Server> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> Message-ID: <4B96A7F0.1070009@nanaimo.ark.com> Thanks Max Max Wanadoo wrote: >Tony: > >1. At the top of the module put >Option explict > >Then compile it, all the unspecified variable will be picked up. > > >2. Me neither. I seldom use relationship and much prefer to handle them in >code. > >Max > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Tuesday, March 09, 2010 7:25 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] 2 Questions > >Hey All >Just pondering >1. Access2003 does not seem to pick up erroneous variables. >If on a form I assign for a control >Dim JTnum as double >then in code >.................. >I make a spelling error >Jnum = rst.Pnum >................... >rst!dnum=jnum (which gives me 0). >When I run a compile I do not get an error message. >In previous versions of Access I am pretty sure the above would generate an >error message. Have I inadvertently turned something off???? > >2. I do not use the Tools Relationship. >I establish them in my queries and in my forms/subforms link or in code. I >also (because I have never liked Access's error messages) warn users with my >own error message if a problem might occur. Is this a feature designed for >non-developers just like the table lookup (which I don't use either) or am I >missing something (life has been good without it, just curious)???? > > >-- >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 Mar 9 15:31:47 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 9 Mar 2010 22:31:47 +0100 Subject: [AccessD] 2 Questions In-Reply-To: <58A93CA7EE47457296F0C3BED64076A0@Server> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> Message-ID: <052090B06668405297219A75B298020C@abpc> 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Max Wanadoo Sendt: 9. marts 2010 21:45 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] 2 Questions Tony: 1. At the top of the module put Option explict Then compile it, all the unspecified variable will be picked up. 2. Me neither. I seldom use relationship and much prefer to handle them in code. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Tuesday, March 09, 2010 7:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Questions Hey All Just pondering 1. Access2003 does not seem to pick up erroneous variables. If on a form I assign for a control Dim JTnum as double then in code .................. I make a spelling error Jnum = rst.Pnum ................... rst!dnum=jnum (which gives me 0). When I run a compile I do not get an error message. In previous versions of Access I am pretty sure the above would generate an error message. Have I inadvertently turned something off???? 2. I do not use the Tools Relationship. I establish them in my queries and in my forms/subforms link or in code. I also (because I have never liked Access's error messages) warn users with my own error message if a problem might occur. Is this a feature designed for non-developers just like the table lookup (which I don't use either) or am I missing something (life has been good without it, just curious)???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Mar 9 15:46:34 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 10 Mar 2010 07:46:34 +1000 Subject: [AccessD] 2 Questions In-Reply-To: <052090B06668405297219A75B298020C@abpc> References: <4B96A089.7040309@nanaimo.ark.com>, <58A93CA7EE47457296F0C3BED64076A0@Server>, <052090B06668405297219A75B298020C@abpc> Message-ID: <4B96C1BA.13611.332CD8B@stuart.lexacorp.com.pg> Anyone who doesn't enforce relational integrity on a relational database is just asking for trouble. Since the tool is there, why would anyone not use it? -- Stuart On 9 Mar 2010 at 22:31, Asger Blond wrote: > 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Max Wanadoo > Sendt: 9. marts 2010 21:45 > Til: 'Access Developers discussion and problem solving' > Emne: Re: [AccessD] 2 Questions > > Tony: > > 1. At the top of the module put > Option explict > > Then compile it, all the unspecified variable will be picked up. > > > 2. Me neither. I seldom use relationship and much prefer to handle them in > code. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > Sent: Tuesday, March 09, 2010 7:25 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] 2 Questions > > Hey All > Just pondering > 1. Access2003 does not seem to pick up erroneous variables. > If on a form I assign for a control > Dim JTnum as double > then in code > .................. > I make a spelling error > Jnum = rst.Pnum > ................... > rst!dnum=jnum (which gives me 0). > When I run a compile I do not get an error message. > In previous versions of Access I am pretty sure the above would generate an > error message. Have I inadvertently turned something off???? > > 2. I do not use the Tools Relationship. > I establish them in my queries and in my forms/subforms link or in code. I > also (because I have never liked Access's error messages) warn users with my > own error message if a problem might occur. Is this a feature designed for > non-developers just like the table lookup (which I don't use either) or am I > missing something (life has been good without it, just curious)???? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Tue Mar 9 15:57:14 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Mar 2010 15:57:14 -0600 Subject: [AccessD] 2 Questions In-Reply-To: <052090B06668405297219A75B298020C@abpc> References: <4B96A089.7040309@nanaimo.ark.com><58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> Message-ID: <18CF6B0C31214430B71DFC2E142DB517@danwaters> I agree! Table relationships are the developer's friends! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Tuesday, March 09, 2010 3:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] 2 Questions 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Max Wanadoo Sendt: 9. marts 2010 21:45 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] 2 Questions Tony: 1. At the top of the module put Option explict Then compile it, all the unspecified variable will be picked up. 2. Me neither. I seldom use relationship and much prefer to handle them in code. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Tuesday, March 09, 2010 7:25 PM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Questions Hey All Just pondering 1. Access2003 does not seem to pick up erroneous variables. If on a form I assign for a control Dim JTnum as double then in code .................. I make a spelling error Jnum = rst.Pnum ................... rst!dnum=jnum (which gives me 0). When I run a compile I do not get an error message. In previous versions of Access I am pretty sure the above would generate an error message. Have I inadvertently turned something off???? 2. I do not use the Tools Relationship. I establish them in my queries and in my forms/subforms link or in code. I also (because I have never liked Access's error messages) warn users with my own error message if a problem might occur. Is this a feature designed for non-developers just like the table lookup (which I don't use either) or am I missing something (life has been good without it, just curious)???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 9 16:05:09 2010 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 09 Mar 2010 14:05:09 -0800 Subject: [AccessD] 2 Questions In-Reply-To: <052090B06668405297219A75B298020C@abpc> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> Message-ID: <4B96C615.9090301@nanaimo.ark.com> Hey Asger I am not trying to start a debate. But if I do my joins in a query (with many many tables joined), if I visually check my results and find an error (or add code to test for errors), I can strip everything down and rebuild it back up step by step. This way I can verify my results and ensure referential integrity. If 1 does not equal 1 then I am in trouble. Asger Blond wrote: >2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. > >Asger > >-----Oprindelig meddelelse----- >Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Max Wanadoo >Sendt: 9. marts 2010 21:45 >Til: 'Access Developers discussion and problem solving' >Emne: Re: [AccessD] 2 Questions > >Tony: > >1. At the top of the module put >Option explict > >Then compile it, all the unspecified variable will be picked up. > > >2. Me neither. I seldom use relationship and much prefer to handle them in >code. > >Max > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Tuesday, March 09, 2010 7:25 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] 2 Questions > >Hey All >Just pondering >1. Access2003 does not seem to pick up erroneous variables. >If on a form I assign for a control >Dim JTnum as double >then in code >.................. >I make a spelling error >Jnum = rst.Pnum >................... >rst!dnum=jnum (which gives me 0). >When I run a compile I do not get an error message. >In previous versions of Access I am pretty sure the above would generate an >error message. Have I inadvertently turned something off???? > >2. I do not use the Tools Relationship. >I establish them in my queries and in my forms/subforms link or in code. I >also (because I have never liked Access's error messages) warn users with my >own error message if a problem might occur. Is this a feature designed for >non-developers just like the table lookup (which I don't use either) or am I >missing something (life has been good without it, just curious)???? > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From rockysmolin at bchacc.com Tue Mar 9 16:20:58 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 9 Mar 2010 14:20:58 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <21E8617236984899908B74F3D40293C0@Server> References: <21E8617236984899908B74F3D40293C0@Server> Message-ID: Thanks for that Max. I'll try it but it looks pretty bulletproof. Do you have something like that for deleting all the appointments within a data range? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 09, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Rocky: Here is the code: Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") Set ofMyOutlook = onMAPI.Folders("Max Outlook") ' normally "Personal Folders" but I renamed mine Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Then MsgBox "Check the name of the user caledar as it does not appear as a sub folder of Calendar" Exit Sub End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 1:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From DWUTKA at Marlow.com Tue Mar 9 16:21:05 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 9 Mar 2010 16:21:05 -0600 Subject: [AccessD] OT: New Laptop In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , , , , <4B905F85.9090907@colbyconsulting.com>, Message-ID: And you're putting 64 bit Windows 7 on this, right? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Friday, March 05, 2010 11:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: New Laptop I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... Have a look at the Vaio VPCZ11Z9E. Intel Core I7 2.66 Ghz, Turbo Boost to 3.3 Ghz 8 Gigs Quad SSD (Raid 0) 512 Gig 1920 by 1080 LED Screen (13.1") NVIDIA GeForce GT 330M with 1 Gig GDDR3 VRAM (on the fly switchable to integrated graphics) Built in BlueRay Burner HDMI out Internal GPS & software Internal Verizon Wireless modem 6 hours full brightness screen on battery power fingerprint reader Dock Under keyboard LED keyboard illumination, sensor controlled Weight with Battery, 1.43 Kg (3.15 pounds) I've currently got the 3.3 pound 1600 * 900 screen Vaio Z predecessor and picked up 5 newer models (VGN Z820) for some of the other managers since Christmas. Actually I'm buying the Canada market version that lacks the GPS and Verizon wireless. I'd be tempted to pick it up in the US if I could get the Verizon unlocked to work on the Rogers network in Canada. I'm currently using a tiny Option USB Cell modem stick for internet on the road and it would be nice to have something internal. I also use a USB connected GPS though that is usually on a netbook with an SSD as my current Vaio has a 7200 RPM drive. A Canadian version becomes available for order this Sunday and I'm waiting to verify the details. The specs above are from Tom's hardware and the Sony US site. Tom's says 6 Gigabytes, Sony 8. Tom's says 256 Gig quad array, Sony says 512. Tom's says the array is 6.2 times faster than a 5400 RPM drive. You can customize the machine you want though, and the options are there to built it with lots of power. The only thing that's missing is USB 3. I love the 1600 by 900 13.1" LED screen on the one I have and can't wait to see the 1920 by 1080 screen. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 -- 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 ab-mi at post3.tele.dk Tue Mar 9 17:07:00 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 10 Mar 2010 00:07:00 +0100 Subject: [AccessD] 2 Questions In-Reply-To: <4B96C615.9090301@nanaimo.ark.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server><052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> Message-ID: <5780250AF1994E22AD164677FC3697C1@abpc> Hey Tony, Not sure I'm getting your point here. Anyhow I think it's important to distinguish two topics which the Relationships-Tool in Access tends to blur: a) Joining fields. b) Establishing foreign key constraints ("referential integrity") between fields. If you don't check the option "Enforce referential integrity" when you use the Relationship-Tool then all you get is a convenient way to have an automatically join set up between the fields when you use the query builder. You can of course set up these joins manually yourself each time in your query builder, but I find this feature very nice and a good reason to use the Relationship-Tool. If you are writing the queries yourself in SQL (not using the query builder) then this feature is of no importance for you. But establishing foreign key constrains is a quite different beast. It has per se nothing whatsoever to do with joining fields in *queries*: it is there for enforcing consistency between values in different fields when you are doing *inserts* and *updates*. Sure you can establish foreign key constraints by code, but I don't know why on earth you would do it that way since you can much more easily do by checking the "Enforce referential integrity" option using the Relationship-Tool. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Tony Septav Sendt: 9. marts 2010 23:05 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] 2 Questions Hey Asger I am not trying to start a debate. But if I do my joins in a query (with many many tables joined), if I visually check my results and find an error (or add code to test for errors), I can strip everything down and rebuild it back up step by step. This way I can verify my results and ensure referential integrity. If 1 does not equal 1 then I am in trouble. Asger Blond wrote: >2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. > >Asger > >-----Oprindelig meddelelse----- >Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Max Wanadoo >Sendt: 9. marts 2010 21:45 >Til: 'Access Developers discussion and problem solving' >Emne: Re: [AccessD] 2 Questions > >Tony: > >1. At the top of the module put >Option explict > >Then compile it, all the unspecified variable will be picked up. > > >2. Me neither. I seldom use relationship and much prefer to handle them in >code. > >Max > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Tuesday, March 09, 2010 7:25 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] 2 Questions > >Hey All >Just pondering >1. Access2003 does not seem to pick up erroneous variables. >If on a form I assign for a control >Dim JTnum as double >then in code >.................. >I make a spelling error >Jnum = rst.Pnum >................... >rst!dnum=jnum (which gives me 0). >When I run a compile I do not get an error message. >In previous versions of Access I am pretty sure the above would generate an >error message. Have I inadvertently turned something off???? > >2. I do not use the Tools Relationship. >I establish them in my queries and in my forms/subforms link or in code. I >also (because I have never liked Access's error messages) warn users with my >own error message if a problem might occur. Is this a feature designed for >non-developers just like the table lookup (which I don't use either) or am I >missing something (life has been good without it, just curious)???? > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 9 18:35:59 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Mar 2010 18:35:59 -0600 Subject: [AccessD] 2 Questions In-Reply-To: <4B96A089.7040309@nanaimo.ark.com> References: <4B96A089.7040309@nanaimo.ark.com> Message-ID: You somehow managed to turn off Option Explicit, so a misspelling is interpreted as an on-the-fly declaration of a variant. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Tuesday, March 09, 2010 11:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Questions Hey All Just pondering 1. Access2003 does not seem to pick up erroneous variables. If on a form I assign for a control Dim JTnum as double then in code .................. I make a spelling error Jnum = rst.Pnum ................... rst!dnum=jnum (which gives me 0). When I run a compile I do not get an error message. In previous versions of Access I am pretty sure the above would generate an error message. Have I inadvertently turned something off???? 2. I do not use the Tools Relationship. I establish them in my queries and in my forms/subforms link or in code. I also (because I have never liked Access's error messages) warn users with my own error message if a problem might occur. Is this a feature designed for non-developers just like the table lookup (which I don't use either) or am I missing something (life has been good without it, just curious)???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 9 19:53:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 9 Mar 2010 17:53:48 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <21E8617236984899908B74F3D40293C0@Server> References: <21E8617236984899908B74F3D40293C0@Server> Message-ID: Max: Worked a treat! Thank you, thank you, thank you. If I can get it to delete I'll be done. Except for the 20 things the client will want once he sees this working. :) Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 09, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Rocky: Here is the code: Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") Set ofMyOutlook = onMAPI.Folders("Max Outlook") ' normally "Personal Folders" but I renamed mine Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Then MsgBox "Check the name of the user caledar as it does not appear as a sub folder of Calendar" Exit Sub End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 1:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From stuart at lexacorp.com.pg Tue Mar 9 19:56:01 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 10 Mar 2010 11:56:01 +1000 Subject: [AccessD] 2 Questions In-Reply-To: <5780250AF1994E22AD164677FC3697C1@abpc> References: <4B96A089.7040309@nanaimo.ark.com>, <4B96C615.9090301@nanaimo.ark.com>, <5780250AF1994E22AD164677FC3697C1@abpc> Message-ID: <4B96FC31.28123.4172D2D@stuart.lexacorp.com.pg> To me, the most importance role of referential integrity is with "deletes". Without RE, it is all too easy to get "orphaned" records. This can lead to all sorts of problems when trying to summarise data. -- Stuart On 10 Mar 2010 at 0:07, Asger Blond wrote: > But establishing foreign key constrains is a quite different beast. It > has per se nothing whatsoever to do with joining fields in *queries*: > it is there for enforcing consistency between values in different > fields when you are doing *inserts* and *updates*. From jwelz at hotmail.com Tue Mar 9 20:25:54 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Tue, 9 Mar 2010 19:25:54 -0700 Subject: [AccessD] OT: New Laptop In-Reply-To: References: <8EFB2C7F2017427B8051FA1AF33B872E@HAL9005><4BFF853EDBCE4B6A8E437876D5E10372@danwaters><69FDA8C0133B4AAFA223DCA0D6DBC2EF@HAL9005><5CD722FFBD8749D09732AE3BD525E82F@danwaters>, , , , <9545C2D6850D484A93DF172E4F73C159@HAL9005>, , , , <7EC5B649F07C4614B9C6EECCC868858E@Server>, , , , , , , , <4B905F85.9090907@colbyconsulting.com>, , , , Message-ID: Yes, it's preinstalled. Has a bunch of crap ware too. Takes a bit of clean up. Need 64 bit to make use of the 8 gigs of RAM. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Tue, 9 Mar 2010 16:21:05 -0600 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: New Laptop > > And you're putting 64 bit Windows 7 on this, right? > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Friday, March 05, 2010 11:21 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: New Laptop > > > I was told to source a new laptop for the boss so I spec'ed out something sweet. He then told me to buy it and give him my old one... > > > > Have a look at the Vaio VPCZ11Z9E. > > > > Intel Core I7 2.66 Ghz, Turbo Boost to 3.3 Ghz > > 8 Gigs > > Quad SSD (Raid 0) 512 Gig > > 1920 by 1080 LED Screen (13.1") > > NVIDIA GeForce GT 330M with 1 Gig GDDR3 VRAM > > (on the fly switchable to integrated graphics) > > Built in BlueRay Burner > > HDMI out > > Internal GPS & software > > Internal Verizon Wireless modem > > 6 hours full brightness screen on battery power > > fingerprint reader > > Dock > > Under keyboard LED keyboard illumination, sensor controlled > > Weight with Battery, 1.43 Kg (3.15 pounds) > > > > I've currently got the 3.3 pound 1600 * 900 screen Vaio Z predecessor and picked up 5 newer models (VGN Z820) for some of the other managers since Christmas. > > > > Actually I'm buying the Canada market version that lacks the GPS and Verizon wireless. I'd be tempted to pick it up in the US if I could get the Verizon unlocked to work on the Rogers network in Canada. I'm currently using a tiny Option USB Cell modem stick for internet on the road and it would be nice to have something internal. I also use a USB connected GPS though that is usually on a netbook with an SSD as my current Vaio has a 7200 RPM drive. A Canadian version becomes available for order this Sunday and I'm waiting to verify the details. The specs above are from Tom's hardware and the Sony US site. Tom's says 6 Gigabytes, Sony 8. Tom's says 256 Gig quad array, Sony says 512. Tom's says the array is 6.2 times faster than a 5400 RPM drive. You can customize the machine you want though, and the options are there to built it with lots of power. The only thing that's missing is USB 3. > > > > I love the 1600 by 900 13.1" LED screen on the one I have and can't wait to see the 1920 by 1080 screen. > > Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > > _________________________________________________________________ > Check your Hotmail from your phone. > http://go.microsoft.com/?linkid=9712957 > -- > 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 _________________________________________________________________ Stay in touch. http://go.microsoft.com/?linkid=9712959 From max.wanadoo at gmail.com Wed Mar 10 01:38:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 07:38:26 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <21E8617236984899908B74F3D40293C0@Server> Message-ID: <7501F0BF31A445DDB23FF6FCE891B671@Server> Rocky: Ha! That's great. Should be easy to do the deletes, I will have a look later. Just off to work. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 10, 2010 1:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Max: Worked a treat! Thank you, thank you, thank you. If I can get it to delete I'll be done. Except for the 20 things the client will want once he sees this working. :) Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 09, 2010 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar Rocky: Here is the code: Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") Set ofMyOutlook = onMAPI.Folders("Max Outlook") ' normally "Personal Folders" but I renamed mine Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Then MsgBox "Check the name of the user caledar as it does not appear as a sub folder of Calendar" Exit Sub End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 1:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 10 03:48:49 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 09:48:49 +0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <21E8617236984899908B74F3D40293C0@Server> Message-ID: Rocky: Try this code below Max Private Sub sDeleteCalEvents() Dim strDateFrom As String, strDateTo As String strDateFrom = "01/01/2010" ' mm/dd/yyyy strDateTo = "12/31/2010" ' mm/dd/yyyy Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor Debug.Print myCalendar.Items.Count For ifor = myCalendar.Items.Count To 1 Step -1 ' work backwards Debug.Print Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy"), ' trailing comma If Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") >= strDateFrom And Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") <= strDateTo Then Debug.Print "Deleted" myCalendar.Items(ifor).Delete Else Debug.Print "Not deleted" End If Next ifor End Sub Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Or ofCalendar.Folders.Count = 0 Then MsgBox "The user caledar (" & strCalendarName & ") does not appear as a sub folder of Calendar. Press OK and I will created it for you." Set ofFolder = onMAPI.GetDefaultFolder(olFolderCalendar) Set myCalendar = ofFolder.Folders.Add(strCalendarName) End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 2:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myResourceAttendee.Type = olResource '.Display myItem.Send End With End With End Sub From jwcolby at colbyconsulting.com Wed Mar 10 07:34:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 08:34:35 -0500 Subject: [AccessD] 2 Questions In-Reply-To: <4B96C615.9090301@nanaimo.ark.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> Message-ID: <4B979FEB.60401@colbyconsulting.com> Tony, Referential integrity is the foundation of a database. Without it you are hopelessly lost. 1) Referential integrity essentially says that you can't have a child without having a parent (makes sense right?). So... If you have clients and orders, you can't have an order without having a client. More importantly, you can't have an order without selecting a SPECIFIC client. Referential integrity says that you can't DELETE a client without deleting all of that client's orders. Again, makes sense right? If you are allowed to delete clients without deleting that client's orders then you have orders with no clients (see one above). This just hoses everything. You do reports of all your orders and where they shipped to... ooops these orders don't have a client so we can't tell where we shipped them to. We count orders not paid for yet. Ooops we have orders with no client so there is no way to determine that they were paid for. ANYTHING that you have to have the Client record to report on gets trashed. It's just a bad thing, having orders with no client. Or any other child record without a parent. This condition is called "orphaned records" because a child with no parent is an orphan. Orphans are "lost", they just cause a raft of issues, all of them BAD! Referential integrity is the business of the database engine, NOT the FE or application. Every database engine, whether Jet, SQL Server, Oracle or any other has powerful mechanisms built in for maintaining referential integrity. I mentioned that RE is not the business of the FE, and the reason is simple. If you have to handle RE then you are CONSTANTLY checking in code whether you performed all of the steps necessary to maintain RE. Furthermore, you place that same burden on any other developer accessing your data. Suddenly ANY developer trying to update, add or delete records has to be concerned with RE. Most of us developers simply are not trained to do RE right, and even if we are, human error creeps in. Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you don't, and I expect that you are, I don't bother to even attempt to handle RE issues and suddenly I am trashing data. BELIEVE ME (and the other developers on the list should chime in), RE is the business of the database engine, NOT the developer! Creating the relationships in the relationship window is how you turn on RE. 1) Open your relationship window. Click, drag and drop from the PK in the parent to the FK in the child. An "edit relationships" dialog opens. The top check box underneath says "Enforce referential integrity. Check that box. THAT is what causes JET to perform all of the checks to prevent ORPHANS. 2) The next check says "cascade update...". This has to do with cascading updates to the data in the PK down into the child. If you use autonumbers (surrogate keys) for PKs (and you should), then the PK is never updated and you do not need to check this box. If you use natural keys, then the PK data can and will change, and those changes have to be rippled down into the child FKs. Cascade update causes JET to do that "cascade" update to the child FK fields. 3) The last check box says "Cascade delete...". This has to do with whether you want the database to automatically delete child records if the parent record is deleted. Like everything else, this is fiercely debated but my opinion is that this is a BAD idea. The reason is simply that users tend to ignore "are you sure" messages. The more junior the user, the more they ignore the "are you sure" messages. Cascade delete on means that if the user accidentally deletes that client record, the orders will just be automatically deleted. The checks, invoices, communications, whatever else you have child to client will be automatically deleted. With one simple delete of one teeny little record you can rip huge chunks of your database out. It is a PITA but my method of handling this is to have a delete button which only specific groups (supervisors / managers etc) can even see. That button does the "are you sure" prompt, then runs delete queries which delete the child records in the correct order back up to the parent. Again, this is fiercely debated but how you handle it is less important than that you UNDERSTAND what this stuff does and why you would or would not use it. After that, it is on your head. John W. Colby www.ColbyConsulting.com Tony Septav wrote: > Hey Asger > I am not trying to start a debate. But if I do my joins in a query (with > many many tables joined), if I visually check my results and find an > error (or add code to test for errors), I can strip everything down and > rebuild it back up step by step. This way I can verify my results and > ensure referential integrity. If 1 does not equal 1 then I am in trouble. > > Asger Blond wrote: > >> 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. >> >> Asger From rockysmolin at bchacc.com Wed Mar 10 08:05:42 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 10 Mar 2010 06:05:42 -0800 Subject: [AccessD] 2 Questions In-Reply-To: <4B979FEB.60401@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc><4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: Cascade delete has it's risks as you point out - but I find it very useful from the user's side for certain issues like deleting a purchase order or a sales order where, without cascade delete, the user has to delete each detail record from the P.O. or S.O. before they can delete the header record. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions Tony, Referential integrity is the foundation of a database. Without it you are hopelessly lost. 1) Referential integrity essentially says that you can't have a child without having a parent (makes sense right?). So... If you have clients and orders, you can't have an order without having a client. More importantly, you can't have an order without selecting a SPECIFIC client. Referential integrity says that you can't DELETE a client without deleting all of that client's orders. Again, makes sense right? If you are allowed to delete clients without deleting that client's orders then you have orders with no clients (see one above). This just hoses everything. You do reports of all your orders and where they shipped to... ooops these orders don't have a client so we can't tell where we shipped them to. We count orders not paid for yet. Ooops we have orders with no client so there is no way to determine that they were paid for. ANYTHING that you have to have the Client record to report on gets trashed. It's just a bad thing, having orders with no client. Or any other child record without a parent. This condition is called "orphaned records" because a child with no parent is an orphan. Orphans are "lost", they just cause a raft of issues, all of them BAD! Referential integrity is the business of the database engine, NOT the FE or application. Every database engine, whether Jet, SQL Server, Oracle or any other has powerful mechanisms built in for maintaining referential integrity. I mentioned that RE is not the business of the FE, and the reason is simple. If you have to handle RE then you are CONSTANTLY checking in code whether you performed all of the steps necessary to maintain RE. Furthermore, you place that same burden on any other developer accessing your data. Suddenly ANY developer trying to update, add or delete records has to be concerned with RE. Most of us developers simply are not trained to do RE right, and even if we are, human error creeps in. Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you don't, and I expect that you are, I don't bother to even attempt to handle RE issues and suddenly I am trashing data. BELIEVE ME (and the other developers on the list should chime in), RE is the business of the database engine, NOT the developer! Creating the relationships in the relationship window is how you turn on RE. 1) Open your relationship window. Click, drag and drop from the PK in the parent to the FK in the child. An "edit relationships" dialog opens. The top check box underneath says "Enforce referential integrity. Check that box. THAT is what causes JET to perform all of the checks to prevent ORPHANS. 2) The next check says "cascade update...". This has to do with cascading updates to the data in the PK down into the child. If you use autonumbers (surrogate keys) for PKs (and you should), then the PK is never updated and you do not need to check this box. If you use natural keys, then the PK data can and will change, and those changes have to be rippled down into the child FKs. Cascade update causes JET to do that "cascade" update to the child FK fields. 3) The last check box says "Cascade delete...". This has to do with whether you want the database to automatically delete child records if the parent record is deleted. Like everything else, this is fiercely debated but my opinion is that this is a BAD idea. The reason is simply that users tend to ignore "are you sure" messages. The more junior the user, the more they ignore the "are you sure" messages. Cascade delete on means that if the user accidentally deletes that client record, the orders will just be automatically deleted. The checks, invoices, communications, whatever else you have child to client will be automatically deleted. With one simple delete of one teeny little record you can rip huge chunks of your database out. It is a PITA but my method of handling this is to have a delete button which only specific groups (supervisors / managers etc) can even see. That button does the "are you sure" prompt, then runs delete queries which delete the child records in the correct order back up to the parent. Again, this is fiercely debated but how you handle it is less important than that you UNDERSTAND what this stuff does and why you would or would not use it. After that, it is on your head. John W. Colby www.ColbyConsulting.com Tony Septav wrote: > Hey Asger > I am not trying to start a debate. But if I do my joins in a query > (with many many tables joined), if I visually check my results and > find an error (or add code to test for errors), I can strip everything > down and rebuild it back up step by step. This way I can verify my > results and ensure referential integrity. If 1 does not equal 1 then I am in trouble. > > Asger Blond wrote: > >> 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. >> >> Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From max.wanadoo at gmail.com Wed Mar 10 08:05:42 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 14:05:42 +0000 Subject: [AccessD] 2 Questions In-Reply-To: <4B979FEB.60401@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: Tony, You are being mislead here. Nobody is saying that Referencial Integrity should not be practised. All I am saying is that I do not use the built in tools in Accesss to do it. I do it manually. Ignore the band wagon which has sprung up by those who didnt read it correctly (and if that statement doesn't get a response then I do not know what will !!). The reason I do not use it is because I got badly bitten by Cascading Deletes some years ago. I now control what gets deleted and under what circumstances and not leave it to some "switch" being turned on in Access. So, use Ref Int but you choose how to implment it. Max On 10 March 2010 13:34, jwcolby wrote: > Tony, > > Referential integrity is the foundation of a database. Without it you are > hopelessly lost. > > 1) Referential integrity essentially says that you can't have a child > without having a parent (makes > sense right?). > > So... If you have clients and orders, you can't have an order without > having a client. More > importantly, you can't have an order without selecting a SPECIFIC client. > Referential integrity > says that you can't DELETE a client without deleting all of that client's > orders. Again, makes > sense right? If you are allowed to delete clients without deleting that > client's orders then you > have orders with no clients (see one above). This just hoses everything. > You do reports of all > your orders and where they shipped to... ooops these orders don't have a > client so we can't tell > where we shipped them to. We count orders not paid for yet. Ooops we have > orders with no client so > there is no way to determine that they were paid for. ANYTHING that you > have to have the Client > record to report on gets trashed. > > It's just a bad thing, having orders with no client. Or any other child > record without a parent. > > This condition is called "orphaned records" because a child with no parent > is an orphan. Orphans > are "lost", they just cause a raft of issues, all of them BAD! > > Referential integrity is the business of the database engine, NOT the FE or > application. Every > database engine, whether Jet, SQL Server, Oracle or any other has powerful > mechanisms built in for > maintaining referential integrity. > > I mentioned that RE is not the business of the FE, and the reason is > simple. If you have to handle > RE then you are CONSTANTLY checking in code whether you performed all of > the steps necessary to > maintain RE. Furthermore, you place that same burden on any other > developer accessing your data. > Suddenly ANY developer trying to update, add or delete records has to be > concerned with RE. Most of > us developers simply are not trained to do RE right, and even if we are, > human error creeps in. > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > don't, and I expect that you > are, I don't bother to even attempt to handle RE issues and suddenly I am > trashing data. > > BELIEVE ME (and the other developers on the list should chime in), RE is > the business of the > database engine, NOT the developer! > > Creating the relationships in the relationship window is how you turn on > RE. > > 1) Open your relationship window. Click, drag and drop from the PK in the > parent to the FK in the > child. An "edit relationships" dialog opens. The top check box underneath > says "Enforce > referential integrity. Check that box. THAT is what causes JET to perform > all of the checks to > prevent ORPHANS. > > 2) The next check says "cascade update...". This has to do with cascading > updates to the data in > the PK down into the child. If you use autonumbers (surrogate keys) for > PKs (and you should), then > the PK is never updated and you do not need to check this box. If you use > natural keys, then the PK > data can and will change, and those changes have to be rippled down into > the child FKs. Cascade > update causes JET to do that "cascade" update to the child FK fields. > > 3) The last check box says "Cascade delete...". This has to do with > whether you want the database > to automatically delete child records if the parent record is deleted. > Like everything else, this > is fiercely debated but my opinion is that this is a BAD idea. The reason > is simply that users tend > to ignore "are you sure" messages. The more junior the user, the more they > ignore the "are you > sure" messages. Cascade delete on means that if the user accidentally > deletes that client record, > the orders will just be automatically deleted. The checks, invoices, > communications, whatever else > you have child to client will be automatically deleted. With one simple > delete of one teeny little > record you can rip huge chunks of your database out. > > It is a PITA but my method of handling this is to have a delete button > which only specific groups > (supervisors / managers etc) can even see. That button does the "are you > sure" prompt, then runs > delete queries which delete the child records in the correct order back up > to the parent. > > Again, this is fiercely debated but how you handle it is less important > than that you UNDERSTAND > what this stuff does and why you would or would not use it. After that, it > is on your head. > > John W. Colby > www.ColbyConsulting.com > > > Tony Septav wrote: > > Hey Asger > > I am not trying to start a debate. But if I do my joins in a query (with > > many many tables joined), if I visually check my results and find an > > error (or add code to test for errors), I can strip everything down and > > rebuild it back up step by step. This way I can verify my results and > > ensure referential integrity. If 1 does not equal 1 then I am in > trouble. > > > > Asger Blond wrote: > > > >> 2. I use Tools | Relationship to create foreign key constraints > ("enforce referential integrity"). Without foreign key constraints the data > will soon loose consistency. > >> > >> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Mar 10 08:33:05 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 Mar 2010 15:33:05 +0100 Subject: [AccessD] 2 Questions Message-ID: Hi Max It is not "some" switch. There is one specific switch that controls cascade-deletes for a relation. If anyone is unsure how to operate this or to handle referential integrity in general, I will certainly recommend to read it up at the soonest as this is the heart and soul of a relational database. As for how "dangerous" cascade-deletes are, it is not different from any other action that alters or deletes data in the database. /gustav >>> max.wanadoo at gmail.com 10-03-2010 15:05 >>> Tony, You are being mislead here. Nobody is saying that Referencial Integrity should not be practised. All I am saying is that I do not use the built in tools in Accesss to do it. I do it manually. Ignore the band wagon which has sprung up by those who didnt read it correctly (and if that statement doesn't get a response then I do not know what will !!). The reason I do not use it is because I got badly bitten by Cascading Deletes some years ago. I now control what gets deleted and under what circumstances and not leave it to some "switch" being turned on in Access. So, use Ref Int but you choose how to implment it. Max On 10 March 2010 13:34, jwcolby wrote: > Tony, > > Referential integrity is the foundation of a database. Without it you are hopelessly lost. From jwcolby at colbyconsulting.com Wed Mar 10 08:50:37 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 09:50:37 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: <4B97B1BD.1070206@colbyconsulting.com> Max, > The reason I do not use it is because I got badly bitten by Cascading Deletes some years ago. You are throwing the baby out with the bath water. I use the RI capabilities of JET (or any other database) however I do NOT turn on cascade deletes for the reason you indicate. "Enforce RI" and "Cascade delete" are two entirely separate check boxes for a reason. It might be time for you to rethink your methodology. To "do it manually" means to do it unreliably. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Tony, > > You are being mislead here. Nobody is saying that Referencial Integrity > should not be practised. All I am saying is that I do not use the built in > tools in Accesss to do it. I do it manually. Ignore the band wagon which > has sprung up by those who didnt read it correctly (and if that statement > doesn't get a response then I do not know what will !!). > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. I now control what gets deleted and under what > circumstances and not leave it to some "switch" being turned on in Access. > > So, use Ref Int but you choose how to implment it. > > Max > > > > On 10 March 2010 13:34, jwcolby wrote: > >> Tony, >> >> Referential integrity is the foundation of a database. Without it you are >> hopelessly lost. >> >> 1) Referential integrity essentially says that you can't have a child >> without having a parent (makes >> sense right?). >> >> So... If you have clients and orders, you can't have an order without >> having a client. More >> importantly, you can't have an order without selecting a SPECIFIC client. >> Referential integrity >> says that you can't DELETE a client without deleting all of that client's >> orders. Again, makes >> sense right? If you are allowed to delete clients without deleting that >> client's orders then you >> have orders with no clients (see one above). This just hoses everything. >> You do reports of all >> your orders and where they shipped to... ooops these orders don't have a >> client so we can't tell >> where we shipped them to. We count orders not paid for yet. Ooops we have >> orders with no client so >> there is no way to determine that they were paid for. ANYTHING that you >> have to have the Client >> record to report on gets trashed. >> >> It's just a bad thing, having orders with no client. Or any other child >> record without a parent. >> >> This condition is called "orphaned records" because a child with no parent >> is an orphan. Orphans >> are "lost", they just cause a raft of issues, all of them BAD! >> >> Referential integrity is the business of the database engine, NOT the FE or >> application. Every >> database engine, whether Jet, SQL Server, Oracle or any other has powerful >> mechanisms built in for >> maintaining referential integrity. >> >> I mentioned that RE is not the business of the FE, and the reason is >> simple. If you have to handle >> RE then you are CONSTANTLY checking in code whether you performed all of >> the steps necessary to >> maintain RE. Furthermore, you place that same burden on any other >> developer accessing your data. >> Suddenly ANY developer trying to update, add or delete records has to be >> concerned with RE. Most of >> us developers simply are not trained to do RE right, and even if we are, >> human error creeps in. >> Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you >> don't, and I expect that you >> are, I don't bother to even attempt to handle RE issues and suddenly I am >> trashing data. >> >> BELIEVE ME (and the other developers on the list should chime in), RE is >> the business of the >> database engine, NOT the developer! >> >> Creating the relationships in the relationship window is how you turn on >> RE. >> >> 1) Open your relationship window. Click, drag and drop from the PK in the >> parent to the FK in the >> child. An "edit relationships" dialog opens. The top check box underneath >> says "Enforce >> referential integrity. Check that box. THAT is what causes JET to perform >> all of the checks to >> prevent ORPHANS. >> >> 2) The next check says "cascade update...". This has to do with cascading >> updates to the data in >> the PK down into the child. If you use autonumbers (surrogate keys) for >> PKs (and you should), then >> the PK is never updated and you do not need to check this box. If you use >> natural keys, then the PK >> data can and will change, and those changes have to be rippled down into >> the child FKs. Cascade >> update causes JET to do that "cascade" update to the child FK fields. >> >> 3) The last check box says "Cascade delete...". This has to do with >> whether you want the database >> to automatically delete child records if the parent record is deleted. >> Like everything else, this >> is fiercely debated but my opinion is that this is a BAD idea. The reason >> is simply that users tend >> to ignore "are you sure" messages. The more junior the user, the more they >> ignore the "are you >> sure" messages. Cascade delete on means that if the user accidentally >> deletes that client record, >> the orders will just be automatically deleted. The checks, invoices, >> communications, whatever else >> you have child to client will be automatically deleted. With one simple >> delete of one teeny little >> record you can rip huge chunks of your database out. >> >> It is a PITA but my method of handling this is to have a delete button >> which only specific groups >> (supervisors / managers etc) can even see. That button does the "are you >> sure" prompt, then runs >> delete queries which delete the child records in the correct order back up >> to the parent. >> >> Again, this is fiercely debated but how you handle it is less important >> than that you UNDERSTAND >> what this stuff does and why you would or would not use it. After that, it >> is on your head. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Tony Septav wrote: >>> Hey Asger >>> I am not trying to start a debate. But if I do my joins in a query (with >>> many many tables joined), if I visually check my results and find an >>> error (or add code to test for errors), I can strip everything down and >>> rebuild it back up step by step. This way I can verify my results and >>> ensure referential integrity. If 1 does not equal 1 then I am in >> trouble. >>> Asger Blond wrote: >>> >>>> 2. I use Tools | Relationship to create foreign key constraints >> ("enforce referential integrity"). Without foreign key constraints the data >> will soon loose consistency. >>>> Asger >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jwcolby at colbyconsulting.com Wed Mar 10 08:56:50 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 09:56:50 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc><4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: <4B97B332.6090704@colbyconsulting.com> Rocky, I understand your point. My point is simply that the average user has no business deleting records in the database. In general this should be a supervisor (or higher) decision. A button which runs a series of delete queries does the same thing as "individually deleting the child records". Whether you use a button simply forces the user to think a little more about the delete. If it is hidden unless you are a supervisor completely removes the issue from the average user. How many times have you hit the delete key by accident, then you are not looking at the keyboard and hit enter. The "ARE YOU SURE" message may have just been answered affirmatively. Either way, I have seen too many users just click "YES", muttering under their breath "of course I'm sure" and they haven't even read what it is they are saying yes to. If you have specific instances where cascade deletes are useful then fine. Making that the DEFAULT is bad practice (IMHO). John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > Cascade delete has it's risks as you point out - but I find it very useful > from the user's side for certain issues like deleting a purchase order or a > sales order where, without cascade delete, the user has to delete each > detail record from the P.O. or S.O. before they can delete the header > record. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, March 10, 2010 5:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > Tony, > > Referential integrity is the foundation of a database. Without it you are > hopelessly lost. > > 1) Referential integrity essentially says that you can't have a child > without having a parent (makes sense right?). > > So... If you have clients and orders, you can't have an order without having > a client. More importantly, you can't have an order without selecting a > SPECIFIC client. Referential integrity says that you can't DELETE a client > without deleting all of that client's orders. Again, makes sense right? If > you are allowed to delete clients without deleting that client's orders then > you have orders with no clients (see one above). This just hoses > everything. You do reports of all your orders and where they shipped to... > ooops these orders don't have a client so we can't tell where we shipped > them to. We count orders not paid for yet. Ooops we have orders with no > client so there is no way to determine that they were paid for. ANYTHING > that you have to have the Client record to report on gets trashed. > > It's just a bad thing, having orders with no client. Or any other child > record without a parent. > > This condition is called "orphaned records" because a child with no parent > is an orphan. Orphans are "lost", they just cause a raft of issues, all of > them BAD! > > Referential integrity is the business of the database engine, NOT the FE or > application. Every database engine, whether Jet, SQL Server, Oracle or any > other has powerful mechanisms built in for maintaining referential > integrity. > > I mentioned that RE is not the business of the FE, and the reason is simple. > If you have to handle RE then you are CONSTANTLY checking in code whether > you performed all of the steps necessary to maintain RE. Furthermore, you > place that same burden on any other developer accessing your data. > Suddenly ANY developer trying to update, add or delete records has to be > concerned with RE. Most of us developers simply are not trained to do RE > right, and even if we are, human error creeps in. > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > don't, and I expect that you are, I don't bother to even attempt to handle > RE issues and suddenly I am trashing data. > > BELIEVE ME (and the other developers on the list should chime in), RE is the > business of the database engine, NOT the developer! > > Creating the relationships in the relationship window is how you turn on RE. > > 1) Open your relationship window. Click, drag and drop from the PK in the > parent to the FK in the child. An "edit relationships" dialog opens. The > top check box underneath says "Enforce referential integrity. Check that > box. THAT is what causes JET to perform all of the checks to prevent > ORPHANS. > > 2) The next check says "cascade update...". This has to do with cascading > updates to the data in the PK down into the child. If you use autonumbers > (surrogate keys) for PKs (and you should), then the PK is never updated and > you do not need to check this box. If you use natural keys, then the PK > data can and will change, and those changes have to be rippled down into the > child FKs. Cascade update causes JET to do that "cascade" update to the > child FK fields. > > 3) The last check box says "Cascade delete...". This has to do with whether > you want the database to automatically delete child records if the parent > record is deleted. Like everything else, this is fiercely debated but my > opinion is that this is a BAD idea. The reason is simply that users tend to > ignore "are you sure" messages. The more junior the user, the more they > ignore the "are you sure" messages. Cascade delete on means that if the > user accidentally deletes that client record, the orders will just be > automatically deleted. The checks, invoices, communications, whatever else > you have child to client will be automatically deleted. With one simple > delete of one teeny little record you can rip huge chunks of your database > out. > > It is a PITA but my method of handling this is to have a delete button which > only specific groups (supervisors / managers etc) can even see. That button > does the "are you sure" prompt, then runs delete queries which delete the > child records in the correct order back up to the parent. > > Again, this is fiercely debated but how you handle it is less important than > that you UNDERSTAND what this stuff does and why you would or would not use > it. After that, it is on your head. > > John W. Colby > www.ColbyConsulting.com > > > Tony Septav wrote: >> Hey Asger >> I am not trying to start a debate. But if I do my joins in a query >> (with many many tables joined), if I visually check my results and >> find an error (or add code to test for errors), I can strip everything >> down and rebuild it back up step by step. This way I can verify my >> results and ensure referential integrity. If 1 does not equal 1 then I am > in trouble. >> Asger Blond wrote: >> >>> 2. I use Tools | Relationship to create foreign key constraints ("enforce > referential integrity"). Without foreign key constraints the data will soon > loose consistency. >>> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 > 23:33:00 > From jwcolby at colbyconsulting.com Wed Mar 10 09:09:24 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 10:09:24 -0500 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: <4B97B624.4090806@colbyconsulting.com> > As for how "dangerous" cascade-deletes are, it is not different from any other action that alters or deletes data in the database. Well... I disagree of course. The problem is that cascade deletes deletes EVERYTHING down to the last great-great-great-great grandchild record (assuming Cascade delete everywhere). That is pretty darned dangerous. I have a database with Insurer Policies Policy Holders Claims Claim events Benefits Benefit payments Checks Etc. There are probably 30 or 40 tables "child to" (descendant of) Insurer. One delete of an insurer could delete literally TENS OF THOUSANDS of child / grandchild etc records. In fact it WOULD LITERALLY wipe out an entire line of business! That is NOT something any average user should be able to do. In fact I would argue that this is something that only a manager, or even the DBA himself should be allowed to do. The DBA would be able to make sure that the manager understood the consequences of the action. Then if it is supposed to happen fine. A sequence of queries deletes from the bottom up. After backup of course. Which brings up the other big problem with cascade delete. With Cascade Delete how do you ensure that everything being deleted is recoverable when the user goes "OH SH*T"! IMHO cascade delete should be used sparingly if at all. Which is entirely different from Referential Integrity. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi Max > > It is not "some" switch. There is one specific switch that controls cascade-deletes for a relation. > > If anyone is unsure how to operate this or to handle referential integrity in general, I will certainly recommend to read it up at the soonest as this is the heart and soul of a relational database. > > As for how "dangerous" cascade-deletes are, it is not different from any other action that alters or deletes data in the database. > > /gustav > > >>>> max.wanadoo at gmail.com 10-03-2010 15:05 >>> > Tony, > > You are being mislead here. Nobody is saying that Referencial Integrity > should not be practised. All I am saying is that I do not use the built in > tools in Accesss to do it. I do it manually. Ignore the band wagon which > has sprung up by those who didnt read it correctly (and if that statement > doesn't get a response then I do not know what will !!). > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. I now control what gets deleted and under what > circumstances and not leave it to some "switch" being turned on in Access. > > So, use Ref Int but you choose how to implment it. > > Max > > > > On 10 March 2010 13:34, jwcolby wrote: > >> Tony, >> >> Referential integrity is the foundation of a database. Without it you are hopelessly lost. > > > From max.wanadoo at gmail.com Wed Mar 10 09:15:57 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 15:15:57 +0000 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B97B1BD.1070206@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> <4B97B1BD.1070206@colbyconsulting.com> Message-ID: > To "do it manually" means to do it unreliably. Moi! I think you are thinking of some other programmer ;o) Max On 10 March 2010 14:50, jwcolby wrote: > Max, > > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. > > You are throwing the baby out with the bath water. I use the RI > capabilities of JET (or any other > database) however I do NOT turn on cascade deletes for the reason you > indicate. "Enforce RI" and > "Cascade delete" are two entirely separate check boxes for a reason. > > It might be time for you to rethink your methodology. To "do it manually" > means to do it unreliably. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Tony, > > > > You are being mislead here. Nobody is saying that Referencial Integrity > > should not be practised. All I am saying is that I do not use the built > in > > tools in Accesss to do it. I do it manually. Ignore the band wagon > which > > has sprung up by those who didnt read it correctly (and if that statement > > doesn't get a response then I do not know what will !!). > > > > The reason I do not use it is because I got badly bitten by Cascading > > Deletes some years ago. I now control what gets deleted and under what > > circumstances and not leave it to some "switch" being turned on in > Access. > > > > So, use Ref Int but you choose how to implment it. > > > > Max > > > > > > > > On 10 March 2010 13:34, jwcolby wrote: > > > >> Tony, > >> > >> Referential integrity is the foundation of a database. Without it you > are > >> hopelessly lost. > >> > >> 1) Referential integrity essentially says that you can't have a child > >> without having a parent (makes > >> sense right?). > >> > >> So... If you have clients and orders, you can't have an order without > >> having a client. More > >> importantly, you can't have an order without selecting a SPECIFIC > client. > >> Referential integrity > >> says that you can't DELETE a client without deleting all of that > client's > >> orders. Again, makes > >> sense right? If you are allowed to delete clients without deleting that > >> client's orders then you > >> have orders with no clients (see one above). This just hoses > everything. > >> You do reports of all > >> your orders and where they shipped to... ooops these orders don't have a > >> client so we can't tell > >> where we shipped them to. We count orders not paid for yet. Ooops we > have > >> orders with no client so > >> there is no way to determine that they were paid for. ANYTHING that you > >> have to have the Client > >> record to report on gets trashed. > >> > >> It's just a bad thing, having orders with no client. Or any other child > >> record without a parent. > >> > >> This condition is called "orphaned records" because a child with no > parent > >> is an orphan. Orphans > >> are "lost", they just cause a raft of issues, all of them BAD! > >> > >> Referential integrity is the business of the database engine, NOT the FE > or > >> application. Every > >> database engine, whether Jet, SQL Server, Oracle or any other has > powerful > >> mechanisms built in for > >> maintaining referential integrity. > >> > >> I mentioned that RE is not the business of the FE, and the reason is > >> simple. If you have to handle > >> RE then you are CONSTANTLY checking in code whether you performed all of > >> the steps necessary to > >> maintain RE. Furthermore, you place that same burden on any other > >> developer accessing your data. > >> Suddenly ANY developer trying to update, add or delete records has to be > >> concerned with RE. Most of > >> us developers simply are not trained to do RE right, and even if we are, > >> human error creeps in. > >> Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > >> don't, and I expect that you > >> are, I don't bother to even attempt to handle RE issues and suddenly I > am > >> trashing data. > >> > >> BELIEVE ME (and the other developers on the list should chime in), RE is > >> the business of the > >> database engine, NOT the developer! > >> > >> Creating the relationships in the relationship window is how you turn on > >> RE. > >> > >> 1) Open your relationship window. Click, drag and drop from the PK in > the > >> parent to the FK in the > >> child. An "edit relationships" dialog opens. The top check box > underneath > >> says "Enforce > >> referential integrity. Check that box. THAT is what causes JET to > perform > >> all of the checks to > >> prevent ORPHANS. > >> > >> 2) The next check says "cascade update...". This has to do with > cascading > >> updates to the data in > >> the PK down into the child. If you use autonumbers (surrogate keys) for > >> PKs (and you should), then > >> the PK is never updated and you do not need to check this box. If you > use > >> natural keys, then the PK > >> data can and will change, and those changes have to be rippled down into > >> the child FKs. Cascade > >> update causes JET to do that "cascade" update to the child FK fields. > >> > >> 3) The last check box says "Cascade delete...". This has to do with > >> whether you want the database > >> to automatically delete child records if the parent record is deleted. > >> Like everything else, this > >> is fiercely debated but my opinion is that this is a BAD idea. The > reason > >> is simply that users tend > >> to ignore "are you sure" messages. The more junior the user, the more > they > >> ignore the "are you > >> sure" messages. Cascade delete on means that if the user accidentally > >> deletes that client record, > >> the orders will just be automatically deleted. The checks, invoices, > >> communications, whatever else > >> you have child to client will be automatically deleted. With one simple > >> delete of one teeny little > >> record you can rip huge chunks of your database out. > >> > >> It is a PITA but my method of handling this is to have a delete button > >> which only specific groups > >> (supervisors / managers etc) can even see. That button does the "are > you > >> sure" prompt, then runs > >> delete queries which delete the child records in the correct order back > up > >> to the parent. > >> > >> Again, this is fiercely debated but how you handle it is less important > >> than that you UNDERSTAND > >> what this stuff does and why you would or would not use it. After that, > it > >> is on your head. > >> > >> John W. Colby > >> www.ColbyConsulting.com < > http://www.colbyconsulting.com/> > >> > >> > >> Tony Septav wrote: > >>> Hey Asger > >>> I am not trying to start a debate. But if I do my joins in a query > (with > >>> many many tables joined), if I visually check my results and find an > >>> error (or add code to test for errors), I can strip everything down > and > >>> rebuild it back up step by step. This way I can verify my results and > >>> ensure referential integrity. If 1 does not equal 1 then I am in > >> trouble. > >>> Asger Blond wrote: > >>> > >>>> 2. I use Tools | Relationship to create foreign key constraints > >> ("enforce referential integrity"). Without foreign key constraints the > data > >> will soon loose consistency. > >>>> Asger > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Mar 10 09:18:37 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 15:18:37 +0000 Subject: [AccessD] 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: Not really, when they click to delete the "header" record they get a msg saying "xyz, AND ALL TRansaction Records", and if they still want to do it, they get prompted for a password linked to their login details saying what they can and cannot do. Only then do i delete it - and sometime, occasionally, I wrap the delete code inside a BEGIN TRANSACTION END TRANSACTION. Max On 10 March 2010 14:05, Rocky Smolin wrote: > Cascade delete has it's risks as you point out - but I find it very useful > from the user's side for certain issues like deleting a purchase order or a > sales order where, without cascade delete, the user has to delete each > detail record from the P.O. or S.O. before they can delete the header > record. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, March 10, 2010 5:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > Tony, > > Referential integrity is the foundation of a database. Without it you are > hopelessly lost. > > 1) Referential integrity essentially says that you can't have a child > without having a parent (makes sense right?). > > So... If you have clients and orders, you can't have an order without > having > a client. More importantly, you can't have an order without selecting a > SPECIFIC client. Referential integrity says that you can't DELETE a client > without deleting all of that client's orders. Again, makes sense right? > If > you are allowed to delete clients without deleting that client's orders > then > you have orders with no clients (see one above). This just hoses > everything. You do reports of all your orders and where they shipped to... > ooops these orders don't have a client so we can't tell where we shipped > them to. We count orders not paid for yet. Ooops we have orders with no > client so there is no way to determine that they were paid for. ANYTHING > that you have to have the Client record to report on gets trashed. > > It's just a bad thing, having orders with no client. Or any other child > record without a parent. > > This condition is called "orphaned records" because a child with no parent > is an orphan. Orphans are "lost", they just cause a raft of issues, all of > them BAD! > > Referential integrity is the business of the database engine, NOT the FE or > application. Every database engine, whether Jet, SQL Server, Oracle or any > other has powerful mechanisms built in for maintaining referential > integrity. > > I mentioned that RE is not the business of the FE, and the reason is > simple. > If you have to handle RE then you are CONSTANTLY checking in code whether > you performed all of the steps necessary to maintain RE. Furthermore, you > place that same burden on any other developer accessing your data. > Suddenly ANY developer trying to update, add or delete records has to be > concerned with RE. Most of us developers simply are not trained to do RE > right, and even if we are, human error creeps in. > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > don't, and I expect that you are, I don't bother to even attempt to handle > RE issues and suddenly I am trashing data. > > BELIEVE ME (and the other developers on the list should chime in), RE is > the > business of the database engine, NOT the developer! > > Creating the relationships in the relationship window is how you turn on > RE. > > 1) Open your relationship window. Click, drag and drop from the PK in the > parent to the FK in the child. An "edit relationships" dialog opens. The > top check box underneath says "Enforce referential integrity. Check that > box. THAT is what causes JET to perform all of the checks to prevent > ORPHANS. > > 2) The next check says "cascade update...". This has to do with cascading > updates to the data in the PK down into the child. If you use autonumbers > (surrogate keys) for PKs (and you should), then the PK is never updated and > you do not need to check this box. If you use natural keys, then the PK > data can and will change, and those changes have to be rippled down into > the > child FKs. Cascade update causes JET to do that "cascade" update to the > child FK fields. > > 3) The last check box says "Cascade delete...". This has to do with > whether > you want the database to automatically delete child records if the parent > record is deleted. Like everything else, this is fiercely debated but my > opinion is that this is a BAD idea. The reason is simply that users tend to > ignore "are you sure" messages. The more junior the user, the more they > ignore the "are you sure" messages. Cascade delete on means that if the > user accidentally deletes that client record, the orders will just be > automatically deleted. The checks, invoices, communications, whatever else > you have child to client will be automatically deleted. With one simple > delete of one teeny little record you can rip huge chunks of your database > out. > > It is a PITA but my method of handling this is to have a delete button > which > only specific groups (supervisors / managers etc) can even see. That > button > does the "are you sure" prompt, then runs delete queries which delete the > child records in the correct order back up to the parent. > > Again, this is fiercely debated but how you handle it is less important > than > that you UNDERSTAND what this stuff does and why you would or would not use > it. After that, it is on your head. > > John W. Colby > www.ColbyConsulting.com > > > Tony Septav wrote: > > Hey Asger > > I am not trying to start a debate. But if I do my joins in a query > > (with many many tables joined), if I visually check my results and > > find an error (or add code to test for errors), I can strip everything > > down and rebuild it back up step by step. This way I can verify my > > results and ensure referential integrity. If 1 does not equal 1 then I > am > in trouble. > > > > Asger Blond wrote: > > > >> 2. I use Tools | Relationship to create foreign key constraints > ("enforce > referential integrity"). Without foreign key constraints the data will soon > loose consistency. > >> > >> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 > 23:33:00 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Wed Mar 10 09:28:16 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 10 Mar 2010 07:28:16 -0800 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B97B332.6090704@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc><4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> <4B97B332.6090704@colbyconsulting.com> Message-ID: I routinely put login name and password in an app and each user has read only, read/write, or administrator access. So it's easy to restrict specific functions to admin levels. However, most of my clients are small - 2-6 users, and I have not had anyone call up crying in their beer about delete errors. I did create an app recently to track and report a complex royalty arrangement for a company that sells software to protect movie rights in devices like blu-ray players. Auditing capability is very important to them. For that one I used your approach of never actually deleting a record but marking it as deleted in the database so it 'disappears' from all the forms and reports. But no bridges are burned. All their deleted data is recoverable. They liked that idea. But I also give my clients a lot of advice about back ups and ask them from time to time if they're doing it. So, should someone delete a record by mistake, they can always roll back to the most recent backup. I did have a user years ago that discovered queries. Shortly after that, large amounts of data were disappearing for no reason. Turns out, she was running a query that would retrieve a large number of records, amongst which she was interested in only half a dozen. SO she deleted the ones from the query that she didn't want and printed the rest - not knowing that when you delete records from a query you're actually deleting them from the tables. A little knowledge... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 6:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: 2 Questions Rocky, I understand your point. My point is simply that the average user has no business deleting records in the database. In general this should be a supervisor (or higher) decision. A button which runs a series of delete queries does the same thing as "individually deleting the child records". Whether you use a button simply forces the user to think a little more about the delete. If it is hidden unless you are a supervisor completely removes the issue from the average user. How many times have you hit the delete key by accident, then you are not looking at the keyboard and hit enter. The "ARE YOU SURE" message may have just been answered affirmatively. Either way, I have seen too many users just click "YES", muttering under their breath "of course I'm sure" and they haven't even read what it is they are saying yes to. If you have specific instances where cascade deletes are useful then fine. Making that the DEFAULT is bad practice (IMHO). John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > Cascade delete has it's risks as you point out - but I find it very > useful from the user's side for certain issues like deleting a > purchase order or a sales order where, without cascade delete, the > user has to delete each detail record from the P.O. or S.O. before > they can delete the header record. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, March 10, 2010 5:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > Tony, > > Referential integrity is the foundation of a database. Without it you > are hopelessly lost. > > 1) Referential integrity essentially says that you can't have a child > without having a parent (makes sense right?). > > So... If you have clients and orders, you can't have an order without > having a client. More importantly, you can't have an order without > selecting a SPECIFIC client. Referential integrity says that you > can't DELETE a client without deleting all of that client's orders. > Again, makes sense right? If you are allowed to delete clients > without deleting that client's orders then you have orders with no > clients (see one above). This just hoses everything. You do reports of all your orders and where they shipped to... > ooops these orders don't have a client so we can't tell where we > shipped them to. We count orders not paid for yet. Ooops we have > orders with no client so there is no way to determine that they were > paid for. ANYTHING that you have to have the Client record to report on gets trashed. > > It's just a bad thing, having orders with no client. Or any other > child record without a parent. > > This condition is called "orphaned records" because a child with no > parent is an orphan. Orphans are "lost", they just cause a raft of > issues, all of them BAD! > > Referential integrity is the business of the database engine, NOT the > FE or application. Every database engine, whether Jet, SQL Server, > Oracle or any other has powerful mechanisms built in for maintaining > referential integrity. > > I mentioned that RE is not the business of the FE, and the reason is simple. > If you have to handle RE then you are CONSTANTLY checking in code > whether you performed all of the steps necessary to maintain RE. > Furthermore, you place that same burden on any other developer accessing your data. > Suddenly ANY developer trying to update, add or delete records has to > be concerned with RE. Most of us developers simply are not trained to > do RE right, and even if we are, human error creeps in. > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if > you don't, and I expect that you are, I don't bother to even attempt > to handle RE issues and suddenly I am trashing data. > > BELIEVE ME (and the other developers on the list should chime in), RE > is the business of the database engine, NOT the developer! > > Creating the relationships in the relationship window is how you turn on RE. > > 1) Open your relationship window. Click, drag and drop from the PK in > the parent to the FK in the child. An "edit relationships" dialog > opens. The top check box underneath says "Enforce referential > integrity. Check that box. THAT is what causes JET to perform all of > the checks to prevent ORPHANS. > > 2) The next check says "cascade update...". This has to do with > cascading updates to the data in the PK down into the child. If you > use autonumbers (surrogate keys) for PKs (and you should), then the PK > is never updated and you do not need to check this box. If you use > natural keys, then the PK data can and will change, and those changes > have to be rippled down into the child FKs. Cascade update causes JET > to do that "cascade" update to the child FK fields. > > 3) The last check box says "Cascade delete...". This has to do with > whether you want the database to automatically delete child records if > the parent record is deleted. Like everything else, this is fiercely > debated but my opinion is that this is a BAD idea. The reason is > simply that users tend to ignore "are you sure" messages. The more > junior the user, the more they ignore the "are you sure" messages. > Cascade delete on means that if the user accidentally deletes that > client record, the orders will just be automatically deleted. The > checks, invoices, communications, whatever else you have child to > client will be automatically deleted. With one simple delete of one > teeny little record you can rip huge chunks of your database out. > > It is a PITA but my method of handling this is to have a delete button > which only specific groups (supervisors / managers etc) can even see. > That button does the "are you sure" prompt, then runs delete queries > which delete the child records in the correct order back up to the parent. > > Again, this is fiercely debated but how you handle it is less > important than that you UNDERSTAND what this stuff does and why you > would or would not use it. After that, it is on your head. > > John W. Colby > www.ColbyConsulting.com > > > Tony Septav wrote: >> Hey Asger >> I am not trying to start a debate. But if I do my joins in a query >> (with many many tables joined), if I visually check my results and >> find an error (or add code to test for errors), I can strip >> everything down and rebuild it back up step by step. This way I can >> verify my results and ensure referential integrity. If 1 does not >> equal 1 then I am > in trouble. >> Asger Blond wrote: >> >>> 2. I use Tools | Relationship to create foreign key constraints >>> ("enforce > referential integrity"). Without foreign key constraints the data will > soon loose consistency. >>> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/08/10 23:33:00 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/09/10 23:33:00 From jwcolby at colbyconsulting.com Wed Mar 10 09:45:32 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 10:45:32 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc><4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> <4B97B332.6090704@colbyconsulting.com> Message-ID: <4B97BE9C.8050706@colbyconsulting.com> > SO she deleted the ones from the query that she didn't want and printed the rest - not knowing that when you delete records from a query you're actually deleting them from the tables. A little knowledge... ROTFLMAO! That is one worth retelling. I had a user discovered how to add fields to the table. I found her adding fields to the table. The hilarious part is that she was in the FE trying to add fields to the table in the BE. I quietly informed her that she is not allowed to do such things - that she needs to ASK... , then I quietly informed her manager that she was trying to do this and that she is not allowed to do such things. It certainly sounds like you handle the "who is authorized" issue. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > I routinely put login name and password in an app and each user has read > only, read/write, or administrator access. So it's easy to restrict > specific functions to admin levels. However, most of my clients are small - > 2-6 users, and I have not had anyone call up crying in their beer about > delete errors. > ... > Rocky From rockysmolin at bchacc.com Wed Mar 10 10:22:06 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 10 Mar 2010 08:22:06 -0800 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B97BE9C.8050706@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc><4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> <4B97B332.6090704@colbyconsulting.com> <4B97BE9C.8050706@colbyconsulting.com> Message-ID: <54F85408495545A9BEF99FAFA75C58FF@HAL9005> Regarding access restrictions I tell users there are two approaches - one in an environment where people might want to do mischief or go around the rules, and one where people behave according to the rules. Because my restrictions are easily overcome - the passwords and access levels can be changed just by opening the user table in the back end. In every one of my clients' cases, the open easily defeated access restrictions are fine because everyone 'follows the rules'. If they only have read/write and need admin access, they won't change their level in the back end just to get something done - they'll ask an admin level person to do it. In a large user environment like your insurance app, I'm sure this would not be adequate protection against people who might want to cover their mistakes, their tracks, or their ass. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 7:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: 2 Questions > SO she deleted the ones from the query that she didn't want and printed the rest - not knowing that when you delete records from a query you're actually deleting them from the tables. A little knowledge... ROTFLMAO! That is one worth retelling. I had a user discovered how to add fields to the table. I found her adding fields to the table. The hilarious part is that she was in the FE trying to add fields to the table in the BE. I quietly informed her that she is not allowed to do such things - that she needs to ASK... , then I quietly informed her manager that she was trying to do this and that she is not allowed to do such things. It certainly sounds like you handle the "who is authorized" issue. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > I routinely put login name and password in an app and each user has > read only, read/write, or administrator access. So it's easy to > restrict specific functions to admin levels. However, most of my > clients are small - > 2-6 users, and I have not had anyone call up crying in their beer > about delete errors. > ... > Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/09/10 23:33:00 From cfoust at infostatsystems.com Wed Mar 10 10:25:14 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Mar 2010 10:25:14 -0600 Subject: [AccessD] 2 Questions In-Reply-To: <4B979FEB.60401@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: I have to agree with John (although not on all details! LOL). RE belongs in the backend. It's part of the structure of the data. Where I differ from John is in enabling cascading deletes, but that's only because I'm working in .Net. When I developed in Access, I did not normally enable cascading deletes except in special circumstances. But the cascading updates are the grease that makes the wheels spin freely. The argument I hear most frequently for doing without RE is that it doesn't work between BE and FE, and that's absolutely true. You cannot enforce RE between FE tables and BE tables. But here's a flash: Any tables in the FE should be working tables, not data tables, so there's no need for RE between them and the BE. RE enforced in the BE is inherited along with the table links, so it's a no brainer. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions Tony, Referential integrity is the foundation of a database. Without it you are hopelessly lost. 1) Referential integrity essentially says that you can't have a child without having a parent (makes sense right?). So... If you have clients and orders, you can't have an order without having a client. More importantly, you can't have an order without selecting a SPECIFIC client. Referential integrity says that you can't DELETE a client without deleting all of that client's orders. Again, makes sense right? If you are allowed to delete clients without deleting that client's orders then you have orders with no clients (see one above). This just hoses everything. You do reports of all your orders and where they shipped to... ooops these orders don't have a client so we can't tell where we shipped them to. We count orders not paid for yet. Ooops we have orders with no client so there is no way to determine that they were paid for. ANYTHING that you have to have the Client record to report on gets trashed. It's just a bad thing, having orders with no client. Or any other child record without a parent. This condition is called "orphaned records" because a child with no parent is an orphan. Orphans are "lost", they just cause a raft of issues, all of them BAD! Referential integrity is the business of the database engine, NOT the FE or application. Every database engine, whether Jet, SQL Server, Oracle or any other has powerful mechanisms built in for maintaining referential integrity. I mentioned that RE is not the business of the FE, and the reason is simple. If you have to handle RE then you are CONSTANTLY checking in code whether you performed all of the steps necessary to maintain RE. Furthermore, you place that same burden on any other developer accessing your data. Suddenly ANY developer trying to update, add or delete records has to be concerned with RE. Most of us developers simply are not trained to do RE right, and even if we are, human error creeps in. Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you don't, and I expect that you are, I don't bother to even attempt to handle RE issues and suddenly I am trashing data. BELIEVE ME (and the other developers on the list should chime in), RE is the business of the database engine, NOT the developer! Creating the relationships in the relationship window is how you turn on RE. 1) Open your relationship window. Click, drag and drop from the PK in the parent to the FK in the child. An "edit relationships" dialog opens. The top check box underneath says "Enforce referential integrity. Check that box. THAT is what causes JET to perform all of the checks to prevent ORPHANS. 2) The next check says "cascade update...". This has to do with cascading updates to the data in the PK down into the child. If you use autonumbers (surrogate keys) for PKs (and you should), then the PK is never updated and you do not need to check this box. If you use natural keys, then the PK data can and will change, and those changes have to be rippled down into the child FKs. Cascade update causes JET to do that "cascade" update to the child FK fields. 3) The last check box says "Cascade delete...". This has to do with whether you want the database to automatically delete child records if the parent record is deleted. Like everything else, this is fiercely debated but my opinion is that this is a BAD idea. The reason is simply that users tend to ignore "are you sure" messages. The more junior the user, the more they ignore the "are you sure" messages. Cascade delete on means that if the user accidentally deletes that client record, the orders will just be automatically deleted. The checks, invoices, communications, whatever else you have child to client will be automatically deleted. With one simple delete of one teeny little record you can rip huge chunks of your database out. It is a PITA but my method of handling this is to have a delete button which only specific groups (supervisors / managers etc) can even see. That button does the "are you sure" prompt, then runs delete queries which delete the child records in the correct order back up to the parent. Again, this is fiercely debated but how you handle it is less important than that you UNDERSTAND what this stuff does and why you would or would not use it. After that, it is on your head. John W. Colby www.ColbyConsulting.com Tony Septav wrote: > Hey Asger > I am not trying to start a debate. But if I do my joins in a query (with > many many tables joined), if I visually check my results and find an > error (or add code to test for errors), I can strip everything down and > rebuild it back up step by step. This way I can verify my results and > ensure referential integrity. If 1 does not equal 1 then I am in trouble. > > Asger Blond wrote: > >> 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. >> >> Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 10 10:31:06 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 16:31:06 -0000 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: Yes I know Gustav, but I was writing an email not a tutorial. BUT it is more dangerous, because it can be forgotten about for ages and ages and then suddenly! There it is in your face...no thanks. For you,maybe. For me, no way. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 10, 2010 2:33 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] 2 Questions Hi Max It is not "some" switch. There is one specific switch that controls cascade-deletes for a relation. If anyone is unsure how to operate this or to handle referential integrity in general, I will certainly recommend to read it up at the soonest as this is the heart and soul of a relational database. As for how "dangerous" cascade-deletes are, it is not different from any other action that alters or deletes data in the database. /gustav >>> max.wanadoo at gmail.com 10-03-2010 15:05 >>> Tony, You are being mislead here. Nobody is saying that Referencial Integrity should not be practised. All I am saying is that I do not use the built in tools in Accesss to do it. I do it manually. Ignore the band wagon which has sprung up by those who didnt read it correctly (and if that statement doesn't get a response then I do not know what will !!). The reason I do not use it is because I got badly bitten by Cascading Deletes some years ago. I now control what gets deleted and under what circumstances and not leave it to some "switch" being turned on in Access. So, use Ref Int but you choose how to implment it. Max On 10 March 2010 13:34, jwcolby wrote: > Tony, > > Referential integrity is the foundation of a database. Without it you are hopelessly lost. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 10 10:46:49 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 Mar 2010 17:46:49 +0100 Subject: [AccessD] 2 Questions Message-ID: Hi John That's the beaty of cascade-deletes - the perfect clean-up tool! /gustav >>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > As for how "dangerous" cascade-deletes are, it is not different from any other action that alters or deletes data in the database. Well... I disagree of course. The problem is that cascade deletes deletes EVERYTHING down to the last great-great-great-great grandchild record (assuming Cascade delete everywhere). That is pretty darned dangerous. From jwcolby at colbyconsulting.com Wed Mar 10 11:00:24 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 12:00:24 -0500 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: <4B97D028.3080004@colbyconsulting.com> > That's the beaty of cascade-deletes - the perfect clean-up tool! ROTFL. Indeed! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > > As for how "dangerous" cascade-deletes are, it is not different from any other action that alters > or deletes data in the database. > > Well... I disagree of course. The problem is that cascade deletes deletes EVERYTHING down to the > last great-great-great-great grandchild record (assuming Cascade delete everywhere). That is pretty > darned dangerous. > > > From max.wanadoo at gmail.com Wed Mar 10 11:14:20 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 17:14:20 -0000 Subject: [AccessD] 2 Questions In-Reply-To: <4B97D028.3080004@colbyconsulting.com> References: <4B97D028.3080004@colbyconsulting.com> Message-ID: <87857D7823044A0EBDA13B469C66E1AD@Server> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions > That's the beaty of cascade-deletes - the perfect clean-up tool! ROTFL. Indeed! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > > As for how "dangerous" cascade-deletes are, it is not different > from any other action that alters or deletes data in the database. > > Well... I disagree of course. The problem is that cascade deletes > deletes EVERYTHING down to the last great-great-great-great grandchild > record (assuming Cascade delete everywhere). That is pretty darned dangerous. > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 10 11:37:18 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 Mar 2010 18:37:18 +0100 Subject: [AccessD] 2 Questions Message-ID: Hi Max This may have been the case for you but it is not so in general. Cascade-delete does not delete all your data except if all tables are linked back to one single top-level table from which you "just happen" to delete all records. And should you have set it up to do so, it would be for a purpose, and it will not delete the records without the usual warning. Cascade-updates and cascade-deletes are excellent tools. Just learn to ride them. It isn't hard. /gustav >>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions > That's the beaty of cascade-deletes - the perfect clean-up tool! ROTFL. Indeed! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > > As for how "dangerous" cascade-deletes are, it is not different > from any other action that alters or deletes data in the database. > > Well... I disagree of course. The problem is that cascade deletes > deletes EVERYTHING down to the last great-great-great-great grandchild > record (assuming Cascade delete everywhere). That is pretty darned dangerous. From andy at minstersystems.co.uk Wed Mar 10 12:52:05 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Mar 2010 18:52:05 -0000 Subject: [AccessD] 2 Questions In-Reply-To: Message-ID: Ooh we haven't had a good rant-thread for ages. Makes me quite nostalgic. Just like old times. Go guys. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 March 2010 17:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] 2 Questions Hi Max This may have been the case for you but it is not so in general. Cascade-delete does not delete all your data except if all tables are linked back to one single top-level table from which you "just happen" to delete all records. And should you have set it up to do so, it would be for a purpose, and it will not delete the records without the usual warning. Cascade-updates and cascade-deletes are excellent tools. Just learn to ride them. It isn't hard. /gustav >>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions > That's the beaty of cascade-deletes - the perfect clean-up tool! ROTFL. Indeed! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > > As for how "dangerous" cascade-deletes are, it is not different > from any other action that alters or deletes data in the database. > > Well... I disagree of course. The problem is that cascade deletes > deletes EVERYTHING down to the last great-great-great-great grandchild > record (assuming Cascade delete everywhere). That is pretty darned dangerous. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 10 13:00:39 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 19:00:39 -0000 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: Ok... When I went to school, RE stood for Religious Education. Seems we have some of that going on here as well...no? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 10, 2010 6:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] 2 Questions Ooh we haven't had a good rant-thread for ages. Makes me quite nostalgic. Just like old times. Go guys. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 March 2010 17:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] 2 Questions Hi Max This may have been the case for you but it is not so in general. Cascade-delete does not delete all your data except if all tables are linked back to one single top-level table from which you "just happen" to delete all records. And should you have set it up to do so, it would be for a purpose, and it will not delete the records without the usual warning. Cascade-updates and cascade-deletes are excellent tools. Just learn to ride them. It isn't hard. /gustav >>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions > That's the beaty of cascade-deletes - the perfect clean-up tool! ROTFL. Indeed! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> > > As for how "dangerous" cascade-deletes are, it is not different > from any other action that alters or deletes data in the database. > > Well... I disagree of course. The problem is that cascade deletes > deletes EVERYTHING down to the last great-great-great-great grandchild > record (assuming Cascade delete everywhere). That is pretty darned dangerous. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 10 13:08:19 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 14:08:19 -0500 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: <4B97EE23.7010104@colbyconsulting.com> LOL, quite right. Substitute RI at your discretion. 8( John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ok... > > When I went to school, RE stood for Religious Education. > > Seems we have some of that going on here as well...no? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 10, 2010 6:52 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] 2 Questions > > Ooh we haven't had a good rant-thread for ages. Makes me quite nostalgic. > Just like old times. Go guys. > > Andy > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 10 March 2010 17:37 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] 2 Questions > > > Hi Max > > This may have been the case for you but it is not so in general. > Cascade-delete does not delete all your data except if all tables are linked > back to one single top-level table from which you "just happen" to delete > all records. > And should you have set it up to do so, it would be for a purpose, and it > will not delete the records without the usual warning. > > Cascade-updates and cascade-deletes are excellent tools. Just learn to ride > them. It isn't hard. > > /gustav > > >>>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> > ...and if your very lucky, it will go on and delete your whole data...all > without a so much as bye your leave. Then it will be every so nice and > clean. > > Great stuff these switches - not! > > Be lazy at your peril!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, March 10, 2010 5:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > > That's the beaty of cascade-deletes - the perfect clean-up tool! > > ROTFL. Indeed! > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: >> Hi John >> >> That's the beaty of cascade-deletes - the perfect clean-up tool! >> >> /gustav >> >> >>>>> jwcolby at colbyconsulting.com 10-03-2010 16:09 >>> >> > As for how "dangerous" cascade-deletes are, it is not different >> from any other action that alters or deletes data in the database. >> >> Well... I disagree of course. The problem is that cascade deletes >> deletes EVERYTHING down to the last great-great-great-great grandchild >> record (assuming Cascade delete everywhere). That is pretty darned > dangerous. > > > -- > 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 Wed Mar 10 13:28:10 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 10 Mar 2010 20:28:10 +0100 Subject: [AccessD] 2 Questions In-Reply-To: <4B96FC31.28123.4172D2D@stuart.lexacorp.com.pg> References: <4B96A089.7040309@nanaimo.ark.com>, <4B96C615.9090301@nanaimo.ark.com>, <5780250AF1994E22AD164677FC3697C1@abpc> <4B96FC31.28123.4172D2D@stuart.lexacorp.com.pg> Message-ID: <30E6CC6D8BF64348B9CE9CD80100CFC3@abpc> Stuart, Agree, just forgot to mention *deletes* besides *inserts* and *updates* ... Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 10. marts 2010 02:56 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] 2 Questions To me, the most importance role of referential integrity is with "deletes". Without RE, it is all too easy to get "orphaned" records. This can lead to all sorts of problems when trying to summarise data. -- Stuart On 10 Mar 2010 at 0:07, Asger Blond wrote: > But establishing foreign key constrains is a quite different beast. It > has per se nothing whatsoever to do with joining fields in *queries*: > it is there for enforcing consistency between values in different > fields when you are doing *inserts* and *updates*. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 10 13:26:28 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Mar 2010 13:26:28 -0600 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: It will if you're so ill-advised as to set warnings off! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 10, 2010 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] 2 Questions Hi Max This may have been the case for you but it is not so in general. Cascade-delete does not delete all your data except if all tables are linked back to one single top-level table from which you "just happen" to delete all records. And should you have set it up to do so, it would be for a purpose, and it will not delete the records without the usual warning. Cascade-updates and cascade-deletes are excellent tools. Just learn to ride them. It isn't hard. /gustav >>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max From max.wanadoo at gmail.com Wed Mar 10 13:37:36 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 19:37:36 -0000 Subject: [AccessD] 2 Questions In-Reply-To: References: Message-ID: <3BE9E27AAEBA4BAAA38A2A990AE8E50A@Server> OOPS, sorry. I nearly fell off my chair then. For one silly moment, I thought Charlotte was agreeing with me. Then I though .."nah!, couldn't be. Still hot in hell - not frozen yet". Silly me! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 10, 2010 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions It will if you're so ill-advised as to set warnings off! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 10, 2010 9:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] 2 Questions Hi Max This may have been the case for you but it is not so in general. Cascade-delete does not delete all your data except if all tables are linked back to one single top-level table from which you "just happen" to delete all records. And should you have set it up to do so, it would be for a purpose, and it will not delete the records without the usual warning. Cascade-updates and cascade-deletes are excellent tools. Just learn to ride them. It isn't hard. /gustav >>> max.wanadoo at gmail.com 10-03-2010 18:14 >>> ...and if your very lucky, it will go on and delete your whole data...all without a so much as bye your leave. Then it will be every so nice and clean. Great stuff these switches - not! Be lazy at your peril!! Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 10 13:48:19 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 14:48:19 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <3BE9E27AAEBA4BAAA38A2A990AE8E50A@Server> References: <3BE9E27AAEBA4BAAA38A2A990AE8E50A@Server> Message-ID: <4B97F783.6020507@colbyconsulting.com> lol. Uhhh... given that you do not use RI, it seems unlikely that she is agreeing with you. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > OOPS, sorry. I nearly fell off my chair then. > For one silly moment, I thought Charlotte was agreeing with me. > Then I though .."nah!, couldn't be. Still hot in hell - not frozen yet". > > Silly me! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, March 10, 2010 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > It will if you're so ill-advised as to set warnings off! > > Charlotte Foust From max.wanadoo at gmail.com Wed Mar 10 13:58:20 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Mar 2010 19:58:20 -0000 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B97F783.6020507@colbyconsulting.com> References: <3BE9E27AAEBA4BAAA38A2A990AE8E50A@Server> <4B97F783.6020507@colbyconsulting.com> Message-ID: <1FECD3EE4D16430D8D1C94A9A6CA1BD1@Server> Well, I do use it. I also use Classes. I am just careful where and why. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: 2 Questions lol. Uhhh... given that you do not use RI, it seems unlikely that she is agreeing with you. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > OOPS, sorry. I nearly fell off my chair then. > For one silly moment, I thought Charlotte was agreeing with me. > Then I though .."nah!, couldn't be. Still hot in hell - not frozen yet". > > Silly me! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Wednesday, March 10, 2010 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2 Questions > > It will if you're so ill-advised as to set warnings off! > > Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed Mar 10 14:35:18 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 Mar 2010 14:35:18 -0600 Subject: [AccessD] 2 Queries different results Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> I have two queries in 2 different databases that use the same source data but return different results. I am failing to see the difference. Here is the data for the first query. PID SDate Chase_Start_Date SDate_2 Chase_Start_Date_2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the data for the second query PID SDate Chase_Start_Date SDate_2 Chase_Start_Date2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the first query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([RecordDate]<=[Chase_Start_Date] Or [Chase_Start_Date] Is Null Or [RecordDate]>=[SDate_2] And [RecordDate]<[Chase_Start_Date_2],1, IIf([RecordDate]>[Chase_Start_Date] And [RecordDate][Chase_Start_Date_2], DateDiff("m",[Chase_Start_Date_2], [RecordDate]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Well_in_CO2PAT) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].RecordDate)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. This is the correct answer: Well_in_CO2PAT RecordDate Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 5 Here is the second query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([ProductionMonth]<=[Chase_Start_Date]Or [Chase_Start_Date] Is Null Or [ProductionMonth]>=[SDate_2]And [ProductionMonth]<[Chase_Start_Date2],1, IIf([ProductionMonth]>[Chase_Start_Date] And [ProductionMonth][Chase_Start_Date2], DateDiff("m",[Chase_Start_Date2], [ProductionMonth]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT_API = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Well_in_CO2PAT_API) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].ProductionMonth)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. Wrong answer Well_in_CO2PAT ProductionMonth Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 1 139-3 1/1/2010 140-5 5 139-3 1/1/2010 140-5 21 The query appears to be returning months on chase water value 1 as if it never had an SDate, the months between SDate2 and January 2010 and the months between Chase_Start_Date2 and January 2010. Thanks for any help. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From jm.hwsn at gmail.com Wed Mar 10 14:48:39 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Wed, 10 Mar 2010 14:48:39 -0600 Subject: [AccessD] 2 Queries different results In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> Message-ID: <4b980591.1c215e0a.3d6e.5131@mx.google.com> Should it make a difference that in query 1 you are using RecordDate and in query 2, ProductionMonth is being used. Not sure if this makes a difference or not, but the last field name of each result set are different. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, March 10, 2010 2:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Queries different results I have two queries in 2 different databases that use the same source data but return different results. I am failing to see the difference. Here is the data for the first query. PID SDate Chase_Start_Date SDate_2 Chase_Start_Date_2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the data for the second query PID SDate Chase_Start_Date SDate_2 Chase_Start_Date2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the first query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([RecordDate]<=[Chase_Start_Date] Or [Chase_Start_Date] Is Null Or [RecordDate]>=[SDate_2] And [RecordDate]<[Chase_Start_Date_2],1, IIf([RecordDate]>[Chase_Start_Date] And [RecordDate][Chase_Start_Date_2], DateDiff("m",[Chase_Start_Date_2], [RecordDate]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Well_in_CO2PAT) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].RecordDate)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. This is the correct answer: Well_in_CO2PAT RecordDate Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 5 Here is the second query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([ProductionMonth]<=[Chase_Start_Date]Or [Chase_Start_Date] Is Null Or [ProductionMonth]>=[SDate_2]And [ProductionMonth]<[Chase_Start_Date2],1, IIf([ProductionMonth]>[Chase_Start_Date] And [ProductionMonth][Chase_Start_Date2], DateDiff("m",[Chase_Start_Date2], [ProductionMonth]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT_API = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Well_in_CO2PAT_API) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].ProductionMonth)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. Wrong answer Well_in_CO2PAT ProductionMonth Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 1 139-3 1/1/2010 140-5 5 139-3 1/1/2010 140-5 21 The query appears to be returning months on chase water value 1 as if it never had an SDate, the months between SDate2 and January 2010 and the months between Chase_Start_Date2 and January 2010. Thanks for any help. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Mar 10 15:46:13 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Mar 2010 07:46:13 +1000 Subject: [AccessD] 2 Questions In-Reply-To: <4B979FEB.60401@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com>, <4B96C615.9090301@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com> Message-ID: <4B981325.27244.858DD01@stuart.lexacorp.com.pg> JC, Here, here! A very good explanation which should be a FAQ somewhere. -- Stuart On 10 Mar 2010 at 8:34, jwcolby wrote: > Tony, > > Referential integrity is the foundation of a database. Without it you are hopelessly lost. > > 1) Referential integrity essentially says that you can't have a child without having a parent (makes > sense right?). > > So... If you have clients and orders, you can't have an order without having a client. More > importantly, you can't have an order without selecting a SPECIFIC client. Referential integrity > says that you can't DELETE a client without deleting all of that client's orders. Again, makes > sense right? If you are allowed to delete clients without deleting that client's orders then you > have orders with no clients (see one above). This just hoses everything. You do reports of all > your orders and where they shipped to... ooops these orders don't have a client so we can't tell > where we shipped them to. We count orders not paid for yet. Ooops we have orders with no client so > there is no way to determine that they were paid for. ANYTHING that you have to have the Client > record to report on gets trashed. > > It's just a bad thing, having orders with no client. Or any other child record without a parent. > > This condition is called "orphaned records" because a child with no parent is an orphan. Orphans > are "lost", they just cause a raft of issues, all of them BAD! > > Referential integrity is the business of the database engine, NOT the FE or application. Every > database engine, whether Jet, SQL Server, Oracle or any other has powerful mechanisms built in for > maintaining referential integrity. > > I mentioned that RE is not the business of the FE, and the reason is simple. If you have to handle > RE then you are CONSTANTLY checking in code whether you performed all of the steps necessary to > maintain RE. Furthermore, you place that same burden on any other developer accessing your data. > Suddenly ANY developer trying to update, add or delete records has to be concerned with RE. Most of > us developers simply are not trained to do RE right, and even if we are, human error creeps in. > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you don't, and I expect that you > are, I don't bother to even attempt to handle RE issues and suddenly I am trashing data. > > BELIEVE ME (and the other developers on the list should chime in), RE is the business of the > database engine, NOT the developer! > > Creating the relationships in the relationship window is how you turn on RE. > > 1) Open your relationship window. Click, drag and drop from the PK in the parent to the FK in the > child. An "edit relationships" dialog opens. The top check box underneath says "Enforce > referential integrity. Check that box. THAT is what causes JET to perform all of the checks to > prevent ORPHANS. > > 2) The next check says "cascade update...". This has to do with cascading updates to the data in > the PK down into the child. If you use autonumbers (surrogate keys) for PKs (and you should), then > the PK is never updated and you do not need to check this box. If you use natural keys, then the PK > data can and will change, and those changes have to be rippled down into the child FKs. Cascade > update causes JET to do that "cascade" update to the child FK fields. > > 3) The last check box says "Cascade delete...". This has to do with whether you want the database > to automatically delete child records if the parent record is deleted. Like everything else, this > is fiercely debated but my opinion is that this is a BAD idea. The reason is simply that users tend > to ignore "are you sure" messages. The more junior the user, the more they ignore the "are you > sure" messages. Cascade delete on means that if the user accidentally deletes that client record, > the orders will just be automatically deleted. The checks, invoices, communications, whatever else > you have child to client will be automatically deleted. With one simple delete of one teeny little > record you can rip huge chunks of your database out. > > It is a PITA but my method of handling this is to have a delete button which only specific groups > (supervisors / managers etc) can even see. That button does the "are you sure" prompt, then runs > delete queries which delete the child records in the correct order back up to the parent. > > Again, this is fiercely debated but how you handle it is less important than that you UNDERSTAND > what this stuff does and why you would or would not use it. After that, it is on your head. > > John W. Colby > www.ColbyConsulting.com > From stuart at lexacorp.com.pg Wed Mar 10 15:53:37 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Mar 2010 07:53:37 +1000 Subject: [AccessD] 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com>, Message-ID: <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> So how do you apply RE in Access without using the Relationships window? And don't tell me that you use code behind every Delete, Insert, Update event. - that is not using RE. RE is *automatic* enforcement of referential rules at the database level. -- Stuart On 10 Mar 2010 at 14:05, Max Wanadoo wrote: > Tony, > > You are being mislead here. Nobody is saying that Referencial Integrity > should not be practised. All I am saying is that I do not use the built in > tools in Accesss to do it. I do it manually. Ignore the band wagon which > has sprung up by those who didnt read it correctly (and if that statement > doesn't get a response then I do not know what will !!). > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. I now control what gets deleted and under what > circumstances and not leave it to some "switch" being turned on in Access. > > So, use Ref Int but you choose how to implment it. > > Max > > > > On 10 March 2010 13:34, jwcolby wrote: > > > Tony, > > > > Referential integrity is the foundation of a database. Without it you are > > hopelessly lost. > > > > 1) Referential integrity essentially says that you can't have a child > > without having a parent (makes > > sense right?). > > > > So... If you have clients and orders, you can't have an order without > > having a client. More > > importantly, you can't have an order without selecting a SPECIFIC client. > > Referential integrity > > says that you can't DELETE a client without deleting all of that client's > > orders. Again, makes > > sense right? If you are allowed to delete clients without deleting that > > client's orders then you > > have orders with no clients (see one above). This just hoses everything. > > You do reports of all > > your orders and where they shipped to... ooops these orders don't have a > > client so we can't tell > > where we shipped them to. We count orders not paid for yet. Ooops we have > > orders with no client so > > there is no way to determine that they were paid for. ANYTHING that you > > have to have the Client > > record to report on gets trashed. > > > > It's just a bad thing, having orders with no client. Or any other child > > record without a parent. > > > > This condition is called "orphaned records" because a child with no parent > > is an orphan. Orphans > > are "lost", they just cause a raft of issues, all of them BAD! > > > > Referential integrity is the business of the database engine, NOT the FE or > > application. Every > > database engine, whether Jet, SQL Server, Oracle or any other has powerful > > mechanisms built in for > > maintaining referential integrity. > > > > I mentioned that RE is not the business of the FE, and the reason is > > simple. If you have to handle > > RE then you are CONSTANTLY checking in code whether you performed all of > > the steps necessary to > > maintain RE. Furthermore, you place that same burden on any other > > developer accessing your data. > > Suddenly ANY developer trying to update, add or delete records has to be > > concerned with RE. Most of > > us developers simply are not trained to do RE right, and even if we are, > > human error creeps in. > > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > > don't, and I expect that you > > are, I don't bother to even attempt to handle RE issues and suddenly I am > > trashing data. > > > > BELIEVE ME (and the other developers on the list should chime in), RE is > > the business of the > > database engine, NOT the developer! > > > > Creating the relationships in the relationship window is how you turn on > > RE. > > > > 1) Open your relationship window. Click, drag and drop from the PK in the > > parent to the FK in the > > child. An "edit relationships" dialog opens. The top check box underneath > > says "Enforce > > referential integrity. Check that box. THAT is what causes JET to perform > > all of the checks to > > prevent ORPHANS. > > > > 2) The next check says "cascade update...". This has to do with cascading > > updates to the data in > > the PK down into the child. If you use autonumbers (surrogate keys) for > > PKs (and you should), then > > the PK is never updated and you do not need to check this box. If you use > > natural keys, then the PK > > data can and will change, and those changes have to be rippled down into > > the child FKs. Cascade > > update causes JET to do that "cascade" update to the child FK fields. > > > > 3) The last check box says "Cascade delete...". This has to do with > > whether you want the database > > to automatically delete child records if the parent record is deleted. > > Like everything else, this > > is fiercely debated but my opinion is that this is a BAD idea. The reason > > is simply that users tend > > to ignore "are you sure" messages. The more junior the user, the more they > > ignore the "are you > > sure" messages. Cascade delete on means that if the user accidentally > > deletes that client record, > > the orders will just be automatically deleted. The checks, invoices, > > communications, whatever else > > you have child to client will be automatically deleted. With one simple > > delete of one teeny little > > record you can rip huge chunks of your database out. > > > > It is a PITA but my method of handling this is to have a delete button > > which only specific groups > > (supervisors / managers etc) can even see. That button does the "are you > > sure" prompt, then runs > > delete queries which delete the child records in the correct order back up > > to the parent. > > > > Again, this is fiercely debated but how you handle it is less important > > than that you UNDERSTAND > > what this stuff does and why you would or would not use it. After that, it > > is on your head. > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Tony Septav wrote: > > > Hey Asger > > > I am not trying to start a debate. But if I do my joins in a query (with > > > many many tables joined), if I visually check my results and find an > > > error (or add code to test for errors), I can strip everything down and > > > rebuild it back up step by step. This way I can verify my results and > > > ensure referential integrity. If 1 does not equal 1 then I am in > > trouble. > > > > > > Asger Blond wrote: > > > > > >> 2. I use Tools | Relationship to create foreign key constraints > > ("enforce referential integrity"). Without foreign key constraints the data > > will soon loose consistency. > > >> > > >> Asger > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Mar 10 16:01:51 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Mar 2010 08:01:51 +1000 Subject: [AccessD] 2 Questions In-Reply-To: <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> References: <4B96A089.7040309@nanaimo.ark.com>, , <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> Message-ID: <4B9816CF.3024.8672CD5@stuart.lexacorp.com.pg> I meant RI fo course, -- Stuart On 11 Mar 2010 at 7:53, Stuart McLachlan wrote: > So how do you apply RE in Access without using the Relationships window? > > And don't tell me that you use code behind every Delete, Insert, Update event. - that is not > using RE. RE is *automatic* enforcement of referential rules at the database level. > > -- > Stuart > > On 10 Mar 2010 at 14:05, Max Wanadoo wrote: > > > Tony, > > > > You are being mislead here. Nobody is saying that Referencial Integrity > > should not be practised. All I am saying is that I do not use the built in > > tools in Accesss to do it. I do it manually. Ignore the band wagon which > > has sprung up by those who didnt read it correctly (and if that statement > > doesn't get a response then I do not know what will !!). > > > > The reason I do not use it is because I got badly bitten by Cascading > > Deletes some years ago. I now control what gets deleted and under what > > circumstances and not leave it to some "switch" being turned on in Access. > > > > So, use Ref Int but you choose how to implment it. > > > > Max > > > > > > > > On 10 March 2010 13:34, jwcolby wrote: > > > > > Tony, > > > > > > Referential integrity is the foundation of a database. Without it you are > > > hopelessly lost. > > > > > > 1) Referential integrity essentially says that you can't have a child > > > without having a parent (makes > > > sense right?). > > > > > > So... If you have clients and orders, you can't have an order without > > > having a client. More > > > importantly, you can't have an order without selecting a SPECIFIC client. > > > Referential integrity > > > says that you can't DELETE a client without deleting all of that client's > > > orders. Again, makes > > > sense right? If you are allowed to delete clients without deleting that > > > client's orders then you > > > have orders with no clients (see one above). This just hoses everything. > > > You do reports of all > > > your orders and where they shipped to... ooops these orders don't have a > > > client so we can't tell > > > where we shipped them to. We count orders not paid for yet. Ooops we have > > > orders with no client so > > > there is no way to determine that they were paid for. ANYTHING that you > > > have to have the Client > > > record to report on gets trashed. > > > > > > It's just a bad thing, having orders with no client. Or any other child > > > record without a parent. > > > > > > This condition is called "orphaned records" because a child with no parent > > > is an orphan. Orphans > > > are "lost", they just cause a raft of issues, all of them BAD! > > > > > > Referential integrity is the business of the database engine, NOT the FE or > > > application. Every > > > database engine, whether Jet, SQL Server, Oracle or any other has powerful > > > mechanisms built in for > > > maintaining referential integrity. > > > > > > I mentioned that RE is not the business of the FE, and the reason is > > > simple. If you have to handle > > > RE then you are CONSTANTLY checking in code whether you performed all of > > > the steps necessary to > > > maintain RE. Furthermore, you place that same burden on any other > > > developer accessing your data. > > > Suddenly ANY developer trying to update, add or delete records has to be > > > concerned with RE. Most of > > > us developers simply are not trained to do RE right, and even if we are, > > > human error creeps in. > > > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > > > don't, and I expect that you > > > are, I don't bother to even attempt to handle RE issues and suddenly I am > > > trashing data. > > > > > > BELIEVE ME (and the other developers on the list should chime in), RE is > > > the business of the > > > database engine, NOT the developer! > > > > > > Creating the relationships in the relationship window is how you turn on > > > RE. > > > > > > 1) Open your relationship window. Click, drag and drop from the PK in the > > > parent to the FK in the > > > child. An "edit relationships" dialog opens. The top check box underneath > > > says "Enforce > > > referential integrity. Check that box. THAT is what causes JET to perform > > > all of the checks to > > > prevent ORPHANS. > > > > > > 2) The next check says "cascade update...". This has to do with cascading > > > updates to the data in > > > the PK down into the child. If you use autonumbers (surrogate keys) for > > > PKs (and you should), then > > > the PK is never updated and you do not need to check this box. If you use > > > natural keys, then the PK > > > data can and will change, and those changes have to be rippled down into > > > the child FKs. Cascade > > > update causes JET to do that "cascade" update to the child FK fields. > > > > > > 3) The last check box says "Cascade delete...". This has to do with > > > whether you want the database > > > to automatically delete child records if the parent record is deleted. > > > Like everything else, this > > > is fiercely debated but my opinion is that this is a BAD idea. The reason > > > is simply that users tend > > > to ignore "are you sure" messages. The more junior the user, the more they > > > ignore the "are you > > > sure" messages. Cascade delete on means that if the user accidentally > > > deletes that client record, > > > the orders will just be automatically deleted. The checks, invoices, > > > communications, whatever else > > > you have child to client will be automatically deleted. With one simple > > > delete of one teeny little > > > record you can rip huge chunks of your database out. > > > > > > It is a PITA but my method of handling this is to have a delete button > > > which only specific groups > > > (supervisors / managers etc) can even see. That button does the "are you > > > sure" prompt, then runs > > > delete queries which delete the child records in the correct order back up > > > to the parent. > > > > > > Again, this is fiercely debated but how you handle it is less important > > > than that you UNDERSTAND > > > what this stuff does and why you would or would not use it. After that, it > > > is on your head. > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > > > > Tony Septav wrote: > > > > Hey Asger > > > > I am not trying to start a debate. But if I do my joins in a query (with > > > > many many tables joined), if I visually check my results and find an > > > > error (or add code to test for errors), I can strip everything down and > > > > rebuild it back up step by step. This way I can verify my results and > > > > ensure referential integrity. If 1 does not equal 1 then I am in > > > trouble. > > > > > > > > Asger Blond wrote: > > > > > > > >> 2. I use Tools | Relationship to create foreign key constraints > > > ("enforce referential integrity"). Without foreign key constraints the data > > > will soon loose consistency. > > > >> > > > >> Asger > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed Mar 10 16:02:03 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 Mar 2010 16:02:03 -0600 Subject: [AccessD] 2 Queries different results In-Reply-To: <4b980591.1c215e0a.3d6e.5131@mx.google.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> <4b980591.1c215e0a.3d6e.5131@mx.google.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1917677CDF@houex1.kindermorgan.com> RecordDate and ProductionMonth contain the same data. Something I forgot to mention. Query 1 is from an Access 2003 database and Query 2 is from an Access 2007 database. The access 2007 database is basically a copy of the Access 2003 database. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Wednesday, March 10, 2010 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] 2 Queries different results Should it make a difference that in query 1 you are using RecordDate and in query 2, ProductionMonth is being used. Not sure if this makes a difference or not, but the last field name of each result set are different. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, March 10, 2010 2:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] 2 Queries different results I have two queries in 2 different databases that use the same source data but return different results. I am failing to see the difference. Here is the data for the first query. PID SDate Chase_Start_Date SDate_2 Chase_Start_Date_2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the data for the second query PID SDate Chase_Start_Date SDate_2 Chase_Start_Date2 PAT 140-5 01-Dec-03 01-Mar-07 01-Feb-08 01-Aug-09 Here is the first query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([RecordDate]<=[Chase_Start_Date] Or [Chase_Start_Date] Is Null Or [RecordDate]>=[SDate_2] And [RecordDate]<[Chase_Start_Date_2],1, IIf([RecordDate]>[Chase_Start_Date] And [RecordDate][Chase_Start_Date_2], DateDiff("m",[Chase_Start_Date_2], [RecordDate]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate].Well_in_CO2PAT) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].RecordDate)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].RecordDate, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. This is the correct answer: Well_in_CO2PAT RecordDate Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 5 Here is the second query: SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well, IIf([ProductionMonth]<=[Chase_Start_Date]Or [Chase_Start_Date] Is Null Or [ProductionMonth]>=[SDate_2]And [ProductionMonth]<[Chase_Start_Date2],1, IIf([ProductionMonth]>[Chase_Start_Date] And [ProductionMonth][Chase_Start_Date2], DateDiff("m",[Chase_Start_Date2], [ProductionMonth]),1))) AS [Months on Chase Water] FROM [tbl Injection Data for Allocation] INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth] ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Other_Pattern_as_Well) AND ([tbl Injection Data for Allocation].Well_in_CO2PAT_API = [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth].Well_in_CO2PAT_API) WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") AND (([tbl Injection Data for Allocation].ProductionMonth)=#1/1/2010#) AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) ORDER BY [tbl Injection Data for Allocation].ProductionMonth, [tbl Injection Data for Allocation].Other_Pattern_as_Well; Query Result. Wrong answer Well_in_CO2PAT ProductionMonth Other_Pattern_as_Well Months on Chase Water 139-3 1/1/2010 140-5 1 139-3 1/1/2010 140-5 5 139-3 1/1/2010 140-5 21 The query appears to be returning months on chase water value 1 as if it never had an SDate, the months between SDate2 and January 2010 and the months between Chase_Start_Date2 and January 2010. Thanks for any help. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Mar 10 16:57:42 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 10 Mar 2010 14:57:42 -0800 Subject: [AccessD] 2 Queries different results In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C1917677CDF@houex1.kindermorgan.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> <4b980591.1c215e0a.3d6e.5131@mx.google.com> <0B2BF8524B73A248A2F1B81BA751ED3C1917677CDF@houex1.kindermorgan.com> Message-ID: <8786a4c01003101457r3d80574ej186779025cc320d2@mail.gmail.com> The only other difference that I can see is in the INNER JOIN: first query: INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] B ON (A.Other_Pattern_as_Well = B.Other_Pattern_as_Well) AND (A.Well_in_CO2PAT = B.Well_in_CO2PAT) second query: INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth] B ON (A.Other_Pattern_as_Well = B.Other_Pattern_as_Well) AND (A.Well_in_CO2PAT_API = B.Well_in_CO2PAT_API) The names of the queries that are joined are different (I used an alias to make it easier to read) . The second part of the join also joins on two different named fields (the 2nd join field names end with "_API" If those differences don't matter, I'd run the joined queries listed above with the criteria from this query and see if your results are identical. If so, I'd also query the tables and see if the results are identical. David McAfee On Wed, Mar 10, 2010 at 2:02 PM, Kaup, Chester wrote: > RecordDate and ProductionMonth contain the same data. > Something I forgot to mention. > Query 1 is from an Access 2003 database and Query 2 is from an Access 2007 database. The access 2007 database is basically a copy of the Access 2003 database. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: Wednesday, March 10, 2010 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] 2 Queries different results > > Should it make a difference that in query 1 you are using RecordDate and in > query 2, ProductionMonth is being used. > Not sure if this makes a difference or not, but the last field name of each > result set are different. > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester > Sent: Wednesday, March 10, 2010 2:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] 2 Queries different results > > I have two queries in 2 different databases that use the same source data > but return different results. I am failing to see the difference. Here is > the data for the first query. > > PID ? ? ? ? ? ? SDate ? ? ? ? ? Chase_Start_Date ? ? ? ?SDate_2 > Chase_Start_Date_2 > PAT 140-5 ? ? ? 01-Dec-03 ? ? ? 01-Mar-07 ? ? ? ? ? ? ? 01-Feb-08 > 01-Aug-09 > > Here is the data for the second query > > PID ? ? ? ? ? ? SDate ? ? ? ? ? Chase_Start_Date ? ? ? ?SDate_2 > Chase_Start_Date2 > PAT 140-5 ? ? ? 01-Dec-03 ? ? ? 01-Mar-07 ? ? ? ? ? ? ? 01-Feb-08 > 01-Aug-09 > > > Here is the first query: > > SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, > [tbl Injection Data for Allocation].RecordDate, > [tbl Injection Data for Allocation].Other_Pattern_as_Well, > IIf([RecordDate]<=[Chase_Start_Date] Or > [Chase_Start_Date] Is Null Or > [RecordDate]>=[SDate_2] And [RecordDate]<[Chase_Start_Date_2],1, > IIf([RecordDate]>[Chase_Start_Date] And > [RecordDate] DateDiff("m",[Chase_Start_Date],[RecordDate]), > IIf([RecordDate]>[Chase_Start_Date_2], > DateDiff("m",[Chase_Start_Date_2], > [RecordDate]),1))) > AS [Months on Chase Water] > FROM [tbl Injection Data for Allocation] > INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] > ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > RecordDate].Other_Pattern_as_Well) > AND ([tbl Injection Data for Allocation].Well_in_CO2PAT = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > RecordDate].Well_in_CO2PAT) > WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") > AND (([tbl Injection Data for Allocation].RecordDate)=#1/1/2010#) > AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) > ORDER BY [tbl Injection Data for Allocation].RecordDate, > [tbl Injection Data for Allocation].Other_Pattern_as_Well; > > Query Result. This is the correct answer: > Well_in_CO2PAT ?RecordDate ? ? ?Other_Pattern_as_Well ? Months on Chase > Water > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ?140-5 > 5 > > Here is the second query: > SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, > [tbl Injection Data for Allocation].ProductionMonth, > [tbl Injection Data for Allocation].Other_Pattern_as_Well, > IIf([ProductionMonth]<=[Chase_Start_Date]Or > [Chase_Start_Date] Is Null Or > [ProductionMonth]>=[SDate_2]And [ProductionMonth]<[Chase_Start_Date2],1, > IIf([ProductionMonth]>[Chase_Start_Date] And > [ProductionMonth] DateDiff("m",[Chase_Start_Date],[ProductionMonth]), > IIf([ProductionMonth]>[Chase_Start_Date2], > DateDiff("m",[Chase_Start_Date2], > [ProductionMonth]),1))) > AS [Months on Chase Water] > FROM [tbl Injection Data for Allocation] > INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth] > ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth].Other_Pattern_as_Well) > AND ([tbl Injection Data for Allocation].Well_in_CO2PAT_API = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth].Well_in_CO2PAT_API) > WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") > AND (([tbl Injection Data for Allocation].ProductionMonth)=#1/1/2010#) > AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) > ORDER BY [tbl Injection Data for Allocation].ProductionMonth, > [tbl Injection Data for Allocation].Other_Pattern_as_Well; > > Query Result. Wrong answer > Well_in_CO2PAT ?ProductionMonth Other_Pattern_as_Well ? Months on Chase > Water > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 1 > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 5 > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 21 > > The query appears to be returning months on chase water value 1 as if it > never had an SDate, the months between SDate2 and January 2010 and the > months between Chase_Start_Date2 and January 2010. > > Thanks for any help. > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > No trees were killed in the sending of this message. However a large number > of electrons were terribly inconvenienced. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Wed Mar 10 16:59:33 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 10 Mar 2010 23:59:33 +0100 Subject: [AccessD] 2 Questions In-Reply-To: <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> References: <4B96A089.7040309@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com>, <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> Message-ID: <22F113EC11B04495A3DC5AE31D07FD04@abpc> Max, I was just about to ask the same question when Stuarts posting arrived. In a previous response you wrote: > Nobody is saying that Referencial Integrity should not be practised. > All I am saying is that I do not use the built in tools in Accesss to do > it. I do it manually. So: what exactly do you mean by "manually"? Essentially constraints can be enforced in two ways: *declarative* and *procedural*. A *declarative* foreign key constraint means that the constraint is part of the table definition itself. This is what you get when using the Relationship-Tool. You can of course set up this constraint by hand writing a SQL like this: ALTER TABLE tblOrder ADD CONSTRAINT FK_Order_Customer FOREIGN KEY (CustomerID) REFERENCES tblCustomer (CustomerID). Is this what you mean by establishing RI "manually"? If so: WHAT A WASTE OF TIME ... since you can accomplish exactly the same with a few mouse clicks using the Relationship-Tool. A *procedural* foreign key constraint means that the constraint is not enforced in the table definition, but by some code "behind every Delete, Insert, Update event" (to quote Stuart). Is this what "manually" mean? If so: WHAT A HUGE WASTE OF TIME ... and WHAT A HUGE EXPOSURE TO CONSTRAINT VIOLATIONS if users can get access directly to the tables or if you forget to implement the code in some of your forms. Actually it could be argued that a *procedural* foreign key constraint isn't a RI constraint at all. It might nominate as a conceptual constraint, but not as a bulletproof physical constraint - and isn't this what we all expect a RI to be? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 10. marts 2010 22:54 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] 2 Questions So how do you apply RE in Access without using the Relationships window? And don't tell me that you use code behind every Delete, Insert, Update event. - that is not using RE. RE is *automatic* enforcement of referential rules at the database level. -- Stuart On 10 Mar 2010 at 14:05, Max Wanadoo wrote: > Tony, > > You are being mislead here. Nobody is saying that Referencial Integrity > should not be practised. All I am saying is that I do not use the built in > tools in Accesss to do it. I do it manually. Ignore the band wagon which > has sprung up by those who didnt read it correctly (and if that statement > doesn't get a response then I do not know what will !!). > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. I now control what gets deleted and under what > circumstances and not leave it to some "switch" being turned on in Access. > > So, use Ref Int but you choose how to implment it. > > Max > > > > On 10 March 2010 13:34, jwcolby wrote: > > > Tony, > > > > Referential integrity is the foundation of a database. Without it you are > > hopelessly lost. > > > > 1) Referential integrity essentially says that you can't have a child > > without having a parent (makes > > sense right?). > > > > So... If you have clients and orders, you can't have an order without > > having a client. More > > importantly, you can't have an order without selecting a SPECIFIC client. > > Referential integrity > > says that you can't DELETE a client without deleting all of that client's > > orders. Again, makes > > sense right? If you are allowed to delete clients without deleting that > > client's orders then you > > have orders with no clients (see one above). This just hoses everything. > > You do reports of all > > your orders and where they shipped to... ooops these orders don't have a > > client so we can't tell > > where we shipped them to. We count orders not paid for yet. Ooops we have > > orders with no client so > > there is no way to determine that they were paid for. ANYTHING that you > > have to have the Client > > record to report on gets trashed. > > > > It's just a bad thing, having orders with no client. Or any other child > > record without a parent. > > > > This condition is called "orphaned records" because a child with no parent > > is an orphan. Orphans > > are "lost", they just cause a raft of issues, all of them BAD! > > > > Referential integrity is the business of the database engine, NOT the FE or > > application. Every > > database engine, whether Jet, SQL Server, Oracle or any other has powerful > > mechanisms built in for > > maintaining referential integrity. > > > > I mentioned that RE is not the business of the FE, and the reason is > > simple. If you have to handle > > RE then you are CONSTANTLY checking in code whether you performed all of > > the steps necessary to > > maintain RE. Furthermore, you place that same burden on any other > > developer accessing your data. > > Suddenly ANY developer trying to update, add or delete records has to be > > concerned with RE. Most of > > us developers simply are not trained to do RE right, and even if we are, > > human error creeps in. > > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you > > don't, and I expect that you > > are, I don't bother to even attempt to handle RE issues and suddenly I am > > trashing data. > > > > BELIEVE ME (and the other developers on the list should chime in), RE is > > the business of the > > database engine, NOT the developer! > > > > Creating the relationships in the relationship window is how you turn on > > RE. > > > > 1) Open your relationship window. Click, drag and drop from the PK in the > > parent to the FK in the > > child. An "edit relationships" dialog opens. The top check box underneath > > says "Enforce > > referential integrity. Check that box. THAT is what causes JET to perform > > all of the checks to > > prevent ORPHANS. > > > > 2) The next check says "cascade update...". This has to do with cascading > > updates to the data in > > the PK down into the child. If you use autonumbers (surrogate keys) for > > PKs (and you should), then > > the PK is never updated and you do not need to check this box. If you use > > natural keys, then the PK > > data can and will change, and those changes have to be rippled down into > > the child FKs. Cascade > > update causes JET to do that "cascade" update to the child FK fields. > > > > 3) The last check box says "Cascade delete...". This has to do with > > whether you want the database > > to automatically delete child records if the parent record is deleted. > > Like everything else, this > > is fiercely debated but my opinion is that this is a BAD idea. The reason > > is simply that users tend > > to ignore "are you sure" messages. The more junior the user, the more they > > ignore the "are you > > sure" messages. Cascade delete on means that if the user accidentally > > deletes that client record, > > the orders will just be automatically deleted. The checks, invoices, > > communications, whatever else > > you have child to client will be automatically deleted. With one simple > > delete of one teeny little > > record you can rip huge chunks of your database out. > > > > It is a PITA but my method of handling this is to have a delete button > > which only specific groups > > (supervisors / managers etc) can even see. That button does the "are you > > sure" prompt, then runs > > delete queries which delete the child records in the correct order back up > > to the parent. > > > > Again, this is fiercely debated but how you handle it is less important > > than that you UNDERSTAND > > what this stuff does and why you would or would not use it. After that, it > > is on your head. > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Tony Septav wrote: > > > Hey Asger > > > I am not trying to start a debate. But if I do my joins in a query (with > > > many many tables joined), if I visually check my results and find an > > > error (or add code to test for errors), I can strip everything down and > > > rebuild it back up step by step. This way I can verify my results and > > > ensure referential integrity. If 1 does not equal 1 then I am in > > trouble. > > > > > > Asger Blond wrote: > > > > > >> 2. I use Tools | Relationship to create foreign key constraints > > ("enforce referential integrity"). Without foreign key constraints the data > > will soon loose consistency. > > >> > > >> Asger > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 10 18:51:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 10 Mar 2010 19:51:41 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B981325.27244.858DD01@stuart.lexacorp.com.pg> References: <4B96A089.7040309@nanaimo.ark.com>, <4B96C615.9090301@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com> <4B981325.27244.858DD01@stuart.lexacorp.com.pg> Message-ID: <4B983E9D.2060801@colbyconsulting.com> LOL, except for the Religious Education references. God was talking to me at the time I was writing that and I wasn't concentrating on the subject. ;) John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > JC, > > Here, here! > > A very good explanation which should be a FAQ somewhere. > From stuart at lexacorp.com.pg Wed Mar 10 19:13:12 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 Mar 2010 11:13:12 +1000 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4B983E9D.2060801@colbyconsulting.com> References: <4B96A089.7040309@nanaimo.ark.com>, <4B981325.27244.858DD01@stuart.lexacorp.com.pg>, <4B983E9D.2060801@colbyconsulting.com> Message-ID: <4B9843A8.15305.9165D7A@stuart.lexacorp.com.pg> You must have been channelling a current thread on the OT list. :-) -- Stuart On 10 Mar 2010 at 19:51, jwcolby wrote: > LOL, except for the Religious Education references. God was talking to me at the time I was writing > that and I wasn't concentrating on the subject. ;) > > John W. Colby > www.ColbyConsulting.com > > > Stuart McLachlan wrote: > > JC, > > > > Here, here! > > > > A very good explanation which should be a FAQ somewhere. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 11 02:29:58 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 11 Mar 2010 08:29:58 -0000 Subject: [AccessD] 2 Questions In-Reply-To: <22F113EC11B04495A3DC5AE31D07FD04@abpc> References: <4B96A089.7040309@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com>, <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> <22F113EC11B04495A3DC5AE31D07FD04@abpc> Message-ID: <4DB1F91AB14B4E71BFD08C58FBADD2DD@Server> Ok, ok, ok, enough already. I'm too old. I'm too tired. Even JC talks to God. What is worse, God apparently answers. Probably because God got the JC's mixed up with the same initials 'an all (Should have used RI, eh?) Now can I get back to work? Tony - hope you have learned sommat from all this! Recite the Mantra. Maintain the Dogma. Max Ps. Actually, I do use RI but I was getting bored. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, March 10, 2010 11:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] 2 Questions Max, I was just about to ask the same question when Stuarts posting arrived. In a previous response you wrote: > Nobody is saying that Referencial Integrity should not be practised. > All I am saying is that I do not use the built in tools in Accesss to > do it. I do it manually. So: what exactly do you mean by "manually"? Essentially constraints can be enforced in two ways: *declarative* and *procedural*. A *declarative* foreign key constraint means that the constraint is part of the table definition itself. This is what you get when using the Relationship-Tool. You can of course set up this constraint by hand writing a SQL like this: ALTER TABLE tblOrder ADD CONSTRAINT FK_Order_Customer FOREIGN KEY (CustomerID) REFERENCES tblCustomer (CustomerID). Is this what you mean by establishing RI "manually"? If so: WHAT A WASTE OF TIME ... since you can accomplish exactly the same with a few mouse clicks using the Relationship-Tool. A *procedural* foreign key constraint means that the constraint is not enforced in the table definition, but by some code "behind every Delete, Insert, Update event" (to quote Stuart). Is this what "manually" mean? If so: WHAT A HUGE WASTE OF TIME ... and WHAT A HUGE EXPOSURE TO CONSTRAINT VIOLATIONS if users can get access directly to the tables or if you forget to implement the code in some of your forms. Actually it could be argued that a *procedural* foreign key constraint isn't a RI constraint at all. It might nominate as a conceptual constraint, but not as a bulletproof physical constraint - and isn't this what we all expect a RI to be? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 10. marts 2010 22:54 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] 2 Questions So how do you apply RE in Access without using the Relationships window? And don't tell me that you use code behind every Delete, Insert, Update event. - that is not using RE. RE is *automatic* enforcement of referential rules at the database level. -- Stuart On 10 Mar 2010 at 14:05, Max Wanadoo wrote: > Tony, > > You are being mislead here. Nobody is saying that Referencial > Integrity should not be practised. All I am saying is that I do not > use the built in tools in Accesss to do it. I do it manually. Ignore > the band wagon which has sprung up by those who didnt read it > correctly (and if that statement doesn't get a response then I do not know what will !!). > > The reason I do not use it is because I got badly bitten by Cascading > Deletes some years ago. I now control what gets deleted and under what > circumstances and not leave it to some "switch" being turned on in Access. > > So, use Ref Int but you choose how to implment it. > > Max > > > > On 10 March 2010 13:34, jwcolby wrote: > > > Tony, > > > > Referential integrity is the foundation of a database. Without it > > you are hopelessly lost. > > > > 1) Referential integrity essentially says that you can't have a > > child without having a parent (makes sense right?). > > > > So... If you have clients and orders, you can't have an order > > without having a client. More importantly, you can't have an order > > without selecting a SPECIFIC client. > > Referential integrity > > says that you can't DELETE a client without deleting all of that > > client's orders. Again, makes sense right? If you are allowed to > > delete clients without deleting that client's orders then you have > > orders with no clients (see one above). This just hoses everything. > > You do reports of all > > your orders and where they shipped to... ooops these orders don't > > have a client so we can't tell where we shipped them to. We count > > orders not paid for yet. Ooops we have orders with no client so > > there is no way to determine that they were paid for. ANYTHING that > > you have to have the Client record to report on gets trashed. > > > > It's just a bad thing, having orders with no client. Or any other > > child record without a parent. > > > > This condition is called "orphaned records" because a child with no > > parent is an orphan. Orphans are "lost", they just cause a raft of > > issues, all of them BAD! > > > > Referential integrity is the business of the database engine, NOT > > the FE or application. Every database engine, whether Jet, SQL > > Server, Oracle or any other has powerful mechanisms built in for > > maintaining referential integrity. > > > > I mentioned that RE is not the business of the FE, and the reason is > > simple. If you have to handle RE then you are CONSTANTLY checking > > in code whether you performed all of the steps necessary to maintain > > RE. Furthermore, you place that same burden on any other developer > > accessing your data. > > Suddenly ANY developer trying to update, add or delete records has > > to be concerned with RE. Most of us developers simply are not > > trained to do RE right, and even if we are, human error creeps in. > > Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if > > you don't, and I expect that you are, I don't bother to even attempt > > to handle RE issues and suddenly I am trashing data. > > > > BELIEVE ME (and the other developers on the list should chime in), > > RE is the business of the database engine, NOT the developer! > > > > Creating the relationships in the relationship window is how you > > turn on RE. > > > > 1) Open your relationship window. Click, drag and drop from the PK > > in the parent to the FK in the child. An "edit relationships" > > dialog opens. The top check box underneath says "Enforce > > referential integrity. Check that box. THAT is what causes JET to > > perform all of the checks to prevent ORPHANS. > > > > 2) The next check says "cascade update...". This has to do with > > cascading updates to the data in the PK down into the child. If you > > use autonumbers (surrogate keys) for PKs (and you should), then the > > PK is never updated and you do not need to check this box. If you > > use natural keys, then the PK data can and will change, and those > > changes have to be rippled down into the child FKs. Cascade update > > causes JET to do that "cascade" update to the child FK fields. > > > > 3) The last check box says "Cascade delete...". This has to do with > > whether you want the database to automatically delete child records > > if the parent record is deleted. > > Like everything else, this > > is fiercely debated but my opinion is that this is a BAD idea. The > > reason is simply that users tend to ignore "are you sure" messages. > > The more junior the user, the more they ignore the "are you sure" > > messages. Cascade delete on means that if the user accidentally > > deletes that client record, the orders will just be automatically > > deleted. The checks, invoices, communications, whatever else you > > have child to client will be automatically deleted. With one simple > > delete of one teeny little record you can rip huge chunks of your > > database out. > > > > It is a PITA but my method of handling this is to have a delete > > button which only specific groups (supervisors / managers etc) can > > even see. That button does the "are you sure" prompt, then runs > > delete queries which delete the child records in the correct order > > back up to the parent. > > > > Again, this is fiercely debated but how you handle it is less > > important than that you UNDERSTAND what this stuff does and why you > > would or would not use it. After that, it is on your head. > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Tony Septav wrote: > > > Hey Asger > > > I am not trying to start a debate. But if I do my joins in a query > > > (with many many tables joined), if I visually check my results > > > and find an error (or add code to test for errors), I can strip > > > everything down and rebuild it back up step by step. This way I > > > can verify my results and ensure referential integrity. If 1 does > > > not equal 1 then I am in > > trouble. > > > > > > Asger Blond wrote: > > > > > >> 2. I use Tools | Relationship to create foreign key constraints > > ("enforce referential integrity"). Without foreign key constraints > > the data will soon loose consistency. > > >> > > >> Asger > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 11 07:24:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 08:24:14 -0500 Subject: [AccessD] SPAM-LOW: Re: 2 Questions In-Reply-To: <4DB1F91AB14B4E71BFD08C58FBADD2DD@Server> References: <4B96A089.7040309@nanaimo.ark.com>, <4B979FEB.60401@colbyconsulting.com>, <4B9814E1.16186.85FA2FE@stuart.lexacorp.com.pg> <22F113EC11B04495A3DC5AE31D07FD04@abpc> <4DB1F91AB14B4E71BFD08C58FBADD2DD@Server> Message-ID: <4B98EEFE.1090100@colbyconsulting.com> > Even JC talks to God. What is worse, God apparently answers. Probably because God got the JC's mixed up with the same initials 'an all (Should have used RI, eh?) LOL, while I do talk to God and he does answer (not a bad thing!), you may believe he never mixes me up with the other JC. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ok, ok, ok, enough already. > > I'm too old. I'm too tired. > > Even JC talks to God. What is worse, God apparently answers. > Probably because God got the JC's mixed up with the same initials 'an all > (Should have used RI, eh?) > > Now can I get back to work? > > Tony - hope you have learned sommat from all this! Recite the Mantra. > Maintain the Dogma. > > Max > Ps. Actually, I do use RI but I was getting bored. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > Sent: Wednesday, March 10, 2010 11:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] 2 Questions > > Max, > I was just about to ask the same question when Stuarts posting arrived. > In a previous response you wrote: > >> Nobody is saying that Referencial Integrity should not be practised. >> All I am saying is that I do not use the built in tools in Accesss to >> do it. I do it manually. > > So: what exactly do you mean by "manually"? > Essentially constraints can be enforced in two ways: *declarative* and > *procedural*. > A *declarative* foreign key constraint means that the constraint is part of > the table definition itself. This is what you get when using the > Relationship-Tool. You can of course set up this constraint by hand writing > a SQL like this: > ALTER TABLE tblOrder ADD CONSTRAINT FK_Order_Customer FOREIGN KEY > (CustomerID) REFERENCES tblCustomer (CustomerID). > Is this what you mean by establishing RI "manually"? If so: WHAT A WASTE OF > TIME ... since you can accomplish exactly the same with a few mouse clicks > using the Relationship-Tool. > A *procedural* foreign key constraint means that the constraint is not > enforced in the table definition, but by some code "behind every Delete, > Insert, Update event" (to quote Stuart). Is this what "manually" mean? If > so: WHAT A HUGE WASTE OF TIME ... and WHAT A HUGE EXPOSURE TO CONSTRAINT > VIOLATIONS if users can get access directly to the tables or if you forget > to implement the code in some of your forms. > Actually it could be argued that a *procedural* foreign key constraint isn't > a RI constraint at all. It might nominate as a conceptual constraint, but > not as a bulletproof physical constraint - and isn't this what we all expect > a RI to be? > > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan > Sendt: 10. marts 2010 22:54 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] 2 Questions > > So how do you apply RE in Access without using the Relationships window? > > And don't tell me that you use code behind every Delete, Insert, Update > event. - that is not > using RE. RE is *automatic* enforcement of referential rules at the > database level. > > -- > Stuart > > On 10 Mar 2010 at 14:05, Max Wanadoo wrote: > >> Tony, >> >> You are being mislead here. Nobody is saying that Referencial >> Integrity should not be practised. All I am saying is that I do not >> use the built in tools in Accesss to do it. I do it manually. Ignore >> the band wagon which has sprung up by those who didnt read it >> correctly (and if that statement doesn't get a response then I do not know > what will !!). >> The reason I do not use it is because I got badly bitten by Cascading >> Deletes some years ago. I now control what gets deleted and under what >> circumstances and not leave it to some "switch" being turned on in Access. >> >> So, use Ref Int but you choose how to implment it. >> >> Max >> >> >> >> On 10 March 2010 13:34, jwcolby wrote: >> >>> Tony, >>> >>> Referential integrity is the foundation of a database. Without it >>> you are hopelessly lost. >>> >>> 1) Referential integrity essentially says that you can't have a >>> child without having a parent (makes sense right?). >>> >>> So... If you have clients and orders, you can't have an order >>> without having a client. More importantly, you can't have an order >>> without selecting a SPECIFIC client. >>> Referential integrity >>> says that you can't DELETE a client without deleting all of that >>> client's orders. Again, makes sense right? If you are allowed to >>> delete clients without deleting that client's orders then you have >>> orders with no clients (see one above). This just hoses everything. >>> You do reports of all >>> your orders and where they shipped to... ooops these orders don't >>> have a client so we can't tell where we shipped them to. We count >>> orders not paid for yet. Ooops we have orders with no client so >>> there is no way to determine that they were paid for. ANYTHING that >>> you have to have the Client record to report on gets trashed. >>> >>> It's just a bad thing, having orders with no client. Or any other >>> child record without a parent. >>> >>> This condition is called "orphaned records" because a child with no >>> parent is an orphan. Orphans are "lost", they just cause a raft of >>> issues, all of them BAD! >>> >>> Referential integrity is the business of the database engine, NOT >>> the FE or application. Every database engine, whether Jet, SQL >>> Server, Oracle or any other has powerful mechanisms built in for >>> maintaining referential integrity. >>> >>> I mentioned that RE is not the business of the FE, and the reason is >>> simple. If you have to handle RE then you are CONSTANTLY checking >>> in code whether you performed all of the steps necessary to maintain >>> RE. Furthermore, you place that same burden on any other developer >>> accessing your data. >>> Suddenly ANY developer trying to update, add or delete records has >>> to be concerned with RE. Most of us developers simply are not >>> trained to do RE right, and even if we are, human error creeps in. >>> Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if >>> you don't, and I expect that you are, I don't bother to even attempt >>> to handle RE issues and suddenly I am trashing data. >>> >>> BELIEVE ME (and the other developers on the list should chime in), >>> RE is the business of the database engine, NOT the developer! >>> >>> Creating the relationships in the relationship window is how you >>> turn on RE. >>> >>> 1) Open your relationship window. Click, drag and drop from the PK >>> in the parent to the FK in the child. An "edit relationships" >>> dialog opens. The top check box underneath says "Enforce >>> referential integrity. Check that box. THAT is what causes JET to >>> perform all of the checks to prevent ORPHANS. >>> >>> 2) The next check says "cascade update...". This has to do with >>> cascading updates to the data in the PK down into the child. If you >>> use autonumbers (surrogate keys) for PKs (and you should), then the >>> PK is never updated and you do not need to check this box. If you >>> use natural keys, then the PK data can and will change, and those >>> changes have to be rippled down into the child FKs. Cascade update >>> causes JET to do that "cascade" update to the child FK fields. >>> >>> 3) The last check box says "Cascade delete...". This has to do with >>> whether you want the database to automatically delete child records >>> if the parent record is deleted. >>> Like everything else, this >>> is fiercely debated but my opinion is that this is a BAD idea. The >>> reason is simply that users tend to ignore "are you sure" messages. >>> The more junior the user, the more they ignore the "are you sure" >>> messages. Cascade delete on means that if the user accidentally >>> deletes that client record, the orders will just be automatically >>> deleted. The checks, invoices, communications, whatever else you >>> have child to client will be automatically deleted. With one simple >>> delete of one teeny little record you can rip huge chunks of your >>> database out. >>> >>> It is a PITA but my method of handling this is to have a delete >>> button which only specific groups (supervisors / managers etc) can >>> even see. That button does the "are you sure" prompt, then runs >>> delete queries which delete the child records in the correct order >>> back up to the parent. >>> >>> Again, this is fiercely debated but how you handle it is less >>> important than that you UNDERSTAND what this stuff does and why you >>> would or would not use it. After that, it is on your head. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Tony Septav wrote: >>>> Hey Asger >>>> I am not trying to start a debate. But if I do my joins in a query >>>> (with many many tables joined), if I visually check my results >>>> and find an error (or add code to test for errors), I can strip >>>> everything down and rebuild it back up step by step. This way I >>>> can verify my results and ensure referential integrity. If 1 does >>>> not equal 1 then I am in >>> trouble. >>>> Asger Blond wrote: >>>> >>>>> 2. I use Tools | Relationship to create foreign key constraints >>> ("enforce referential integrity"). Without foreign key constraints >>> the data will soon loose consistency. >>>>> Asger >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > From Chester_Kaup at kindermorgan.com Thu Mar 11 07:31:00 2010 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 Mar 2010 07:31:00 -0600 Subject: [AccessD] 2 Queries different results In-Reply-To: <8786a4c01003101457r3d80574ej186779025cc320d2@mail.gmail.com> References: <0B2BF8524B73A248A2F1B81BA751ED3C1917677C86@houex1.kindermorgan.com> <4b980591.1c215e0a.3d6e.5131@mx.google.com> <0B2BF8524B73A248A2F1B81BA751ED3C1917677CDF@houex1.kindermorgan.com> <8786a4c01003101457r3d80574ej186779025cc320d2@mail.gmail.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C1917677D32@houex1.kindermorgan.com> Thanks everyone for your ideas. Turns out this query is fine. The error was in a query several layers below that was supplying some incorrect data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Wednesday, March 10, 2010 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Queries different results The only other difference that I can see is in the INNER JOIN: first query: INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] B ON (A.Other_Pattern_as_Well = B.Other_Pattern_as_Well) AND (A.Well_in_CO2PAT = B.Well_in_CO2PAT) second query: INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr ProductionMonth] B ON (A.Other_Pattern_as_Well = B.Other_Pattern_as_Well) AND (A.Well_in_CO2PAT_API = B.Well_in_CO2PAT_API) The names of the queries that are joined are different (I used an alias to make it easier to read) . The second part of the join also joins on two different named fields (the 2nd join field names end with "_API" If those differences don't matter, I'd run the joined queries listed above with the criteria from this query and see if your results are identical. If so, I'd also query the tables and see if the results are identical. David McAfee On Wed, Mar 10, 2010 at 2:02 PM, Kaup, Chester wrote: > RecordDate and ProductionMonth contain the same data. > Something I forgot to mention. > Query 1 is from an Access 2003 database and Query 2 is from an Access 2007 database. The access 2007 database is basically a copy of the Access 2003 database. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: Wednesday, March 10, 2010 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] 2 Queries different results > > Should it make a difference that in query 1 you are using RecordDate and in > query 2, ProductionMonth is being used. > Not sure if this makes a difference or not, but the last field name of each > result set are different. > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester > Sent: Wednesday, March 10, 2010 2:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] 2 Queries different results > > I have two queries in 2 different databases that use the same source data > but return different results. I am failing to see the difference. Here is > the data for the first query. > > PID ? ? ? ? ? ? SDate ? ? ? ? ? Chase_Start_Date ? ? ? ?SDate_2 > Chase_Start_Date_2 > PAT 140-5 ? ? ? 01-Dec-03 ? ? ? 01-Mar-07 ? ? ? ? ? ? ? 01-Feb-08 > 01-Aug-09 > > Here is the data for the second query > > PID ? ? ? ? ? ? SDate ? ? ? ? ? Chase_Start_Date ? ? ? ?SDate_2 > Chase_Start_Date2 > PAT 140-5 ? ? ? 01-Dec-03 ? ? ? 01-Mar-07 ? ? ? ? ? ? ? 01-Feb-08 > 01-Aug-09 > > > Here is the first query: > > SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, > [tbl Injection Data for Allocation].RecordDate, > [tbl Injection Data for Allocation].Other_Pattern_as_Well, > IIf([RecordDate]<=[Chase_Start_Date] Or > [Chase_Start_Date] Is Null Or > [RecordDate]>=[SDate_2] And [RecordDate]<[Chase_Start_Date_2],1, > IIf([RecordDate]>[Chase_Start_Date] And > [RecordDate] DateDiff("m",[Chase_Start_Date],[RecordDate]), > IIf([RecordDate]>[Chase_Start_Date_2], > DateDiff("m",[Chase_Start_Date_2], > [RecordDate]),1))) > AS [Months on Chase Water] > FROM [tbl Injection Data for Allocation] > INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr RecordDate] > ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > RecordDate].Other_Pattern_as_Well) > AND ([tbl Injection Data for Allocation].Well_in_CO2PAT = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > RecordDate].Well_in_CO2PAT) > WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") > AND (([tbl Injection Data for Allocation].RecordDate)=#1/1/2010#) > AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) > ORDER BY [tbl Injection Data for Allocation].RecordDate, > [tbl Injection Data for Allocation].Other_Pattern_as_Well; > > Query Result. This is the correct answer: > Well_in_CO2PAT ?RecordDate ? ? ?Other_Pattern_as_Well ? Months on Chase > Water > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ?140-5 > 5 > > Here is the second query: > SELECT DISTINCT [tbl Injection Data for Allocation].Well_in_CO2PAT, > [tbl Injection Data for Allocation].ProductionMonth, > [tbl Injection Data for Allocation].Other_Pattern_as_Well, > IIf([ProductionMonth]<=[Chase_Start_Date]Or > [Chase_Start_Date] Is Null Or > [ProductionMonth]>=[SDate_2]And [ProductionMonth]<[Chase_Start_Date2],1, > IIf([ProductionMonth]>[Chase_Start_Date] And > [ProductionMonth] DateDiff("m",[Chase_Start_Date],[ProductionMonth]), > IIf([ProductionMonth]>[Chase_Start_Date2], > DateDiff("m",[Chase_Start_Date2], > [ProductionMonth]),1))) > AS [Months on Chase Water] > FROM [tbl Injection Data for Allocation] > INNER JOIN [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth] > ON ([tbl Injection Data for Allocation].Other_Pattern_as_Well = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth].Other_Pattern_as_Well) > AND ([tbl Injection Data for Allocation].Well_in_CO2PAT_API = > [qry Prod Ctr Patt to Chase Wtr Alloc & Chase Wtr > ProductionMonth].Well_in_CO2PAT_API) > WHERE ((([tbl Injection Data for Allocation].Well_in_CO2PAT)="139-3") > AND (([tbl Injection Data for Allocation].ProductionMonth)=#1/1/2010#) > AND (([tbl Injection Data for Allocation].Other_Pattern_as_Well)="140-5")) > ORDER BY [tbl Injection Data for Allocation].ProductionMonth, > [tbl Injection Data for Allocation].Other_Pattern_as_Well; > > Query Result. Wrong answer > Well_in_CO2PAT ?ProductionMonth Other_Pattern_as_Well ? Months on Chase > Water > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 1 > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 5 > 139-3 ? ? ? ? ? ? ? ? ? 1/1/2010 ? ? ? ? ? ? ? ? ? ? ? ?140-5 > 21 > > The query appears to be returning months on chase water value 1 as if it > never had an SDate, the months between SDate2 and January 2010 and the > months between Chase_Start_Date2 and January 2010. > > Thanks for any help. > > > > > Chester Kaup > Engineering Technician > Kinder Morgan CO2 Company, LLP > Office (432) 688-3797 > FAX (432) 688-3799 > > > No trees were killed in the sending of this message. However a large number > of electrons were terribly inconvenienced. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Mar 11 08:42:52 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 11 Mar 2010 09:42:52 -0500 Subject: [AccessD] Out of memory error Message-ID: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Hi all, I am running into a consistent error with a particular app. When I try to open something, Access tells me that it has insufficient memory to complete the operation. The box has 4GB of RAM and nothing else is running except SQL Server. I have tried compact and repair but I still get the error. I even created a new MDB and imported everything from the old one. Still no joy. Will Decompile help? I don't suppose it can hurt, but I haven't yet done that. This incidentally is Access 2003 with SP3. Any other suggestions? TIA, Arthur From dwaters at usinternet.com Thu Mar 11 09:23:38 2010 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 11 Mar 2010 09:23:38 -0600 Subject: [AccessD] Out of memory error In-Reply-To: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: <09091424FBD246EC8F4B77B715F12039@danwaters> Hi Arthur, Decompiling is the next thing to do! Create a shortcut to your app. Then add '/decompile' at the end of the string in the Target field. After the app opens then Compile from a code window. Then do a Compact/Repair. Hope it works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 11, 2010 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Out of memory error Hi all, I am running into a consistent error with a particular app. When I try to open something, Access tells me that it has insufficient memory to complete the operation. The box has 4GB of RAM and nothing else is running except SQL Server. I have tried compact and repair but I still get the error. I even created a new MDB and imported everything from the old one. Still no joy. Will Decompile help? I don't suppose it can hurt, but I haven't yet done that. This incidentally is Access 2003 with SP3. Any other suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 11 09:51:33 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 11 Mar 2010 09:51:33 -0600 Subject: [AccessD] Out of memory error In-Reply-To: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: So it does let you open the database itself, just not any objects? I would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much of that 4 GB is available for this access application. Then maybe a reboot and try it again and see if anything changed. Maybe you have a memory leak someplace? GK On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: > Hi all, > > I am running into a consistent error with a particular app. When I try to > open something, Access tells me that it has insufficient memory to complete > the operation. The box has 4GB of RAM and nothing else is running except SQL > Server. I have tried compact and repair but I still get the error. I even > created a new MDB and imported everything from the old one. Still no joy. > Will Decompile help? I don't suppose it can hurt, but I haven't yet done > that. This ?incidentally is Access 2003 with SP3. > > Any other suggestions? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Thu Mar 11 10:00:03 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 11:00:03 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: <4B991383.4070602@colbyconsulting.com> AFAICT this is not a "memory" error at all but rather a "video" error. this has always happened to me when it is a complex app, with hundreds of objects to draw (combos, text boxes, check boxes etc). Using tabs and JIT subforms has helped a lot. That said, if you have SQL Server installed and this isn't primarily a SQL Server box, you might want to adjust the server to only use a small amount of ram, manually set the processor and I/O affinity etc. In fact I recommend looking at these settings regardless. SQL Server tries to set up with a billion terabytes of RAM and use all of the processors etc. The "billions of terabytes" causes it to think it has more than is actually available and page stuff incessantly. The "all processors" causes it to grab all of the cores and locks the user interface up incessantly. This will almost certainly NOT help with this "out of memory" error but it will make you machine respond better. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > Hi all, > > I am running into a consistent error with a particular app. When I try to > open something, Access tells me that it has insufficient memory to complete > the operation. The box has 4GB of RAM and nothing else is running except SQL > Server. I have tried compact and repair but I still get the error. I even > created a new MDB and imported everything from the old one. Still no joy. > Will Decompile help? I don't suppose it can hurt, but I haven't yet done > that. This incidentally is Access 2003 with SP3. > > Any other suggestions? > > TIA, > Arthur From BradM at blackforestltd.com Thu Mar 11 10:07:46 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 11 Mar 2010 10:07:46 -0600 Subject: [AccessD] Out of memory error References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: These are probably dumb questions... Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" or is this something that only earlier versions had? Is there a way to find this info with Access 2007? Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 11, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error So it does let you open the database itself, just not any objects? I would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much of that 4 GB is available for this access application. Then maybe a reboot and try it again and see if anything changed. Maybe you have a memory leak someplace? GK On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: > Hi all, > > I am running into a consistent error with a particular app. When I try to > open something, Access tells me that it has insufficient memory to complete > the operation. The box has 4GB of RAM and nothing else is running except SQL > Server. I have tried compact and repair but I still get the error. I even > created a new MDB and imported everything from the old one. Still no joy. > Will Decompile help? I don't suppose it can hurt, but I haven't yet done > that. This ?incidentally is Access 2003 with SP3. > > Any other suggestions? > > TIA, > Arthur > -- > 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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From accessd at shaw.ca Thu Mar 11 10:26:42 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 11 Mar 2010 08:26:42 -0800 Subject: [AccessD] 2 Questions In-Reply-To: References: <4B96A089.7040309@nanaimo.ark.com> <58A93CA7EE47457296F0C3BED64076A0@Server> <052090B06668405297219A75B298020C@abpc> <4B96C615.9090301@nanaimo.ark.com> <4B979FEB.60401@colbyconsulting.com> Message-ID: <2462F90E6B1D4731A4F0A935187EEFBC@creativesystemdesigns.com> Hi Rocky: Just a note; All the POS and accounting systems I have put together, in the last 10 to 15 years do not delete records, they are just turned off the records so they are no longer included or displayed. Every record is marked with a transaction code which is just a unique data-time value. There has been so many times when clients have had to recover their lost clients, transactions, needed inventory tracking, track errors in the system, save themselves from employee (and their own) errors, have to perform forensic on their books or even catch employees trying to steal. Legal accounting systems can not delete records and I just extended that rule to the entire application. The one draw back of course is that a client will have to be aware of this when attempting adhoc queries against the data or when the data starts to grow past 10 years. It demands a SQL BE or I have to start splitting the archived data... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, March 10, 2010 6:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] 2 Questions Cascade delete has it's risks as you point out - but I find it very useful from the user's side for certain issues like deleting a purchase order or a sales order where, without cascade delete, the user has to delete each detail record from the P.O. or S.O. before they can delete the header record. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 10, 2010 5:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] 2 Questions Tony, Referential integrity is the foundation of a database. Without it you are hopelessly lost. 1) Referential integrity essentially says that you can't have a child without having a parent (makes sense right?). So... If you have clients and orders, you can't have an order without having a client. More importantly, you can't have an order without selecting a SPECIFIC client. Referential integrity says that you can't DELETE a client without deleting all of that client's orders. Again, makes sense right? If you are allowed to delete clients without deleting that client's orders then you have orders with no clients (see one above). This just hoses everything. You do reports of all your orders and where they shipped to... ooops these orders don't have a client so we can't tell where we shipped them to. We count orders not paid for yet. Ooops we have orders with no client so there is no way to determine that they were paid for. ANYTHING that you have to have the Client record to report on gets trashed. It's just a bad thing, having orders with no client. Or any other child record without a parent. This condition is called "orphaned records" because a child with no parent is an orphan. Orphans are "lost", they just cause a raft of issues, all of them BAD! Referential integrity is the business of the database engine, NOT the FE or application. Every database engine, whether Jet, SQL Server, Oracle or any other has powerful mechanisms built in for maintaining referential integrity. I mentioned that RE is not the business of the FE, and the reason is simple. If you have to handle RE then you are CONSTANTLY checking in code whether you performed all of the steps necessary to maintain RE. Furthermore, you place that same burden on any other developer accessing your data. Suddenly ANY developer trying to update, add or delete records has to be concerned with RE. Most of us developers simply are not trained to do RE right, and even if we are, human error creeps in. Even worse, I EXPECT that you will use RE, EVERYONE USES RE. So if you don't, and I expect that you are, I don't bother to even attempt to handle RE issues and suddenly I am trashing data. BELIEVE ME (and the other developers on the list should chime in), RE is the business of the database engine, NOT the developer! Creating the relationships in the relationship window is how you turn on RE. 1) Open your relationship window. Click, drag and drop from the PK in the parent to the FK in the child. An "edit relationships" dialog opens. The top check box underneath says "Enforce referential integrity. Check that box. THAT is what causes JET to perform all of the checks to prevent ORPHANS. 2) The next check says "cascade update...". This has to do with cascading updates to the data in the PK down into the child. If you use autonumbers (surrogate keys) for PKs (and you should), then the PK is never updated and you do not need to check this box. If you use natural keys, then the PK data can and will change, and those changes have to be rippled down into the child FKs. Cascade update causes JET to do that "cascade" update to the child FK fields. 3) The last check box says "Cascade delete...". This has to do with whether you want the database to automatically delete child records if the parent record is deleted. Like everything else, this is fiercely debated but my opinion is that this is a BAD idea. The reason is simply that users tend to ignore "are you sure" messages. The more junior the user, the more they ignore the "are you sure" messages. Cascade delete on means that if the user accidentally deletes that client record, the orders will just be automatically deleted. The checks, invoices, communications, whatever else you have child to client will be automatically deleted. With one simple delete of one teeny little record you can rip huge chunks of your database out. It is a PITA but my method of handling this is to have a delete button which only specific groups (supervisors / managers etc) can even see. That button does the "are you sure" prompt, then runs delete queries which delete the child records in the correct order back up to the parent. Again, this is fiercely debated but how you handle it is less important than that you UNDERSTAND what this stuff does and why you would or would not use it. After that, it is on your head. John W. Colby www.ColbyConsulting.com Tony Septav wrote: > Hey Asger > I am not trying to start a debate. But if I do my joins in a query > (with many many tables joined), if I visually check my results and > find an error (or add code to test for errors), I can strip everything > down and rebuild it back up step by step. This way I can verify my > results and ensure referential integrity. If 1 does not equal 1 then I am in trouble. > > Asger Blond wrote: > >> 2. I use Tools | Relationship to create foreign key constraints ("enforce referential integrity"). Without foreign key constraints the data will soon loose consistency. >> >> Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 11 10:32:24 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 11 Mar 2010 10:32:24 -0600 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: I would think it would. My Access 2007 system is at home and I am at work now. GK On Thu, Mar 11, 2010 at 10:07 AM, Brad Marks wrote: > These are probably dumb questions... > > Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" > or is this something that only earlier versions had? > > Is there a way to find this info with Access 2007? > > Thanks, > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 11, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > So it does let you open the database itself, just not any objects? ?I > would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much > of that 4 GB is available for this access application. > > Then maybe a reboot and try it again and see if anything changed. > Maybe you have a memory leak someplace? > > GK > > On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: >> Hi all, >> >> I am running into a consistent error with a particular app. When I try to >> open something, Access tells me that it has insufficient memory to complete >> the operation. The box has 4GB of RAM and nothing else is running except SQL >> Server. I have tried compact and repair but I still get the error. I even >> created a new MDB and imported everything from the old one. Still no joy. >> Will Decompile help? I don't suppose it can hurt, but I haven't yet done >> that. This ?incidentally is Access 2003 with SP3. >> >> Any other suggestions? >> >> TIA, >> Arthur >> -- >> 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 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From accessd at shaw.ca Thu Mar 11 10:47:03 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 11 Mar 2010 08:47:03 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: <76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> Hi Arthur: I have run across that type of error recently. After 2 days of research I narrowed it down to an embedded MS Access error. There is no way around them except to rebuild the form and try not to get too fancy... Just use tabs instead of overlapping fields turned off and on. (The system really does not like overlapping fields!)... Probably does not like overlapping objects of the same kind but I did not test that far. I even went so far as to export the offending form using of course Max's EatBloat app, imported it into a new and clean MDB and within a couple of minutes there was the 'insufficient memory' on the screen. The application that I was having problems with was being built in Access 2003. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 11, 2010 6:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Out of memory error Hi all, I am running into a consistent error with a particular app. When I try to open something, Access tells me that it has insufficient memory to complete the operation. The box has 4GB of RAM and nothing else is running except SQL Server. I have tried compact and repair but I still get the error. I even created a new MDB and imported everything from the old one. Still no joy. Will Decompile help? I don't suppose it can hurt, but I haven't yet done that. This incidentally is Access 2003 with SP3. Any other suggestions? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Mar 11 12:51:29 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 11 Mar 2010 10:51:29 -0800 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> I was about to post the same thing. I know it hasn't been said enough, but, I hate A2007 :) On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: > These are probably dumb questions... > > Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" > or is this something that only earlier versions had? > > Is there a way to find this info with Access 2007? > > Thanks, > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 11, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > So it does let you open the database itself, just not any objects? ?I > would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much > of that 4 GB is available for this access application. > > Then maybe a reboot and try it again and see if anything changed. > Maybe you have a memory leak someplace? > > GK > > On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: >> Hi all, >> >> I am running into a consistent error with a particular app. When I try to >> open something, Access tells me that it has insufficient memory to complete >> the operation. The box has 4GB of RAM and nothing else is running except SQL >> Server. I have tried compact and repair but I still get the error. I even >> created a new MDB and imported everything from the old one. Still no joy. >> Will Decompile help? I don't suppose it can hurt, but I haven't yet done >> that. This ?incidentally is Access 2003 with SP3. >> >> Any other suggestions? >> >> TIA, >> Arthur >> -- >> 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 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 11 13:06:59 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 14:06:59 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> Message-ID: <4B993F53.7080008@colbyconsulting.com> I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad From max.wanadoo at gmail.com Thu Mar 11 13:10:23 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 11 Mar 2010 19:10:23 -0000 Subject: [AccessD] Out of memory error In-Reply-To: <4B993F53.7080008@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: <6862F901F4234A9E9136B76F8C91BE14@Server> Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Mar 11 13:11:30 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 11 Mar 2010 11:11:30 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <4B993F53.7080008@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: <8786a4c01003111111l22c7c483l85b284a4ce270dd4@mail.gmail.com> Not even close ;) On Thu, Mar 11, 2010 at 11:06 AM, jwcolby wrote: > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> Thanks, >>> Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Mar 11 13:13:55 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 11 Mar 2010 11:13:55 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <4B993F53.7080008@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: Please, sir, can I have some more? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 From davidmcafee at gmail.com Thu Mar 11 13:16:10 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 11 Mar 2010 11:16:10 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <6862F901F4234A9E9136B76F8C91BE14@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> Message-ID: <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> Max, drugs are bad for you MMM'Kay? On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo wrote: > Hey guys, > > I am just getting to grips with this A2k7 and it looks really cool. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> 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 BradM at blackforestltd.com Thu Mar 11 13:21:07 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 11 Mar 2010 13:21:07 -0600 Subject: [AccessD] Out of memory error References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com> Message-ID: I have never worked with any version of Access other than 2007. I love it. I spent 32+ years working with COBOL/CICS/DB2 on an IBM mainframe. What takes many hours to do on the mainframe can be done in minutes with Access. Keep in mind that I might have some brain damage from years of COBOL :-) Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 11, 2010 1:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Please, sir, can I have some more? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 -- 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 jwcolby at colbyconsulting.com Thu Mar 11 13:23:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 14:23:55 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> Message-ID: <4B99434B.5090000@colbyconsulting.com> ROTFL. 'Deed they are! 'N' this just shows HOW bad! John W. Colby www.ColbyConsulting.com David McAfee wrote: > Max, drugs are bad for you MMM'Kay? > > On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo wrote: >> Hey guys, >> >> I am just getting to grips with this A2k7 and it looks really cool. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, March 11, 2010 7:07 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Out of memory error >> >> I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't >> been said enough, but, I hate A2007 :) I know it hasn't been said enough, >> but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) >> I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't >> been said enough, but, I hate A2007 :) I know it hasn't been said enough, >> but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) >> I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't >> been said enough, but, I hate A2007 :) I know it hasn't been said enough, >> but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) >> I know it hasn't been said enough, but, I hate A2007 :) >> >> Is that enough? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> David McAfee wrote: >>> I was about to post the same thing. >>> >>> >>> I know it hasn't been said enough, but, I hate A2007 :) >>> >>> >>> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >> wrote: >>>> These are probably dumb questions... >>>> >>>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>>> or is this something that only earlier versions had? >>>> >>>> Is there a way to find this info with Access 2007? >>>> >>>> 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 max.wanadoo at gmail.com Thu Mar 11 13:33:37 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 11 Mar 2010 19:33:37 -0000 Subject: [AccessD] Out of memory error In-Reply-To: <4B99434B.5090000@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server><8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> <4B99434B.5090000@colbyconsulting.com> Message-ID: <4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> I have this really cool app called Northwind Traders. Knocked it up in minutes. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error ROTFL. 'Deed they are! 'N' this just shows HOW bad! John W. Colby www.ColbyConsulting.com David McAfee wrote: > Max, drugs are bad for you MMM'Kay? > > On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo wrote: >> Hey guys, >> >> I am just getting to grips with this A2k7 and it looks really cool. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, March 11, 2010 7:07 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Out of memory error >> >> I know it hasn't been said enough, but, I hate A2007 :) I know it >> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >> said enough, but, I hate A2007 :) I know it hasn't been said enough, >> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >> know it hasn't been said enough, but, I hate A2007 :) I know it >> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >> said enough, but, I hate A2007 :) I know it hasn't been said enough, >> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >> know it hasn't been said enough, but, I hate A2007 :) >> >> Is that enough? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> David McAfee wrote: >>> I was about to post the same thing. >>> >>> >>> I know it hasn't been said enough, but, I hate A2007 :) >>> >>> >>> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >>> >> wrote: >>>> These are probably dumb questions... >>>> >>>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>>> or is this something that only earlier versions had? >>>> >>>> Is there a way to find this info with Access 2007? >>>> >>>> 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 >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 11 13:37:27 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 14:37:27 -0500 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com> Message-ID: <4B994677.10005@colbyconsulting.com> Brad, > I have never worked with any version of Access other than 2007. And therein lies your advantage. You haven't spent years learning how to do things one way only to have 2007 come in and completely change EVERY SINGLE THING YOU LEARNED. Access, per se, is a WONDERFUL tool. And if you started on 2007 I am sure it is a wonderful tool as well. I have to say though that years of Cobol will do almost as much brain damage as the drugs previously mentioned. John W. Colby www.ColbyConsulting.com Brad Marks wrote: > I have never worked with any version of Access other than 2007. > > I love it. > > I spent 32+ years working with COBOL/CICS/DB2 on > an IBM mainframe. What takes many hours to do on the mainframe > can be done in minutes with Access. > > Keep in mind that I might > have some brain damage from years of COBOL :-) > > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, March 11, 2010 1:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Out of memory error > > Please, sir, can I have some more? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> Thanks, >>> Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/10/10 > 23:33:00 > From garykjos at gmail.com Thu Mar 11 13:43:24 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 11 Mar 2010 13:43:24 -0600 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: Hey, I did COBOL and CICS years ago myself. You'll recover from any damage Of course it's been 15 years since I worked with COBOL on a CICS system. I unplugged the mainframe at that shop in 1995. Pushed it onto a truck to be recycled. That place switched over to AS/400s. I left there soon after. We used COBOL here on UNIX when I first started in 1999 and up until 2003. That was my last taste of COBOL. I kind of miss it. Sometimes. For a minute. I've been working with Access now since version 2 I guess it was. Skipped the 95 version but used 97, 2000, 2002 and 2003 versions at work but only use 2007 at home for my personal database work. The problem most of us have with 2007 is FINDING STUFF as the entire menuing was changed where with all the previous version changes things were added but the organization was essentially the same from version to version. . GK On Thu, Mar 11, 2010 at 1:21 PM, Brad Marks wrote: > I have never worked with any version of Access other than 2007. > > I love it. > > I spent 32+ years working with COBOL/CICS/DB2 on > an IBM mainframe. ?What takes many hours to do on the mainframe > can be done in minutes with Access. > > Keep in mind that I might > have some brain damage from years of COBOL :-) > > Brad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, March 11, 2010 1:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Out of memory error > > Please, sir, can I have some more? > > r > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 11:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> Thanks, >>> Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/10/10 > 23:33:00 > > -- > 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. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From wdhindman at dejpolsystems.com Thu Mar 11 17:00:03 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 11 Mar 2010 18:00:03 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <4B993F53.7080008@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: <852F45699B47459B83A994B11F3A4DF8@jislaptopdev> ...not even close :( William -------------------------------------------------- From: "jwcolby" Sent: Thursday, March 11, 2010 2:06 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Out of memory error > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >> wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> Thanks, >>> Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Thu Mar 11 17:01:44 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 11 Mar 2010 18:01:44 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <6862F901F4234A9E9136B76F8C91BE14@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> Message-ID: ...this is like when you were just kidding us about RI, right? William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 11, 2010 2:10 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Out of memory error > Hey guys, > > I am just getting to grips with this A2k7 and it looks really cool. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> 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 robert at servicexp.com Thu Mar 11 17:05:26 2010 From: robert at servicexp.com (Robert) Date: Thu, 11 Mar 2010 18:05:26 -0500 Subject: [AccessD] MS Word Highlight Problem In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> Message-ID: <001b01cac16f$57306340$059129c0$@com> Could anyone give me some clues as to why this code does not work? Trying to highlight a text string contained in a bookmark. No errors are thrown, simply doesn't work? For Each myBookmark In objword.ActiveDocument.Bookmarks If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Next myBookmark WBR Robert From wdhindman at dejpolsystems.com Thu Mar 11 17:06:35 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 11 Mar 2010 18:06:35 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server><8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com><4B99434B.5090000@colbyconsulting.com> <4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> Message-ID: ...you got an MS app pregnant? ...can't wait to see the export. William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 11, 2010 2:33 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Out of memory error > I have this really cool app called Northwind Traders. > > Knocked it up in minutes. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > ROTFL. 'Deed they are! 'N' this just shows HOW bad! > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> Max, drugs are bad for you MMM'Kay? >> >> On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo > wrote: >>> Hey guys, >>> >>> I am just getting to grips with this A2k7 and it looks really cool. >>> >>> Max >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, March 11, 2010 7:07 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Out of memory error >>> >>> I know it hasn't been said enough, but, I hate A2007 :) I know it >>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>> know it hasn't been said enough, but, I hate A2007 :) I know it >>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>> know it hasn't been said enough, but, I hate A2007 :) >>> >>> Is that enough? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> David McAfee wrote: >>>> I was about to post the same thing. >>>> >>>> >>>> I know it hasn't been said enough, but, I hate A2007 :) >>>> >>>> >>>> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >>>> >>> wrote: >>>>> These are probably dumb questions... >>>>> >>>>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>>>> or is this something that only earlier versions had? >>>>> >>>>> Is there a way to find this info with Access 2007? >>>>> >>>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 11 17:18:49 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 11 Mar 2010 18:18:49 -0500 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server><8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com><4B99434B.5090000@colbyconsulting.com> <4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> Message-ID: <4B997A59.5030603@colbyconsulting.com> ROTFL. And what guy admits to mere minutes? ;) John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...you got an MS app pregnant? > > ...can't wait to see the export. > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Thursday, March 11, 2010 2:33 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Out of memory error > >> I have this really cool app called Northwind Traders. >> >> Knocked it up in minutes. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, March 11, 2010 7:24 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Out of memory error >> >> ROTFL. 'Deed they are! 'N' this just shows HOW bad! >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> David McAfee wrote: >>> Max, drugs are bad for you MMM'Kay? >>> >>> On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo >> wrote: >>>> Hey guys, >>>> >>>> I am just getting to grips with this A2k7 and it looks really cool. >>>> >>>> Max >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Thursday, March 11, 2010 7:07 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Out of memory error >>>> >>>> I know it hasn't been said enough, but, I hate A2007 :) I know it >>>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>>> know it hasn't been said enough, but, I hate A2007 :) I know it >>>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>>> know it hasn't been said enough, but, I hate A2007 :) >>>> >>>> Is that enough? >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> >>>> David McAfee wrote: >>>>> I was about to post the same thing. >>>>> >>>>> >>>>> I know it hasn't been said enough, but, I hate A2007 :) >>>>> >>>>> >>>>> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >>>>> >>>> wrote: >>>>>> These are probably dumb questions... >>>>>> >>>>>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>>>>> or is this something that only earlier versions had? >>>>>> >>>>>> Is there a way to find this info with Access 2007? >>>>>> >>>>>> 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 >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From davidmcafee at gmail.com Thu Mar 11 17:44:19 2010 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 11 Mar 2010 15:44:19 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <4B997A59.5030603@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> <4B99434B.5090000@colbyconsulting.com> <4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> <4B997A59.5030603@colbyconsulting.com> Message-ID: <8786a4c01003111544l434535f6ta3def09c25f9321b@mail.gmail.com> LMAO! On Thu, Mar 11, 2010 at 3:18 PM, jwcolby wrote: > ROTFL. ?And what guy admits to mere minutes? > > ;) > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...you got an MS app pregnant? >> >> ...can't wait to see the export. >> >> William >> >> -------------------------------------------------- >> From: "Max Wanadoo" >> >>> I have this really cool app called Northwind Traders. >>> >>> Knocked it up in minutes. >>> >>> Max From max.wanadoo at gmail.com Thu Mar 11 18:38:10 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 00:38:10 -0000 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server> Message-ID: Sure... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 11, 2010 11:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error ...this is like when you were just kidding us about RI, right? William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 11, 2010 2:10 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Out of memory error > Hey guys, > > I am just getting to grips with this A2k7 and it looks really cool. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it > hasn't been said enough, but, I hate A2007 :) I know it hasn't been > said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) I know it > hasn't been said enough, but, I hate A2007 :) I know it hasn't been > said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) I know it > hasn't been said enough, but, I hate A2007 :) I know it hasn't been > said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 > :) > I know it hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >> > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 11 18:37:51 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 00:37:51 -0000 Subject: [AccessD] MS Word Highlight Problem In-Reply-To: <001b01cac16f$57306340$059129c0$@com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <001b01cac16f$57306340$059129c0$@com> Message-ID: <011629A78EA74AD0A3CB76B84AFCBB4C@Server> Robert, I would change the len(mstrbidname) bit to constant 7. You know how long "Bidname" is but you don't know how long len(mstrbidname) is. So it would read: If Left(myBookmark.Name, 7) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, March 11, 2010 11:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS Word Highlight Problem Could anyone give me some clues as to why this code does not work? Trying to highlight a text string contained in a bookmark. No errors are thrown, simply doesn't work? For Each myBookmark In objword.ActiveDocument.Bookmarks If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Next myBookmark WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 11 18:46:48 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 00:46:48 -0000 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server><8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com><4B99434B.5090000@colbyconsulting.com><4C545442DB6E4C85AA4A19ED2F3AD0C0@Server> Message-ID: <0BB4C598E37A4B30A5DB581478BA3B93@Server> Yeah, well they wanted something up front so I left a deposit and then made a withdrawal. Couldn't see what the issue was though. Cool system. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 11, 2010 11:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error ...you got an MS app pregnant? ...can't wait to see the export. William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 11, 2010 2:33 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Out of memory error > I have this really cool app called Northwind Traders. > > Knocked it up in minutes. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:24 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > ROTFL. 'Deed they are! 'N' this just shows HOW bad! > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> Max, drugs are bad for you MMM'Kay? >> >> On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo > wrote: >>> Hey guys, >>> >>> I am just getting to grips with this A2k7 and it looks really cool. >>> >>> Max >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, March 11, 2010 7:07 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Out of memory error >>> >>> I know it hasn't been said enough, but, I hate A2007 :) I know it >>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>> know it hasn't been said enough, but, I hate A2007 :) I know it >>> hasn't been said enough, but, I hate A2007 :) I know it hasn't been >>> said enough, but, I hate A2007 :) I know it hasn't been said enough, >>> but, I hate A2007 :) I know it hasn't been said enough, but, I hate >>> A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I >>> know it hasn't been said enough, but, I hate A2007 :) >>> >>> Is that enough? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> David McAfee wrote: >>>> I was about to post the same thing. >>>> >>>> >>>> I know it hasn't been said enough, but, I hate A2007 :) >>>> >>>> >>>> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >>>> >>> wrote: >>>>> These are probably dumb questions... >>>>> >>>>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>>>> or is this something that only earlier versions had? >>>>> >>>>> Is there a way to find this info with Access 2007? >>>>> >>>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 11 18:53:30 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 00:53:30 -0000 Subject: [AccessD] Out of memory error In-Reply-To: <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server> <8786a4c01003111116p5ac2755ft9f9e65376fc878fc@mail.gmail.com> Message-ID: <0741362823964BF6B6CEE3E47BE4385B@Server> No, they are keeping me alive. Went on to a new regime 3 weeks ago and they are great. Blood down to 140/80 and no side effects. It means that I can be on this site for years to come...Now if that doesn't cheer you up Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, March 11, 2010 7:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error Max, drugs are bad for you MMM'Kay? On Thu, Mar 11, 2010 at 11:10 AM, Max Wanadoo wrote: > Hey guys, > > I am just getting to grips with this A2k7 and it looks really cool. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 11, 2010 7:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > I know it hasn't been said enough, but, I hate A2007 :) I know it > hasn't been said enough, but, I hate A2007 :) I know it hasn't been > said enough, but, I hate A2007 :) I know it hasn't been said enough, > but, I hate A2007 :) I know it hasn't been said enough, but, I hate > A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I > know it hasn't been said enough, but, I hate A2007 :) I know it hasn't > been said enough, but, I hate A2007 :) I know it hasn't been said > enough, but, I hate A2007 :) I know it hasn't been said enough, but, I > hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) > I know it hasn't been said enough, but, I hate A2007 :) I know it > hasn't been said enough, but, I hate A2007 :) > > Is that enough? > > John W. Colby > www.ColbyConsulting.com > > > David McAfee wrote: >> I was about to post the same thing. >> >> >> I know it hasn't been said enough, but, I hate A2007 :) >> >> >> On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks >> > wrote: >>> These are probably dumb questions... >>> >>> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >>> or is this something that only earlier versions had? >>> >>> Is there a way to find this info with Access 2007? >>> >>> 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 11 18:54:46 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 00:54:46 -0000 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com> Message-ID: <7AF0BD19AF35445FB52A96D1CA1DCC30@Server> Talking of which. How is the Delete Code going? Did that do the trick? Did you look at the Automation Form? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 11, 2010 7:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Please, sir, can I have some more? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Mar 11 19:31:57 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 11 Mar 2010 17:31:57 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <7AF0BD19AF35445FB52A96D1CA1DCC30@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com> <7AF0BD19AF35445FB52A96D1CA1DCC30@Server> Message-ID: <41A90E25A4FB47128591A23091A3FD70@HAL9005> Oh, I thought I responded. Sorry - because it worked just fine. I made some mods, laced it into the app. Client's on Exchange, though, so it doesn't find 'Personal Folders' but I'm going to do a Team Viewer session with him and see what his folder structure looks like. In addition to prompting on the form for the name of the calendar they want to push the appointments onto, I may have to ask for this top level folder. But I never worked with Exchange so I have to take a look. Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Talking of which. How is the Delete Code going? Did that do the trick? Did you look at the Automation Form? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 11, 2010 7:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Please, sir, can I have some more? r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> Thanks, >> Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 From garykjos at gmail.com Thu Mar 11 20:19:06 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 11 Mar 2010 20:19:06 -0600 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: OK, I'm at home now. Yes it works in 2007 Access. Click the ball in the upper left corner. This is on a Vista OS by the way. Not sure of how Office 2007 looks on other OS's. Then Click Access Options on the bottom of that dialog box. "About Microsoft Access 2007"is on the next screen. System Info is on the next one and there you go. Simple really. And obvious. Or not. ;-) Here's what mine says... ------------------------------------- OS Name Microsoft? Windows Vista? Home Premium Version 6.0.6002 Service Pack 2 Build 6002 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name DUOCORE System Manufacturer Dell Inc. System Model Dell DM061 System Type X86-based PC Processor Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz, 2128 Mhz, 2 Core(s), 2 Logical Processor(s) BIOS Version/Date Dell Inc. 2.1.2, 12/1/2006 SMBIOS Version 2.3 Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume2 Locale United States Hardware Abstraction Layer Version = "6.0.6002.18005" User Name DUOCORE\Gary Kjos Time Zone Central Standard Time Installed Physical Memory (RAM) 4.00 GB Total Physical Memory 3.00 GB Available Physical Memory 1.38 GB Total Virtual Memory 6.22 GB Available Virtual Memory 4.44 GB Page File Space 3.29 GB Page File C:\pagefile.sys ------------------------------------- GK On Thu, Mar 11, 2010 at 10:07 AM, Brad Marks wrote: > These are probably dumb questions... > > Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" > or is this something that only earlier versions had? > > Is there a way to find this info with Access 2007? > > Thanks, > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 11, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > So it does let you open the database itself, just not any objects? ?I > would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much > of that 4 GB is available for this access application. > > Then maybe a reboot and try it again and see if anything changed. > Maybe you have a memory leak someplace? > > GK > > On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: >> Hi all, >> >> I am running into a consistent error with a particular app. When I try to >> open something, Access tells me that it has insufficient memory to complete >> the operation. The box has 4GB of RAM and nothing else is running except SQL >> Server. I have tried compact and repair but I still get the error. I even >> created a new MDB and imported everything from the old one. Still no joy. >> Will Decompile help? I don't suppose it can hurt, but I haven't yet done >> that. This ?incidentally is Access 2003 with SP3. >> >> Any other suggestions? >> >> TIA, >> Arthur >> -- >> 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 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > 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 BradM at blackforestltd.com Thu Mar 11 20:44:52 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 11 Mar 2010 20:44:52 -0600 Subject: [AccessD] Out of memory error References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: Gary, Thanks for the help. I was able to find it with your instructions. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 11, 2010 8:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error OK, I'm at home now. Yes it works in 2007 Access. Click the ball in the upper left corner. This is on a Vista OS by the way. Not sure of how Office 2007 looks on other OS's. Then Click Access Options on the bottom of that dialog box. "About Microsoft Access 2007"is on the next screen. System Info is on the next one and there you go. Simple really. And obvious. Or not. ;-) Here's what mine says... ------------------------------------- OS Name Microsoft? Windows Vista(tm) Home Premium Version 6.0.6002 Service Pack 2 Build 6002 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name DUOCORE System Manufacturer Dell Inc. System Model Dell DM061 System Type X86-based PC Processor Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz, 2128 Mhz, 2 Core(s), 2 Logical Processor(s) BIOS Version/Date Dell Inc. 2.1.2, 12/1/2006 SMBIOS Version 2.3 Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume2 Locale United States Hardware Abstraction Layer Version = "6.0.6002.18005" User Name DUOCORE\Gary Kjos Time Zone Central Standard Time Installed Physical Memory (RAM) 4.00 GB Total Physical Memory 3.00 GB Available Physical Memory 1.38 GB Total Virtual Memory 6.22 GB Available Virtual Memory 4.44 GB Page File Space 3.29 GB Page File C:\pagefile.sys ------------------------------------- GK On Thu, Mar 11, 2010 at 10:07 AM, Brad Marks wrote: > These are probably dumb questions... > > Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" > or is this something that only earlier versions had? > > Is there a way to find this info with Access 2007? > > Thanks, > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 11, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > So it does let you open the database itself, just not any objects? ?I > would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much > of that 4 GB is available for this access application. > > Then maybe a reboot and try it again and see if anything changed. > Maybe you have a memory leak someplace? > > GK > > On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: >> Hi all, >> >> I am running into a consistent error with a particular app. When I try to >> open something, Access tells me that it has insufficient memory to complete >> the operation. The box has 4GB of RAM and nothing else is running except SQL >> Server. I have tried compact and repair but I still get the error. I even >> created a new MDB and imported everything from the old one. Still no joy. >> Will Decompile help? I don't suppose it can hurt, but I haven't yet done >> that. This ?incidentally is Access 2003 with SP3. >> >> Any other suggestions? >> >> TIA, >> Arthur >> -- >> 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 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > 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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From rockysmolin at bchacc.com Thu Mar 11 23:03:56 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 11 Mar 2010 21:03:56 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <21E8617236984899908B74F3D40293C0@Server> Message-ID: <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> So it turns out that in the client's Exchange the top level folder is "Mailbox - Jack Stone", not 'Personal Folders'. I suppose that any user could change the name of their top level folder. Do you know if there is a way to find out the name of that top level folder without prompting the user for it? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 10, 2010 1:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Picking Alternate Calendar Rocky: Try this code below Max Private Sub sDeleteCalEvents() Dim strDateFrom As String, strDateTo As String strDateFrom = "01/01/2010" ' mm/dd/yyyy strDateTo = "12/31/2010" ' mm/dd/yyyy Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor Debug.Print myCalendar.Items.Count For ifor = myCalendar.Items.Count To 1 Step -1 ' work backwards Debug.Print Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy"), ' trailing comma If Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") >= strDateFrom And Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") <= strDateTo Then Debug.Print "Deleted" myCalendar.Items(ifor).Delete Else Debug.Print "Not deleted" End If Next ifor End Sub Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Or ofCalendar.Folders.Count = 0 Then MsgBox "The user caledar (" & strCalendarName & ") does not appear as a sub folder of Calendar. Press OK and I will created it for you." Set ofFolder = onMAPI.GetDefaultFolder(olFolderCalendar) Set myCalendar = ofFolder.Folders.Add(strCalendarName) End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 2:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myResourceAttendee.Type = olResource '.Display myItem.Send End With End With End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 From stuart at lexacorp.com.pg Fri Mar 12 00:55:58 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Mar 2010 16:55:58 +1000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> References: , , <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> Message-ID: <4B99E57E.30967.F7686BD@stuart.lexacorp.com.pg> That's standard for Exchange Server. It's generally Mailbox - User Name. I don't know if you even *can* change that. -- Stuart On 11 Mar 2010 at 21:03, Rocky Smolin wrote: > So it turns out that in the client's Exchange the top level folder is > "Mailbox - Jack Stone", not 'Personal Folders'. I suppose that any user > could change the name of their top level folder. Do you know if there is a > way to find out the name of that top level folder without prompting the user > for it? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 10, 2010 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Picking Alternate Calendar > > Rocky: > > Try this code below > > Max > > Private Sub sDeleteCalEvents() > Dim strDateFrom As String, strDateTo As String > strDateFrom = "01/01/2010" ' mm/dd/yyyy > strDateTo = "12/31/2010" ' mm/dd/yyyy > Dim ol As Outlook.Application > Dim onMAPI As NameSpace > Dim ofMyOutlook As MAPIFolder > Dim ofFolder As MAPIFolder > Dim ofCalendar As MAPIFolder > Dim myItem As Object > Dim myCalendar As Object > Dim strCalendarName As String > ' this is the variable which can be passed in as the name of the new > (non-default calendar) > ' because it is non-system calendar we cannot use ol.creatitem() but > have to use .items.add > strCalendarName = "My Calendar" > Set ol = New Outlook.Application > Dim ifor As Integer > Set onMAPI = ol.GetNamespace("MAPI") > On Error Resume Next > Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed > mine > If Err.Number <> 0 Then > MsgBox "The Outlook 'Personal Folder' cannot be found. Have you > renamed it to something else perhaps?." > Exit Sub > End If > Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the > normal name > ' go though the folders inside the calendar folder and see if we can > find the user-defined calendar > For ifor = 1 To ofCalendar.Folders.Count > ' Debug.Print ofCalendar.Folders(ifor), ifor > If ofCalendar.Folders(ifor) = strCalendarName Then > Set myCalendar = ofCalendar.Folders(ifor) ' Got it > ifor = ofCalendar.Folders.Count ' jump out > End If > Next ifor > > Debug.Print myCalendar.Items.Count > > For ifor = myCalendar.Items.Count To 1 Step -1 ' work backwards > Debug.Print Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy"), ' > trailing comma > If Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") >= strDateFrom > And Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") <= strDateTo Then > Debug.Print "Deleted" > myCalendar.Items(ifor).Delete > Else > Debug.Print "Not deleted" > End If > Next ifor > End Sub > > Private Sub sCalendar() > Dim ol As Outlook.Application > Dim onMAPI As NameSpace > Dim ofMyOutlook As MAPIFolder > Dim ofFolder As MAPIFolder > Dim ofCalendar As MAPIFolder > Dim myItem As Object > Dim myCalendar As Object > Dim strCalendarName As String > Dim myRequiredAttendee As Outlook.Recipient > Dim myoptionalAttendee As Outlook.Recipient > Dim myResourceAttendee As Outlook.Recipient > ' this is the variable which can be passed in as the name of the new > (non-default calendar) > ' because it is non-system calendar we cannot use ol.creatitem() but > have to use .items.add > strCalendarName = "My Calendar" > Set ol = New Outlook.Application > Dim ifor As Integer > Set onMAPI = ol.GetNamespace("MAPI") > On Error Resume Next > Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed > mine > If Err.Number <> 0 Then > MsgBox "The Outlook 'Personal Folder' cannot be found. Have you > renamed it to something else perhaps?." > Exit Sub > End If > Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the > normal name > ' go though the folders inside the calendar folder and see if we can > find the user-defined calendar > For ifor = 1 To ofCalendar.Folders.Count > ' Debug.Print ofCalendar.Folders(ifor), ifor > If ofCalendar.Folders(ifor) = strCalendarName Then > Set myCalendar = ofCalendar.Folders(ifor) ' Got it > ifor = ofCalendar.Folders.Count ' jump out > End If > Next ifor > If ifor > ofCalendar.Folders.Count + 1 Or ofCalendar.Folders.Count = 0 > Then > MsgBox "The user caledar (" & strCalendarName & ") does not appear > as a sub folder of Calendar. Press OK and I will created it for you." > Set ofFolder = onMAPI.GetDefaultFolder(olFolderCalendar) > Set myCalendar = ofFolder.Folders.Add(strCalendarName) > End If > ' might need ClickYes installed if you require to send without user > viewing first. > With myCalendar > Set myItem = myCalendar.Items.Add ' > ol.CreateItem(olAppointmentItem) > With myItem > .MeetingStatus = olMeeting > .Subject = "Meeting Tomorrow BoardRoom - test from Max at > AccessD" > .Location = "Conference Room No. 33" > .Start = #3/10/2010 2:30:00 PM# ' month/day/year - change as > required. > .Duration = 90 > ' > Set myRequiredAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myRequiredAttendee.Type = olRequired > Set myoptionalAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myoptionalAttendee.Type = olOptional > Set myResourceAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myResourceAttendee.Type = olResource > '.Display > myItem.Send > End With > End With > End Sub > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 > 23:33:00 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Mar 12 01:08:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 11 Mar 2010 23:08:47 -0800 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <4B99E57E.30967.F7686BD@stuart.lexacorp.com.pg> References: , , <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> <4B99E57E.30967.F7686BD@stuart.lexacorp.com.pg> Message-ID: <79A739B5CC294AE4B098D4F33A689B7D@HAL9005> DO you know if there's a way programmatically to get that folder name? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 11, 2010 10:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Picking Alternate Calendar That's standard for Exchange Server. It's generally Mailbox - User Name. I don't know if you even *can* change that. -- Stuart On 11 Mar 2010 at 21:03, Rocky Smolin wrote: > So it turns out that in the client's Exchange the top level folder is > "Mailbox - Jack Stone", not 'Personal Folders'. I suppose that any > user could change the name of their top level folder. Do you know if > there is a way to find out the name of that top level folder without > prompting the user for it? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 10, 2010 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Picking Alternate Calendar > > Rocky: > > Try this code below > > Max > > Private Sub sDeleteCalEvents() > Dim strDateFrom As String, strDateTo As String > strDateFrom = "01/01/2010" ' mm/dd/yyyy > strDateTo = "12/31/2010" ' mm/dd/yyyy > Dim ol As Outlook.Application > Dim onMAPI As NameSpace > Dim ofMyOutlook As MAPIFolder > Dim ofFolder As MAPIFolder > Dim ofCalendar As MAPIFolder > Dim myItem As Object > Dim myCalendar As Object > Dim strCalendarName As String > ' this is the variable which can be passed in as the name of the > new (non-default calendar) > ' because it is non-system calendar we cannot use ol.creatitem() > but have to use .items.add > strCalendarName = "My Calendar" > Set ol = New Outlook.Application > Dim ifor As Integer > Set onMAPI = ol.GetNamespace("MAPI") > On Error Resume Next > Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed > mine > If Err.Number <> 0 Then > MsgBox "The Outlook 'Personal Folder' cannot be found. Have > you renamed it to something else perhaps?." > Exit Sub > End If > Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the > normal name > ' go though the folders inside the calendar folder and see if we > can find the user-defined calendar > For ifor = 1 To ofCalendar.Folders.Count > ' Debug.Print ofCalendar.Folders(ifor), ifor > If ofCalendar.Folders(ifor) = strCalendarName Then > Set myCalendar = ofCalendar.Folders(ifor) ' Got it > ifor = ofCalendar.Folders.Count ' jump out > End If > Next ifor > > Debug.Print myCalendar.Items.Count > > For ifor = myCalendar.Items.Count To 1 Step -1 ' work backwards > Debug.Print Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy"), ' > trailing comma > If Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") >= > strDateFrom And Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") <= strDateTo Then > Debug.Print "Deleted" > myCalendar.Items(ifor).Delete > Else > Debug.Print "Not deleted" > End If > Next ifor > End Sub > > Private Sub sCalendar() > Dim ol As Outlook.Application > Dim onMAPI As NameSpace > Dim ofMyOutlook As MAPIFolder > Dim ofFolder As MAPIFolder > Dim ofCalendar As MAPIFolder > Dim myItem As Object > Dim myCalendar As Object > Dim strCalendarName As String > Dim myRequiredAttendee As Outlook.Recipient > Dim myoptionalAttendee As Outlook.Recipient > Dim myResourceAttendee As Outlook.Recipient > ' this is the variable which can be passed in as the name of the > new (non-default calendar) > ' because it is non-system calendar we cannot use ol.creatitem() > but have to use .items.add > strCalendarName = "My Calendar" > Set ol = New Outlook.Application > Dim ifor As Integer > Set onMAPI = ol.GetNamespace("MAPI") > On Error Resume Next > Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed > mine > If Err.Number <> 0 Then > MsgBox "The Outlook 'Personal Folder' cannot be found. Have > you renamed it to something else perhaps?." > Exit Sub > End If > Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the > normal name > ' go though the folders inside the calendar folder and see if we > can find the user-defined calendar > For ifor = 1 To ofCalendar.Folders.Count > ' Debug.Print ofCalendar.Folders(ifor), ifor > If ofCalendar.Folders(ifor) = strCalendarName Then > Set myCalendar = ofCalendar.Folders(ifor) ' Got it > ifor = ofCalendar.Folders.Count ' jump out > End If > Next ifor > If ifor > ofCalendar.Folders.Count + 1 Or ofCalendar.Folders.Count > = 0 Then > MsgBox "The user caledar (" & strCalendarName & ") does not > appear as a sub folder of Calendar. Press OK and I will created it for you." > Set ofFolder = onMAPI.GetDefaultFolder(olFolderCalendar) > Set myCalendar = ofFolder.Folders.Add(strCalendarName) > End If > ' might need ClickYes installed if you require to send without > user viewing first. > With myCalendar > Set myItem = myCalendar.Items.Add ' > ol.CreateItem(olAppointmentItem) > With myItem > .MeetingStatus = olMeeting > .Subject = "Meeting Tomorrow BoardRoom - test from Max at > AccessD" > .Location = "Conference Room No. 33" > .Start = #3/10/2010 2:30:00 PM# ' month/day/year - change as > required. > .Duration = 90 > ' > Set myRequiredAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myRequiredAttendee.Type = olRequired > Set myoptionalAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myoptionalAttendee.Type = olOptional > Set myResourceAttendee = myItem.Recipients.Add(" > rockysmolin at bchacc.com") > myResourceAttendee.Type = olResource > '.Display > myItem.Send > End With > End With > End Sub > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/08/10 23:33:00 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/10/10 23:33:00 From jimdettman at verizon.net Fri Mar 12 01:38:14 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 12 Mar 2010 02:38:14 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <6862F901F4234A9E9136B76F8C91BE14@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> Message-ID: Don't waste your time; A2010 beta is available. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> 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 Gustav at cactus.dk Fri Mar 12 02:43:12 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Mar 2010 09:43:12 +0100 Subject: [AccessD] Out of memory error Message-ID: Ha ha. Max the Troll! Max is bored. /gustav >>> max.wanadoo at gmail.com 11-03-2010 20:10 >>> Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max From max.wanadoo at gmail.com Fri Mar 12 03:12:35 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 09:12:35 -0000 Subject: [AccessD] Out of memory error In-Reply-To: References: Message-ID: <3F9ECC21F08A439698C032A87E0FB90E@Server> Ha! You got me Gustav... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 12, 2010 8:43 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Out of memory error Ha ha. Max the Troll! Max is bored. /gustav >>> max.wanadoo at gmail.com 11-03-2010 20:10 >>> Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 12 03:13:34 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 09:13:34 -0000 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server> Message-ID: <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> Very goog point Jim, A2k3 is begining to look a distance memory. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 12, 2010 7:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Don't waste your time; A2010 beta is available. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 12 04:33:35 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 10:33:35 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> References: <21E8617236984899908B74F3D40293C0@Server> <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> Message-ID: <30050E59A6284ADA8866D5A2742082B9@Server> Rocky, you could try the code below. Remember this is Outlook and not Exchange Server but it might do the trick. Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace 'Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myCalendar As MAPIFolder Dim myItem As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient Dim ifor As Integer Set ol = New Outlook.Application Set onMAPI = ol.GetNamespace("MAPI") 'On Error Resume Next 'Debug.Print onMAPI.Class 'Debug.Print onMAPI.CurrentUser ' might be useful to get this then you can personlise your responses to him ' eg.Hey Rocky,your appointment has been made - next time use your cellphone. 'Debug.Print onMAPI.GetDefaultFolder(olFolderCalendar) Set ofCalendar = onMAPI.GetDefaultFolder(olFolderCalendar) For Each ofFolder In ofCalendar.Folders ' this assumes there is only ONE sub calendar but if there are more than one, ' you will need to pop them up and ask which one or define it in some way. strCalendarName = ofFolder.Name: Debug.Print ofFolder.Name Next ofFolder Set myCalendar = ofCalendar.Folders(strCalendarName) ' this is the FOUND name With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/13/2010 11:30:00 AM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired ' Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") ' myoptionalAttendee.Type = olOptional ' Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") ' myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 12, 2010 5:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Picking Alternate Calendar So it turns out that in the client's Exchange the top level folder is "Mailbox - Jack Stone", not 'Personal Folders'. I suppose that any user could change the name of their top level folder. Do you know if there is a way to find out the name of that top level folder without prompting the user for it? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 10, 2010 1:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Picking Alternate Calendar Rocky: Try this code below Max Private Sub sDeleteCalEvents() Dim strDateFrom As String, strDateTo As String strDateFrom = "01/01/2010" ' mm/dd/yyyy strDateTo = "12/31/2010" ' mm/dd/yyyy Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor Debug.Print myCalendar.Items.Count For ifor = myCalendar.Items.Count To 1 Step -1 ' work backwards Debug.Print Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy"), ' trailing comma If Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") >= strDateFrom And Format(myCalendar.Items(ifor).Start, "mm/dd/yyyy") <= strDateTo Then Debug.Print "Deleted" myCalendar.Items(ifor).Delete Else Debug.Print "Not deleted" End If Next ifor End Sub Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim myCalendar As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient ' this is the variable which can be passed in as the name of the new (non-default calendar) ' because it is non-system calendar we cannot use ol.creatitem() but have to use .items.add strCalendarName = "My Calendar" Set ol = New Outlook.Application Dim ifor As Integer Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next Set ofMyOutlook = onMAPI.Folders("Personal Folders") ' but I renamed mine If Err.Number <> 0 Then MsgBox "The Outlook 'Personal Folder' cannot be found. Have you renamed it to something else perhaps?." Exit Sub End If Set ofCalendar = ofMyOutlook.Folders("Calendar") ' this is the normal name ' go though the folders inside the calendar folder and see if we can find the user-defined calendar For ifor = 1 To ofCalendar.Folders.Count ' Debug.Print ofCalendar.Folders(ifor), ifor If ofCalendar.Folders(ifor) = strCalendarName Then Set myCalendar = ofCalendar.Folders(ifor) ' Got it ifor = ofCalendar.Folders.Count ' jump out End If Next ifor If ifor > ofCalendar.Folders.Count + 1 Or ofCalendar.Folders.Count = 0 Then MsgBox "The user caledar (" & strCalendarName & ") does not appear as a sub folder of Calendar. Press OK and I will created it for you." Set ofFolder = onMAPI.GetDefaultFolder(olFolderCalendar) Set myCalendar = ofFolder.Folders.Add(strCalendarName) End If ' might need ClickYes installed if you require to send without user viewing first. With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/10/2010 2:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add(" rockysmolin at bchacc.com") myResourceAttendee.Type = olResource '.Display myItem.Send End With End With End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/08/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 12 05:12:02 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 11:12:02 -0000 Subject: [AccessD] Picking Alternate Calendar References: <21E8617236984899908B74F3D40293C0@Server> <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> Message-ID: Sorry, Think I sent the wrong code in my last posting. Try this Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofMyOutlook As MAPIFolder Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myItem As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient Dim ifor As Integer Set ol = New Outlook.Application Set onMAPI = ol.GetNamespace("MAPI") On Error Resume Next 'Debug.Print onMAPI.Class 'Debug.Print onMAPI.CurrentUser ' might be useful to get this then you can personlise your responses to him ' eg.Hey Rocky,your appointment has been made - next time use your cellphone. 'Debug.Print onMAPI.GetDefaultFolder(olFolderCalendar) Set ofCalendar = onMAPI.GetDefaultFolder(olFolderCalendar) For Each ofFolder In ofCalendar.Folders ' this assumes there is only ONE sub calendar but if there are more than one, ' you will need to pop them up and ask which one or define it in some way. strCalendarName = ofFolder.Name: Debug.Print ofFolder.Name Next ofFolder Set ofCalendar = ofMyOutlook.Folders(strCalendarName) ' this is the FOUND name With ofCalendar Set myItem = ofCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Tomorrow BoardRoom - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/12/2010 2:30:00 PM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myoptionalAttendee.Type = olOptional Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myResourceAttendee.Type = olResource .Display 'myItem.Send End With End With End Sub From max.wanadoo at gmail.com Fri Mar 12 05:18:54 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 11:18:54 -0000 Subject: [AccessD] Picking Alternate Calendar In-Reply-To: References: <21E8617236984899908B74F3D40293C0@Server> <5FAE9D5CEA2542EDBE5EAB068FBEE2B2@HAL9005> Message-ID: It keeps posting the wrong code. Must be my buffer. Here it is once again - sorry about all that. I had turned the on error off so that I could see it going through without a problem. Max Private Sub sCalendar() Dim ol As Outlook.Application Dim onMAPI As NameSpace Dim ofFolder As MAPIFolder Dim ofCalendar As MAPIFolder Dim myCalendar As MAPIFolder Dim myItem As Object Dim strCalendarName As String Dim myRequiredAttendee As Outlook.Recipient Dim myoptionalAttendee As Outlook.Recipient Dim myResourceAttendee As Outlook.Recipient Dim ifor As Integer Set ol = New Outlook.Application Set onMAPI = ol.GetNamespace("MAPI") 'On Error Resume Next 'Debug.Print onMAPI.Class 'Debug.Print onMAPI.CurrentUser ' might be useful to get this then you can personlise your responses to him ' eg.Hey Rocky,your appointment has been made - next time use your cellphone. 'Debug.Print onMAPI.GetDefaultFolder(olFolderCalendar) Set ofCalendar = onMAPI.GetDefaultFolder(olFolderCalendar) For Each ofFolder In ofCalendar.Folders ' this assumes there is only ONE sub calendar but if there are more than one, ' you will need to pop them up and ask which one or define it in some way. strCalendarName = ofFolder.Name: Debug.Print ofFolder.Name Next ofFolder Set myCalendar = ofCalendar.Folders(strCalendarName) ' this is the FOUND name ' if you want to change the sub-folder name. 'myCalendar.Name = "Something Else" With myCalendar Set myItem = myCalendar.Items.Add ' ol.CreateItem(olAppointmentItem) With myItem .MeetingStatus = olMeeting .Subject = "Meeting Sunday - test from Max at AccessD" .Location = "Conference Room No. 33" .Start = #3/14/2010 10:30:00 AM# ' month/day/year - change as required. .Duration = 90 ' Set myRequiredAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") myRequiredAttendee.Type = olRequired ' Set myoptionalAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") ' myoptionalAttendee.Type = olOptional ' Set myResourceAttendee = myItem.Recipients.Add("rockysmolin at bchacc.com") ' myResourceAttendee.Type = olResource .Body = "" .Display 'myItem.Send End With End With End Sub From robert at servicexp.com Fri Mar 12 06:24:56 2010 From: robert at servicexp.com (Robert) Date: Fri, 12 Mar 2010 07:24:56 -0500 Subject: [AccessD] MS Word Highlight Problem In-Reply-To: <011629A78EA74AD0A3CB76B84AFCBB4C@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <001b01cac16f$57306340$059129c0$@com> <011629A78EA74AD0A3CB76B84AFCBB4C@Server> Message-ID: <001001cac1df$074fab90$15ef02b0$@com> Hey Max, Thanks for the suggestion. However the problem, which I should have been more clear earlier, is not that the bookmark doesn't get found, the problem is this: Even though the myBookmark.Range.HighlightColorIndex property gets set to wdDarkYellow it still does not get highlighted. myBookmark.Range.HighlightColorIndex = 0 Before AND after I set it to wdDarkYellow (14), and I can't figure out why.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 7:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Word Highlight Problem Robert, I would change the len(mstrbidname) bit to constant 7. You know how long "Bidname" is but you don't know how long len(mstrbidname) is. So it would read: If Left(myBookmark.Name, 7) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, March 11, 2010 11:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS Word Highlight Problem Could anyone give me some clues as to why this code does not work? Trying to highlight a text string contained in a bookmark. No errors are thrown, simply doesn't work? For Each myBookmark In objword.ActiveDocument.Bookmarks If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Next myBookmark WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Fri Mar 12 06:28:55 2010 From: robert at servicexp.com (Robert) Date: Fri, 12 Mar 2010 07:28:55 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server> <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> Message-ID: <001101cac1df$9608d730$c21a8590$@com> Man, there are so many issues with MS Access 2007 and Windows 7, I find it VERY hard to believe that A2010 is any more stable. As a matter of fact, I bet it's even more unstable... ;-) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 12, 2010 4:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Very goog point Jim, A2k3 is begining to look a distance memory. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 12, 2010 7:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Don't waste your time; A2010 beta is available. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 12 06:51:33 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 12 Mar 2010 12:51:33 -0000 Subject: [AccessD] MS Word Highlight Problem In-Reply-To: <001001cac1df$074fab90$15ef02b0$@com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <001b01cac16f$57306340$059129c0$@com><011629A78EA74AD0A3CB76B84AFCBB4C@Server> <001001cac1df$074fab90$15ef02b0$@com> Message-ID: <1920E1932CA84D03B97909B9FE688E3E@Server> Robert, This works on my Word doc Sub MYBOOK() Dim MYbookmark As Bookmark For Each MYbookmark In ActiveDocument.Bookmarks ' If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then MYbookmark.Range.HighlightColorIndex = wdDarkYellow ' End If Next MYbookmark End Sub I commented out the IF bit. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 12, 2010 12:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Word Highlight Problem Hey Max, Thanks for the suggestion. However the problem, which I should have been more clear earlier, is not that the bookmark doesn't get found, the problem is this: Even though the myBookmark.Range.HighlightColorIndex property gets set to wdDarkYellow it still does not get highlighted. myBookmark.Range.HighlightColorIndex = 0 Before AND after I set it to wdDarkYellow (14), and I can't figure out why.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 7:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Word Highlight Problem Robert, I would change the len(mstrbidname) bit to constant 7. You know how long "Bidname" is but you don't know how long len(mstrbidname) is. So it would read: If Left(myBookmark.Name, 7) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Thursday, March 11, 2010 11:05 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS Word Highlight Problem Could anyone give me some clues as to why this code does not work? Trying to highlight a text string contained in a bookmark. No errors are thrown, simply doesn't work? For Each myBookmark In objword.ActiveDocument.Bookmarks If Left(myBookmark.Name, Len(mstrBidName)) = "BidName" Then myBookmark.Range.HighlightColorIndex = wdDarkYellow End If Next myBookmark WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 12 10:07:25 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Mar 2010 10:07:25 -0600 Subject: [AccessD] Out of memory error In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> Message-ID: Same as it looks in Vista or Win 7 ... ugly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 11, 2010 6:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error OK, I'm at home now. Yes it works in 2007 Access. Click the ball in the upper left corner. This is on a Vista OS by the way. Not sure of how Office 2007 looks on other OS's. Then Click Access Options on the bottom of that dialog box. "About Microsoft Access 2007"is on the next screen. System Info is on the next one and there you go. Simple really. And obvious. Or not. ;-) Here's what mine says... ------------------------------------- OS Name Microsoft? Windows VistaT Home Premium Version 6.0.6002 Service Pack 2 Build 6002 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name DUOCORE System Manufacturer Dell Inc. System Model Dell DM061 System Type X86-based PC Processor Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz, 2128 Mhz, 2 Core(s), 2 Logical Processor(s) BIOS Version/Date Dell Inc. 2.1.2, 12/1/2006 SMBIOS Version 2.3 Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume2 Locale United States Hardware Abstraction Layer Version = "6.0.6002.18005" User Name DUOCORE\Gary Kjos Time Zone Central Standard Time Installed Physical Memory (RAM) 4.00 GB Total Physical Memory 3.00 GB Available Physical Memory 1.38 GB Total Virtual Memory 6.22 GB Available Virtual Memory 4.44 GB Page File Space 3.29 GB Page File C:\pagefile.sys ------------------------------------- GK On Thu, Mar 11, 2010 at 10:07 AM, Brad Marks wrote: > These are probably dumb questions... > > Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" > or is this something that only earlier versions had? > > Is there a way to find this info with Access 2007? > > Thanks, > Brad > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 11, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Out of memory error > > So it does let you open the database itself, just not any objects? ?I > would click HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO and see how much > of that 4 GB is available for this access application. > > Then maybe a reboot and try it again and see if anything changed. > Maybe you have a memory leak someplace? > > GK > > On Thu, Mar 11, 2010 at 8:42 AM, Arthur Fuller wrote: >> Hi all, >> >> I am running into a consistent error with a particular app. When I try to >> open something, Access tells me that it has insufficient memory to complete >> the operation. The box has 4GB of RAM and nothing else is running except SQL >> Server. I have tried compact and repair but I still get the error. I even >> created a new MDB and imported everything from the old one. Still no joy. >> Will Decompile help? I don't suppose it can hurt, but I haven't yet done >> that. This ?incidentally is Access 2003 with SP3. >> >> Any other suggestions? >> >> TIA, >> Arthur >> -- >> 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 > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > 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 accessd at shaw.ca Fri Mar 12 11:17:49 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 12 Mar 2010 09:17:49 -0800 Subject: [AccessD] Out of memory error In-Reply-To: <001101cac1df$9608d730$c21a8590$@com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com> <4B993F53.7080008@colbyconsulting.com> <6862F901F4234A9E9136B76F8C91BE14@Server> <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <001101cac1df$9608d730$c21a8590$@com> Message-ID: <76E8000B35664976AC9428B3920EB86C@creativesystemdesigns.com> Robert you are not making me feel any better... I am current moving an application from A2/A97 to A2003 and the plan is to finally migrate to a nice stable A2007. Are you saying that is not the case? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 12, 2010 4:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Man, there are so many issues with MS Access 2007 and Windows 7, I find it VERY hard to believe that A2010 is any more stable. As a matter of fact, I bet it's even more unstable... ;-) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 12, 2010 4:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Very goog point Jim, A2k3 is begining to look a distance memory. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 12, 2010 7:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Don't waste your time; A2010 beta is available. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at webedb.com Fri Mar 12 13:10:17 2010 From: robert at webedb.com (Robert Stewart) Date: Fri, 12 Mar 2010 13:10:17 -0600 Subject: [AccessD] Out of memory error In-Reply-To: References: Message-ID: <201003121910.o2CJAEGr012415@databaseadvisors.com> The company I work for makes it's "living" doing development in Office 2007. We have not found any issues with it and Win 7. Everything has been very stable. At 12:00 PM 3/12/2010, you wrote: >Date: Fri, 12 Mar 2010 09:17:49 -0800 >From: "Jim Lawrence" >Subject: Re: [AccessD] Out of memory error >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <76E8000B35664976AC9428B3920EB86C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Robert you are not making me feel any better... > >I am current moving an application from A2/A97 to A2003 and the plan is to >finally migrate to a nice stable A2007. > >Are you saying that is not the case? > >Jim > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert >Sent: Friday, March 12, 2010 4:29 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Out of memory error > >Man, there are so many issues with MS Access 2007 and Windows 7, I find it >VERY hard to believe that A2010 is any more stable. As a matter of fact, I >bet it's even more unstable... ;-) > > >WBR >Robert From jm.hwsn at gmail.com Fri Mar 12 13:24:17 2010 From: jm.hwsn at gmail.com (Jim Hewson) Date: Fri, 12 Mar 2010 13:24:17 -0600 Subject: [AccessD] Out of memory error In-Reply-To: <201003121910.o2CJAEGr012415@databaseadvisors.com> References: <201003121910.o2CJAEGr012415@databaseadvisors.com> Message-ID: <4b9a94fd.5444f10a.598d.5b34@mx.google.com> I too, make a "living" with Office 2007, specifically with Access 2007. I have found it to be mostly stable. There are times when something has worked and then it stops working... Sometimes simply compact and repair "fixes" the problem, other times it doesn't. It could be that since I'm still in the development mode, the excessive changes might cause the problems. I just don't know... Anyway, I'm about 3 months ahead of schedule, so I have time to ensure everything works as the FRD states. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Friday, March 12, 2010 1:10 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Out of memory error The company I work for makes it's "living" doing development in Office 2007. We have not found any issues with it and Win 7. Everything has been very stable. At 12:00 PM 3/12/2010, you wrote: >Date: Fri, 12 Mar 2010 09:17:49 -0800 >From: "Jim Lawrence" >Subject: Re: [AccessD] Out of memory error >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <76E8000B35664976AC9428B3920EB86C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Robert you are not making me feel any better... > >I am current moving an application from A2/A97 to A2003 and the plan is to >finally migrate to a nice stable A2007. > >Are you saying that is not the case? > >Jim > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert >Sent: Friday, March 12, 2010 4:29 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Out of memory error > >Man, there are so many issues with MS Access 2007 and Windows 7, I find it >VERY hard to believe that A2010 is any more stable. As a matter of fact, I >bet it's even more unstable... ;-) > > >WBR >Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 12 14:31:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 12 Mar 2010 15:31:28 -0500 Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com Message-ID: <4B9AA4A0.3090300@colbyconsulting.com> About two years ago I went on a bender, unsubscribing from all of the email lists, advertisements etc. MASSIVELY reduced the email coming in to my box. I still unsub from every valid email from advertisers, immediately upon receipt. If I need to use their company, I know how to get ahold of them. It literally took me about a month to unsub from all of the crap, but I went from hundreds of emails a day to a couple of dozen, and most of them are from clients. I am thinking of subscribing to the "quiet time" idea in the article. I don't have a blackberry, I don't do IMs at all. Email or phone, and all advertising email is unsubbed to on receipt. It has made a tremendous difference in my life. http://www.msnbc.msn.com/id/35689822/ns/business-small_business// -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Fri Mar 12 14:57:58 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 12 Mar 2010 15:57:58 -0500 Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: <4B9AA4A0.3090300@colbyconsulting.com> References: <4B9AA4A0.3090300@colbyconsulting.com> Message-ID: Totally agree about quite time. Access-D is particularly vocal :-). As for subscription emails, I find that life with gmail is quite pleasant, it's very very good at removing spam from my inbox. So even if I don't bother to unsub I can just hit the report spam button and forget about it. Even Outlook is fairly good at ridding me of junk in the corporate environment, but the junk filter only seems effective when using Exchange Server and when the 'used cached Exchange' option is selected. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 12, 2010 3:31 PM To: Access Developers discussion and problem solving Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com About two years ago I went on a bender, unsubscribing from all of the email lists, advertisements etc. MASSIVELY reduced the email coming in to my box. I still unsub from every valid email from advertisers, immediately upon receipt. If I need to use their company, I know how to get ahold of them. It literally took me about a month to unsub from all of the crap, but I went from hundreds of emails a day to a couple of dozen, and most of them are from clients. I am thinking of subscribing to the "quiet time" idea in the article. I don't have a blackberry, I don't do IMs at all. Email or phone, and all advertising email is unsubbed to on receipt. It has made a tremendous difference in my life. http://www.msnbc.msn.com/id/35689822/ns/business-small_business// -- 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 accessd at shaw.ca Fri Mar 12 15:28:16 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 12 Mar 2010 13:28:16 -0800 Subject: [AccessD] Blunt the e-mail interruption assault - Small business-msnbc.com In-Reply-To: <4B9AA4A0.3090300@colbyconsulting.com> References: <4B9AA4A0.3090300@colbyconsulting.com> Message-ID: <1CEA48E1B8AF434682177DF910FCA115@creativesystemdesigns.com> In summary; machines may be able to multitask but humans can not... Squirrel!! Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 12, 2010 12:31 PM To: Access Developers discussion and problem solving Subject: [AccessD] Blunt the e-mail interruption assault - Small business-msnbc.com About two years ago I went on a bender, unsubscribing from all of the email lists, advertisements etc. MASSIVELY reduced the email coming in to my box. I still unsub from every valid email from advertisers, immediately upon receipt. If I need to use their company, I know how to get ahold of them. It literally took me about a month to unsub from all of the crap, but I went from hundreds of emails a day to a couple of dozen, and most of them are from clients. I am thinking of subscribing to the "quiet time" idea in the article. I don't have a blackberry, I don't do IMs at all. Email or phone, and all advertising email is unsubbed to on receipt. It has made a tremendous difference in my life. http://www.msnbc.msn.com/id/35689822/ns/business-small_business// -- 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 stuart at lexacorp.com.pg Fri Mar 12 18:06:28 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 13 Mar 2010 10:06:28 +1000 Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: References: <4B9AA4A0.3090300@colbyconsulting.com>, Message-ID: <4B9AD704.18402.1325FCE8@stuart.lexacorp.com.pg> That is the selfish attitude that destroys it for everyone else! Your lying to google about an unwanted newsletter being spam doesn't just affect you. When people like you report a legitimate newsletter as spam just because you are too damned lazy to unsubscribe, the newsletter starts getting flagged as spam by gmail for everyone and people who want to see it don't. -- Stuart On 12 Mar 2010 at 15:57, Heenan, Lambert wrote: > As for subscription emails, I find that life with gmail is quite > pleasant, it's very very good at removing spam from my inbox. So even > if I don't bother to unsub I can just hit the report spam button and > forget about it. > From jimdettman at verizon.net Fri Mar 12 18:08:28 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 12 Mar 2010 19:08:28 -0500 Subject: [AccessD] Out of memory error In-Reply-To: <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server> <8F5A386CEB5F494B812FE0ADB1D58ACE@Server> Message-ID: <5B0FD4129FC04014B205050C3B13CF51@LaptopII> Hey, I'm still there too Actually, mostly A2000 as a matter of fact. I only loaded A2k7 because I needed it for answering questions on EE. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 12, 2010 4:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Very goog point Jim, A2k3 is begining to look a distance memory. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, March 12, 2010 7:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Don't waste your time; A2010 beta is available. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 11, 2010 2:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Out of memory error Hey guys, I am just getting to grips with this A2k7 and it looks really cool. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 11, 2010 7:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Out of memory error I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) I know it hasn't been said enough, but, I hate A2007 :) Is that enough? John W. Colby www.ColbyConsulting.com David McAfee wrote: > I was about to post the same thing. > > > I know it hasn't been said enough, but, I hate A2007 :) > > > On Thu, Mar 11, 2010 at 8:07 AM, Brad Marks wrote: >> These are probably dumb questions... >> >> Does Access 2007 have "HELP/ABOUT MICROSOFT ACCESS/SYSTEM INFO" >> or is this something that only earlier versions had? >> >> Is there a way to find this info with Access 2007? >> >> 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Mar 12 19:43:43 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 12 Mar 2010 20:43:43 -0500 Subject: [AccessD] Treeview/Listview OCX Disabled by MS In-Reply-To: <5B0FD4129FC04014B205050C3B13CF51@LaptopII> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII> Message-ID: <17E5195E8FE24990BF67F423F67C7354@jislaptopdev> ...just came too damn close to having a heart attack ...I use the mscomctl.ocx (treeview/listview controls) extensively throughout my apps especially for my switchboard/menuing system ...I'd not worked on an app this week because we have newborn kittens whose mother can't feed them (trust me, it's a round the clock operation) ...so this morning a client needed something and I reluctantly (and blearily) fired up the app on my laptop ...and the switchboard pops up saying a control couldn't be found ...into design mode and I get an error msg " there was a problem accessing a property or method of the OLE object." ...checked my references, nothing missing, reloaded them, still an error ...the problem control on the form was the mscomctl.ocx so I looked for it in system32, found it, reregistered it, still no fix ...went into my archives and opened the previous version of the app, same error ...uh oh ...went to another client's app using the treeview switchboard ...same error ...in fact EVERY app using the treeview or listview was broke ...panic time ...pulled out my dvd, found the cab, extracted the ocx and replaced it in system32 ...same error ...started binging for "mscomctl.ocx" ...turns out MS had used a security update to put the old version (6.01.9782 on the "killbits" fixlist that sets a registry entry to prevent it from running in IE ...but my problem was in Access and the bulletin didn't say anything about it not running there ...but knowing MS, I started looking for the newer version ...but of course the only place I found it was in a VB6 Runtime Extensions update exe that wouldn't install without a copy of VB6 on my system ...more searching and many false leads later, I found the latest version (6.01.9816) as a cab file download at activex.microsoft.com/controls/vb6/mscomctl.cab ...downloaded, extracted, rebooted, and bingo! ...my apps are all working again :) ...@#$%^&* MS! ...turned off the auto updates ...going back to vetting each one ...what a pita :( William From jwcolby at colbyconsulting.com Fri Mar 12 20:30:40 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 12 Mar 2010 21:30:40 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <17E5195E8FE24990BF67F423F67C7354@jislaptopdev> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII> <17E5195E8FE24990BF67F423F67C7354@jislaptopdev> Message-ID: <4B9AF8D0.3010102@colbyconsulting.com> And you think they are going to TELL you they broke comctl in the SP? Silly boy! ;) I do so love those kinds of stories though. Reminds me why I am learning C#.Net. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...just came too damn close to having a heart attack > > ...I use the mscomctl.ocx (treeview/listview controls) extensively > throughout my apps > especially for my switchboard/menuing system > > ...I'd not worked on an app this week because we have newborn kittens whose > mother can't feed them > (trust me, it's a round the clock operation) > > ...so this morning a client needed something and I reluctantly (and > blearily) fired up the app on my laptop > > ...and the switchboard pops up saying a control couldn't be found ...into > design mode and I get an error msg > " there was a problem accessing a property or method of the OLE object." > > ...checked my references, nothing missing, reloaded them, still an error > > ...the problem control on the form was the mscomctl.ocx so I looked for it > in system32, found it, reregistered it, still no fix > > ...went into my archives and opened the previous version of the app, same > error ...uh oh > > ...went to another client's app using the treeview switchboard ...same error > ...in fact EVERY app using the treeview or listview was broke > > ...panic time > > ...pulled out my dvd, found the cab, extracted the ocx and replaced it in > system32 ...same error > > ...started binging for "mscomctl.ocx" ...turns out MS had used a security > update to put the old version (6.01.9782 on the "killbits" fixlist that sets > a registry entry to prevent it from running in IE ...but my problem was in > Access and the bulletin didn't say anything about it not running there > ...but knowing MS, I started looking for the newer version ...but of course > the only place I found it was in a VB6 Runtime Extensions update exe that > wouldn't install without a copy of VB6 on my system ...more searching and > many false leads later, I found the latest version (6.01.9816) as a cab file > download at activex.microsoft.com/controls/vb6/mscomctl.cab > > ...downloaded, extracted, rebooted, and bingo! ...my apps are all working > again :) > > ...@#$%^&* MS! ...turned off the auto updates ...going back to vetting each > one ...what a pita :( > > William > > > > > > From wdhindman at dejpolsystems.com Fri Mar 12 21:53:37 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 12 Mar 2010 22:53:37 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9AF8D0.3010102@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev> <4B9AF8D0.3010102@colbyconsulting.com> Message-ID: <084F6D15231F4DCEA522E236903D3B5B@jislaptopdev> ...yeah, silly me ...last time I'm going the freebie route with MS controls ...I'm going to invest in Bennet-tec's T-List control in the ocx and net versions ...I just bought their MetaDraw control after a lot of looking and am VERY pleased with it. ...I keep trying to convert my work to net but the economy here just isn't buying much new right now. William -------------------------------------------------- From: "jwcolby" Sent: Friday, March 12, 2010 9:30 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > And you think they are going to TELL you they broke comctl in the SP? > Silly boy! > > ;) > > I do so love those kinds of stories though. Reminds me why I am learning > C#.Net. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...just came too damn close to having a heart attack >> >> ...I use the mscomctl.ocx (treeview/listview controls) extensively >> throughout my apps >> especially for my switchboard/menuing system >> >> ...I'd not worked on an app this week because we have newborn kittens >> whose >> mother can't feed them >> (trust me, it's a round the clock operation) >> >> ...so this morning a client needed something and I reluctantly (and >> blearily) fired up the app on my laptop >> >> ...and the switchboard pops up saying a control couldn't be found ...into >> design mode and I get an error msg >> " there was a problem accessing a property or method of the OLE object." >> >> ...checked my references, nothing missing, reloaded them, still an error >> >> ...the problem control on the form was the mscomctl.ocx so I looked for >> it >> in system32, found it, reregistered it, still no fix >> >> ...went into my archives and opened the previous version of the app, same >> error ...uh oh >> >> ...went to another client's app using the treeview switchboard ...same >> error >> ...in fact EVERY app using the treeview or listview was broke >> >> ...panic time >> >> ...pulled out my dvd, found the cab, extracted the ocx and replaced it in >> system32 ...same error >> >> ...started binging for "mscomctl.ocx" ...turns out MS had used a security >> update to put the old version (6.01.9782 on the "killbits" fixlist that >> sets >> a registry entry to prevent it from running in IE ...but my problem was >> in >> Access and the bulletin didn't say anything about it not running there >> ...but knowing MS, I started looking for the newer version ...but of >> course >> the only place I found it was in a VB6 Runtime Extensions update exe that >> wouldn't install without a copy of VB6 on my system ...more searching and >> many false leads later, I found the latest version (6.01.9816) as a cab >> file >> download at activex.microsoft.com/controls/vb6/mscomctl.cab >> >> ...downloaded, extracted, rebooted, and bingo! ...my apps are all working >> again :) >> >> ...@#$%^&* MS! ...turned off the auto updates ...going back to vetting >> each >> one ...what a pita :( >> >> William >> >> >> >> >> >> > -- > 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 Mar 12 22:28:18 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 13 Mar 2010 14:28:18 +1000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9AF8D0.3010102@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com>, <17E5195E8FE24990BF67F423F67C7354@jislaptopdev>, <4B9AF8D0.3010102@colbyconsulting.com> Message-ID: <4B9B1462.16033.1415B331@stuart.lexacorp.com.pg> Reminds me why I am staying away from .Net, OCXs etc. I'll stick with stand-alone executables and real DLLs thanks ;-) -- Stuart On 12 Mar 2010 at 21:30, jwcolby wrote: > And you think they are going to TELL you they broke comctl in the SP? Silly boy! > > ;) > > I do so love those kinds of stories though. Reminds me why I am learning C#.Net. > > John W. Colby > www.ColbyConsulting.com > From jwcolby at colbyconsulting.com Fri Mar 12 23:37:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 13 Mar 2010 00:37:56 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <084F6D15231F4DCEA522E236903D3B5B@jislaptopdev> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev> <4B9AF8D0.3010102@colbyconsulting.com> <084F6D15231F4DCEA522E236903D3B5B@jislaptopdev> Message-ID: <4B9B24B4.9080304@colbyconsulting.com> Yea, I'm not converting old apps to .net. They don't belong to me and no one wants to pay the price. I have one specific client which is big, and for whom I use SQL Server big time. For this guy I am doing everything in C#. I had written a bunch of this same kind of stuff in Access but it just didn't function well, so as I needed the parts, I rewrote in C#. It is crazy how much better it works. The data is all huge stuff in SQL Server which simply never fit in Access anyway, I was only using Access for the VBA language. All of that VBA instability is just gone. I loved Access, and I used it until 2007 drove me into the arms of C#. This project convinced me that for anything future / major, it will almost certainly be C#. Plus to be able to say I can automate SQL Server from C# just sounds powerful. Vroooom! ;) I am doing some pretty awesome (to me) stuff and looking at even more awesome stuff. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...yeah, silly me ...last time I'm going the freebie route with MS controls > ...I'm going to invest in Bennet-tec's T-List control in the ocx and net > versions ...I just bought their MetaDraw control after a lot of looking and > am VERY pleased with it. > > ...I keep trying to convert my work to net but the economy here just isn't > buying much new right now. > > William From rockysmolin at bchacc.com Sat Mar 13 01:43:16 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 12 Mar 2010 23:43:16 -0800 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9B24B4.9080304@colbyconsulting.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev> <4B9AF8D0.3010102@colbyconsulting.com><084F6D15231F4DCEA522E236903D3B5B@jislaptopdev> <4B9B24B4.9080304@colbyconsulting.com> Message-ID: <368CC434095C4D9FAD9232FF82418DD3@HAL9005> How do you do form and report design in C#? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 12, 2010 9:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Yea, I'm not converting old apps to .net. They don't belong to me and no one wants to pay the price. I have one specific client which is big, and for whom I use SQL Server big time. For this guy I am doing everything in C#. I had written a bunch of this same kind of stuff in Access but it just didn't function well, so as I needed the parts, I rewrote in C#. It is crazy how much better it works. The data is all huge stuff in SQL Server which simply never fit in Access anyway, I was only using Access for the VBA language. All of that VBA instability is just gone. I loved Access, and I used it until 2007 drove me into the arms of C#. This project convinced me that for anything future / major, it will almost certainly be C#. Plus to be able to say I can automate SQL Server from C# just sounds powerful. Vroooom! ;) I am doing some pretty awesome (to me) stuff and looking at even more awesome stuff. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...yeah, silly me ...last time I'm going the freebie route with MS > controls ...I'm going to invest in Bennet-tec's T-List control in the > ocx and net versions ...I just bought their MetaDraw control after a > lot of looking and am VERY pleased with it. > > ...I keep trying to convert my work to net but the economy here just > isn't buying much new right now. > > William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/12/10 01:42:00 From Gustav at cactus.dk Sat Mar 13 03:41:00 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Mar 2010 10:41:00 +0100 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Message-ID: Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R From max.wanadoo at gmail.com Sat Mar 13 08:23:26 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 13 Mar 2010 14:23:26 +0000 Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: <4B9AA4A0.3090300@colbyconsulting.com> References: <4B9AA4A0.3090300@colbyconsulting.com> Message-ID: you could also try routing your email via google. The spam filter is excellent. max On 12 March 2010 20:31, jwcolby wrote: > About two years ago I went on a bender, unsubscribing from all of the email > lists, advertisements > etc. MASSIVELY reduced the email coming in to my box. I still unsub from > every valid email from > advertisers, immediately upon receipt. If I need to use their company, I > know how to get ahold of them. > > It literally took me about a month to unsub from all of the crap, but I > went from hundreds of emails > a day to a couple of dozen, and most of them are from clients. I am > thinking of subscribing to the > "quiet time" idea in the article. I don't have a blackberry, I don't do > IMs at all. Email or > phone, and all advertising email is unsubbed to on receipt. > > It has made a tremendous difference in my life. > > http://www.msnbc.msn.com/id/35689822/ns/business-small_business// > > -- > 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 Sat Mar 13 09:34:37 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 13 Mar 2010 07:34:37 -0800 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: Message-ID: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> It looks like from the page that the VB version does not make web enabled apps? Doesn't use .Net where the c# version does? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 1:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/12/10 01:42:00 From Gustav at cactus.dk Sat Mar 13 10:02:31 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Mar 2010 17:02:31 +0100 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCX Disabled by MS) Message-ID: Hi Rocky Then you would look here for Microsoft? Visual Web Developer? 2008 Express Edition: http://www.microsoft.com/express/Web/ or for the upcoming 2010 versions: http://www.microsoft.com/express/Express-2010/ Note the link top-right for Compare Express Products. /gustav >>> rockysmolin at bchacc.com 13-03-2010 16:34 >>> It looks like from the page that the VB version does not make web enabled apps? Doesn't use .Net where the c# version does? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 1:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R From wdhindman at dejpolsystems.com Sat Mar 13 10:11:46 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 13 Mar 2010 11:11:46 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> Message-ID: ...vb.net and c#.net are virtually identical in their capabilities ...only the syntax is significantly different in the latest versions and you'll pick that up fairly quickly ...learning the net framework is the major effort, not the language you choose to work in ...I started in vb.net because the syntax seemed more familiar but that's really an illusion since it's very different from vba in reality ...I've since moved to forcing myself to work in c#.net because 1) that's where the work is and 2) that's what ~70% or more of the on-line responses and sample code are written in ...and I live on sample code ...besides which, there are some very good (and free) on-line translators between the two now ...if I were starting over in net I'd pass on vb.net and go straight to c#.net ...if I recall correctly, you're an unbounder in Access and that will make the transition to VS a lot simpler than it was for a bounder like me ...and if you're learning by converting an existing Access app as I did, you can use the current mdb be as your database while you learn VS, then learn SQL Server once you've gotten past the major VS learning curve ...the conversion to SS is pretty straight forward in VS. ...forms design paradigm in net is different than Access and takes more time ...but once you get the hang of it, the framework allows virtually infinite capabilities that Access can't begin to match ...as gustav mentioned, there are literally dozens of ways to accomplish almost anything in net ...and tools, tools, tools, and more tools ...which can be a pita until you work out your own preferences ...I started with the express version and then upgraded to VS2008 Pro ...and it looks like VS2010 is an even better product ...I can't begin to tell you how much I like working in VS compared to Access ...MS put a lot of their best talent into developing this product. ...dba runs a vb list that has really become a c# list of late even though the name remains ...join and you'll find gustav, jc, and others you'll recognize already there. William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, March 13, 2010 10:34 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > It looks like from the page that the VB version does not make web enabled > apps? Doesn't use .Net where the c# version does? > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, March 13, 2010 1:41 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Hi Rocky > > You can start with Visual Studio Express edition for C#: > > http://www.microsoft.com/express/Windows/ > > Downloads and links to lots of resources at that page. > > The classic method of creation forms is WinForms. Reports are created with > ReportDesigner which can be closely integrated with SQL Server if you > like. > It is different from creating forms and reports in Access but once you get > around it you won't look back - and working with it will keep you young > because you are constantly challenged by the may ways to do things. > > /gustav > > >>>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> > How do you do form and report design in C#? > > R > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/12/10 > 01:42:00 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Mar 13 10:24:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 13 Mar 2010 11:24:57 -0500 Subject: [AccessD] Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: References: <4B9AA4A0.3090300@colbyconsulting.com> Message-ID: <4B9BBC59.5030605@colbyconsulting.com> I have to comment on this. Unsubscribing works if it is not spam, and it only takes a few seconds to find the unsub link and click it. Simply applying a spam filter against email that you can opt out of is irresponsible. If you don't opt out, the email is still sent and is clogging up the works. ALWAYS opt out if you believe that the sender is a legitimate business. NEVER opt out if you believe it is sent by a spam bot. Spam is what spam filters are for. As for using GMail for my spam filter, they do a great job, however my normal thunderbird does a fine job as well. The point really is to legitimately unsub from all of the crap that we have all allowed to build up over the years but never read. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > you could also try routing your email via google. The spam filter is > excellent. > > max > > > > On 12 March 2010 20:31, jwcolby wrote: > >> About two years ago I went on a bender, unsubscribing from all of the email >> lists, advertisements >> etc. MASSIVELY reduced the email coming in to my box. I still unsub from >> every valid email from >> advertisers, immediately upon receipt. If I need to use their company, I >> know how to get ahold of them. >> >> It literally took me about a month to unsub from all of the crap, but I >> went from hundreds of emails >> a day to a couple of dozen, and most of them are from clients. I am >> thinking of subscribing to the >> "quiet time" idea in the article. I don't have a blackberry, I don't do >> IMs at all. Email or >> phone, and all advertising email is unsubbed to on receipt. >> >> It has made a tremendous difference in my life. >> >> http://www.msnbc.msn.com/id/35689822/ns/business-small_business// >> >> -- >> 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 Sat Mar 13 10:28:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 13 Mar 2010 11:28:14 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> Message-ID: <4B9BBD1E.8060902@colbyconsulting.com> I second pretty much everything William said, EXCEPT that I did not find C# syntax all that trivial to pick up. But like William I forced myself to do it and I am happy I did. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...vb.net and c#.net are virtually identical in their capabilities ...only > the syntax is significantly different in the latest versions and you'll pick > that up fairly quickly ...learning the net framework is the major effort, > not the language you choose to work in ...I started in vb.net because the > syntax seemed more familiar but that's really an illusion since it's very > different from vba in reality ...I've since moved to forcing myself to work > in c#.net because 1) that's where the work is and 2) that's what ~70% or > more of the on-line responses and sample code are written in ...and I live > on sample code ...besides which, there are some very good (and free) on-line > translators between the two now ...if I were starting over in net I'd pass > on vb.net and go straight to c#.net > > ...if I recall correctly, you're an unbounder in Access and that will make > the transition to VS a lot simpler than it was for a bounder like me ...and > if you're learning by converting an existing Access app as I did, you can > use the current mdb be as your database while you learn VS, then learn SQL > Server once you've gotten past the major VS learning curve ...the conversion > to SS is pretty straight forward in VS. > > ...forms design paradigm in net is different than Access and takes more time > ...but once you get the hang of it, the framework allows virtually infinite > capabilities that Access can't begin to match ...as gustav mentioned, there > are literally dozens of ways to accomplish almost anything in net ...and > tools, tools, tools, and more tools ...which can be a pita until you work > out your own preferences ...I started with the express version and then > upgraded to VS2008 Pro ...and it looks like VS2010 is an even better product > ...I can't begin to tell you how much I like working in VS compared to > Access ...MS put a lot of their best talent into developing this product. > > ...dba runs a vb list that has really become a c# list of late even though > the name remains ...join and you'll find gustav, jc, and others you'll > recognize already there. > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Saturday, March 13, 2010 10:34 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > >> It looks like from the page that the VB version does not make web enabled >> apps? Doesn't use .Net where the c# version does? >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Saturday, March 13, 2010 1:41 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Hi Rocky >> >> You can start with Visual Studio Express edition for C#: >> >> http://www.microsoft.com/express/Windows/ >> >> Downloads and links to lots of resources at that page. >> >> The classic method of creation forms is WinForms. Reports are created with >> ReportDesigner which can be closely integrated with SQL Server if you >> like. >> It is different from creating forms and reports in Access but once you get >> around it you won't look back - and working with it will keep you young >> because you are constantly challenged by the may ways to do things. >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> >> How do you do form and report design in C#? >> >> R >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: >> 03/12/10 >> 01:42:00 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From Gustav at cactus.dk Sat Mar 13 10:31:04 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Mar 2010 17:31:04 +0100 Subject: [AccessD] Using BLAT as an Emailer Message-ID: Hi all If the clients use Exchange 2007+ you may be in trouble - study the last paragraph here: http://technet.microsoft.com/en-us/library/aa998911.aspx MS now has focus on Exchange Web Services: http://msdn.microsoft.com/en-us/library/dd877045.aspx /gustav From Gustav at cactus.dk Sat Mar 13 11:33:26 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Mar 2010 18:33:26 +0100 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCX Disabled by MS) Message-ID: Hi John and William And let us not forget to mention the fabulous implementing of IntelliSense which is driven to an extreme in Visual Studio. /gustav >>> jwcolby at colbyconsulting.com 13-03-2010 17:28 >>> I second pretty much everything William said, EXCEPT that I did not find C# syntax all that trivial to pick up. But like William I forced myself to do it and I am happy I did. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...vb.net and c#.net are virtually identical in their capabilities ...only > the syntax is significantly different in the latest versions and you'll pick > that up fairly quickly ...learning the net framework is the major effort, > not the language you choose to work in ...I started in vb.net because the > syntax seemed more familiar but that's really an illusion since it's very > different from vba in reality ...I've since moved to forcing myself to work > in c#.net because 1) that's where the work is and 2) that's what ~70% or > more of the on-line responses and sample code are written in ...and I live > on sample code ...besides which, there are some very good (and free) on-line > translators between the two now ...if I were starting over in net I'd pass > on vb.net and go straight to c#.net > > ...if I recall correctly, you're an unbounder in Access and that will make > the transition to VS a lot simpler than it was for a bounder like me ...and > if you're learning by converting an existing Access app as I did, you can > use the current mdb be as your database while you learn VS, then learn SQL > Server once you've gotten past the major VS learning curve ...the conversion > to SS is pretty straight forward in VS. > > ...forms design paradigm in net is different than Access and takes more time > ...but once you get the hang of it, the framework allows virtually infinite > capabilities that Access can't begin to match ...as gustav mentioned, there > are literally dozens of ways to accomplish almost anything in net ...and > tools, tools, tools, and more tools ...which can be a pita until you work > out your own preferences ...I started with the express version and then > upgraded to VS2008 Pro ...and it looks like VS2010 is an even better product > ...I can't begin to tell you how much I like working in VS compared to > Access ...MS put a lot of their best talent into developing this product. > > ...dba runs a vb list that has really become a c# list of late even though > the name remains ...join and you'll find gustav, jc, and others you'll > recognize already there. > > William From wdhindman at dejpolsystems.com Sat Mar 13 11:47:53 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 13 Mar 2010 12:47:53 -0500 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) In-Reply-To: References: Message-ID: <174F7D919378420DB8BEB656CB585322@jislaptopdev> gustav ...there are so many such goodies in VS that you can't even cover the highlights in a single post. William -------------------------------------------------- From: "Gustav Brock" Sent: Saturday, March 13, 2010 12:33 PM To: Subject: Re: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabledby MS) > Hi John and William > > And let us not forget to mention the fabulous implementing of IntelliSense > which is driven to an extreme in Visual Studio. > > /gustav > > >>>> jwcolby at colbyconsulting.com 13-03-2010 17:28 >>> > I second pretty much everything William said, EXCEPT that I did not find > C# syntax all that trivial > to pick up. But like William I forced myself to do it and I am happy I > did. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...vb.net and c#.net are virtually identical in their capabilities >> ...only >> the syntax is significantly different in the latest versions and you'll >> pick >> that up fairly quickly ...learning the net framework is the major effort, >> not the language you choose to work in ...I started in vb.net because the >> syntax seemed more familiar but that's really an illusion since it's very >> different from vba in reality ...I've since moved to forcing myself to >> work >> in c#.net because 1) that's where the work is and 2) that's what ~70% or >> more of the on-line responses and sample code are written in ...and I >> live >> on sample code ...besides which, there are some very good (and free) >> on-line >> translators between the two now ...if I were starting over in net I'd >> pass >> on vb.net and go straight to c#.net >> >> ...if I recall correctly, you're an unbounder in Access and that will >> make >> the transition to VS a lot simpler than it was for a bounder like me >> ...and >> if you're learning by converting an existing Access app as I did, you can >> use the current mdb be as your database while you learn VS, then learn >> SQL >> Server once you've gotten past the major VS learning curve ...the >> conversion >> to SS is pretty straight forward in VS. >> >> ...forms design paradigm in net is different than Access and takes more >> time >> ...but once you get the hang of it, the framework allows virtually >> infinite >> capabilities that Access can't begin to match ...as gustav mentioned, >> there >> are literally dozens of ways to accomplish almost anything in net ...and >> tools, tools, tools, and more tools ...which can be a pita until you work >> out your own preferences ...I started with the express version and then >> upgraded to VS2008 Pro ...and it looks like VS2010 is an even better >> product >> ...I can't begin to tell you how much I like working in VS compared to >> Access ...MS put a lot of their best talent into developing this product. >> >> ...dba runs a vb list that has really become a c# list of late even >> though >> the name remains ...join and you'll find gustav, jc, and others you'll >> recognize already there. >> >> William > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Sat Mar 13 12:15:57 2010 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 13 Mar 2010 10:15:57 -0800 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) In-Reply-To: <174F7D919378420DB8BEB656CB585322@jislaptopdev> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev> Message-ID: <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> William, would you say that the time you now take to develop an app in VS is comparable to the time you would have taken to develop the same app in Access? I've done one small project this year in C# and it probably took me five times as long as Access would have. I realize that I will get faster with practice, but how much? Thanks, Doug On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < wdhindman at dejpolsystems.com> wrote: > gustav > > ...there are so many such goodies in VS that you can't even cover the > highlights in a single post. > > William > > From marksimms at verizon.net Sat Mar 13 12:45:48 2010 From: marksimms at verizon.net (Mark Simms) Date: Sat, 13 Mar 2010 13:45:48 -0500 Subject: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabled by MS) In-Reply-To: <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev> <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> Message-ID: <00eb01cac2dd$663a53e0$0701a8c0@MSIMMSWS> I have the same question about creating Excel add-ins: VBA vs. VSTO > William, would you say that the time you now take to develop > an app in VS is comparable to the time you would have taken > to develop the same app in Access? I've done one small > project this year in C# and it probably took me five times as > long as Access would have. I realize that I will get faster > with practice, but how much? From wdhindman at dejpolsystems.com Sat Mar 13 13:03:40 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 13 Mar 2010 14:03:40 -0500 Subject: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabled by MS) In-Reply-To: <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev> <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> Message-ID: ...no and yes ...there is no way that I can put a VS app on the client's desk as fast as I can an Access app, at least I can't ...I'd say 3 times as long or more on an initial project ...BUT the VS app is a lot more stable and can do a slew of things Access flat out can't do or requires a ton of API coding or shelling to accomplish. ...if it has to be quick and cheap, then Access is still the tool of choice until I have a much larger library of VS apps built ...but if the client weighs reliability and flexibility over quick and cheap (I know, I know) ...or wants real SQL Server speed and safety, then its VS ...and with what I hear re VS2010 the gap may be narrowing significantly even now. ...and consider that I've spent years getting up to speed on Access so that 3x advantage over VS will almost certainly fall as I come up to speed (literally) in using VS ...my big plus with VS is that I can do so much with it that I can't with Access. ...other's experience will certainly differ William -------------------------------------------------- From: "Doug Steele" Sent: Saturday, March 13, 2010 1:15 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabled by MS) > William, would you say that the time you now take to develop an app in VS > is > comparable to the time you would have taken to develop the same app in > Access? I've done one small project this year in C# and it probably took > me > five times as long as Access would have. I realize that I will get faster > with practice, but how much? > > Thanks, > Doug > > On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < > wdhindman at dejpolsystems.com> wrote: > >> gustav >> >> ...there are so many such goodies in VS that you can't even cover the >> highlights in a single post. >> >> William >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sat Mar 13 13:11:48 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 13 Mar 2010 14:11:48 -0500 Subject: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabled by MS) In-Reply-To: <00eb01cac2dd$663a53e0$0701a8c0@MSIMMSWS> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev><4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> <00eb01cac2dd$663a53e0$0701a8c0@MSIMMSWS> Message-ID: Mark ...just to be clear VSTO isn't the same thing as Visual Studio ...as for Excel, that's a no-no in my world :) William -------------------------------------------------- From: "Mark Simms" Sent: Saturday, March 13, 2010 1:45 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Visual Studio Express (was: Treeview/ListviewOCXDisabled by MS) > I have the same question about creating Excel add-ins: > VBA vs. VSTO > >> William, would you say that the time you now take to develop >> an app in VS is comparable to the time you would have taken >> to develop the same app in Access? I've done one small >> project this year in C# and it probably took me five times as >> long as Access would have. I realize that I will get faster >> with practice, but how much? > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Mar 13 15:52:26 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 14 Mar 2010 07:52:26 +1000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: Message-ID: <4B9C091A.26061.331F853@stuart.lexacorp.com.pg> Sorry, I don't see anything relevant. What specifically are you referring to? -- Stuart On 13 Mar 2010 at 17:31, Gustav Brock wrote: > Hi all > > If the clients use Exchange 2007+ you may be in trouble - study the last paragraph here: > > http://technet.microsoft.com/en-us/library/aa998911.aspx From Gustav at cactus.dk Sat Mar 13 16:08:50 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Mar 2010 23:08:50 +0100 Subject: [AccessD] Using BLAT as an Emailer Message-ID: Hi Stuart Well, what it states: The "Deemphasized Functionality" of some of the components previously discussed in this thread. I have nothing to add as I haven't been working with Exchange 2007/2010. /gustav >>> stuart at lexacorp.com.pg 13-03-2010 22:52 >>> Sorry, I don't see anything relevant. What specifically are you referring to? -- Stuart On 13 Mar 2010 at 17:31, Gustav Brock wrote: > Hi all > > If the clients use Exchange 2007+ you may be in trouble - study the last paragraph here: > > http://technet.microsoft.com/en-us/library/aa998911.aspx From stuart at lexacorp.com.pg Sat Mar 13 17:15:38 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 14 Mar 2010 09:15:38 +1000 Subject: [AccessD] Using BLAT as an Emailer In-Reply-To: References: Message-ID: <4B9C1C9A.14889.37E24FF@stuart.lexacorp.com.pg> But none of that, CDO, MAPI etc are used by Blat. It's straight SMTP. -- Stuart On 13 Mar 2010 at 23:08, Gustav Brock wrote: > Hi Stuart > > Well, what it states: The "Deemphasized Functionality" of some of the components previously discussed in this thread. > I have nothing to add as I haven't been working with Exchange 2007/2010. > > /gustav > > > >>> stuart at lexacorp.com.pg 13-03-2010 22:52 >>> > Sorry, I don't see anything relevant. What specifically are you referring to? > > -- > Stuart > > On 13 Mar 2010 at 17:31, Gustav Brock wrote: > > > Hi all > > > > If the clients use Exchange 2007+ you may be in trouble - study the last paragraph here: > > > > http://technet.microsoft.com/en-us/library/aa998911.aspx > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Mar 13 20:57:09 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 13 Mar 2010 21:57:09 -0500 Subject: [AccessD] Visual Studio Express In-Reply-To: <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev> <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> Message-ID: <4B9C5085.90205@colbyconsulting.com> I am with William on this one. I have been working in Access (pre2k7) for so long I can code with my eyes closed. I have my framework, I have just so many years experience, I cannot tell you that I can develop an app in C# anywhere close to as fast. But is that a fair comparison? And the bottom line is that C# and .Net is in an entirely different league than Access and VBA in terms of sheer capability, as well as stability. Potentially C# is entirely license cost free to the client. Assuming that I do not have to automate Excel or Word, there is zero license cost for my application, whereas there is a per seat license for Access. C# and Access is simply not apples to apples. It is more like an entire box of every fruit you can think of to a single apple. Throw in SQL Server Express, and DMO and suddenly you have an M1 tank running over the apple that is Access. http://www.sqlteam.com/article/introduction-to-sql-dmo As William said so well, if it has to be quick and cheap, Access is still King. If it is going to be enterprise wide and the enterprise is more than 50 or so seats, or it is ever going to need a web interface, or it is ever going to manage a huge database or (lots of other places that Access is not a good fit)... I love Access, but I am learning a much more powerful tool, and C# / SQL Server is a MUCH more powerful tool. John W. Colby www.ColbyConsulting.com Doug Steele wrote: > William, would you say that the time you now take to develop an app in VS is > comparable to the time you would have taken to develop the same app in > Access? I've done one small project this year in C# and it probably took me > five times as long as Access would have. I realize that I will get faster > with practice, but how much? > > Thanks, > Doug > > On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < > wdhindman at dejpolsystems.com> wrote: > >> gustav >> >> ...there are so many such goodies in VS that you can't even cover the >> highlights in a single post. >> >> William >> >> From rockysmolin at bchacc.com Sat Mar 13 23:35:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 13 Mar 2010 21:35:07 -0800 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) In-Reply-To: References: Message-ID: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> I have something on my shelf here - Visual Studio 2005 Standard Edition (also has SQL Server 2005 and something called BizTalk Server 2006 - have no idea what the latter is). Is that VS 2005 obsoleted by Express? R P.S. Wish I was 30 years younger. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 8:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) Hi Rocky Then you would look here for MicrosoftR Visual Web DeveloperR 2008 Express Edition: http://www.microsoft.com/express/Web/ or for the upcoming 2010 versions: http://www.microsoft.com/express/Express-2010/ Note the link top-right for Compare Express Products. /gustav >>> rockysmolin at bchacc.com 13-03-2010 16:34 >>> It looks like from the page that the VB version does not make web enabled apps? Doesn't use .Net where the c# version does? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 1:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2743 - Release Date: 03/12/10 23:33:00 From jwcolby at colbyconsulting.com Sat Mar 13 23:47:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 14 Mar 2010 00:47:35 -0500 Subject: [AccessD] SPAM-LOW: Re: Visual Studio Express In-Reply-To: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> References: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> Message-ID: <4B9C7877.5020902@colbyconsulting.com> Rocky, The express editions are slightly crippled versions of the standard editions. They are actually quite capable of developing full on applications, but if you have standard then you certainly do not want to use express. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > I have something on my shelf here - Visual Studio 2005 Standard Edition > (also has SQL Server 2005 and something called BizTalk Server 2006 - have no > idea what the latter is). Is that VS 2005 obsoleted by Express? > > R > > P.S. Wish I was 30 years younger. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, March 13, 2010 8:03 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Visual Studio Express (was: Treeview/Listview > OCXDisabled by MS) > > Hi Rocky > > Then you would look here for MicrosoftR Visual Web DeveloperR 2008 Express > Edition: > > http://www.microsoft.com/express/Web/ > > or for the upcoming 2010 versions: > > http://www.microsoft.com/express/Express-2010/ > > Note the link top-right for Compare Express Products. > > /gustav > > >>>> rockysmolin at bchacc.com 13-03-2010 16:34 >>> > It looks like from the page that the VB version does not make web enabled > apps? Doesn't use .Net where the c# version does? > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, March 13, 2010 1:41 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Hi Rocky > > You can start with Visual Studio Express edition for C#: > > http://www.microsoft.com/express/Windows/ > > Downloads and links to lots of resources at that page. > > The classic method of creation forms is WinForms. Reports are created with > ReportDesigner which can be closely integrated with SQL Server if you like. > It is different from creating forms and reports in Access but once you get > around it you won't look back - and working with it will keep you young > because you are constantly challenged by the may ways to do things. > > /gustav > > >>>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> > How do you do form and report design in C#? > > R > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 271.1.1/2743 - Release Date: 03/12/10 > 23:33:00 > From wdhindman at dejpolsystems.com Sun Mar 14 00:41:54 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 14 Mar 2010 01:41:54 -0500 Subject: [AccessD] SPAM-LOW: Re: Visual Studio Express In-Reply-To: <4B9C7877.5020902@colbyconsulting.com> References: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> <4B9C7877.5020902@colbyconsulting.com> Message-ID: <946AD2B28AC64766801B321A0D6438B0@jislaptopdev> ...yes and no ...there are so many improvements in VS2008 and 2010 in the Express versions, over the VS2005 Standard version that unless I needed something not available in the later Express versions, I'd choose the 2010 Express version over the 2005 Standard every time ...and the Standard version is not much more capable than the Express versions anyway ...I bought the 2008 Pro version as the lowest one that met all my foreseeable needs after starting with the 2008 Express version. -------------------------------------------------- From: "jwcolby" Sent: Sunday, March 14, 2010 12:47 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Re: Visual Studio Express > Rocky, > > The express editions are slightly crippled versions of the standard > editions. They are actually > quite capable of developing full on applications, but if you have standard > then you certainly do not > want to use express. > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin wrote: >> I have something on my shelf here - Visual Studio 2005 Standard Edition >> (also has SQL Server 2005 and something called BizTalk Server 2006 - have >> no >> idea what the latter is). Is that VS 2005 obsoleted by Express? >> >> R >> >> P.S. Wish I was 30 years younger. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Saturday, March 13, 2010 8:03 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] Visual Studio Express (was: Treeview/Listview >> OCXDisabled by MS) >> >> Hi Rocky >> >> Then you would look here for MicrosoftR Visual Web DeveloperR 2008 >> Express >> Edition: >> >> http://www.microsoft.com/express/Web/ >> >> or for the upcoming 2010 versions: >> >> http://www.microsoft.com/express/Express-2010/ >> >> Note the link top-right for Compare Express Products. >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 13-03-2010 16:34 >>> >> It looks like from the page that the VB version does not make web enabled >> apps? Doesn't use .Net where the c# version does? >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Saturday, March 13, 2010 1:41 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Hi Rocky >> >> You can start with Visual Studio Express edition for C#: >> >> http://www.microsoft.com/express/Windows/ >> >> Downloads and links to lots of resources at that page. >> >> The classic method of creation forms is WinForms. Reports are created >> with >> ReportDesigner which can be closely integrated with SQL Server if you >> like. >> It is different from creating forms and reports in Access but once you >> get >> around it you won't look back - and working with it will keep you young >> because you are constantly challenged by the may ways to do things. >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> >> How do you do form and report design in C#? >> >> R >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.733 / Virus Database: 271.1.1/2743 - Release Date: 03/12/10 >> 23:33:00 >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sun Mar 14 00:48:04 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 14 Mar 2010 01:48:04 -0500 Subject: [AccessD] Visual Studio Express In-Reply-To: <4B9C5085.90205@colbyconsulting.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev><4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> <4B9C5085.90205@colbyconsulting.com> Message-ID: "there is a per seat license for Access" jc ...there is zero MS license cost to the client if they use the runtime install. William -------------------------------------------------- From: "jwcolby" Sent: Saturday, March 13, 2010 9:57 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Visual Studio Express > I am with William on this one. I have been working in Access (pre2k7) for > so long I can code with > my eyes closed. I have my framework, I have just so many years > experience, I cannot tell you that I > can develop an app in C# anywhere close to as fast. But is that a fair > comparison? And the bottom > line is that C# and .Net is in an entirely different league than Access > and VBA in terms of sheer > capability, as well as stability. > > Potentially C# is entirely license cost free to the client. Assuming that > I do not have to automate > Excel or Word, there is zero license cost for my application, whereas > there is a per seat license > for Access. > > C# and Access is simply not apples to apples. It is more like an entire > box of every fruit you can > think of to a single apple. Throw in SQL Server Express, and DMO and > suddenly you have an M1 tank > running over the apple that is Access. > > http://www.sqlteam.com/article/introduction-to-sql-dmo > > As William said so well, if it has to be quick and cheap, Access is still > King. If it is going to > be enterprise wide and the enterprise is more than 50 or so seats, or it > is ever going to need a web > interface, or it is ever going to manage a huge database or (lots of other > places that Access is not > a good fit)... > > I love Access, but I am learning a much more powerful tool, and C# / SQL > Server is a MUCH more > powerful tool. > > John W. Colby > www.ColbyConsulting.com > > > Doug Steele wrote: >> William, would you say that the time you now take to develop an app in VS >> is >> comparable to the time you would have taken to develop the same app in >> Access? I've done one small project this year in C# and it probably took >> me >> five times as long as Access would have. I realize that I will get >> faster >> with practice, but how much? >> >> Thanks, >> Doug >> >> On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < >> wdhindman at dejpolsystems.com> wrote: >> >>> gustav >>> >>> ...there are so many such goodies in VS that you can't even cover the >>> highlights in a single post. >>> >>> William >>> >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Mar 14 11:56:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 14 Mar 2010 12:56:55 -0400 Subject: [AccessD] Visual Studio Express In-Reply-To: References: <174F7D919378420DB8BEB656CB585322@jislaptopdev><4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> <4B9C5085.90205@colbyconsulting.com> Message-ID: <4B9D1557.2070600@colbyconsulting.com> True. Of course then I have to come up to speed on 2007. ;) John W. Colby www.ColbyConsulting.com William Hindman wrote: > "there is a per seat license for Access" jc > > ...there is zero MS license cost to the client if they use the runtime > install. > > William > > -------------------------------------------------- > From: "jwcolby" > Sent: Saturday, March 13, 2010 9:57 PM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Visual Studio Express > >> I am with William on this one. I have been working in Access (pre2k7) for >> so long I can code with >> my eyes closed. I have my framework, I have just so many years >> experience, I cannot tell you that I >> can develop an app in C# anywhere close to as fast. But is that a fair >> comparison? And the bottom >> line is that C# and .Net is in an entirely different league than Access >> and VBA in terms of sheer >> capability, as well as stability. >> >> Potentially C# is entirely license cost free to the client. Assuming that >> I do not have to automate >> Excel or Word, there is zero license cost for my application, whereas >> there is a per seat license >> for Access. >> >> C# and Access is simply not apples to apples. It is more like an entire >> box of every fruit you can >> think of to a single apple. Throw in SQL Server Express, and DMO and >> suddenly you have an M1 tank >> running over the apple that is Access. >> >> http://www.sqlteam.com/article/introduction-to-sql-dmo >> >> As William said so well, if it has to be quick and cheap, Access is still >> King. If it is going to >> be enterprise wide and the enterprise is more than 50 or so seats, or it >> is ever going to need a web >> interface, or it is ever going to manage a huge database or (lots of other >> places that Access is not >> a good fit)... >> >> I love Access, but I am learning a much more powerful tool, and C# / SQL >> Server is a MUCH more >> powerful tool. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Doug Steele wrote: >>> William, would you say that the time you now take to develop an app in VS >>> is >>> comparable to the time you would have taken to develop the same app in >>> Access? I've done one small project this year in C# and it probably took >>> me >>> five times as long as Access would have. I realize that I will get >>> faster >>> with practice, but how much? >>> >>> Thanks, >>> Doug >>> >>> On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < >>> wdhindman at dejpolsystems.com> wrote: >>> >>>> gustav >>>> >>>> ...there are so many such goodies in VS that you can't even cover the >>>> highlights in a single post. >>>> >>>> William >>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From jwcolby at colbyconsulting.com Sun Mar 14 12:02:05 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 14 Mar 2010 13:02:05 -0400 Subject: [AccessD] SPAM-LOW: Re: Visual Studio Express In-Reply-To: <946AD2B28AC64766801B321A0D6438B0@jislaptopdev> References: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> <4B9C7877.5020902@colbyconsulting.com> <946AD2B28AC64766801B321A0D6438B0@jislaptopdev> Message-ID: <4B9D168D.1070308@colbyconsulting.com> I would pretty much agree on that, 2008 is pretty darned awesome, and the express version of 2008 would be preferable to standard 2005. I have no experience with the 2010 version yet. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...yes and no ...there are so many improvements in VS2008 and 2010 in the > Express versions, over the VS2005 Standard version that unless I needed > something not available in the later Express versions, I'd choose the 2010 > Express version over the 2005 Standard every time ...and the Standard > version is not much more capable than the Express versions anyway ...I > bought the 2008 Pro version as the lowest one that met all my foreseeable > needs after starting with the 2008 Express version. > > -------------------------------------------------- > From: "jwcolby" > Sent: Sunday, March 14, 2010 12:47 AM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] SPAM-LOW: Re: Visual Studio Express > >> Rocky, >> >> The express editions are slightly crippled versions of the standard >> editions. They are actually >> quite capable of developing full on applications, but if you have standard >> then you certainly do not >> want to use express. >> >> John W. Colby >> www.ColbyConsulting.com From max.wanadoo at gmail.com Sun Mar 14 12:34:56 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 14 Mar 2010 17:34:56 -0000 Subject: [AccessD] OT:ScreenSavers In-Reply-To: <76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com> <76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> Message-ID: Anybody know where I can find the location of the screen savers in Windows 7? I particularly want to look at the background pictures called "United Kingdom" which has a great picture of the Tower of London. Thanks Max From wdhindman at dejpolsystems.com Sun Mar 14 13:16:38 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 14 Mar 2010 14:16:38 -0400 Subject: [AccessD] Visual Studio Express In-Reply-To: <4B9D1557.2070600@colbyconsulting.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev><4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> <4B9C5085.90205@colbyconsulting.com> <4B9D1557.2070600@colbyconsulting.com> Message-ID: <8A1C42D20CA2439AB5CCE9FD931F1440@jislaptopdev> ????? ...doesn't matter to the client which runtime is used ...only the developer incurs a one-time license cost in previous Access runtimes. William -------------------------------------------------- From: "jwcolby" Sent: Sunday, March 14, 2010 12:56 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Visual Studio Express > True. Of course then I have to come up to speed on 2007. > > ;) > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> "there is a per seat license for Access" jc >> >> ...there is zero MS license cost to the client if they use the runtime >> install. >> >> William >> >> -------------------------------------------------- >> From: "jwcolby" >> Sent: Saturday, March 13, 2010 9:57 PM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] Visual Studio Express >> >>> I am with William on this one. I have been working in Access (pre2k7) >>> for >>> so long I can code with >>> my eyes closed. I have my framework, I have just so many years >>> experience, I cannot tell you that I >>> can develop an app in C# anywhere close to as fast. But is that a fair >>> comparison? And the bottom >>> line is that C# and .Net is in an entirely different league than Access >>> and VBA in terms of sheer >>> capability, as well as stability. >>> >>> Potentially C# is entirely license cost free to the client. Assuming >>> that >>> I do not have to automate >>> Excel or Word, there is zero license cost for my application, whereas >>> there is a per seat license >>> for Access. >>> >>> C# and Access is simply not apples to apples. It is more like an entire >>> box of every fruit you can >>> think of to a single apple. Throw in SQL Server Express, and DMO and >>> suddenly you have an M1 tank >>> running over the apple that is Access. >>> >>> http://www.sqlteam.com/article/introduction-to-sql-dmo >>> >>> As William said so well, if it has to be quick and cheap, Access is >>> still >>> King. If it is going to >>> be enterprise wide and the enterprise is more than 50 or so seats, or it >>> is ever going to need a web >>> interface, or it is ever going to manage a huge database or (lots of >>> other >>> places that Access is not >>> a good fit)... >>> >>> I love Access, but I am learning a much more powerful tool, and C# / SQL >>> Server is a MUCH more >>> powerful tool. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Doug Steele wrote: >>>> William, would you say that the time you now take to develop an app in >>>> VS >>>> is >>>> comparable to the time you would have taken to develop the same app in >>>> Access? I've done one small project this year in C# and it probably >>>> took >>>> me >>>> five times as long as Access would have. I realize that I will get >>>> faster >>>> with practice, but how much? >>>> >>>> Thanks, >>>> Doug >>>> >>>> On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < >>>> wdhindman at dejpolsystems.com> wrote: >>>> >>>>> gustav >>>>> >>>>> ...there are so many such goodies in VS that you can't even cover the >>>>> highlights in a single post. >>>>> >>>>> William >>>>> >>>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> 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 Mar 15 09:51:57 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 15 Mar 2010 10:51:57 -0400 Subject: [AccessD] UNION slowness Message-ID: <4B9E498D.4070509@colbyconsulting.com> I have always done a UNION to get a combo list with *; All as the first item in a combo of other items. PKID, Client or PKID, Product etc. These unions are takling as looooooong time (many seconds) when going against a SQL database. Not sure why because the actual data itself is almost instant, it is just when unioned with my other piece it takes forever to get the result set. Strange. I could do a custom callback but it takes me forever to figure out the callback crap, and I just generally hate them. I wanted to do a value list since the lists are short, but AFAICT the list value function has to be interpreted and dumped in to the property in OnEnter and the like. Clumsey, particularly when one combo depends on (is filtered by) another list (products filtered by client etc). Any words of wisdom on this? Something I have forgotten or never knew? -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Mon Mar 15 10:01:50 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Mar 2010 16:01:50 +0100 Subject: [AccessD] UNION slowness Message-ID: Hi John How about using UNION ALL? Without the ALL it performs a default DISTINCT which may be very slow. /gustav >>> jwcolby at colbyconsulting.com 15-03-2010 15:51 >>> I have always done a UNION to get a combo list with *; All as the first item in a combo of other items. PKID, Client or PKID, Product etc. These unions are takling as looooooong time (many seconds) when going against a SQL database. Not sure why because the actual data itself is almost instant, it is just when unioned with my other piece it takes forever to get the result set. Strange. I could do a custom callback but it takes me forever to figure out the callback crap, and I just generally hate them. I wanted to do a value list since the lists are short, but AFAICT the list value function has to be interpreted and dumped in to the property in OnEnter and the like. Clumsey, particularly when one combo depends on (is filtered by) another list (products filtered by client etc). Any words of wisdom on this? Something I have forgotten or never knew? -- John W. Colby www.ColbyConsulting.com From cfoust at infostatsystems.com Mon Mar 15 10:23:16 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Mar 2010 10:23:16 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <368CC434095C4D9FAD9232FF82418DD3@HAL9005> References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server> <5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev> <4B9AF8D0.3010102@colbyconsulting.com><084F6D15231F4DCEA522E236903D3B5B@jislaptopdev> <4B9B24B4.9080304@colbyconsulting.com> <368CC434095C4D9FAD9232FF82418DD3@HAL9005> Message-ID: Same way you do it in VB.Net, Rocky. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 12, 2010 11:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS How do you do form and report design in C#? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 12, 2010 9:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Yea, I'm not converting old apps to .net. They don't belong to me and no one wants to pay the price. I have one specific client which is big, and for whom I use SQL Server big time. For this guy I am doing everything in C#. I had written a bunch of this same kind of stuff in Access but it just didn't function well, so as I needed the parts, I rewrote in C#. It is crazy how much better it works. The data is all huge stuff in SQL Server which simply never fit in Access anyway, I was only using Access for the VBA language. All of that VBA instability is just gone. I loved Access, and I used it until 2007 drove me into the arms of C#. This project convinced me that for anything future / major, it will almost certainly be C#. Plus to be able to say I can automate SQL Server from C# just sounds powerful. Vroooom! ;) I am doing some pretty awesome (to me) stuff and looking at even more awesome stuff. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...yeah, silly me ...last time I'm going the freebie route with MS > controls ...I'm going to invest in Bennet-tec's T-List control in the > ocx and net versions ...I just bought their MetaDraw control after a > lot of looking and am VERY pleased with it. > > ...I keep trying to convert my work to net but the economy here just > isn't buying much new right now. > > William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/12/10 01:42:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 15 10:24:26 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Mar 2010 10:24:26 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> Message-ID: Wrong. You can build web apps with VB.Net too. We've done it. We just concentrate on WinForms instead of WebForms. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 13, 2010 7:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS It looks like from the page that the VB version does not make web enabled apps? Doesn't use .Net where the c# version does? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 1:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/12/10 01:42:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 15 10:30:00 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Mar 2010 10:30:00 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9BBD1E.8060902@colbyconsulting.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> Message-ID: Well, gentlemen, I stand by VB.Net since I absolutely hate the C# syntax and "punctuation". I can read it, but I don't want to write it. Of course, since I'm old enough not to have to expect to keep doing this, I can indulge myself by NOT learning C#. I do rather object to the avalanche towards it in the VB list, though. Seems like the fact that the language isn't the important thing gets forgotten. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 13, 2010 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I second pretty much everything William said, EXCEPT that I did not find C# syntax all that trivial to pick up. But like William I forced myself to do it and I am happy I did. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...vb.net and c#.net are virtually identical in their capabilities ...only > the syntax is significantly different in the latest versions and you'll pick > that up fairly quickly ...learning the net framework is the major effort, > not the language you choose to work in ...I started in vb.net because the > syntax seemed more familiar but that's really an illusion since it's very > different from vba in reality ...I've since moved to forcing myself to work > in c#.net because 1) that's where the work is and 2) that's what ~70% or > more of the on-line responses and sample code are written in ...and I live > on sample code ...besides which, there are some very good (and free) on-line > translators between the two now ...if I were starting over in net I'd pass > on vb.net and go straight to c#.net > From cfoust at infostatsystems.com Mon Mar 15 10:33:29 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Mar 2010 10:33:29 -0500 Subject: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) In-Reply-To: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> References: <3A58BCF2270842DD8C9F5C3104312494@HAL9005> Message-ID: Upgrade it to 2008, Rocky. It a much more stable development environment and faster than 2005. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 13, 2010 9:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) I have something on my shelf here - Visual Studio 2005 Standard Edition (also has SQL Server 2005 and something called BizTalk Server 2006 - have no idea what the latter is). Is that VS 2005 obsoleted by Express? R P.S. Wish I was 30 years younger. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 8:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Visual Studio Express (was: Treeview/Listview OCXDisabled by MS) Hi Rocky Then you would look here for MicrosoftR Visual Web DeveloperR 2008 Express Edition: http://www.microsoft.com/express/Web/ or for the upcoming 2010 versions: http://www.microsoft.com/express/Express-2010/ Note the link top-right for Compare Express Products. /gustav >>> rockysmolin at bchacc.com 13-03-2010 16:34 >>> It looks like from the page that the VB version does not make web enabled apps? Doesn't use .Net where the c# version does? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 13, 2010 1:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hi Rocky You can start with Visual Studio Express edition for C#: http://www.microsoft.com/express/Windows/ Downloads and links to lots of resources at that page. The classic method of creation forms is WinForms. Reports are created with ReportDesigner which can be closely integrated with SQL Server if you like. It is different from creating forms and reports in Access but once you get around it you won't look back - and working with it will keep you young because you are constantly challenged by the may ways to do things. /gustav >>> rockysmolin at bchacc.com 13-03-2010 08:43 >>> How do you do form and report design in C#? R -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2743 - Release Date: 03/12/10 23:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Mar 15 10:36:13 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Mon, 15 Mar 2010 11:36:13 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server><5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev><4B9AF8D0.3010102@colbyconsulting.com><084F6D15231F4DCEA522E236903D3B5B@jislaptopdev><4B9B24B4.9080304@colbyconsulting.com><368CC434095C4D9FAD9232FF82418DD3@HAL9005> Message-ID: <33303D05D3184A60B2B8A0A1A4FE3D02@Gateway> Yeah, it would be nice if everything actually worked as advertised. We're doing WPF and Silverlight with C# and it is difficult to find current documentation on functionality that hasn't already been broken by succussive patches. Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Monday, March 15, 2010 11:23 AM Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > Same way you do it in VB.Net, Rocky. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, March 12, 2010 11:43 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > How do you do form and report design in C#? > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, March 12, 2010 9:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Yea, I'm not converting old apps to .net. They don't belong to me and no > one wants to pay the price. I have one specific client which is big, and > for whom I use SQL Server big time. For this guy I am doing everything in > C#. I had written a bunch of this same kind of stuff in Access but it > just > didn't function well, so as I needed the parts, I rewrote in C#. > > It is crazy how much better it works. The data is all huge stuff in SQL > Server which simply never fit in Access anyway, I was only using Access > for > the VBA language. All of that VBA instability is just gone. > > I loved Access, and I used it until 2007 drove me into the arms of C#. > This > project convinced me that for anything future / major, it will almost > certainly be C#. > > Plus to be able to say I can automate SQL Server from C# just sounds > powerful. Vroooom! ;) > > I am doing some pretty awesome (to me) stuff and looking at even more > awesome stuff. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...yeah, silly me ...last time I'm going the freebie route with MS >> controls ...I'm going to invest in Bennet-tec's T-List control in the >> ocx and net versions ...I just bought their MetaDraw control after a >> lot of looking and am VERY pleased with it. >> >> ...I keep trying to convert my work to net but the economy here just >> isn't buying much new right now. >> >> William > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: > 03/12/10 > 01:42:00 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 11:01:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 15 Mar 2010 09:01:07 -0700 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><8786a4c01003111051w5266109ag1609eb17398c5c46@mail.gmail.com><4B993F53.7080008@colbyconsulting.com><6862F901F4234A9E9136B76F8C91BE14@Server><8F5A386CEB5F494B812FE0ADB1D58ACE@Server><5B0FD4129FC04014B205050C3B13CF51@LaptopII><17E5195E8FE24990BF67F423F67C7354@jislaptopdev><4B9AF8D0.3010102@colbyconsulting.com><084F6D15231F4DCEA522E236903D3B5B@jislaptopdev><4B9B24B4.9080304@colbyconsulting.com><368CC434095C4D9FAD9232FF82418DD3@HAL9005> Message-ID: Oh, yeah, huh. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 15, 2010 8:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Same way you do it in VB.Net, Rocky. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 12, 2010 11:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS How do you do form and report design in C#? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 12, 2010 9:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Yea, I'm not converting old apps to .net. They don't belong to me and no one wants to pay the price. I have one specific client which is big, and for whom I use SQL Server big time. For this guy I am doing everything in C#. I had written a bunch of this same kind of stuff in Access but it just didn't function well, so as I needed the parts, I rewrote in C#. It is crazy how much better it works. The data is all huge stuff in SQL Server which simply never fit in Access anyway, I was only using Access for the VBA language. All of that VBA instability is just gone. I loved Access, and I used it until 2007 drove me into the arms of C#. This project convinced me that for anything future / major, it will almost certainly be C#. Plus to be able to say I can automate SQL Server from C# just sounds powerful. Vroooom! ;) I am doing some pretty awesome (to me) stuff and looking at even more awesome stuff. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...yeah, silly me ...last time I'm going the freebie route with MS > controls ...I'm going to invest in Bennet-tec's T-List control in the > ocx and net versions ...I just bought their MetaDraw control after a > lot of looking and am VERY pleased with it. > > ...I keep trying to convert my work to net but the economy here just > isn't buying much new right now. > > William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 270.14.129/2605 - Release Date: 03/12/10 01:42:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2746 - Release Date: 03/15/10 00:33:00 From Lambert.Heenan at chartisinsurance.com Mon Mar 15 12:23:08 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 15 Mar 2010 13:23:08 -0400 Subject: [AccessD] Re Blunt the e-mail interruption assault - Small business- msnbc.com Message-ID: So it's good ol' irresponsible and selfish Lambert here. Let me see if I've got this straight: certain list members assert that when little ol' me hits that 'Report Spam' button the whole machinery that is the Google spam filter springs instantly into action and for ever and irreversibly will flag such mail as spam for the whole realm of Gmail users. This happens because I am the ultimate Super User on Google and so what I say is spam is *SPAM*, and that filter algorithm just wakes right and the "Lambert flags another SPAM' alarms start ringing in Cupertino. If this were remotely true then you would all be running around right now saying "where the f*** has all my mail gone?" Yet somehow, millions of us Gmail users keep receiving email. What can have gone wrong? Lambert From davidmcafee at gmail.com Mon Mar 15 12:40:09 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 15 Mar 2010 10:40:09 -0700 Subject: [AccessD] Blunt the e-mail interruption assault - Small business-msnbc.com In-Reply-To: <1CEA48E1B8AF434682177DF910FCA115@creativesystemdesigns.com> References: <4B9AA4A0.3090300@colbyconsulting.com> <1CEA48E1B8AF434682177DF910FCA115@creativesystemdesigns.com> Message-ID: <8786a4c01003151040k1135a6c0qca6f213fd37dcd3@mail.gmail.com> I loved when they said that in the movie "Up" :) I often say "Squirrel!" when I catch myself jumping from topic to topic :) The other great line from that movie was "tents are hard!" :) On Fri, Mar 12, 2010 at 2:28 PM, Jim Lawrence wrote: > In summary; machines may be able to multitask but humans can not... > Squirrel!! > > Jim From davidmcafee at gmail.com Mon Mar 15 13:13:39 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 15 Mar 2010 11:13:39 -0700 Subject: [AccessD] Visual Studio Express In-Reply-To: <8A1C42D20CA2439AB5CCE9FD931F1440@jislaptopdev> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev> <4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com> <4B9C5085.90205@colbyconsulting.com> <4B9D1557.2070600@colbyconsulting.com> <8A1C42D20CA2439AB5CCE9FD931F1440@jislaptopdev> Message-ID: <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> They made the Access run time free starting with Access2007, didn't they? David On Sun, Mar 14, 2010 at 11:16 AM, William Hindman wrote: > ????? ...doesn't matter to the client which runtime is used ...only the > developer incurs a one-time license cost in previous Access runtimes. > > William > > -------------------------------------------------- > From: "jwcolby" > Sent: Sunday, March 14, 2010 12:56 PM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Visual Studio Express > >> True. ?Of course then I have to come up to speed on 2007. >> >> ;) >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> "there is a per seat license for Access" jc >>> >>> ...there is zero MS license cost to the client if they use the runtime >>> install. >>> >>> William >>> >>> -------------------------------------------------- >>> From: "jwcolby" >>> Sent: Saturday, March 13, 2010 9:57 PM >>> To: "Access Developers discussion and problem solving" >>> >>> Subject: Re: [AccessD] Visual Studio Express >>> >>>> I am with William on this one. ?I have been working in Access (pre2k7) >>>> for >>>> so long I can code with >>>> my eyes closed. ?I have my framework, I have just so many years >>>> experience, I cannot tell you that I >>>> can develop an app in C# anywhere close to as fast. ?But is that a fair >>>> comparison? ?And the bottom >>>> line is that C# and .Net is in an entirely different league than Access >>>> and VBA in terms of sheer >>>> capability, as well as stability. >>>> >>>> Potentially C# is entirely license cost free to the client. ?Assuming >>>> that >>>> I do not have to automate >>>> Excel or Word, there is zero license cost for my application, whereas >>>> there is a per seat license >>>> for Access. >>>> >>>> C# and Access is simply not apples to apples. ?It is more like an entire >>>> box of every fruit you can >>>> think of to a single apple. ?Throw in SQL Server Express, and DMO and >>>> suddenly you have an M1 tank >>>> running over the apple that is Access. >>>> >>>> http://www.sqlteam.com/article/introduction-to-sql-dmo >>>> >>>> As William said so well, if it has to be quick and cheap, Access is >>>> still >>>> King. ?If it is going to >>>> be enterprise wide and the enterprise is more than 50 or so seats, or it >>>> is ever going to need a web >>>> interface, or it is ever going to manage a huge database or (lots of >>>> other >>>> places that Access is not >>>> a good fit)... >>>> >>>> I love Access, but I am learning a much more powerful tool, and C# / SQL >>>> Server is a MUCH more >>>> powerful tool. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> >>>> Doug Steele wrote: >>>>> William, would you say that the time you now take to develop an app in >>>>> VS >>>>> is >>>>> comparable to the time you would have taken to develop the same app in >>>>> Access? ?I've done one small project this year in C# and it probably >>>>> took >>>>> me >>>>> five times as long as Access would have. ?I realize that I will get >>>>> faster >>>>> with practice, but how much? >>>>> >>>>> Thanks, >>>>> Doug >>>>> >>>>> On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < >>>>> wdhindman at dejpolsystems.com> wrote: >>>>> >>>>>> gustav >>>>>> >>>>>> ...there are so many such goodies in VS that you can't even cover the >>>>>> highlights in a single post. >>>>>> >>>>>> William >>>>>> >>>>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Mar 15 13:34:23 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 14:34:23 -0400 Subject: [AccessD] Re Blunt the e-mail interruption assault -Small business- msnbc.com In-Reply-To: References: Message-ID: ...tit ...tat :) William -------------------------------------------------- From: "Heenan, Lambert" Sent: Monday, March 15, 2010 1:23 PM To: Subject: [AccessD] Re Blunt the e-mail interruption assault -Small business- msnbc.com > So it's good ol' irresponsible and selfish Lambert here. > > Let me see if I've got this straight: certain list members assert that > when little ol' me hits that 'Report Spam' button the whole machinery that > is the Google spam filter springs instantly into action and for ever and > irreversibly will flag such mail as spam for the whole realm of Gmail > users. > > This happens because I am the ultimate Super User on Google and so what I > say is spam is *SPAM*, and that filter algorithm just wakes right and the > "Lambert flags another SPAM' alarms start ringing in Cupertino. > > If this were remotely true then you would all be running around right now > saying "where the f*** has all my mail gone?" Yet somehow, millions of us > Gmail users keep receiving email. What can have gone wrong? > > Lambert > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Mon Mar 15 13:49:28 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 15 Mar 2010 18:49:28 -0000 Subject: [AccessD] Access Runtime 2003 In-Reply-To: <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> Message-ID: <3F26945BD77647D48E468F2626FC67B1@MINSTER> As those of you who helped me on this subject before advised, to distribute apps in Access 2003 using Sagekey I still need to acquire the Developer Extensions and they come inside Visual Studio Tools For Office 2003. Ok, so does anyone have a copy of that they can sell me, or know where I can acquire said product? Looked on ebay and nothing there. Any other ideas? Cheers Andy From accessd at shaw.ca Mon Mar 15 13:59:16 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 15 Mar 2010 11:59:16 -0700 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> Message-ID: <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> I full-heartedly agree with you. The basic creation of the .Net infrastructure was to allow the designer to write code in any way they want. There are dozens of CLI languages that can be used and if you are extending you applications to the web the count increases dramatically. You can mix and match within a single app...Any mashup that can get an application running http://en.wikipedia.org/wiki/List_of_CLI_languages The argument that one language runs faster than another is simply not true; any longer. My thought is use what ever language feels good to you or has the most 'field tested' code and has the features you need. Single language apps are the old way of thinking. Show me what an application can do and frankly I could not care less what it was written in. It is similar to saying English is better. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 15, 2010 8:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Well, gentlemen, I stand by VB.Net since I absolutely hate the C# syntax and "punctuation". I can read it, but I don't want to write it. Of course, since I'm old enough not to have to expect to keep doing this, I can indulge myself by NOT learning C#. I do rather object to the avalanche towards it in the VB list, though. Seems like the fact that the language isn't the important thing gets forgotten. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 13, 2010 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I second pretty much everything William said, EXCEPT that I did not find C# syntax all that trivial to pick up. But like William I forced myself to do it and I am happy I did. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...vb.net and c#.net are virtually identical in their capabilities ...only > the syntax is significantly different in the latest versions and you'll pick > that up fairly quickly ...learning the net framework is the major effort, > not the language you choose to work in ...I started in vb.net because the > syntax seemed more familiar but that's really an illusion since it's very > different from vba in reality ...I've since moved to forcing myself to work > in c#.net because 1) that's where the work is and 2) that's what ~70% or > more of the on-line responses and sample code are written in ...and I live > on sample code ...besides which, there are some very good (and free) on-line > translators between the two now ...if I were starting over in net I'd pass > on vb.net and go straight to c#.net > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Mar 15 14:05:32 2010 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 15 Mar 2010 12:05:32 -0700 Subject: [AccessD] Access Runtime 2003 In-Reply-To: <3F26945BD77647D48E468F2626FC67B1@MINSTER> References: <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> <3F26945BD77647D48E468F2626FC67B1@MINSTER> Message-ID: <4dd71a0c1003151205v33c91d51jdc08ebd0c1e0e938@mail.gmail.com> I have a copy which I'm willing to part with. dbdoug at gmail dot com Dout Steele On Mon, Mar 15, 2010 at 11:49 AM, Andy Lacey wrote: > As those of you who helped me on this subject before advised, to distribute > apps in Access 2003 using Sagekey I still need to acquire the Developer > Extensions and they come inside Visual Studio Tools For Office 2003. Ok, so > does anyone have a copy of that they can sell me, or know where I can > acquire said product? Looked on ebay and nothing there. Any other ideas? > > Cheers > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Mar 15 14:27:22 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 15 Mar 2010 12:27:22 -0700 Subject: [AccessD] Blunt the e-mail interruption assault - Smallbusiness-msnbc.com In-Reply-To: <8786a4c01003151040k1135a6c0qca6f213fd37dcd3@mail.gmail.com> References: <4B9AA4A0.3090300@colbyconsulting.com> <1CEA48E1B8AF434682177DF910FCA115@creativesystemdesigns.com> <8786a4c01003151040k1135a6c0qca6f213fd37dcd3@mail.gmail.com> Message-ID: <007F531354944E09B81CBD87164011CC@creativesystemdesigns.com> I loved the movie too. Funny and serious and all done in an easy way... definitely not a cartoon or a fairy tale. A real delight. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 10:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blunt the e-mail interruption assault - Smallbusiness-msnbc.com I loved when they said that in the movie "Up" :) I often say "Squirrel!" when I catch myself jumping from topic to topic :) The other great line from that movie was "tents are hard!" :) On Fri, Mar 12, 2010 at 2:28 PM, Jim Lawrence wrote: > In summary; machines may be able to multitask but humans can not... > Squirrel!! > > Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Mar 15 14:35:24 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 15 Mar 2010 19:35:24 -0000 Subject: [AccessD] Access Runtime 2003 In-Reply-To: <4dd71a0c1003151205v33c91d51jdc08ebd0c1e0e938@mail.gmail.com> Message-ID: <02766CBB2950433B8ABAB8E961D0E367@MINSTER> Thanks Doug. Replying off-line. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: 15 March 2010 19:06 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Runtime 2003 I have a copy which I'm willing to part with. dbdoug at gmail dot com Dout Steele On Mon, Mar 15, 2010 at 11:49 AM, Andy Lacey wrote: > As those of you who helped me on this subject before advised, to distribute > apps in Access 2003 using Sagekey I still need to acquire the Developer > Extensions and they come inside Visual Studio Tools For Office 2003. Ok, so > does anyone have a copy of that they can sell me, or know where I can > acquire said product? Looked on ebay and nothing there. Any other ideas? > > Cheers > Andy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 14:42:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 15 Mar 2010 15:42:11 -0400 Subject: [AccessD] Re Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: References: Message-ID: <4B9E8D93.9030704@colbyconsulting.com> I hope you didn't take my response as such? I am saying that everyone should legitimately unsubscribe from legitimate email advertisement that they are not interested in. Unsubscribe links actually work most of the time and can cause the advertiser to stop sending any email to that email address. That is a good thing. John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > So it's good ol' irresponsible and selfish Lambert here. > > Let me see if I've got this straight: certain list members assert that when little ol' me hits that 'Report Spam' button the whole machinery that is the Google spam filter springs instantly into action and for ever and irreversibly will flag such mail as spam for the whole realm of Gmail users. > > This happens because I am the ultimate Super User on Google and so what I say is spam is *SPAM*, and that filter algorithm just wakes right and the "Lambert flags another SPAM' alarms start ringing in Cupertino. > > If this were remotely true then you would all be running around right now saying "where the f*** has all my mail gone?" Yet somehow, millions of us Gmail users keep receiving email. What can have gone wrong? > > Lambert From jwcolby at colbyconsulting.com Mon Mar 15 14:43:56 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 15 Mar 2010 15:43:56 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> Message-ID: <4B9E8DFC.8070001@colbyconsulting.com> English IS better! ;) John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > I full-heartedly agree with you. The basic creation of the .Net > infrastructure was to allow the designer to write code in any way they want. > > > There are dozens of CLI languages that can be used and if you are extending > you applications to the web the count increases dramatically. You can mix > and match within a single app...Any mashup that can get an application > running > > http://en.wikipedia.org/wiki/List_of_CLI_languages > > The argument that one language runs faster than another is simply not true; > any longer. My thought is use what ever language feels good to you or has > the most 'field tested' code and has the features you need. > > Single language apps are the old way of thinking. Show me what an > application can do and frankly I could not care less what it was written in. > > > It is similar to saying English is better. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, March 15, 2010 8:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Well, gentlemen, I stand by VB.Net since I absolutely hate the C# syntax > and "punctuation". I can read it, but I don't want to write it. Of course, > since I'm old enough not to have to expect to keep doing this, I can indulge > myself by NOT learning C#. I do rather object to the avalanche towards it > in the VB list, though. Seems like the fact that the language isn't the > important thing gets forgotten. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, March 13, 2010 8:28 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > I second pretty much everything William said, EXCEPT that I did not find C# > syntax all that trivial > to pick up. But like William I forced myself to do it and I am happy I did. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...vb.net and c#.net are virtually identical in their capabilities ...only > >> the syntax is significantly different in the latest versions and you'll > pick >> that up fairly quickly ...learning the net framework is the major effort, >> not the language you choose to work in ...I started in vb.net because the >> syntax seemed more familiar but that's really an illusion since it's very >> different from vba in reality ...I've since moved to forcing myself to > work >> in c#.net because 1) that's where the work is and 2) that's what ~70% or >> more of the on-line responses and sample code are written in ...and I live > >> on sample code ...besides which, there are some very good (and free) > on-line >> translators between the two now ...if I were starting over in net I'd pass > >> on vb.net and go straight to c#.net >> > From davidmcafee at gmail.com Mon Mar 15 14:53:57 2010 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 15 Mar 2010 12:53:57 -0700 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9E8DFC.8070001@colbyconsulting.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> <4B9E8DFC.8070001@colbyconsulting.com> Message-ID: <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can mix >> and match within a single app...Any mashup that can get an application >> running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or has >> the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# syntax >> and "punctuation". ?I can read it, but I don't want to write it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche towards it >> in the VB list, though. ?Seems like the fact that the language isn't the >> important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself to >> work >>> in c#.net because 1) that's where the work is and 2) that's what ~70% or >>> more of the on-line responses and sample code are written in ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Mar 15 15:00:26 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 15 Mar 2010 13:00:26 -0700 Subject: [AccessD] Access Runtime 2003 In-Reply-To: <3F26945BD77647D48E468F2626FC67B1@MINSTER> References: <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> <3F26945BD77647D48E468F2626FC67B1@MINSTER> Message-ID: <914C4E22BEDA41A48612A78EE3ED5960@HAL9005> I got it years ago to be street legal and never loaded it. I don't think you actually need it to make a run-time. Could be wrong, but I don't think so. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 15, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access Runtime 2003 As those of you who helped me on this subject before advised, to distribute apps in Access 2003 using Sagekey I still need to acquire the Developer Extensions and they come inside Visual Studio Tools For Office 2003. Ok, so does anyone have a copy of that they can sell me, or know where I can acquire said product? Looked on ebay and nothing there. Any other ideas? Cheers Andy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2746 - Release Date: 03/15/10 00:33:00 From accessd at shaw.ca Mon Mar 15 15:07:59 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 15 Mar 2010 13:07:59 -0700 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9E8DFC.8070001@colbyconsulting.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> <4B9E8DFC.8070001@colbyconsulting.com> Message-ID: <76F0DF20CA93479997D8E3505F026307@creativesystemdesigns.com> Ha ha ha... I agree John but we are in a minority. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, March 15, 2010 12:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS English IS better! ;) John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > I full-heartedly agree with you. The basic creation of the .Net > infrastructure was to allow the designer to write code in any way they want. > > > There are dozens of CLI languages that can be used and if you are extending > you applications to the web the count increases dramatically. You can mix > and match within a single app...Any mashup that can get an application > running > > http://en.wikipedia.org/wiki/List_of_CLI_languages > > The argument that one language runs faster than another is simply not true; > any longer. My thought is use what ever language feels good to you or has > the most 'field tested' code and has the features you need. > > Single language apps are the old way of thinking. Show me what an > application can do and frankly I could not care less what it was written in. > > > It is similar to saying English is better. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, March 15, 2010 8:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Well, gentlemen, I stand by VB.Net since I absolutely hate the C# syntax > and "punctuation". I can read it, but I don't want to write it. Of course, > since I'm old enough not to have to expect to keep doing this, I can indulge > myself by NOT learning C#. I do rather object to the avalanche towards it > in the VB list, though. Seems like the fact that the language isn't the > important thing gets forgotten. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, March 13, 2010 8:28 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > I second pretty much everything William said, EXCEPT that I did not find C# > syntax all that trivial > to pick up. But like William I forced myself to do it and I am happy I did. > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...vb.net and c#.net are virtually identical in their capabilities ...only > >> the syntax is significantly different in the latest versions and you'll > pick >> that up fairly quickly ...learning the net framework is the major effort, >> not the language you choose to work in ...I started in vb.net because the >> syntax seemed more familiar but that's really an illusion since it's very >> different from vba in reality ...I've since moved to forcing myself to > work >> in c#.net because 1) that's where the work is and 2) that's what ~70% or >> more of the on-line responses and sample code are written in ...and I live > >> on sample code ...besides which, there are some very good (and free) > on-line >> translators between the two now ...if I were starting over in net I'd pass > >> on vb.net and go straight to c#.net >> > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 15 15:15:41 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 Mar 2010 15:15:41 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com> <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> Message-ID: <46D9791C531741F0A9964EAE7B94C5B4@danwaters> Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can mix >> and match within a single app...Any mashup that can get an application >> running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or has >> the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# syntax >> and "punctuation". ?I can read it, but I don't want to write it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche towards it >> in the VB list, though. ?Seems like the fact that the language isn't the >> important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself to >> work >>> in c#.net because 1) that's where the work is and 2) that's what ~70% or >>> more of the on-line responses and sample code are written in ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 15 15:36:08 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 15 Mar 2010 20:36:08 -0000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <46D9791C531741F0A9964EAE7B94C5B4@danwaters> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com><8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> <46D9791C531741F0A9964EAE7B94C5B4@danwaters> Message-ID: I think they are refering to main stem languages not sub-derivatives from small culture based dialecs. IOW, over here.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way >> they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can >> mix and match within a single app...Any mashup that can get an >> application running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or >> has the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was >> written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# >> syntax and "punctuation". ?I can read it, but I don't want to write >> it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche >> towards it >> in the VB list, though. ?Seems like the fact that the language isn't >> the important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not >> find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy >> I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and >>> you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net >>> because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself >>> to >> work >>> in c#.net because 1) that's where the work is and 2) that's what >>> ~70% or more of the on-line responses and sample code are written in >>> ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net >>> I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 15 15:47:42 2010 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 Mar 2010 15:47:42 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com><8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com><46D9791C531741F0A9964EAE7B94C5B4@danwaters> Message-ID: Hey Max - this is all of Minnesota - not just NY City or southern CA! And we got it from Canada! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I think they are refering to main stem languages not sub-derivatives from small culture based dialecs. IOW, over here.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way >> they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can >> mix and match within a single app...Any mashup that can get an >> application running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or >> has the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was >> written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# >> syntax and "punctuation". ?I can read it, but I don't want to write >> it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche >> towards it >> in the VB list, though. ?Seems like the fact that the language isn't >> the important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not >> find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy >> I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and >>> you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net >>> because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself >>> to >> work >>> in c#.net because 1) that's where the work is and 2) that's what >>> ~70% or more of the on-line responses and sample code are written in >>> ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net >>> I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 15 15:58:16 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 15 Mar 2010 20:58:16 -0000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com><8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com><46D9791C531741F0A9964EAE7B94C5B4@danwaters> Message-ID: No, no Dan. You misunderstand me. The rest of the World!! The World is not enough. Total domination by the English using English and so far it is doing nicely - I thank you!! Max Stokes white cat on lap and smiles an evil smile. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hey Max - this is all of Minnesota - not just NY City or southern CA! And we got it from Canada! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I think they are refering to main stem languages not sub-derivatives from small culture based dialecs. IOW, over here.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way >> they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can >> mix and match within a single app...Any mashup that can get an >> application running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or >> has the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was >> written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# >> syntax and "punctuation". ?I can read it, but I don't want to write >> it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche >> towards it >> in the VB list, though. ?Seems like the fact that the language isn't >> the important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not >> find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy >> I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and >>> you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net >>> because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself >>> to >> work >>> in c#.net because 1) that's where the work is and 2) that's what >>> ~70% or more of the on-line responses and sample code are written in >>> ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net >>> I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 15 16:06:43 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 15 Mar 2010 14:06:43 -0700 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005> <4B9BBD1E.8060902@colbyconsulting.com> <674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com> <4B9E8DFC.8070001@colbyconsulting.com> <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> <46D9791C531741F0A9964EAE7B94C5B4@danwaters> Message-ID: <194E75CA37464FE7B0FF90CA9DE72D52@creativesystemdesigns.com> English without an accent of course...like we have here. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 1:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS No, no Dan. You misunderstand me. The rest of the World!! The World is not enough. Total domination by the English using English and so far it is doing nicely - I thank you!! Max Stokes white cat on lap and smiles an evil smile. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hey Max - this is all of Minnesota - not just NY City or southern CA! And we got it from Canada! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I think they are refering to main stem languages not sub-derivatives from small culture based dialecs. IOW, over here.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way >> they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can >> mix and match within a single app...Any mashup that can get an >> application running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or >> has the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was >> written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# >> syntax and "punctuation". ?I can read it, but I don't want to write >> it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche >> towards it >> in the VB list, though. ?Seems like the fact that the language isn't >> the important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not >> find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy >> I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and >>> you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net >>> because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself >>> to >> work >>> in c#.net because 1) that's where the work is and 2) that's what >>> ~70% or more of the on-line responses and sample code are written in >>> ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net >>> I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 15 16:14:33 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 15 Mar 2010 21:14:33 -0000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <194E75CA37464FE7B0FF90CA9DE72D52@creativesystemdesigns.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com><8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com><46D9791C531741F0A9964EAE7B94C5B4@danwaters> <194E75CA37464FE7B0FF90CA9DE72D52@creativesystemdesigns.com> Message-ID: <06C9FDC674A44F15991EF443305535D3@Server> No Jim, You misunderstand too. Let me explain... English sans others. English can only come from England. Divide and conquer. Our weapon is English. We are half way to our target of World domination. I should point out that the only reason we want to do this is simply because we are krap at learning other languages, be they Chinese, Japanes, Albertan, or C++. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 15, 2010 9:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS English without an accent of course...like we have here. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 1:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS No, no Dan. You misunderstand me. The rest of the World!! The World is not enough. Total domination by the English using English and so far it is doing nicely - I thank you!! Max Stokes white cat on lap and smiles an evil smile. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Hey Max - this is all of Minnesota - not just NY City or southern CA! And we got it from Canada! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 3:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I think they are refering to main stem languages not sub-derivatives from small culture based dialecs. IOW, over here.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 15, 2010 8:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Or Minnesota - EH? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, March 15, 2010 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS We know that John, but which English? Southern California dude dialect? Texas Twang? New York GTFO of here? or those funny sounding guys that often misspell words over the pond? ;) D On Mon, Mar 15, 2010 at 12:43 PM, jwcolby wrote: > English IS better! > > ;) > > John W. Colby > www.ColbyConsulting.com > > > Jim Lawrence wrote: >> I full-heartedly agree with you. The basic creation of the .Net >> infrastructure was to allow the designer to write code in any way >> they want. >> >> >> There are dozens of CLI languages that can be used and if you are extending >> you applications to the web the count increases dramatically. You can >> mix and match within a single app...Any mashup that can get an >> application running >> >> http://en.wikipedia.org/wiki/List_of_CLI_languages >> >> The argument that one language runs faster than another is simply not true; >> any longer. My thought is use what ever language feels good to you or >> has the most 'field tested' code and has the features you need. >> >> Single language apps are the old way of thinking. Show me what an >> application can do and frankly I could not care less what it was >> written in. >> >> >> It is similar to saying English is better. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >> Sent: Monday, March 15, 2010 8:30 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> Well, gentlemen, ?I stand by VB.Net since I absolutely hate the C# >> syntax and "punctuation". ?I can read it, but I don't want to write >> it. ?Of course, >> since I'm old enough not to have to expect to keep doing this, I can indulge >> myself by NOT learning C#. ?I do rather object to the avalanche >> towards it >> in the VB list, though. ?Seems like the fact that the language isn't >> the important thing gets forgotten. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, March 13, 2010 8:28 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> I second pretty much everything William said, EXCEPT that I did not >> find C# >> syntax all that trivial >> to pick up. ?But like William I forced myself to do it and I am happy >> I did. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> William Hindman wrote: >>> ...vb.net and c#.net are virtually identical in their capabilities ...only >> >>> the syntax is significantly different in the latest versions and >>> you'll >> pick >>> that up fairly quickly ...learning the net framework is the major effort, >>> not the language you choose to work in ...I started in vb.net >>> because the >>> syntax seemed more familiar but that's really an illusion since it's very >>> different from vba in reality ...I've since moved to forcing myself >>> to >> work >>> in c#.net because 1) that's where the work is and 2) that's what >>> ~70% or more of the on-line responses and sample code are written in >>> ...and I live >> >>> on sample code ...besides which, there are some very good (and free) >> on-line >>> translators between the two now ...if I were starting over in net >>> I'd pass >> >>> on vb.net and go straight to c#.net >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 15 16:47:47 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Mar 2010 07:47:47 +1000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: , , Message-ID: <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> I just had a horrible vision. I hope you meant "strokes". -- Stuart On 15 Mar 2010 at 20:58, Max Wanadoo wrote: > > Max > Stokes white cat on lap and smiles an evil smile. > From max.wanadoo at gmail.com Mon Mar 15 16:54:41 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 15 Mar 2010 21:54:41 -0000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> References: , , <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> Message-ID: Haha..ROTL Visions... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, March 15, 2010 9:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS I just had a horrible vision. I hope you meant "strokes". -- Stuart On 15 Mar 2010 at 20:58, Max Wanadoo wrote: > > Max > Stokes white cat on lap and smiles an evil smile. > -- 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 Mar 15 17:03:39 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Mar 2010 08:03:39 +1000 Subject: [AccessD] Re Blunt the e-mail interruption assault - Small business- msnbc.com In-Reply-To: References: Message-ID: <4B9EAEBB.25088.D88E630@stuart.lexacorp.com.pg> No one has asserted that. I did say: "When people like you report a legitimate newsletter as spam just because you are too damned lazy to unsubscribe, the newsletter starts getting flagged as spam by gmail for everyone and people who want to see it don't." Note, that's "people" - plural. I subscribe to a couple of newsletters which have specifically reported this problem - the newsletter becomes blocked by the likes of Google,Yahoo or Hotmail because of a number of such false spam reports. The first the newsletter editor knows of it is when they get hundreds, if not thousands of emails asking where is the latest issue. They then have to get it unblocked and resend. That's why Randy Cassingham has had to include this in his Terms of Service "Fair Warning! If you subscribe to any of our mailing lists, which as described includes verification of your subscription request, and subsequently you report any of our resulting mailings as "spam", you will be permanently banned from all of our lists, period." Take a look at this: http://email.about.com/od/spamfightingtips/qt/Don_t_Use_This_is_Spam_to_Unsubscribe.ht m -- Stuart On 15 Mar 2010 at 13:23, Heenan, Lambert wrote: > So it's good ol' irresponsible and selfish Lambert here. > > Let me see if I've got this straight: certain list members assert that > when little ol' me hits that 'Report Spam' button the whole machinery > that is the Google spam filter springs instantly into action and for > ever and irreversibly will flag such mail as spam for the whole realm > of Gmail users. > > This happens because I am the ultimate Super User on Google and so > what I say is spam is *SPAM*, and that filter algorithm just wakes > right and the "Lambert flags another SPAM' alarms start ringing in > Cupertino. > > If this were remotely true then you would all be running around right > now saying "where the f*** has all my mail gone?" Yet somehow, > millions of us Gmail users keep receiving email. What can have gone > wrong? > > Lambert > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Mar 15 17:25:01 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 18:25:01 -0400 Subject: [AccessD] Visual Studio Express In-Reply-To: <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> References: <174F7D919378420DB8BEB656CB585322@jislaptopdev><4dd71a0c1003131015j2d48f531gca034490046fa099@mail.gmail.com><4B9C5085.90205@colbyconsulting.com><4B9D1557.2070600@colbyconsulting.com><8A1C42D20CA2439AB5CCE9FD931F1440@jislaptopdev> <8786a4c01003151113k1d776acdt6295ffa321ea63ad@mail.gmail.com> Message-ID: ...iirc the runtime has always been free ...prior to A2k7 it required a developer license to redistribute it. William -------------------------------------------------- From: "David McAfee" Sent: Monday, March 15, 2010 2:13 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Visual Studio Express > They made the Access run time free starting with Access2007, didn't they? > > David > > On Sun, Mar 14, 2010 at 11:16 AM, William Hindman > wrote: >> ????? ...doesn't matter to the client which runtime is used ...only the >> developer incurs a one-time license cost in previous Access runtimes. >> >> William >> >> -------------------------------------------------- >> From: "jwcolby" >> Sent: Sunday, March 14, 2010 12:56 PM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] Visual Studio Express >> >>> True. Of course then I have to come up to speed on 2007. >>> >>> ;) >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> William Hindman wrote: >>>> "there is a per seat license for Access" jc >>>> >>>> ...there is zero MS license cost to the client if they use the runtime >>>> install. >>>> >>>> William >>>> >>>> -------------------------------------------------- >>>> From: "jwcolby" >>>> Sent: Saturday, March 13, 2010 9:57 PM >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Subject: Re: [AccessD] Visual Studio Express >>>> >>>>> I am with William on this one. I have been working in Access (pre2k7) >>>>> for >>>>> so long I can code with >>>>> my eyes closed. I have my framework, I have just so many years >>>>> experience, I cannot tell you that I >>>>> can develop an app in C# anywhere close to as fast. But is that a >>>>> fair >>>>> comparison? And the bottom >>>>> line is that C# and .Net is in an entirely different league than >>>>> Access >>>>> and VBA in terms of sheer >>>>> capability, as well as stability. >>>>> >>>>> Potentially C# is entirely license cost free to the client. Assuming >>>>> that >>>>> I do not have to automate >>>>> Excel or Word, there is zero license cost for my application, whereas >>>>> there is a per seat license >>>>> for Access. >>>>> >>>>> C# and Access is simply not apples to apples. It is more like an >>>>> entire >>>>> box of every fruit you can >>>>> think of to a single apple. Throw in SQL Server Express, and DMO and >>>>> suddenly you have an M1 tank >>>>> running over the apple that is Access. >>>>> >>>>> http://www.sqlteam.com/article/introduction-to-sql-dmo >>>>> >>>>> As William said so well, if it has to be quick and cheap, Access is >>>>> still >>>>> King. If it is going to >>>>> be enterprise wide and the enterprise is more than 50 or so seats, or >>>>> it >>>>> is ever going to need a web >>>>> interface, or it is ever going to manage a huge database or (lots of >>>>> other >>>>> places that Access is not >>>>> a good fit)... >>>>> >>>>> I love Access, but I am learning a much more powerful tool, and C# / >>>>> SQL >>>>> Server is a MUCH more >>>>> powerful tool. >>>>> >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> >>>>> >>>>> Doug Steele wrote: >>>>>> William, would you say that the time you now take to develop an app >>>>>> in >>>>>> VS >>>>>> is >>>>>> comparable to the time you would have taken to develop the same app >>>>>> in >>>>>> Access? I've done one small project this year in C# and it probably >>>>>> took >>>>>> me >>>>>> five times as long as Access would have. I realize that I will get >>>>>> faster >>>>>> with practice, but how much? >>>>>> >>>>>> Thanks, >>>>>> Doug >>>>>> >>>>>> On Sat, Mar 13, 2010 at 9:47 AM, William Hindman < >>>>>> wdhindman at dejpolsystems.com> wrote: >>>>>> >>>>>>> gustav >>>>>>> >>>>>>> ...there are so many such goodies in VS that you can't even cover >>>>>>> the >>>>>>> highlights in a single post. >>>>>>> >>>>>>> William >>>>>>> >>>>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Mar 15 17:28:20 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 18:28:20 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com> <8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com> Message-ID: ...southern drawl ...hands down :) William -------------------------------------------------- From: "David McAfee" Sent: Monday, March 15, 2010 3:53 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > We know that John, but which English? > > Southern California dude dialect? > Texas Twang? > New York GTFO of here? > > or those funny sounding guys that often misspell words over the pond? ;) > > D > > > > On Mon, Mar 15, 2010 at 12:43 PM, jwcolby > wrote: >> English IS better! >> >> ;) >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Jim Lawrence wrote: >>> I full-heartedly agree with you. The basic creation of the .Net >>> infrastructure was to allow the designer to write code in any way they >>> want. >>> >>> >>> There are dozens of CLI languages that can be used and if you are >>> extending >>> you applications to the web the count increases dramatically. You can >>> mix >>> and match within a single app...Any mashup that can get an application >>> running >>> >>> http://en.wikipedia.org/wiki/List_of_CLI_languages >>> >>> The argument that one language runs faster than another is simply not >>> true; >>> any longer. My thought is use what ever language feels good to you or >>> has >>> the most 'field tested' code and has the features you need. >>> >>> Single language apps are the old way of thinking. Show me what an >>> application can do and frankly I could not care less what it was written >>> in. >>> >>> >>> It is similar to saying English is better. >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >>> Foust >>> Sent: Monday, March 15, 2010 8:30 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >>> >>> Well, gentlemen, I stand by VB.Net since I absolutely hate the C# >>> syntax >>> and "punctuation". I can read it, but I don't want to write it. Of >>> course, >>> since I'm old enough not to have to expect to keep doing this, I can >>> indulge >>> myself by NOT learning C#. I do rather object to the avalanche towards >>> it >>> in the VB list, though. Seems like the fact that the language isn't the >>> important thing gets forgotten. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Saturday, March 13, 2010 8:28 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >>> >>> I second pretty much everything William said, EXCEPT that I did not find >>> C# >>> syntax all that trivial >>> to pick up. But like William I forced myself to do it and I am happy I >>> did. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> William Hindman wrote: >>>> ...vb.net and c#.net are virtually identical in their capabilities >>>> ...only >>> >>>> the syntax is significantly different in the latest versions and you'll >>> pick >>>> that up fairly quickly ...learning the net framework is the major >>>> effort, >>>> not the language you choose to work in ...I started in vb.net because >>>> the >>>> syntax seemed more familiar but that's really an illusion since it's >>>> very >>>> different from vba in reality ...I've since moved to forcing myself to >>> work >>>> in c#.net because 1) that's where the work is and 2) that's what ~70% >>>> or >>>> more of the on-line responses and sample code are written in ...and I >>>> live >>> >>>> on sample code ...besides which, there are some very good (and free) >>> on-line >>>> translators between the two now ...if I were starting over in net I'd >>>> pass >>> >>>> on vb.net and go straight to c#.net >>>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Mar 15 17:37:03 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 18:37:03 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <06C9FDC674A44F15991EF443305535D3@Server> References: <8F598D0F5048441BAE832B6FE8390E93@HAL9005><4B9BBD1E.8060902@colbyconsulting.com><674ACC68827E42A283A5ED2900DD30D5@creativesystemdesigns.com><4B9E8DFC.8070001@colbyconsulting.com><8786a4c01003151253u42043186rdb6822c5987d67c0@mail.gmail.com><46D9791C531741F0A9964EAE7B94C5B4@danwaters><194E75CA37464FE7B0FF90CA9DE72D52@creativesystemdesigns.com> <06C9FDC674A44F15991EF443305535D3@Server> Message-ID: <4B5DB5812BA34DE3BC4763ABC16B82FA@jislaptopdev> "English can only come from England." MadMax ...correction, the Queen's English can only come from England ...American English is what is being taught as the preferred 2nd language almost everywhere outside the commonwealth :) ...only Chinese is "halfway" to world domination as a first language William -------------------------------------------------- From: "Max Wanadoo" Sent: Monday, March 15, 2010 5:14 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > No Jim, > > You misunderstand too. > > Let me explain... > > English sans others. > > English can only come from England. > > Divide and conquer. Our weapon is English. We are half way to our target > of > World domination. > > I should point out that the only reason we want to do this is simply > because > we are krap at learning other languages, be they Chinese, Japanes, > Albertan, > or C++. > > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, March 15, 2010 9:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > English without an accent of course...like we have here. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, March 15, 2010 1:58 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > No, no Dan. You misunderstand me. > > The rest of the World!! > > The World is not enough. Total domination by the English using English > and > so far it is doing nicely - I thank you!! > > Max > Stokes white cat on lap and smiles an evil smile. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, March 15, 2010 8:48 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Hey Max - this is all of Minnesota - not just NY City or southern CA! > > And we got it from Canada! > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Monday, March 15, 2010 3:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > > I think they are refering to main stem languages not sub-derivatives from > small culture based dialecs. > > IOW, over here.... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, March 15, 2010 8:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > Or Minnesota - EH? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Monday, March 15, 2010 2:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > We know that John, but which English? > > Southern California dude dialect? > Texas Twang? > New York GTFO of here? > > or those funny sounding guys that often misspell words over the pond? ;) > > D > > > > On Mon, Mar 15, 2010 at 12:43 PM, jwcolby > wrote: >> English IS better! >> >> ;) >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Jim Lawrence wrote: >>> I full-heartedly agree with you. The basic creation of the .Net >>> infrastructure was to allow the designer to write code in any way >>> they > want. >>> >>> >>> There are dozens of CLI languages that can be used and if you are > extending >>> you applications to the web the count increases dramatically. You can >>> mix and match within a single app...Any mashup that can get an >>> application running >>> >>> http://en.wikipedia.org/wiki/List_of_CLI_languages >>> >>> The argument that one language runs faster than another is simply not > true; >>> any longer. My thought is use what ever language feels good to you or >>> has the most 'field tested' code and has the features you need. >>> >>> Single language apps are the old way of thinking. Show me what an >>> application can do and frankly I could not care less what it was >>> written > in. >>> >>> >>> It is similar to saying English is better. >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust >>> Sent: Monday, March 15, 2010 8:30 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >>> >>> Well, gentlemen, I stand by VB.Net since I absolutely hate the C# >>> syntax and "punctuation". I can read it, but I don't want to write >>> it. Of > course, >>> since I'm old enough not to have to expect to keep doing this, I can > indulge >>> myself by NOT learning C#. I do rather object to the avalanche >>> towards > it >>> in the VB list, though. Seems like the fact that the language isn't >>> the important thing gets forgotten. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Saturday, March 13, 2010 8:28 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >>> >>> I second pretty much everything William said, EXCEPT that I did not >>> find > C# >>> syntax all that trivial >>> to pick up. But like William I forced myself to do it and I am happy >>> I > did. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> William Hindman wrote: >>>> ...vb.net and c#.net are virtually identical in their capabilities > ...only >>> >>>> the syntax is significantly different in the latest versions and >>>> you'll >>> pick >>>> that up fairly quickly ...learning the net framework is the major > effort, >>>> not the language you choose to work in ...I started in vb.net >>>> because > the >>>> syntax seemed more familiar but that's really an illusion since it's > very >>>> different from vba in reality ...I've since moved to forcing myself >>>> to >>> work >>>> in c#.net because 1) that's where the work is and 2) that's what >>>> ~70% or more of the on-line responses and sample code are written in >>>> ...and I > live >>> >>>> on sample code ...besides which, there are some very good (and free) >>> on-line >>>> translators between the two now ...if I were starting over in net >>>> I'd > pass >>> >>>> on vb.net and go straight to c#.net >>>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Mar 15 17:39:00 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 18:39:00 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> References: , , <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> Message-ID: ...he's not known as MadMax for nothing, eh :) William -------------------------------------------------- From: "Stuart McLachlan" Sent: Monday, March 15, 2010 5:47 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > I just had a horrible vision. I hope you meant "strokes". > > -- > Stuart > > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: >> >> Max >> Stokes white cat on lap and smiles an evil smile. >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Mar 15 17:42:19 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 18:42:19 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: References: , , <4B9EAB03.26248.D7A6148@stuart.lexacorp.com.pg> Message-ID: <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev> "ROTL" MadMax ...rolling on the laundry? William -------------------------------------------------- From: "Max Wanadoo" Sent: Monday, March 15, 2010 5:54 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > Haha..ROTL > > Visions... > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Monday, March 15, 2010 9:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > I just had a horrible vision. I hope you meant "strokes". > > -- > Stuart > > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: >> >> Max >> Stokes white cat on lap and smiles an evil smile. >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 18:01:23 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Mar 2010 09:01:23 +1000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev> References: , , <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev> Message-ID: <4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> Ranting On The List? -- Stuart On 15 Mar 2010 at 18:42, William Hindman wrote: > "ROTL" MadMax > > ...rolling on the laundry? > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Monday, March 15, 2010 5:54 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > > Haha..ROTL > > > > Visions... > > > > Max > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan > > Sent: Monday, March 15, 2010 9:48 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > > > I just had a horrible vision. I hope you meant "strokes". > > > > -- > > Stuart > > > > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: > >> > >> Max > >> Stokes white cat on lap and smiles an evil smile. > >> > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 15 19:34:48 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Mar 2010 19:34:48 -0500 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> References: , , <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev> <4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> Message-ID: Perfect!! Add it to the list of shortcuts! ROFL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, March 15, 2010 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS Ranting On The List? -- Stuart On 15 Mar 2010 at 18:42, William Hindman wrote: > "ROTL" MadMax > > ...rolling on the laundry? > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Monday, March 15, 2010 5:54 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > > Haha..ROTL > > > > Visions... > > > > Max > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan > > Sent: Monday, March 15, 2010 9:48 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > > > > I just had a horrible vision. I hope you meant "strokes". > > > > -- > > Stuart > > > > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: > >> > >> Max > >> Stokes white cat on lap and smiles an evil smile. > >> > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 19:44:05 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 15 Mar 2010 17:44:05 -0700 Subject: [AccessD] Can't Disable Control Message-ID: Dear List: In the following code: Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False Me.cmdExit.SetFocus Me.subfrmFormulaBOM!cboCTNID.Enabled = False Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False Me.subfrmFormulaBOM!cmd100.Enabled = False when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I get an error 2164 - you can't disable a control while it has the focus. I stuck that Me.cmdExit.SetFocus in there right before the line just to make sure the focus was elsewhere but I get it anyway. I'm thinking this is one of those error messages that doesn't really mean what it says but I don't know. Any guesses? BTW cboCTNID is a bound control like the others - bound to a field in the record source. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From wdhindman at dejpolsystems.com Mon Mar 15 19:55:27 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 20:55:27 -0400 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> References: , , <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev> <4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> Message-ID: <9FFFDD14602C474CA0154B97244FC392@jislaptopdev> ...rotflmao ...jc would have to make that his signature! :) William -------------------------------------------------- From: "Stuart McLachlan" Sent: Monday, March 15, 2010 7:01 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > Ranting On The List? > > -- > Stuart > > On 15 Mar 2010 at 18:42, William Hindman wrote: > >> "ROTL" MadMax >> >> ...rolling on the laundry? >> >> William >> >> -------------------------------------------------- >> From: "Max Wanadoo" >> Sent: Monday, March 15, 2010 5:54 PM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> > Haha..ROTL >> > >> > Visions... >> > >> > Max >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> > McLachlan >> > Sent: Monday, March 15, 2010 9:48 PM >> > To: Access Developers discussion and problem solving >> > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> > >> > I just had a horrible vision. I hope you meant "strokes". >> > >> > -- >> > Stuart >> > >> > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: >> >> >> >> Max >> >> Stokes white cat on lap and smiles an evil smile. >> >> >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Mar 15 20:45:27 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Mar 2010 11:45:27 +1000 Subject: [AccessD] Can't Disable Control In-Reply-To: References: Message-ID: <4B9EE2B7.26595.E53F947@stuart.lexacorp.com.pg> Where are you running the code? In an event procedure for a control? What has control has got the focus when the code starts? Looks as though cboCTNID is the active control on the subform. Try setting focus to something else on the subform. -- Stuart On 15 Mar 2010 at 17:44, Rocky Smolin wrote: > Dear List: > > In the following code: > > Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False > Me.cmdExit.SetFocus > Me.subfrmFormulaBOM!cboCTNID.Enabled = False > Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False > Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False > Me.subfrmFormulaBOM!cmd100.Enabled = False > > > when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I > get an error 2164 - you can't disable a control while it has the focus. I > stuck that Me.cmdExit.SetFocus in there right before the line just to make > sure the focus was elsewhere but I get it anyway. > > I'm thinking this is one of those error messages that doesn't really mean > what it says but I don't know. > > Any guesses? > > BTW cboCTNID is a bound control like the others - bound to a field in the > record source. > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > From max.wanadoo at gmail.com Mon Mar 15 21:20:43 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 16 Mar 2010 02:20:43 -0000 Subject: [AccessD] Can't Disable Control In-Reply-To: References: Message-ID: <2B834A7BDCBF47509386FB4EEF78FC4F@Server> My guess would be that your sub form is firing as soon as you set focus on the main form. Could you try to find another "out of the way" control on the sub form to set focus on - an example might be: Me.subfrmFormulaBOD!cmdExit.Enabled = true ' make sure you can focus on it. Me.subfrmFormulaBOD!cmdExit.SetFocus Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False Me.subfrmFormulaBOM!cboCTNID.Enabled = False Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False Me.subfrmFormulaBOM!cmd100.Enabled = False Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 16, 2010 12:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Disable Control Dear List: In the following code: Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False Me.cmdExit.SetFocus Me.subfrmFormulaBOM!cboCTNID.Enabled = False Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False Me.subfrmFormulaBOM!cmd100.Enabled = False when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I get an error 2164 - you can't disable a control while it has the focus. I stuck that Me.cmdExit.SetFocus in there right before the line just to make sure the focus was elsewhere but I get it anyway. I'm thinking this is one of those error messages that doesn't really mean what it says but I don't know. Any guesses? BTW cboCTNID is a bound control like the others - bound to a field in the record source. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From max.wanadoo at gmail.com Mon Mar 15 21:22:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 16 Mar 2010 02:22:25 -0000 Subject: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS In-Reply-To: <9FFFDD14602C474CA0154B97244FC392@jislaptopdev> References: , , <75C6A0CD90F746C8B9773280E9BDAB34@jislaptopdev><4B9EBC43.5146.DBDC3A4@stuart.lexacorp.com.pg> <9FFFDD14602C474CA0154B97244FC392@jislaptopdev> Message-ID: <17E0ABC3C6054D0580D181031B278B80@Server> Why, it is mine. Let JC find his on. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, March 16, 2010 12:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS ...rotflmao ...jc would have to make that his signature! :) William -------------------------------------------------- From: "Stuart McLachlan" Sent: Monday, March 15, 2010 7:01 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS > Ranting On The List? > > -- > Stuart > > On 15 Mar 2010 at 18:42, William Hindman wrote: > >> "ROTL" MadMax >> >> ...rolling on the laundry? >> >> William >> >> -------------------------------------------------- >> From: "Max Wanadoo" >> Sent: Monday, March 15, 2010 5:54 PM >> To: "'Access Developers discussion and problem solving'" >> >> Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by MS >> >> > Haha..ROTL >> > >> > Visions... >> > >> > Max >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> > McLachlan >> > Sent: Monday, March 15, 2010 9:48 PM >> > To: Access Developers discussion and problem solving >> > Subject: Re: [AccessD] SPAM-LOW: Treeview/Listview OCX Disabled by >> > MS >> > >> > I just had a horrible vision. I hope you meant "strokes". >> > >> > -- >> > Stuart >> > >> > On 15 Mar 2010 at 20:58, Max Wanadoo wrote: >> >> >> >> Max >> >> Stokes white cat on lap and smiles an evil smile. >> >> >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Mar 15 21:26:36 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 15 Mar 2010 22:26:36 -0400 Subject: [AccessD] Can't Disable Control In-Reply-To: References: Message-ID: ...is the parent form using the same record set? William -------------------------------------------------- From: "Rocky Smolin" Sent: Monday, March 15, 2010 8:44 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Can't Disable Control > Dear List: > > In the following code: > > Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False > Me.cmdExit.SetFocus > Me.subfrmFormulaBOM!cboCTNID.Enabled = False > Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False > Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False > Me.subfrmFormulaBOM!cmd100.Enabled = False > > > when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False > I > get an error 2164 - you can't disable a control while it has the focus. I > stuck that Me.cmdExit.SetFocus in there right before the line just to make > sure the focus was elsewhere but I get it anyway. > > I'm thinking this is one of those error messages that doesn't really mean > what it says but I don't know. > > Any guesses? > > BTW cboCTNID is a bound control like the others - bound to a field in the > record source. > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > 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 Mon Mar 15 23:34:44 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 15 Mar 2010 21:34:44 -0700 Subject: [AccessD] Can't Disable Control In-Reply-To: <4B9EE2B7.26595.E53F947@stuart.lexacorp.com.pg> References: <4B9EE2B7.26595.E53F947@stuart.lexacorp.com.pg> Message-ID: <0CC43E92331643E9B09E7CDCBAA80F93@HAL9005> I figured it out. Well, I didn't actually figure it out. Just kept trying different things until I got the behavior I wanted. (Kind of like raising kids) Set the focus to a control on the sub-form instead of the main form. I think the control where the code was barfing might have been the first in the tab order? Anyway, problem solved - not figured out - but solved. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, March 15, 2010 6:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can't Disable Control Where are you running the code? In an event procedure for a control? What has control has got the focus when the code starts? Looks as though cboCTNID is the active control on the subform. Try setting focus to something else on the subform. -- Stuart On 15 Mar 2010 at 17:44, Rocky Smolin wrote: > Dear List: > > In the following code: > > Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False > Me.cmdExit.SetFocus > Me.subfrmFormulaBOM!cboCTNID.Enabled = False > Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False > Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False > Me.subfrmFormulaBOM!cmd100.Enabled = False > > > when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I > get an error 2164 - you can't disable a control while it has the focus. I > stuck that Me.cmdExit.SetFocus in there right before the line just to make > sure the focus was elsewhere but I get it anyway. > > I'm thinking this is one of those error messages that doesn't really mean > what it says but I don't know. > > Any guesses? > > BTW cboCTNID is a bound control like the others - bound to a field in the > record source. > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > 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 Mon Mar 15 23:36:13 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 15 Mar 2010 21:36:13 -0700 Subject: [AccessD] Can't Disable Control In-Reply-To: <2B834A7BDCBF47509386FB4EEF78FC4F@Server> References: <2B834A7BDCBF47509386FB4EEF78FC4F@Server> Message-ID: Yeah, that's what I did (see my reply to Stuart). r -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 15, 2010 7:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Can't Disable Control My guess would be that your sub form is firing as soon as you set focus on the main form. Could you try to find another "out of the way" control on the sub form to set focus on - an example might be: Me.subfrmFormulaBOD!cmdExit.Enabled = true ' make sure you can focus on it. Me.subfrmFormulaBOD!cmdExit.SetFocus Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False Me.subfrmFormulaBOM!cboCTNID.Enabled = False Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False Me.subfrmFormulaBOM!cmd100.Enabled = False Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 16, 2010 12:44 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Disable Control Dear List: In the following code: Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False Me.cmdExit.SetFocus Me.subfrmFormulaBOM!cboCTNID.Enabled = False Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False Me.subfrmFormulaBOM!cmd100.Enabled = False when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I get an error 2164 - you can't disable a control while it has the focus. I stuck that Me.cmdExit.SetFocus in there right before the line just to make sure the focus was elsewhere but I get it anyway. I'm thinking this is one of those error messages that doesn't really mean what it says but I don't know. Any guesses? BTW cboCTNID is a bound control like the others - bound to a field in the record source. MTIA Rocky Smolin Beach Access Software 858-259-4334 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 max.wanadoo at gmail.com Tue Mar 16 03:24:33 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 16 Mar 2010 08:24:33 -0000 Subject: [AccessD] Can't Disable Control In-Reply-To: <0CC43E92331643E9B09E7CDCBAA80F93@HAL9005> References: <4B9EE2B7.26595.E53F947@stuart.lexacorp.com.pg> <0CC43E92331643E9B09E7CDCBAA80F93@HAL9005> Message-ID: <9B805624B933445388BE61B7E380744E@Server> >I figured it out. Well, I didn't actually figure it out. Which one won the argument? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, March 16, 2010 4:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Can't Disable Control I figured it out. Well, I didn't actually figure it out. Just kept trying different things until I got the behavior I wanted. (Kind of like raising kids) Set the focus to a control on the sub-form instead of the main form. I think the control where the code was barfing might have been the first in the tab order? Anyway, problem solved - not figured out - but solved. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, March 15, 2010 6:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can't Disable Control Where are you running the code? In an event procedure for a control? What has control has got the focus when the code starts? Looks as though cboCTNID is the active control on the subform. Try setting focus to something else on the subform. -- Stuart On 15 Mar 2010 at 17:44, Rocky Smolin wrote: > Dear List: > > In the following code: > > Me.subfrmFormulaBOM!fldFormulaBOMSequence.Enabled = False > Me.cmdExit.SetFocus > Me.subfrmFormulaBOM!cboCTNID.Enabled = False > Me.subfrmFormulaBOM!fldCTNPricePerPound.Enabled = False > Me.subfrmFormulaBOM!fldFormulaBOMQuantity.Enabled = False > Me.subfrmFormulaBOM!cmd100.Enabled = False > > > when it tries to execute Me.subfrmFormulaBOM!cboCTNID.Enabled = False I > get an error 2164 - you can't disable a control while it has the > focus. I stuck that Me.cmdExit.SetFocus in there right before the > line just to make sure the focus was elsewhere but I get it anyway. > > I'm thinking this is one of those error messages that doesn't really > mean what it says but I don't know. > > Any guesses? > > BTW cboCTNID is a bound control like the others - bound to a field in > the record source. > > MTIA > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > 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 fuller.artful at gmail.com Tue Mar 16 08:22:04 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 16 Mar 2010 09:22:04 -0400 Subject: [AccessD] Access 2007 Form Design Question Message-ID: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> Whenever I create an AutoForm in Access 2007, it places all the fields into one or more groups, which means that resizing any control resizes the whole group. Similarly for moving them. IIRC, the same thing happens with report design. There's got to be a way to un-group the controls, but I can't find it. Does anyone know how to do this? TIA, Arthur From jwcolby at colbyconsulting.com Tue Mar 16 08:45:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 09:45:30 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> Message-ID: <4B9F8B7A.9010002@colbyconsulting.com> Click off of the group and the group will unselect. Click, hold, drag and "lasso" a group and that whole group will be selected. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > Whenever I create an AutoForm in Access 2007, it places all the fields into > one or more groups, which means that resizing any control resizes the whole > group. Similarly for moving them. IIRC, the same thing happens with report > design. There's got to be a way to un-group the controls, but I can't find > it. > > Does anyone know how to do this? > > TIA, > Arthur From fuller.artful at gmail.com Tue Mar 16 09:04:54 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 16 Mar 2010 10:04:54 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <4B9F8B7A.9010002@colbyconsulting.com> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> <4B9F8B7A.9010002@colbyconsulting.com> Message-ID: <29f585dd1003160704y7621f005gb6d1c1e4a729db9f@mail.gmail.com> I don't think I made it clear what I want to do. I want to change the width of exactly one field within the group, but I can't seem to do it. If I click any field in the group and try to adjust its width, all the others in the group are affected. This is not what I want. So far, it seems the only way to do what I want is to forget all about AutoForm and add the fields individually, which is a drag. A. On Tue, Mar 16, 2010 at 9:45 AM, jwcolby wrote: > Click off of the group and the group will unselect. > > Click, hold, drag and "lasso" a group and that whole group will be > selected. > From jwcolby at colbyconsulting.com Tue Mar 16 09:19:46 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 10:19:46 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <29f585dd1003160704y7621f005gb6d1c1e4a729db9f@mail.gmail.com> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> <4B9F8B7A.9010002@colbyconsulting.com> <29f585dd1003160704y7621f005gb6d1c1e4a729db9f@mail.gmail.com> Message-ID: <4B9F9382.7060806@colbyconsulting.com> If you are talking about a group of selected controls, the reason they are a group is because they were selected as a group. If you want to unselect a group of selected controls, you click anywhere off of the selected group and they unselect. If you want to select a single control you click on that control. If you want to reselect a group of controls you "lasso" them. So unless you are doing something special, just unselect the group and select the control. Alternately save the form and then reopen it in design view. There will be no controls selected when you open the form again. However unless I am completely missing something here, just clicking outside of the selected group of controls should unselect the group. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > I don't think I made it clear what I want to do. I want to change the width > of exactly one field within the group, but I can't seem to do it. If I click > any field in the group and try to adjust its width, all the others in the > group are affected. This is not what I want. > > So far, it seems the only way to do what I want is to forget all about > AutoForm and add the fields individually, which is a drag. > > A. > > On Tue, Mar 16, 2010 at 9:45 AM, jwcolby wrote: > >> Click off of the group and the group will unselect. >> >> Click, hold, drag and "lasso" a group and that whole group will be >> selected. >> From rusty.hammond at cpiqpc.com Tue Mar 16 09:52:46 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 16 Mar 2010 09:52:46 -0500 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <29f585dd1003160704y7621f005gb6d1c1e4a729db9f@mail.gmail.com> References: <4B9F8B7A.9010002@colbyconsulting.com> <29f585dd1003160704y7621f005gb6d1c1e4a729db9f@mail.gmail.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D796E7@CPIEMAIL-EVS1.CPIQPC.NET> Arthur, I had the same problem, but it was on my home computer and I don't have Access 2007 at work. I figured it out but can't remember where the option was. I did find the following in the internet though: Highlight the controls you wish to Group / Ungroup In the Form Design Tools under arrange, there is an icon (next to Snap to Grid) that looks like 2 squares. That's your group / ungroup ribbon shortcut. HTH Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 16, 2010 9:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 Form Design Question I don't think I made it clear what I want to do. I want to change the width of exactly one field within the group, but I can't seem to do it. If I click any field in the group and try to adjust its width, all the others in the group are affected. This is not what I want. So far, it seems the only way to do what I want is to forget all about AutoForm and add the fields individually, which is a drag. A. On Tue, Mar 16, 2010 at 9:45 AM, jwcolby wrote: > Click off of the group and the group will unselect. > > Click, hold, drag and "lasso" a group and that whole group will be > selected. > -- 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 ab-mi at post3.tele.dk Tue Mar 16 10:17:57 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 16 Mar 2010 16:17:57 +0100 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> Message-ID: <77E403A3392D4827B4DAD12B6272DF03@abpc> Per default Access 2007 is using a "stacked" layout for controls. To remove the stacked layout select the controls and then on the Arrange tab click Remove in the Control Layout group. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller Sendt: 16. marts 2010 14:22 Til: Access Developers discussion and problem solving Emne: [AccessD] Access 2007 Form Design Question Whenever I create an AutoForm in Access 2007, it places all the fields into one or more groups, which means that resizing any control resizes the whole group. Similarly for moving them. IIRC, the same thing happens with report design. There's got to be a way to un-group the controls, but I can't find it. Does anyone know how to do this? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 16 11:07:58 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 12:07:58 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <77E403A3392D4827B4DAD12B6272DF03@abpc> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> <77E403A3392D4827B4DAD12B6272DF03@abpc> Message-ID: <4B9FACDE.3030602@colbyconsulting.com> Ohhhhhh. John W. Colby www.ColbyConsulting.com Asger Blond wrote: > Per default Access 2007 is using a "stacked" layout for controls. To remove the stacked layout select the controls and then on the Arrange tab click Remove in the Control Layout group. > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller > Sendt: 16. marts 2010 14:22 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Access 2007 Form Design Question > > Whenever I create an AutoForm in Access 2007, it places all the fields into > one or more groups, which means that resizing any control resizes the whole > group. Similarly for moving them. IIRC, the same thing happens with report > design. There's got to be a way to un-group the controls, but I can't find > it. > > Does anyone know how to do this? > > TIA, > Arthur From kismert at gmail.com Tue Mar 16 13:23:05 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Tue, 16 Mar 2010 13:23:05 -0500 Subject: [AccessD] Access 2007 Compact & Repair Message-ID: <7c7841601003161123l27455a8csa8682a9c9727e8c6@mail.gmail.com> List, Do any of you Access 2007 people know if you can compact & repair a ACCDE file (the new MDE)? If no, can you compact & repair an ACCDB backend from an ACCDE frontend in code? Thanks, -Ken From kismert at gmail.com Tue Mar 16 13:41:42 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Tue, 16 Mar 2010 13:41:42 -0500 Subject: [AccessD] OT: Did you just feel the Earth shift? Message-ID: <7c7841601003161141q6aafc8a0m5c2a135e19d853e4@mail.gmail.com> No, I'm not talking about the recent temblor that unnecessarily foamed cappuccinos in L.A., but the report in the Register that IE9 will support SVG alongside their XAML vector format. http://www.channelregister.co.uk/2010/03/16/internet_explorer_unveiling/ Finally, the last huge obstacle Microsoft has placed in front of the open standard-based web is going to be (at least partially) removed. Add this to better CSS3 support and Microsoft's 'Chakra' Javascript optimizations (attaining performance levels rivaling, at least in the user's perception, many parts of the Silverlight platform), and in the IE9 era there will be few barriers to ubiquitous web applications. -Ken From kismert at gmail.com Tue Mar 16 13:43:23 2010 From: kismert at gmail.com (Kenneth Ismert) Date: Tue, 16 Mar 2010 13:43:23 -0500 Subject: [AccessD] OT: Did you just feel the Earth shift? Message-ID: <7c7841601003161143g4e3ef5a2i3c8866e7fca21365@mail.gmail.com> No, I'm not talking about the recent temblor that unnecessarily foamed cappuccinos in L.A., but the report in the Register that IE9 will support SVG alongside their XAML vector format. http://www.channelregister.co.uk/2010/03/16/internet_explorer_unveiling/ Finally, the last huge obstacle Microsoft has placed in front of the open standard-based web is going to be (at least partially) removed. Add this to better CSS3 support and Microsoft's 'Chakra' Javascript optimizations (attaining performance levels rivaling, at least in the user's perception, many parts of the Silverlight platform), and in the IE9 era there will be few barriers to ubiquitous web applications. -Ken From dwaters at usinternet.com Tue Mar 16 13:49:32 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 16 Mar 2010 13:49:32 -0500 Subject: [AccessD] Access 2007 Compact & Repair In-Reply-To: <7c7841601003161123l27455a8csa8682a9c9727e8c6@mail.gmail.com> References: <7c7841601003161123l27455a8csa8682a9c9727e8c6@mail.gmail.com> Message-ID: Hi Ken, I use a separate small mdb using code to do a Compact/Repair each night. That small mdb is triggered with a Scheduled Task. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert Sent: Tuesday, March 16, 2010 1:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2007 Compact & Repair List, Do any of you Access 2007 people know if you can compact & repair a ACCDE file (the new MDE)? If no, can you compact & repair an ACCDB backend from an ACCDE frontend in code? Thanks, -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 16 15:07:08 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 16:07:08 -0400 Subject: [AccessD] "Stacking" in Access 2007 Message-ID: <4B9FE4EC.3040607@colbyconsulting.com> HOLY CRAP BATMAN! I just tried to create a report using the report wizard. At school, not for me, just to show the poor git how to do it. And of course... I could NOT get control of the controls and move them around as I wanted. Suckage, SEVERE suckage! ;) -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Mar 16 15:44:22 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 16:44:22 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <77E403A3392D4827B4DAD12B6272DF03@abpc> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com> <77E403A3392D4827B4DAD12B6272DF03@abpc> Message-ID: <4B9FEDA6.90704@colbyconsulting.com> Having just read (and not absorbed) this, I ran into this exact thing in class today. I was helping someone I am mentoring to quickly build an Access database, and so I went to do a report. What a PITA. COMPLETELY unable to just move things around as I want. John W. Colby www.ColbyConsulting.com Asger Blond wrote: > Per default Access 2007 is using a "stacked" layout for controls. To remove the stacked layout select the controls and then on the Arrange tab click Remove in the Control Layout group. > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller > Sendt: 16. marts 2010 14:22 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Access 2007 Form Design Question > > Whenever I create an AutoForm in Access 2007, it places all the fields into > one or more groups, which means that resizing any control resizes the whole > group. Similarly for moving them. IIRC, the same thing happens with report > design. There's got to be a way to un-group the controls, but I can't find > it. > > Does anyone know how to do this? > > TIA, > Arthur From rusty.hammond at cpiqpc.com Tue Mar 16 16:33:38 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 16 Mar 2010 16:33:38 -0500 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <4B9FEDA6.90704@colbyconsulting.com> References: <77E403A3392D4827B4DAD12B6272DF03@abpc> <4B9FEDA6.90704@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D796F0@CPIEMAIL-EVS1.CPIQPC.NET> I just came across it last week. I still can't figure out why that is the default. I'm assuming (hoping) there is a way to turn that default setting off. Rusty Hammond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 16, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 Form Design Question Having just read (and not absorbed) this, I ran into this exact thing in class today. I was helping someone I am mentoring to quickly build an Access database, and so I went to do a report. What a PITA. COMPLETELY unable to just move things around as I want. John W. Colby www.ColbyConsulting.com Asger Blond wrote: > Per default Access 2007 is using a "stacked" layout for controls. To remove the stacked layout select the controls and then on the Arrange tab click Remove in the Control Layout group. > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur > Fuller > Sendt: 16. marts 2010 14:22 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Access 2007 Form Design Question > > Whenever I create an AutoForm in Access 2007, it places all the fields > into one or more groups, which means that resizing any control resizes > the whole group. Similarly for moving them. IIRC, the same thing > happens with report design. There's got to be a way to un-group the > controls, but I can't find it. > > Does anyone know how to do this? > > TIA, > Arthur -- 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 max.wanadoo at gmail.com Tue Mar 16 17:01:20 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 16 Mar 2010 22:01:20 -0000 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <4B9FEDA6.90704@colbyconsulting.com> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com><77E403A3392D4827B4DAD12B6272DF03@abpc> <4B9FEDA6.90704@colbyconsulting.com> Message-ID: <8A138B3F4E354E958CC2B44C6F0D84B5@Server> Did your mentoring not start with..."huh, 2007 - forget that, lets switch to 2003.." Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 16, 2010 8:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 Form Design Question Having just read (and not absorbed) this, I ran into this exact thing in class today. I was helping someone I am mentoring to quickly build an Access database, and so I went to do a report. What a PITA. COMPLETELY unable to just move things around as I want. John W. Colby www.ColbyConsulting.com Asger Blond wrote: > Per default Access 2007 is using a "stacked" layout for controls. To remove the stacked layout select the controls and then on the Arrange tab click Remove in the Control Layout group. > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur > Fuller > Sendt: 16. marts 2010 14:22 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Access 2007 Form Design Question > > Whenever I create an AutoForm in Access 2007, it places all the fields > into one or more groups, which means that resizing any control resizes > the whole group. Similarly for moving them. IIRC, the same thing > happens with report design. There's got to be a way to un-group the > controls, but I can't find it. > > Does anyone know how to do this? > > TIA, > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebairead at gmail.com Tue Mar 16 17:10:25 2010 From: ebairead at gmail.com (=?UTF-8?Q?Eoin_C=2E_Bair=C3=A9ad?=) Date: Tue, 16 Mar 2010 22:10:25 +0000 Subject: [AccessD] Access 2007 & Access 2010 Message-ID: <3d2a5ccc1003161510qcb7559ey3817ee174999d653@mail.gmail.com> Hi I've just loaded the trial version of Office 2010, and, for people who like 2007, it's a big improvement. Those who prefer 2003 will just have to evaluate it themselves... There is one most annoying niggle,however. I've left 2007 on the system - because I need it for the job, and the boss likes results so he can continue paying me. And I think that's the reason that nothing whatever that involves a Wizard works in 2010. It asks me to delete my non-existent VBA modules, can't find them, and falls over. This includes obvious wizards explicitly invoked as such, but also procedures such as importing Excel. There 's almost certainly a module either conflicting or deleted. Does anyone know what it is. Thanks Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire From miscellany at mvps.org Tue Mar 16 17:26:29 2010 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 17 Mar 2010 11:26:29 +1300 Subject: [AccessD] Access 2007 & Access 2010 In-Reply-To: <3d2a5ccc1003161510qcb7559ey3817ee174999d653@mail.gmail.com> References: <3d2a5ccc1003161510qcb7559ey3817ee174999d653@mail.gmail.com> Message-ID: <1616630C615145B1BFFAADC483ECB311@stevePC> Eoin, I have not heard anything about this problem. However, I have seen explicit warnings about not installing the 2010 Beta on machines with other versions. I believe the final release of Access 2010 will be available around 10th May, so not long now. I would really hope that no such conflicts will happen with the full version. But increasingly I see people taking the safe route of using virtualisation to install multiple versions of Access. Regards Steve -------------------------------------------------- From: "Eoin C. Bair?ad" Sent: Wednesday, March 17, 2010 11:10 AM To: "Access Developers discussion and problem solving" Subject: [AccessD] Access 2007 & Access 2010 > Hi > > I've just loaded the trial version of Office 2010, and, for people who > like 2007, it's a big improvement. Those who prefer 2003 will just > have to evaluate it themselves... > > There is one most annoying niggle,however. > > I've left 2007 on the system - because I need it for the job, and the > boss likes results so he can continue paying me. > > And I think that's the reason that nothing whatever that involves a > Wizard works in 2010. It asks me to delete my non-existent VBA > modules, can't find them, and falls over. > > This includes obvious wizards explicitly invoked as such, but also > procedures such as importing Excel. > > There 's almost certainly a module either conflicting or deleted. Does > anyone know what it is. > From jwcolby at colbyconsulting.com Tue Mar 16 17:40:24 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 16 Mar 2010 18:40:24 -0400 Subject: [AccessD] Access 2007 Form Design Question In-Reply-To: <8A138B3F4E354E958CC2B44C6F0D84B5@Server> References: <29f585dd1003160622w4548a0afv3b0454c622bdfa33@mail.gmail.com><77E403A3392D4827B4DAD12B6272DF03@abpc> <4B9FEDA6.90704@colbyconsulting.com> <8A138B3F4E354E958CC2B44C6F0D84B5@Server> Message-ID: <4BA008D8.8070800@colbyconsulting.com> ROTFL. I does start with "2007 sucks...". All of the machines at the school have Office 2007. No choice for me. 8( John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Did your mentoring not start with..."huh, 2007 - forget that, lets switch to > 2003.." > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 16, 2010 8:44 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 Form Design Question > > Having just read (and not absorbed) this, I ran into this exact thing in > class today. I was helping someone I am mentoring to quickly build an > Access database, and so I went to do a report. What a PITA. COMPLETELY > unable to just move things around as I want. > > John W. Colby > www.ColbyConsulting.com > > > Asger Blond wrote: >> Per default Access 2007 is using a "stacked" layout for controls. To > remove the stacked layout select the controls and then on the Arrange tab > click Remove in the Control Layout group. >> Asger >> >> -----Oprindelig meddelelse----- >> Fra: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur >> Fuller >> Sendt: 16. marts 2010 14:22 >> Til: Access Developers discussion and problem solving >> Emne: [AccessD] Access 2007 Form Design Question >> >> Whenever I create an AutoForm in Access 2007, it places all the fields >> into one or more groups, which means that resizing any control resizes >> the whole group. Similarly for moving them. IIRC, the same thing >> happens with report design. There's got to be a way to un-group the >> controls, but I can't find it. >> >> Does anyone know how to do this? >> >> TIA, >> Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From thewaddles at sbcglobal.net Tue Mar 16 18:23:01 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Tue, 16 Mar 2010 16:23:01 -0700 Subject: [AccessD] "Stacking" in Access 2007 In-Reply-To: <4B9FE4EC.3040607@colbyconsulting.com> References: <4B9FE4EC.3040607@colbyconsulting.com> Message-ID: <01de01cac55f$9f364760$dda2d620$@net> John, Took me forever to figure this out. Open the report in design view On the 'Arrange' Tab look in the 'Control Layout' group You should see 'Tabular', 'Stacked' and 'Remove' Select the grouped controls and click the 'Remove' button Still not sure how to change the default settings. Kevin Waddle thewaddles at sbcglobal.net God is not a cosmic bellboy for whom we can press a button to get things done. ~Harry Emerson Fosdick From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 16, 2010 1:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] "Stacking" in Access 2007 HOLY CRAP BATMAN! I just tried to create a report using the report wizard. At school, not for me, just to show the poor git how to do it. And of course... I could NOT get control of the controls and move them around as I wanted. Suckage, SEVERE suckage! ;) -- 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 accessd at shaw.ca Tue Mar 16 23:28:00 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 16 Mar 2010 21:28:00 -0700 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: <7c7841601003161141q6aafc8a0m5c2a135e19d853e4@mail.gmail.com> References: <7c7841601003161141q6aafc8a0m5c2a135e19d853e4@mail.gmail.com> Message-ID: <1B3A3AAF3252456BBE0C9F0A591DE262@creativesystemdesigns.com> Yes Kenneth, I had read it before, it is about time and it is excellent news. 8-) Here is another article on HTML5 that is worthy of reviewing: http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising _results_of_new_tests.php Add the addition news of: http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o n-the-web-20100315-q7g7.html ..And things are looking up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert Sent: Tuesday, March 16, 2010 11:42 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Did you just feel the Earth shift? No, I'm not talking about the recent temblor that unnecessarily foamed cappuccinos in L.A., but the report in the Register that IE9 will support SVG alongside their XAML vector format. http://www.channelregister.co.uk/2010/03/16/internet_explorer_unveiling/ Finally, the last huge obstacle Microsoft has placed in front of the open standard-based web is going to be (at least partially) removed. Add this to better CSS3 support and Microsoft's 'Chakra' Javascript optimizations (attaining performance levels rivaling, at least in the user's perception, many parts of the Silverlight platform), and in the IE9 era there will be few barriers to ubiquitous web applications. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 05:58:56 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 10:58:56 -0000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <01de01cac55f$9f364760$dda2d620$@net> References: <4B9FE4EC.3040607@colbyconsulting.com> <01de01cac55f$9f364760$dda2d620$@net> Message-ID: <750AB65803514375B2FDE0E629417FD5@Server> More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max From Gustav at cactus.dk Wed Mar 17 06:11:41 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Mar 2010 12:11:41 +0100 Subject: [AccessD] OT: Did you just feel the Earth shift? Message-ID: Hi all The IE9 beta is here: http://ie.microsoft.com/testdrive/ It will not be available for Windows XP. /gustav >>> accessd at shaw.ca 17-03-2010 05:28 >>> Yes Kenneth, I had read it before, it is about time and it is excellent news. 8-) Here is another article on HTML5 that is worthy of reviewing: http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising_results_of_new_tests.php Add the addition news of: http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-on-the-web-20100315-q7g7.html ..And things are looking up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kenneth Ismert Sent: Tuesday, March 16, 2010 11:42 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Did you just feel the Earth shift? No, I'm not talking about the recent temblor that unnecessarily foamed cappuccinos in L.A., but the report in the Register that IE9 will support SVG alongside their XAML vector format. http://www.channelregister.co.uk/2010/03/16/internet_explorer_unveiling/ Finally, the last huge obstacle Microsoft has placed in front of the open standard-based web is going to be (at least partially) removed. Add this to better CSS3 support and Microsoft's 'Chakra' Javascript optimizations (attaining performance levels rivaling, at least in the user's perception, many parts of the Silverlight platform), and in the IE9 era there will be few barriers to ubiquitous web applications. -Ken From darren at activebilling.com.au Wed Mar 17 06:41:13 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Wed, 17 Mar 2010 22:41:13 +1100 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <750AB65803514375B2FDE0E629417FD5@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> Message-ID: <62670EA65D774ACAA930D28AE500006F@darrendPC> Hi Max et al I've experienced this PITA too. I've never been able to quite quantify it - Apart from saying - 'Somehow I've lost my last set of changes' Sadly I discovered the issue when I was at a client's office. Made all the changes and updates as requested at home - popped it onto a USB dongle and appeared at the client's office. Ready to go Did the usual thing with versions on site - only to discover my way cool changes were not on the dongle as I thought they should be. Sadly, I was unable to restore so I lost hours and hours of work and so had to re-do the same job for the client - Of course - They ain't paying - nor should they. So I re-did it all (a second time) saved again to the dongle and off I went a week later - Only to discover (Shock horror) the version I ended up taking to the client has 'some' of the original code loss and some of the last attempts to get it back - I have since moved machines so I essentially have 2 working 'latest' versions I have to try and merge or re-write (again) I am using Access2003 but on a VISTA machine This new "Did you want to replace the file or keep 2 versions of the same file" feature has always bothered me - Of course I have no proof, but I have suspected the issue is somewhere in that 'feature' - So not necessarily Access 2007 OK - See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, 17 March 2010 9:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Wed Mar 17 06:57:29 2010 From: robert at servicexp.com (Robert) Date: Wed, 17 Mar 2010 07:57:29 -0400 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <62670EA65D774ACAA930D28AE500006F@darrendPC> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <62670EA65D774ACAA930D28AE500006F@darrendPC> Message-ID: <001301cac5c9$0602ddf0$120899d0$@com> Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert From ab-mi at post3.tele.dk Wed Mar 17 07:31:43 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 17 Mar 2010 13:31:43 +0100 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <001301cac5c9$0602ddf0$120899d0$@com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> Message-ID: <21F31B819CB74F229C393F044FB47BB6@abpc> Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert Sendt: 17. marts 2010 12:57 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 08:35:22 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 13:35:22 -0000 Subject: [AccessD] Big data for all Message-ID: <0C597425B1C94279BF0C222E2CA6B7B9@Server> some of you may be interested in this. http://techcrunch.com/2010/03/16/big-data-freedom/ Max From dwaters at usinternet.com Wed Mar 17 08:36:08 2010 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 17 Mar 2010 08:36:08 -0500 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <750AB65803514375B2FDE0E629417FD5@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> Message-ID: <827D459C08664246B0A28125A0E4A399@danwaters> Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 08:42:59 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 13:42:59 -0000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <827D459C08664246B0A28125A0E4A399@danwaters> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> Message-ID: <42E9F815F638472EA5C9AA311465369E@Server> Hmm, now you mention it Dan and Darren, This has happened to me in A2003 but not for a very long time because I always compile/save after each change - it has become 2nd nature. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 1:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Wed Mar 17 08:46:42 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 17 Mar 2010 09:46:42 -0400 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <827D459C08664246B0A28125A0E4A399@danwaters> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> Message-ID: <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Wed Mar 17 08:48:49 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 17 Mar 2010 09:48:49 -0400 Subject: [AccessD] Big data for all In-Reply-To: <0C597425B1C94279BF0C222E2CA6B7B9@Server> References: <0C597425B1C94279BF0C222E2CA6B7B9@Server> Message-ID: Interesting stuff Max. There are several announcements about making data more available and letting people have access to it. Give them some tools and let them discover what the content may really contain. Discover the hidden facts within all those public data collections. Here is a link to recent google announcement last week http://www.eweek.com/c/a/Messaging-and-Collaboration/Google-Public-Data-Expl orer-Breaks-It-Down-for-Students-Wonks-Stat-Lovers-251500/?kc=EWKNLDAT031120 10STR1 The key part of this is the availability of public data. There is an effort to get more public data available for review and analysis. The tool will allow a lot of mix and match of datasets for comparisons. I haven't been following much of this sort of thing, but I did happen upon the following link in some other stuff I was reading. http://www.ted.com/talks/hans_rosling_shows_the_best_stats_you_ve_ever_seen. html This presentation (done in Feb 2006) is worth the time to view it, I think. The presenter/project leader is good. He mentions at the end that a group called GapMinder.org is (at that time) taking on further development. I see in the Google related information that they acquired materials from GapMinder. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Big data for all some of you may be interested in this. http://techcrunch.com/2010/03/16/big-data-freedom/ Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.790 / Virus Database: 271.1.1/2751 - Release Date: 03/16/10 15:33:00 From max.wanadoo at gmail.com Wed Mar 17 08:49:40 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 13:49:40 -0000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><827D459C08664246B0A28125A0E4A399@danwaters> <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> Message-ID: <777862AB60EE4AA6A38D418FFE5FE0CE@Server> At least something is consistent across versions.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 17 09:19:22 2010 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 17 Mar 2010 09:19:22 -0500 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><827D459C08664246B0A28125A0E4A399@danwaters> <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> Message-ID: I've had phantom breakpoints too. But the fix for those does work. You need to be sure that all breakpoints are cleared, then compile and save. To help with this, I customized the Standard toolbar by adding a 'Clear All Breakpoints' button. I put it next to the Decompile button I added (to the right of the Properties button). No more phantom breakpoints. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 09:28:37 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 14:28:37 -0000 Subject: [AccessD] Big data for all In-Reply-To: References: <0C597425B1C94279BF0C222E2CA6B7B9@Server> Message-ID: <5163BF04DFB6489D9896E3E60D8A21FD@Server> Thanks Jack Tons to read. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Wednesday, March 17, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Big data for all Interesting stuff Max. There are several announcements about making data more available and letting people have access to it. Give them some tools and let them discover what the content may really contain. Discover the hidden facts within all those public data collections. Here is a link to recent google announcement last week http://www.eweek.com/c/a/Messaging-and-Collaboration/Google-Public-Data-Expl orer-Breaks-It-Down-for-Students-Wonks-Stat-Lovers-251500/?kc=EWKNLDAT031120 10STR1 The key part of this is the availability of public data. There is an effort to get more public data available for review and analysis. The tool will allow a lot of mix and match of datasets for comparisons. I haven't been following much of this sort of thing, but I did happen upon the following link in some other stuff I was reading. http://www.ted.com/talks/hans_rosling_shows_the_best_stats_you_ve_ever_seen. html This presentation (done in Feb 2006) is worth the time to view it, I think. The presenter/project leader is good. He mentions at the end that a group called GapMinder.org is (at that time) taking on further development. I see in the Google related information that they acquired materials from GapMinder. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Big data for all some of you may be interested in this. http://techcrunch.com/2010/03/16/big-data-freedom/ Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.790 / Virus Database: 271.1.1/2751 - Release Date: 03/16/10 15:33:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 09:35:14 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 14:35:14 -0000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><827D459C08664246B0A28125A0E4A399@danwaters><86E93B9D727B4BF4B71AD0B238F45EE2@XPS> Message-ID: <7CA77A260FA64B1190DCD40FF4018322@Server> How did you do this. I cannot see it in the Tools/Customise and there is no short cut for it?? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes I've had phantom breakpoints too. But the fix for those does work. You need to be sure that all breakpoints are cleared, then compile and save. To help with this, I customized the Standard toolbar by adding a 'Clear All Breakpoints' button. I put it next to the Decompile button I added (to the right of the Properties button). No more phantom breakpoints. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Wed Mar 17 10:02:01 2010 From: robert at servicexp.com (Robert) Date: Wed, 17 Mar 2010 11:02:01 -0400 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> Message-ID: <000701cac5e2$d3ca6d20$7b5f4760$@com> And I guarantee you it will the same with 2010... ;-) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 9:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 17 10:02:46 2010 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 17 Mar 2010 10:02:46 -0500 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <7CA77A260FA64B1190DCD40FF4018322@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><827D459C08664246B0A28125A0E4A399@danwaters><86E93B9D727B4BF4B71AD0B238F45EE2@XPS> <7CA77A260FA64B1190DCD40FF4018322@Server> Message-ID: Full Instructions: 1) Under View, select Toolbars | Customize. 2) Select the Commands tab. 3) Under Categories, select Debug. 4) Under Commands, you'll see the Compile Project button at the top. 5) Under Commands, scroll down all the way and you'll see Clear All Breakpoints 3rd from the bottom. 6) Left Click, hold, and drag the button of your choice up to the toolbar of your choice, at the location on the toolbar where you want it. Then release the left mouse button. 7) Push the Close button on the Customize window. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes How did you do this. I cannot see it in the Tools/Customise and there is no short cut for it?? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes I've had phantom breakpoints too. But the fix for those does work. You need to be sure that all breakpoints are cleared, then compile and save. To help with this, I customized the Standard toolbar by adding a 'Clear All Breakpoints' button. I put it next to the Decompile button I added (to the right of the Properties button). No more phantom breakpoints. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Wed Mar 17 10:03:47 2010 From: robert at servicexp.com (Robert) Date: Wed, 17 Mar 2010 11:03:47 -0400 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <21F31B819CB74F229C393F044FB47BB6@abpc> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> <21F31B819CB74F229C393F044FB47BB6@abpc> Message-ID: <000801cac5e3$0c3b4760$24b1d620$@com> Thanks Asger, I'm pretty sure I have tried it both ways, but I will try it again when I return... Thanks again for the suggestion! WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, March 17, 2010 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert Sendt: 17. marts 2010 12:57 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 10:09:51 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 15:09:51 -0000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><827D459C08664246B0A28125A0E4A399@danwaters><86E93B9D727B4BF4B71AD0B238F45EE2@XPS><7CA77A260FA64B1190DCD40FF4018322@Server> Message-ID: <2A8B37675A6943A1B5FBADAB3B1FB1EB@Server> Thanks Dan, I must get out more... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 3:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Full Instructions: 1) Under View, select Toolbars | Customize. 2) Select the Commands tab. 3) Under Categories, select Debug. 4) Under Commands, you'll see the Compile Project button at the top. 5) Under Commands, scroll down all the way and you'll see Clear All Breakpoints 3rd from the bottom. 6) Left Click, hold, and drag the button of your choice up to the toolbar of your choice, at the location on the toolbar where you want it. Then release the left mouse button. 7) Push the Close button on the Customize window. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes How did you do this. I cannot see it in the Tools/Customise and there is no short cut for it?? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes I've had phantom breakpoints too. But the fix for those does work. You need to be sure that all breakpoints are cleared, then compile and save. To help with this, I customized the Standard toolbar by adding a 'Clear All Breakpoints' button. I put it next to the Decompile button I added (to the right of the Properties button). No more phantom breakpoints. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Wednesday, March 17, 2010 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes There has always been problems with the Access/VBA interface. Most notably the lost code thing and phantom breakpoints. I've always found problems if I ever say "no" to the save prompt when quitting, so I make sure I save and compile frequently. Nice to know that it's still going on even in 2007! Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hi Max, I've been seeing this for years in Access 2003. About 2003, I met a guy at a trade show who was switching to VB.Net back then. He told me that Access 'goes backward'. At the time I brushed that off, attributing his 'put down' of Access to his decision to move to VB. I wished that I had asked for more info at that time. I think that the problem is related to changing code while you are stepping through it, then closing the database before you compiled and saved the changes. I've been trying to remember to not change code until it's out of break mode, and also to compile and save immediately after a code change. This has been very hard to 'get my hands around' - I couldn't prove to my self that it wasn't me doing something wrong. It's really frustrating, and some of these lost changes have made it into my customers systems, which is frustrating for them. But a few weeks ago I had saved a copy of a database, which later on I found had the changes I made, while the original database did not. So my suggestion is to stop recoding in break mode, and compile and save very frequently. To help compiling quickly, you should customize the Standard toolbar by adding a Compile button. I put it just to the right of the properties button since I'm there all the time anyway. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Loss of Access 2007 Code Changes More problems at Mill... Helen Feddema just reported this in the latest edition of her Access Watch newsletter. Loss of Access 2007 Code Changes Recently, I have heard reports of code changes being lost in Access 2007 (and I have experienced it myself several times, especially when transferring databases to and from clients). It is a specific type of loss, where after making changes to database code, saving the code and closing the database, then the next time the database is opened the last saved change has been undone. If you made a backup of the database immediately after making the change, usually the backup database does have the last code change, so you can restore it. Or you may have saved your code to a text file or Word document, and then you can restore it from that document. What is going on with A2k7? Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 17 10:17:28 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 17 Mar 2010 11:17:28 -0400 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <42E9F815F638472EA5C9AA311465369E@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> <42E9F815F638472EA5C9AA311465369E@Server> Message-ID: <4BA0F288.30103@colbyconsulting.com> >I always compile/save after each change - it has become 2nd nature. AMEN! John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmm, now you mention it Dan and Darren, > > This has happened to me in A2003 but not for a very long time because I > always compile/save after each change - it has become 2nd nature. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, March 17, 2010 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Loss of Access 2007 Code Changes > > Hi Max, > > I've been seeing this for years in Access 2003. About 2003, I met a guy at > a trade show who was switching to VB.Net back then. He told me that Access > 'goes backward'. At the time I brushed that off, attributing his 'put down' > of Access to his decision to move to VB. I wished that I had asked for more > info at that time. > > I think that the problem is related to changing code while you are stepping > through it, then closing the database before you compiled and saved the > changes. I've been trying to remember to not change code until it's out of > break mode, and also to compile and save immediately after a code change. > > This has been very hard to 'get my hands around' - I couldn't prove to my > self that it wasn't me doing something wrong. It's really frustrating, and > some of these lost changes have made it into my customers systems, which is > frustrating for them. But a few weeks ago I had saved a copy of a database, > which later on I found had the changes I made, while the original database > did not. > > So my suggestion is to stop recoding in break mode, and compile and save > very frequently. > > To help compiling quickly, you should customize the Standard toolbar by > adding a Compile button. I put it just to the right of the properties > button since I'm there all the time anyway. > > Good Luck! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:59 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Loss of Access 2007 Code Changes > > > More problems at Mill... > > > > Helen Feddema just reported this in the latest edition of her Access Watch > newsletter. > > Loss of Access 2007 Code Changes > Recently, I have heard reports of code changes being lost in Access 2007 > (and I have experienced it myself several times, especially when > transferring databases to and from clients). It is a specific type of loss, > where after making changes to database code, saving the code and closing the > database, then the next time the database is opened the last saved change > has been undone. If you made a backup of the database immediately after > making the change, usually the backup database does have the last code > change, so you can restore it. Or you may have saved your code to a text > file or Word document, and then you can restore it from that document. > > What is going on with A2k7? > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Wed Mar 17 10:27:55 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Mar 2010 10:27:55 -0500 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <42E9F815F638472EA5C9AA311465369E@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> <42E9F815F638472EA5C9AA311465369E@Server> Message-ID: I pretty much always did. Maybe that's because I started programming in dBase, where the editor would suddenly decide it was full up and dump all your code. I got very careful about that. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 6:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Loss of Access 2007 Code Changes Hmm, now you mention it Dan and Darren, This has happened to me in A2003 but not for a very long time because I always compile/save after each change - it has become 2nd nature. Max From wdhindman at dejpolsystems.com Wed Mar 17 10:30:45 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 17 Mar 2010 11:30:45 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <000801cac5e3$0c3b4760$24b1d620$@com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc> <000801cac5e3$0c3b4760$24b1d620$@com> Message-ID: <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William From cfoust at infostatsystems.com Wed Mar 17 10:38:40 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Mar 2010 10:38:40 -0500 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc> <000801cac5e3$0c3b4760$24b1d620$@com> <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> Message-ID: What does CurrentProject.Path evaluate to? My suspicion would be that there's no \ after it as there needs to be before the filename. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 10:42:28 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 15:42:28 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com> <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> Message-ID: <73AEC315647142F5872875EFBB41A01C@Server> I would say that you need to stick a \ after the .path. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 3:31 PM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? ' MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- 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 Mar 17 10:44:26 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 17 Mar 2010 11:44:26 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc> <000801cac5e3$0c3b4760$24b1d620$@com> <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> Message-ID: CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 17 10:46:56 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Mar 2010 16:46:56 +0100 Subject: [AccessD] CurrentProject.Path syntax? Message-ID: Hi William I know that. It's the leading single quote! /gustav >>> wdhindman at dejpolsystems.com 17-03-2010 16:30 >>> ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William From max.wanadoo at gmail.com Wed Mar 17 10:49:20 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 15:49:20 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> Message-ID: <0ECE0613B7A24E859C4938F8CA87D874@Server> Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 10:50:08 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 15:50:08 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: Message-ID: <9AB7E60E35D14691B5604BA56C10B3FC@Server> I think he will smack you for that... Max Gustav cracking jokes...whatever next. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 17, 2010 3:47 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] CurrentProject.Path syntax? Hi William I know that. It's the leading single quote! /gustav >>> wdhindman at dejpolsystems.com 17-03-2010 16:30 >>> ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Wed Mar 17 11:15:38 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 17 Mar 2010 12:15:38 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: Message-ID: gustav ...I can always depend on you :) William -------------------------------------------------- From: "Gustav Brock" Sent: Wednesday, March 17, 2010 11:46 AM To: Subject: Re: [AccessD] CurrentProject.Path syntax? > Hi William > > I know that. It's the leading single quote! > > /gustav > > >>>> wdhindman at dejpolsystems.com 17-03-2010 16:30 >>> > ...the following two lines point to the same file ...but only line two > works > ...what is my befuddled mind missing this time? > > 'MetaDraw0.LoadPicture (CurrentProject.Path & > "MBCC_HallC_Spring_001a.mdp"), > 0, 0 > MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Wed Mar 17 11:16:55 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 17 Mar 2010 12:16:55 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <9AB7E60E35D14691B5604BA56C10B3FC@Server> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server> Message-ID: ...my arms are not quite long enough ...but it's the thought that counts :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Wednesday, March 17, 2010 11:50 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > > I think he will smack you for that... > > Max > Gustav cracking jokes...whatever next. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 17, 2010 3:47 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Hi William > > I know that. It's the leading single quote! > > /gustav > > >>>> wdhindman at dejpolsystems.com 17-03-2010 16:30 >>> > ...the following two lines point to the same file ...but only line two > works > ...what is my befuddled mind missing this time? > > 'MetaDraw0.LoadPicture (CurrentProject.Path & > "MBCC_HallC_Spring_001a.mdp"), > 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", > 0, 0 > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Mar 17 11:28:14 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 16:28:14 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: References: <9AB7E60E35D14691B5604BA56C10B3FC@Server> Message-ID: <68AACFC887D54257AD4D59A6122C8D5F@Server> Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max From Lambert.Heenan at chartisinsurance.com Wed Mar 17 11:29:13 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 17 Mar 2010 12:29:13 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <0ECE0613B7A24E859C4938F8CA87D874@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> <0ECE0613B7A24E859C4938F8CA87D874@Server> Message-ID: Indeed, and using Replace is about 4 times faster that the IF THEN test, but it must be rare that you need to shave 3,000 nanoseconds off the execution time. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 11:34:24 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 16:34:24 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev><0ECE0613B7A24E859C4938F8CA87D874@Server> Message-ID: Have to do it every second Lambert. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Indeed, and using Replace is about 4 times faster that the IF THEN test, but it must be rare that you need to shave 3,000 nanoseconds off the execution time. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 11:39:13 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 16:39:13 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev><0ECE0613B7A24E859C4938F8CA87D874@Server> Message-ID: <4FD3F4D53AAC4D63B3E092545B67F654@Server> Or, as my old mentor used to say...look after the nanoseconds and the seconds will look after themselves. Max ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Indeed, and using Replace is about 4 times faster that the IF THEN test, but it must be rare that you need to shave 3,000 nanoseconds off the execution time. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 17 11:58:59 2010 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 17 Mar 2010 11:58:59 -0500 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <4FD3F4D53AAC4D63B3E092545B67F654@Server> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev><0ECE0613B7A24E859C4938F8CA87D874@Server> <4FD3F4D53AAC4D63B3E092545B67F654@Server> Message-ID: <854E350551814E648511A923BD88B5F5@danwaters> Well - if your mentor was old that must have been true! :-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, as my old mentor used to say...look after the nanoseconds and the seconds will look after themselves. Max ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Indeed, and using Replace is about 4 times faster that the IF THEN test, but it must be rare that you need to shave 3,000 nanoseconds off the execution time. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 12:03:18 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 17:03:18 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <854E350551814E648511A923BD88B5F5@danwaters> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev><0ECE0613B7A24E859C4938F8CA87D874@Server><4FD3F4D53AAC4D63B3E092545B67F654@Server> <854E350551814E648511A923BD88B5F5@danwaters> Message-ID: Och Aye...many a mickle makes a muckle Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 17, 2010 4:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Well - if your mentor was old that must have been true! :-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, as my old mentor used to say...look after the nanoseconds and the seconds will look after themselves. Max ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 4:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Indeed, and using Replace is about 4 times faster that the IF THEN test, but it must be rare that you need to shave 3,000 nanoseconds off the execution time. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Or, Str = str & "\" Str = replace(str,"\\","\") Or, Just type a slash in. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 17, 2010 3:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CurrentProject.Path does not end with "\", which is why I keep this little function handy... Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function .. By using it I don't have to think about path terminators. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 17 12:07:19 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Mar 2010 12:07:19 -0500 Subject: [AccessD] Delete all reports and all forms In-Reply-To: <68AACFC887D54257AD4D59A6122C8D5F@Server> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server> <68AACFC887D54257AD4D59A6122C8D5F@Server> Message-ID: In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 12:13:27 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 17:13:27 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> Message-ID: Nope, Access wont let you delete from the forms or reports collection. Wonder if going through the mysys tables might do it....hmm Ma -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 17 12:14:34 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Mar 2010 12:14:34 -0500 Subject: [AccessD] Delete all reports and all forms In-Reply-To: References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> Message-ID: Have you tried ADO? I used to have code for this on my old machines but I've lost track of it in upgrades. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Nope, Access wont let you delete from the forms or reports collection. Wonder if going through the mysys tables might do it....hmm Ma -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 12:21:23 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 17:21:23 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> Message-ID: <25C7DB5777044509B9EFFB514838E3F2@Server> Aha, no I havent tried that Charlotte. Good pointer. Am wrapped up in something else at mo, but will try later. Many thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Have you tried ADO? I used to have code for this on my old machines but I've lost track of it in upgrades. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Nope, Access wont let you delete from the forms or reports collection. Wonder if going through the mysys tables might do it....hmm Ma -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 17 12:26:38 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Mar 2010 12:26:38 -0500 Subject: [AccessD] Delete all reports and all forms In-Reply-To: <25C7DB5777044509B9EFFB514838E3F2@Server> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> <25C7DB5777044509B9EFFB514838E3F2@Server> Message-ID: Use the ADODB.Catalog container. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Aha, no I havent tried that Charlotte. Good pointer. Am wrapped up in something else at mo, but will try later. Many thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Have you tried ADO? I used to have code for this on my old machines but I've lost track of it in upgrades. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Nope, Access wont let you delete from the forms or reports collection. Wonder if going through the mysys tables might do it....hmm Ma -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 12:39:03 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 17:39:03 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server><25C7DB5777044509B9EFFB514838E3F2@Server> Message-ID: Thanks - will do Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Use the ADODB.Catalog container. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Aha, no I havent tried that Charlotte. Good pointer. Am wrapped up in something else at mo, but will try later. Many thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Have you tried ADO? I used to have code for this on my old machines but I've lost track of it in upgrades. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 10:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Delete all reports and all forms Nope, Access wont let you delete from the forms or reports collection. Wonder if going through the mysys tables might do it....hmm Ma -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 17, 2010 5:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms In DAO, it should be pretty simple. Just refer to the forms or reports collection, start from the highest index in the collection and call delete. You have to work backwards to loop through all of them Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 9:28 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Mar 17 13:09:49 2010 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 17 Mar 2010 11:09:49 -0700 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> References: <4B9FE4EC.3040607@colbyconsulting.com> <01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <827D459C08664246B0A28125A0E4A399@danwaters> <86E93B9D727B4BF4B71AD0B238F45EE2@XPS> Message-ID: <8786a4c01003171109n3dad702bg98b059bf68485c4e@mail.gmail.com> Yes several bugs are still present, but hey, they have a new Fancy ribbon :) Glad to see where the priorities were for the development team. On Wed, Mar 17, 2010 at 6:46 AM, Jim Dettman wrote: > ?Nice to know that it's still going on even in 2007! > > Jim. From accessd at shaw.ca Wed Mar 17 13:15:55 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 11:15:55 -0700 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: References: Message-ID: <01010EC17D414144BA0C2A564F279742@creativesystemdesigns.com> In addition to Gustav's post here is some more about the new IE9 and its adoption and support of HTML 5 http://www.techradar.com/news/internet/web/the-lowdown-on-ie9-s-scalable-vec tor-graphics-677288 Please ignore the following if you are already conversant with graphics files as I will be preaching to the converted. The use of vector graphics is very exciting if you are an illustrator. There are basically two graphic types. Bitmap graphics which are created by such apps as Photoshop, Painter etc and Vector graphics (or SVG Scalable Vector Graphics) which are used by apps such as Illustrator, Flash and PS files. Most people easily understand bitmap graphics as it is just a blob drawing file. Vector graphics are illustrations saved and generated as math objects/equations. The core of this whole graphic type is the B-Spline curve. By applying the appropriate numbers every type of drawing object can be created...from lines, linestrings, curves, arcs, circles, ellipses and spirals. By adding the algorithms for width, transitions, transparency and fill it becomes a complete graphic set. Also the file no longer has to be 'flattened' like bitmap graphic files because layer or levels are just numbers so full 3D effects are easy to produce. This also means that a vector graphic illustration can be reduced or expanded to any size with no lost in resolution... from pin-point to billboard. Complex graphic files can be very small and even self-repairing. If you are an online gamer, in the future, it will not be necessary to download proprietary patches so you can hunt your favourite adversary as everything will be able to run through the browser. This is what makes this whole evolution so exciting. Can I go so far as to say it is about bloody time? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 17, 2010 4:12 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Did you just feel the Earth shift? Hi all The IE9 beta is here: http://ie.microsoft.com/testdrive/ It will not be available for Windows XP. /gustav >>> accessd at shaw.ca 17-03-2010 05:28 >>> Yes Kenneth, I had read it before, it is about time and it is excellent news. 8-) Here is another article on HTML5 that is worthy of reviewing: http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising _results_of_new_tests.php Add the addition news of: http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o n-the-web-20100315-q7g7.html ..And things are looking up. Jim From max.wanadoo at gmail.com Wed Mar 17 13:29:44 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 18:29:44 -0000 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: <01010EC17D414144BA0C2A564F279742@creativesystemdesigns.com> References: <01010EC17D414144BA0C2A564F279742@creativesystemdesigns.com> Message-ID: <9B5BDF7245CF44FE86A57D83E553E684@Server> Does this mean, Jim, that I can load really small, fast loading graphics onto a web page and IE9 will scale them for me to whatever size I want? How would that work? Good news. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, March 17, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Did you just feel the Earth shift? In addition to Gustav's post here is some more about the new IE9 and its adoption and support of HTML 5 http://www.techradar.com/news/internet/web/the-lowdown-on-ie9-s-scalable-vec tor-graphics-677288 Please ignore the following if you are already conversant with graphics files as I will be preaching to the converted. The use of vector graphics is very exciting if you are an illustrator. There are basically two graphic types. Bitmap graphics which are created by such apps as Photoshop, Painter etc and Vector graphics (or SVG Scalable Vector Graphics) which are used by apps such as Illustrator, Flash and PS files. Most people easily understand bitmap graphics as it is just a blob drawing file. Vector graphics are illustrations saved and generated as math objects/equations. The core of this whole graphic type is the B-Spline curve. By applying the appropriate numbers every type of drawing object can be created...from lines, linestrings, curves, arcs, circles, ellipses and spirals. By adding the algorithms for width, transitions, transparency and fill it becomes a complete graphic set. Also the file no longer has to be 'flattened' like bitmap graphic files because layer or levels are just numbers so full 3D effects are easy to produce. This also means that a vector graphic illustration can be reduced or expanded to any size with no lost in resolution... from pin-point to billboard. Complex graphic files can be very small and even self-repairing. If you are an online gamer, in the future, it will not be necessary to download proprietary patches so you can hunt your favourite adversary as everything will be able to run through the browser. This is what makes this whole evolution so exciting. Can I go so far as to say it is about bloody time? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 17, 2010 4:12 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Did you just feel the Earth shift? Hi all The IE9 beta is here: http://ie.microsoft.com/testdrive/ It will not be available for Windows XP. /gustav >>> accessd at shaw.ca 17-03-2010 05:28 >>> Yes Kenneth, I had read it before, it is about time and it is excellent news. 8-) Here is another article on HTML5 that is worthy of reviewing: http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising _results_of_new_tests.php Add the addition news of: http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o n-the-web-20100315-q7g7.html ..And things are looking up. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Mar 17 13:34:09 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 18 Mar 2010 00:04:09 +0530 Subject: [AccessD] Delete all reports and all forms References: <9AB7E60E35D14691B5604BA56C10B3FC@Server> <68AACFC887D54257AD4D59A6122C8D5F@Server> Message-ID: <039201cac600$8ac90550$3701a8c0@adtpc> Max, It can be done quite conveniently in DAO. For smooth deletion of all forms/reports, you have to do the deletion part outside the For Each loop. Sample procedure named P_DeleteAllForms() as given below, will remove all forms in the db. Just make sure that all forms are in closed state before running the subroutine. Similar procedure can be devised for deleting all reports. Best wishes, A.D. Tejpal ------------ ' Sample procedure for deleting all forms. '=========================== Sub P_DeleteAllForms() ' Before running this subroutine, ' pl. make sure that no form is in open state Dim obj As Object Dim Rtv As Variant, Cnt As Long ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next Set obj = Nothing End Sub '=============================== ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Wednesday, March 17, 2010 21:58 Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max From accessd at shaw.ca Wed Mar 17 13:36:30 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 11:36:30 -0700 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <001301cac5c9$0602ddf0$120899d0$@com> References: <4B9FE4EC.3040607@colbyconsulting.com> <01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> Message-ID: Hi Robert: Just a note; why are you using a filter when you are supplying the record source? I would use something like: ' This can be in the Form Load section Me.recordsource = GetTheSQLFile([CustometrID]) Where a Public function like the following would be in a module. Public Function GetTheSQLFile(strCustomerID as string) as string Dim strSQL as String strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], " & _ ... "WHERE Customer.[Customer ID] = " & strCustomerID & ";" GetTheSQLFile = strSQL End Function You will have to put a dummy query place holder in the Form recordsource properties so the Form doesn't get confused... of course you will just be over-writing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Wednesday, March 17, 2010 4:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 17 13:38:26 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 11:38:26 -0700 Subject: [AccessD] Big data for all In-Reply-To: <0C597425B1C94279BF0C222E2CA6B7B9@Server> References: <0C597425B1C94279BF0C222E2CA6B7B9@Server> Message-ID: <4F88124BDC13480F8C035DB96BCD2B96@creativesystemdesigns.com> Excellent link Max... thank for good read. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 6:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Big data for all some of you may be interested in this. http://techcrunch.com/2010/03/16/big-data-freedom/ Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 13:43:39 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 18:43:39 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: <039201cac600$8ac90550$3701a8c0@adtpc> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> <039201cac600$8ac90550$3701a8c0@adtpc> Message-ID: <1C5E27DC18024A8E8CBEF3C9DE38B762@Server> Aha, very clever. Lateral thinking again AD. Much appreciated. I will run that later. Cheers Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, March 17, 2010 6:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Max, It can be done quite conveniently in DAO. For smooth deletion of all forms/reports, you have to do the deletion part outside the For Each loop. Sample procedure named P_DeleteAllForms() as given below, will remove all forms in the db. Just make sure that all forms are in closed state before running the subroutine. Similar procedure can be devised for deleting all reports. Best wishes, A.D. Tejpal ------------ ' Sample procedure for deleting all forms. '=========================== Sub P_DeleteAllForms() ' Before running this subroutine, ' pl. make sure that no form is in open state Dim obj As Object Dim Rtv As Variant, Cnt As Long ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next Set obj = Nothing End Sub '=============================== ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Wednesday, March 17, 2010 21:58 Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 17 15:01:34 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 13:01:34 -0700 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com> <01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server> <62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> <21F31B819CB74F229C393F044FB47BB6@abpc> <000801cac5e3$0c3b4760$24b1d620$@com> <973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> Message-ID: <9F1AFC16A1954159B109203BEBAF50A0@creativesystemdesigns.com> Hi William: So what does CurrentPath resolve to?... "v:\JISWORKING\TMS\" You may have to pass the syntax through a variable like: strCurrentPath = trim(CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp") MetaDraw0.LoadPicture strCurrentPath This usually solves the problem. Also noted is you have curved brackets around the name in the first version which may indicate a return value from the MetaDraw0 class which may confuse the simple thing...? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 17, 2010 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CurrentProject.Path syntax? ...the following two lines point to the same file ...but only line two works ...what is my befuddled mind missing this time? 'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"), 0, 0 MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 17 15:12:56 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 13:12:56 -0700 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: <9B5BDF7245CF44FE86A57D83E553E684@Server> References: <01010EC17D414144BA0C2A564F279742@creativesystemdesigns.com> <9B5BDF7245CF44FE86A57D83E553E684@Server> Message-ID: <220B02D2458445F7975382483851E83F@creativesystemdesigns.com> I am honestly not sure Max but it can not be that hard. You can already scale a bitmaps Jpeg graphic file, displayed on a web site given: Prince Charming ...you can drop a few pounds by decreasing the width variable to say 180 pixels. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 11:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Did you just feel the Earth shift? Does this mean, Jim, that I can load really small, fast loading graphics onto a web page and IE9 will scale them for me to whatever size I want? How would that work? Good news. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, March 17, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Did you just feel the Earth shift? In addition to Gustav's post here is some more about the new IE9 and its adoption and support of HTML 5 http://www.techradar.com/news/internet/web/the-lowdown-on-ie9-s-scalable-vec tor-graphics-677288 Please ignore the following if you are already conversant with graphics files as I will be preaching to the converted. The use of vector graphics is very exciting if you are an illustrator. There are basically two graphic types. Bitmap graphics which are created by such apps as Photoshop, Painter etc and Vector graphics (or SVG Scalable Vector Graphics) which are used by apps such as Illustrator, Flash and PS files. Most people easily understand bitmap graphics as it is just a blob drawing file. Vector graphics are illustrations saved and generated as math objects/equations. The core of this whole graphic type is the B-Spline curve. By applying the appropriate numbers every type of drawing object can be created...from lines, linestrings, curves, arcs, circles, ellipses and spirals. By adding the algorithms for width, transitions, transparency and fill it becomes a complete graphic set. Also the file no longer has to be 'flattened' like bitmap graphic files because layer or levels are just numbers so full 3D effects are easy to produce. This also means that a vector graphic illustration can be reduced or expanded to any size with no lost in resolution... from pin-point to billboard. Complex graphic files can be very small and even self-repairing. If you are an online gamer, in the future, it will not be necessary to download proprietary patches so you can hunt your favourite adversary as everything will be able to run through the browser. This is what makes this whole evolution so exciting. Can I go so far as to say it is about bloody time? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 17, 2010 4:12 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Did you just feel the Earth shift? Hi all The IE9 beta is here: http://ie.microsoft.com/testdrive/ It will not be available for Windows XP. /gustav >>> accessd at shaw.ca 17-03-2010 05:28 >>> Yes Kenneth, I had read it before, it is about time and it is excellent news. 8-) Here is another article on HTML5 that is worthy of reviewing: http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising _results_of_new_tests.php Add the addition news of: http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o n-the-web-20100315-q7g7.html ..And things are looking up. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Mar 17 15:56:10 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Mar 2010 06:56:10 +1000 Subject: [AccessD] Loss of Access 2007 Code Changes In-Reply-To: <42E9F815F638472EA5C9AA311465369E@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, <827D459C08664246B0A28125A0E4A399@danwaters>, <42E9F815F638472EA5C9AA311465369E@Server> Message-ID: <4BA141EA.5540.1797D728@stuart.lexacorp.com.pg> No autosave in Break mode has been a feature of Access forever. But I've never lost code that I have explicitly saved and compiled - which is the way I always work having been bitten in the early days editing in Break.. It seems to me that this is a new problem in 2007. -- Stuart On 17 Mar 2010 at 13:42, Max Wanadoo wrote: > > So my suggestion is to stop recoding in break mode, and compile and save > very frequently. > From stuart at lexacorp.com.pg Wed Mar 17 16:07:12 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Mar 2010 07:07:12 +1000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <0ECE0613B7A24E859C4938F8CA87D874@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server> Message-ID: <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg> And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > From robert at servicexp.com Wed Mar 17 16:23:15 2010 From: robert at servicexp.com (Robert) Date: Wed, 17 Mar 2010 17:23:15 -0400 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <21F31B819CB74F229C393F044FB47BB6@abpc> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> <21F31B819CB74F229C393F044FB47BB6@abpc> Message-ID: <000001cac618$0f946a60$2ebd3f20$@com> Ok, Removed the vbCrLf's, but as suspected made no difference.. So strange.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, March 17, 2010 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert Sendt: 17. marts 2010 12:57 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Mar 17 16:27:05 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Mar 2010 07:27:05 +1000 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: <220B02D2458445F7975382483851E83F@creativesystemdesigns.com> References: , <9B5BDF7245CF44FE86A57D83E553E684@Server>, <220B02D2458445F7975382483851E83F@creativesystemdesigns.com> Message-ID: <4BA14929.25938.17B426ED@stuart.lexacorp.com.pg> Horses for courses. Bitmapped images (jpg,png,etc) will always be the preferred option for photographic type images with lots of colour depth. SVG is ideal for images which can be described in terms of straight and curved lines and shapes. Think of things like logos, graphs and charts, Google maps. The sort of thing you would use a GIF rather than a PNG for. These are generally much smaller in SVG than in any bitmapped format. With SVG, you don't need half a dozen different logo files in different sizes to use throughout your website. And you don't need lots of thumbnails to display small copies of fullsize images. The one file will render from a thumbnail to full page without any "jaggies". Just tell the browser how big a box to put it in. If you want to learn a bit about svg works, grab a copy of Inkscape from http://www.inkscape.org/ and play with it. -- Stuart On 17 Mar 2010 at 13:12, Jim Lawrence wrote. > I am honestly not sure Max but it can not be that hard. You can already > scale a bitmaps Jpeg graphic file, displayed on a web site given: > > Prince Charming height="133"> > > ...you can drop a few pounds by decreasing the width variable to say 180 > pixels. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 11:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > > Does this mean, Jim, that I can load really small, fast loading graphics > onto a web page and IE9 will scale them for me to whatever size I want? How > would that work? > > Good news. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Wednesday, March 17, 2010 6:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > In addition to Gustav's post here is some more about the new IE9 and its > adoption and support of HTML 5 > > http://www.techradar.com/news/internet/web/the-lowdown-on-ie9-s-scalable-vec > tor-graphics-677288 > > Please ignore the following if you are already conversant with graphics > files as I will be preaching to the converted. > > The use of vector graphics is very exciting if you are an illustrator. There > are basically two graphic types. Bitmap graphics which are created by such > apps as Photoshop, Painter etc and Vector graphics (or SVG Scalable Vector > Graphics) which are used by apps such as Illustrator, Flash and PS files. > Most people easily understand bitmap graphics as it is just a blob drawing > file. Vector graphics are illustrations saved and generated as math > objects/equations. > > The core of this whole graphic type is the B-Spline curve. By applying the > appropriate numbers every type of drawing object can be created...from > lines, linestrings, curves, arcs, circles, ellipses and spirals. By adding > the algorithms for width, transitions, transparency and fill it becomes a > complete graphic set. Also the file no longer has to be 'flattened' like > bitmap graphic files because layer or levels are just numbers so full 3D > effects are easy to produce. > > This also means that a vector graphic illustration can be reduced or > expanded to any size with no lost in resolution... from pin-point to > billboard. Complex graphic files can be very small and even self-repairing. > > If you are an online gamer, in the future, it will not be necessary to > download proprietary patches so you can hunt your favourite adversary as > everything will be able to run through the browser. > > This is what makes this whole evolution so exciting. Can I go so far as to > say it is about bloody time? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 17, 2010 4:12 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > Hi all > > The IE9 beta is here: > > http://ie.microsoft.com/testdrive/ > > It will not be available for Windows XP. > > /gustav > > > >>> accessd at shaw.ca 17-03-2010 05:28 >>> > Yes Kenneth, I had read it before, it is about time and it is excellent > news. 8-) > > Here is another article on HTML5 that is worthy of reviewing: > http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising > _results_of_new_tests.php > > Add the addition news of: > http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o > n-the-web-20100315-q7g7.html > > ..And things are looking up. > > Jim > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 16:45:53 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 21:45:53 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server> <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg> Message-ID: <6BA840870C4D4005B5DD866C4853452A@Server> Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Wed Mar 17 16:54:47 2010 From: robert at servicexp.com (Robert) Date: Wed, 17 Mar 2010 17:54:47 -0400 Subject: [AccessD] Need some Simple SQL help (Solved) In-Reply-To: <000001cac618$0f946a60$2ebd3f20$@com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> <21F31B819CB74F229C393F044FB47BB6@abpc> <000001cac618$0f946a60$2ebd3f20$@com> Message-ID: <000701cac61c$76abb970$64032c50$@com> Ok, Figured it out.. Apparently, while the forms .Filter function works when the form is set to Data Entry = true, the .RecordSource = strSQL does not. All that to find out that the forms .Filter function is much faster.. :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Wednesday, March 17, 2010 5:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Ok, Removed the vbCrLf's, but as suspected made no difference.. So strange.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, March 17, 2010 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert Sendt: 17. marts 2010 12:57 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Mar 17 17:00:14 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Mar 2010 08:00:14 +1000 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <000001cac618$0f946a60$2ebd3f20$@com> References: <4B9FE4EC.3040607@colbyconsulting.com>, <21F31B819CB74F229C393F044FB47BB6@abpc>, <000001cac618$0f946a60$2ebd3f20$@com> Message-ID: <4BA150EE.29996.17D27DC3@stuart.lexacorp.com.pg> The vbCRLFs would definitely have been causing a problem. Substituting "~!" for vbCrLf for visibilty: ..., Customer.[Last Name], " & vbCrLf & "Customer.Address1,... resolves to: ...,Customer.[Last Name],~!Customer.Address1,.... which should cause an error when you Access tries to resolve it as a recordsource. If you have correctly removed the vbCRLF part, you should have: ..., Customer.[Last Name], " & "Customer.Address1,... which resolves to: ...,Cutomer.[Last Name],Customer.Address1,.... Another possible problem - is CustomerID numeric? If not, you need to enclose ICID in quotes in the SQL string. -- Stuart On 17 Mar 2010 at 17:23, Robert wrote: > Ok, > Removed the vbCrLf's, but as suspected made no difference.. So strange.... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > Sent: Wednesday, March 17, 2010 8:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Need some Simple SQL help > > Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert > Sendt: 17. marts 2010 12:57 > Til: 'Access Developers discussion and problem solving' > Emne: [AccessD] Need some Simple SQL help > > Goal: Try to speed up the filter of a form with 2 subforms > > I'm trying to move to a specific record on the main form (and another > un-linked subform) from a record on a subform. The main form is based on a > saved query, and has it's "Data Entry" property set as YES. > > I can use this and it works: > > .Filter = "[Customer ID]=" & lCID > .FilterOn = True > > But If I try to use the SQL below and RecordSource it fails. > > strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], > Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ > "Customer.Address1, Customer.Address2, Customer.City, > Customer.Zip, Customer.HomePhone, " & vbCrLf & _ > "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, > Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ > "Customer.Ext3, Customer.Phone_Other, Customer.[Customer > Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ > "Customer.[Type of Terms], Customer.[Term Day], > Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ > "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses > PO], Customer.Active, Customer.State, " & vbCrLf & _ > "Customer.Advertizements, Customer.SpecNeeds, > Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ > "Customer.TentPerm, Customer.Landlord, Customer.Directions, > Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ > "Customer.Field1, Customer.Field4, Customer.Ext, > Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ > "Customer.Phone2Type, Customer.Phone3Type, > Customer.Phone4Type " & vbCrLf & _ > "FROM Customer " & vbCrLf & _ > "WHERE Customer.[Customer ID] =" & lCID > .RecordSource = strSQL > > Can you see what I'm doing wrong, and is this faster? > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Mar 17 17:07:27 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 22:07:27 -0000 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <000001cac618$0f946a60$2ebd3f20$@com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc> <000001cac618$0f946a60$2ebd3f20$@com> Message-ID: <758E66713AF54B71864AA0CEFA685B42@Server> Robert, Try putting the query into the querybuilder and see if it work. As below. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone,Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone,Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance,Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status],Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State,Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID,Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes,Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type FROM Customer" And enter the LCID in manually ' WHERE Customer.[Customer ID] =" & lCID If the query builder shows it ok, then put the parameter in using, say "Forms!MyForm!lCID" and test it again, if still ok, save it as as a querydef and use that as the recordsource. May work. Max Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 17 17:08:45 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 17 Mar 2010 22:08:45 -0000 Subject: [AccessD] Need some Simple SQL help (Solved) In-Reply-To: <000701cac61c$76abb970$64032c50$@com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net> <750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC> <001301cac5c9$0602ddf0$120899d0$@com> <21F31B819CB74F229C393F044FB47BB6@abpc><000001cac618$0f946a60$2ebd3f20$@com> <000701cac61c$76abb970$64032c50$@com> Message-ID: Aahh.. 2 mins too slow. Never mind - not much on TV anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Wednesday, March 17, 2010 9:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help (Solved) Ok, Figured it out.. Apparently, while the forms .Filter function works when the form is set to Data Entry = true, the .RecordSource = strSQL does not. All that to find out that the forms .Filter function is much faster.. :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Wednesday, March 17, 2010 5:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Ok, Removed the vbCrLf's, but as suspected made no difference.. So strange.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, March 17, 2010 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Need some Simple SQL help Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert Sendt: 17. marts 2010 12:57 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Need some Simple SQL help Goal: Try to speed up the filter of a form with 2 subforms I'm trying to move to a specific record on the main form (and another un-linked subform) from a record on a subform. The main form is based on a saved query, and has it's "Data Entry" property set as YES. I can use this and it works: .Filter = "[Customer ID]=" & lCID .FilterOn = True But If I try to use the SQL below and RecordSource it fails. strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ "Customer.Address1, Customer.Address2, Customer.City, Customer.Zip, Customer.HomePhone, " & vbCrLf & _ "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ "Customer.Ext3, Customer.Phone_Other, Customer.[Customer Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ "Customer.[Type of Terms], Customer.[Term Day], Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses PO], Customer.Active, Customer.State, " & vbCrLf & _ "Customer.Advertizements, Customer.SpecNeeds, Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ "Customer.TentPerm, Customer.Landlord, Customer.Directions, Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ "Customer.Field1, Customer.Field4, Customer.Ext, Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ "Customer.Phone2Type, Customer.Phone3Type, Customer.Phone4Type " & vbCrLf & _ "FROM Customer " & vbCrLf & _ "WHERE Customer.[Customer ID] =" & lCID .RecordSource = strSQL Can you see what I'm doing wrong, and is this faster? WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Wed Mar 17 18:29:43 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 17 Mar 2010 19:29:43 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <9F1AFC16A1954159B109203BEBAF50A0@creativesystemdesigns.com> References: <4B9FE4EC.3040607@colbyconsulting.com><01de01cac55f$9f364760$dda2d620$@net><750AB65803514375B2FDE0E629417FD5@Server><62670EA65D774ACAA930D28AE500006F@darrendPC><001301cac5c9$0602ddf0$120899d0$@com><21F31B819CB74F229C393F044FB47BB6@abpc><000801cac5e3$0c3b4760$24b1d620$@com><973CA61156CB4AEB8B3844D0E2E27B5A@jislaptopdev> <9F1AFC16A1954159B109203BEBAF50A0@creativesystemdesigns.com> Message-ID: <69BFB8005BAB47D9A4EF6DAED473A1F6@jislaptopdev> ...I just concatenated the "\" and it works ...AccessD saved my bacon again :) William -------------------------------------------------- From: "Jim Lawrence" Sent: Wednesday, March 17, 2010 4:01 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > Hi William: > > So what does CurrentPath resolve to?... "v:\JISWORKING\TMS\" > You may have to pass the syntax through a variable like: > > strCurrentPath = trim(CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp") > MetaDraw0.LoadPicture strCurrentPath > > This usually solves the problem. Also noted is you have curved brackets > around the name in the first version which may indicate a return value > from > the MetaDraw0 class which may confuse the simple thing...? > > HTH > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Wednesday, March 17, 2010 8:31 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] CurrentProject.Path syntax? > > ...the following two lines point to the same file ...but only line two > works > > ...what is my befuddled mind missing this time? > > 'MetaDraw0.LoadPicture (CurrentProject.Path & > "MBCC_HallC_Spring_001a.mdp"), > > 0, 0 > MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0 > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Wed Mar 17 20:57:18 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Mar 2010 18:57:18 -0700 Subject: [AccessD] OT: Did you just feel the Earth shift? In-Reply-To: <4BA14929.25938.17B426ED@stuart.lexacorp.com.pg> References: <9B5BDF7245CF44FE86A57D83E553E684@Server> <220B02D2458445F7975382483851E83F@creativesystemdesigns.com> <4BA14929.25938.17B426ED@stuart.lexacorp.com.pg> Message-ID: <135B490818BE46F2AFC737D79A6E06BD@creativesystemdesigns.com> That is a great link Stuart. I will keep that for future reference. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Did you just feel the Earth shift? Horses for courses. Bitmapped images (jpg,png,etc) will always be the preferred option for photographic type images with lots of colour depth. SVG is ideal for images which can be described in terms of straight and curved lines and shapes. Think of things like logos, graphs and charts, Google maps. The sort of thing you would use a GIF rather than a PNG for. These are generally much smaller in SVG than in any bitmapped format. With SVG, you don't need half a dozen different logo files in different sizes to use throughout your website. And you don't need lots of thumbnails to display small copies of fullsize images. The one file will render from a thumbnail to full page without any "jaggies". Just tell the browser how big a box to put it in. If you want to learn a bit about svg works, grab a copy of Inkscape from http://www.inkscape.org/ and play with it. -- Stuart On 17 Mar 2010 at 13:12, Jim Lawrence wrote. > I am honestly not sure Max but it can not be that hard. You can already > scale a bitmaps Jpeg graphic file, displayed on a web site given: > > Prince Charming height="133"> > > ...you can drop a few pounds by decreasing the width variable to say 180 > pixels. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 11:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > > Does this mean, Jim, that I can load really small, fast loading graphics > onto a web page and IE9 will scale them for me to whatever size I want? How > would that work? > > Good news. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Wednesday, March 17, 2010 6:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > In addition to Gustav's post here is some more about the new IE9 and its > adoption and support of HTML 5 > > http://www.techradar.com/news/internet/web/the-lowdown-on-ie9-s-scalable-vec > tor-graphics-677288 > > Please ignore the following if you are already conversant with graphics > files as I will be preaching to the converted. > > The use of vector graphics is very exciting if you are an illustrator. There > are basically two graphic types. Bitmap graphics which are created by such > apps as Photoshop, Painter etc and Vector graphics (or SVG Scalable Vector > Graphics) which are used by apps such as Illustrator, Flash and PS files. > Most people easily understand bitmap graphics as it is just a blob drawing > file. Vector graphics are illustrations saved and generated as math > objects/equations. > > The core of this whole graphic type is the B-Spline curve. By applying the > appropriate numbers every type of drawing object can be created...from > lines, linestrings, curves, arcs, circles, ellipses and spirals. By adding > the algorithms for width, transitions, transparency and fill it becomes a > complete graphic set. Also the file no longer has to be 'flattened' like > bitmap graphic files because layer or levels are just numbers so full 3D > effects are easy to produce. > > This also means that a vector graphic illustration can be reduced or > expanded to any size with no lost in resolution... from pin-point to > billboard. Complex graphic files can be very small and even self-repairing. > > If you are an online gamer, in the future, it will not be necessary to > download proprietary patches so you can hunt your favourite adversary as > everything will be able to run through the browser. > > This is what makes this whole evolution so exciting. Can I go so far as to > say it is about bloody time? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 17, 2010 4:12 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Did you just feel the Earth shift? > > Hi all > > The IE9 beta is here: > > http://ie.microsoft.com/testdrive/ > > It will not be available for Windows XP. > > /gustav > > > >>> accessd at shaw.ca 17-03-2010 05:28 >>> > Yes Kenneth, I had read it before, it is about time and it is excellent > news. 8-) > > Here is another article on HTML5 that is worthy of reviewing: > http://www.readwriteweb.com/archives/does_html5_really_beat_flash_surprising > _results_of_new_tests.php > > Add the addition news of: > http://www.theage.com.au/technology/enterprise/word-excel-powerpoint--free-o > n-the-web-20100315-q7g7.html > > ..And things are looking up. > > Jim > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Mar 17 23:07:48 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Thu, 18 Mar 2010 09:37:48 +0530 Subject: [AccessD] Delete all reports and all forms References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server><039201cac600$8ac90550$3701a8c0@adtpc> <1C5E27DC18024A8E8CBEF3C9DE38B762@Server> Message-ID: <001c01cac651$7277e0b0$3701a8c0@adtpc> You are most welcome Max! Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Thursday, March 18, 2010 00:13 Subject: Re: [AccessD] Delete all reports and all forms Aha, very clever. Lateral thinking again AD. Much appreciated. I will run that later. Cheers Max From Gustav at cactus.dk Thu Mar 18 04:10:05 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Mar 2010 10:10:05 +0100 Subject: [AccessD] CurrentProject.Path syntax? Message-ID: Hi Max This thread demonstrates yet another reason to turn to something more clever. In Visual Studio (dotNet) this is done in one line which tells it all: someFile = Path.Combine(somePath, someFileName); freeing your valuable time from low-level stuff like if a backslash is present or not. /gustav >>> max.wanadoo at gmail.com 17-03-2010 22:45 >>> Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max From Gustav at cactus.dk Thu Mar 18 04:56:59 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Mar 2010 10:56:59 +0100 Subject: [AccessD] OT: Microsoft Live Mesh Message-ID: Hi all Woody's Office Watch brought my attention to the Microsoft Mesh beta which offers free 5 GB cloud disk space, sync of files between invited computers (including Macs), and remote control of these (Windows only, like Remote Desktop) across firewalls: https://www.mesh.com All that is needed is, of course, a Windows Live account. /gustav From max.wanadoo at gmail.com Thu Mar 18 04:57:16 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 09:57:16 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: Message-ID: <1172DD94031847ACAAB0CDEC526EC822@Server> Gustav, Ah yes, you are correct BUT I have started to set up a little CLASS to handle these and will have the same functionality. After all .net is just a collection of these little classes. I thank you....Max Here is the test: Sub test1() Dim cls As New clsFolders Dim spath As String spath = cls.libCurrentFolder(CurrentProject.Path) & "MyPic.jpg" Debug.Print spath Debug.Print CurDir, CurrentProject.Path Call cls.libSetCurPathToProjectPath Debug.Print CurDir, CurrentProject.Path Call cls.libResetCurPathFromProjectPath Debug.Print CurDir, CurrentProject.Path End Sub And here is the CLASS: Option Compare Database Option Explicit Public libStrProjPath As String, libStrProjDrive As String, libStrCurPath As String, libStrCurDrive As String Public Function libCurrentFolder(strIn As String) As String ' this function ensures that there is a trailing backslash (\) at then end of a path. ' useful when appending a file name to, say currentproject.path ' example of use: MyFile = clsFolder.libCurrentFolder(CurrentProject.Path) & "MyPic.jpg" Dim strL As String, strR As String strL = Left(strIn, 2) strR = Replace(Mid(strIn, 3) & "\", "\\", "\") libCurrentFolder = strL & strR End Function Public Sub libSetCurPathToProjectPath() ' Declare the varibles as public so that they can be retained for re-setting back. ' this is used when there is a need to Shell out to a (say) a batch file located in the same ' folder as the application but you don't want to have to put the full path in for the ' system application which will be invoked by the (say) batch file and prefer to let the ' OS itself locate the object. If you do not set the path before hand then typically you will ' have the Current Drive DIFFERENT to the Project Path Drive. ' This will line them up. It is used in conjunction with libResetCurPathFromProjectPath ' get the project location: libStrProjPath = CurrentProject.Path: libStrProjDrive = Left(libStrProjPath, 1) ' get the current location libStrCurPath = CurDir: libStrCurDrive = Left(libStrCurPath, 1) ' change the current location to the project location so that we can run the blat.exe via the batch.bat file etc ChDrive libStrProjDrive: ChDir libStrProjPath End Sub Public Sub libResetCurPathFromProjectPath() ' this is the counterpart to libSetCurPathToProjectPath() ' now restore the current location back to what it was. ChDrive libStrCurDrive ChDir libStrCurPath End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 18, 2010 9:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] CurrentProject.Path syntax? Hi Max This thread demonstrates yet another reason to turn to something more clever. In Visual Studio (dotNet) this is done in one line which tells it all: someFile = Path.Combine(somePath, someFileName); freeing your valuable time from low-level stuff like if a backslash is present or not. /gustav >>> max.wanadoo at gmail.com 17-03-2010 22:45 >>> Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 18 05:08:36 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Mar 2010 11:08:36 +0100 Subject: [AccessD] CurrentProject.Path syntax? Message-ID: Hi Max True, no rocket science, and I guess we all have similar functions and classes around, but haven't you sometimes felt a bit like you were reinventing the wheel? /gustav >>> max.wanadoo at gmail.com 18-03-2010 10:57 >>> Gustav, Ah yes, you are correct BUT I have started to set up a little CLASS to handle these and will have the same functionality. After all .net is just a collection of these little classes. I thank you....Max From max.wanadoo at gmail.com Thu Mar 18 05:15:23 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 10:15:23 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: Message-ID: Yes,many, many times. Doing it right now as it happens..c'est la vie.. The problem is that I never know where I put it - I have a faint memory but old age conspires against my memory. So, I rewrite it. I am now compiling my Library....long overdue. When finish it will outshine .Net Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 18, 2010 10:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] CurrentProject.Path syntax? Hi Max True, no rocket science, and I guess we all have similar functions and classes around, but haven't you sometimes felt a bit like you were reinventing the wheel? /gustav >>> max.wanadoo at gmail.com 18-03-2010 10:57 >>> Gustav, Ah yes, you are correct BUT I have started to set up a little CLASS to handle these and will have the same functionality. After all .net is just a collection of these little classes. I thank you....Max -- 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 Mar 18 07:54:42 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 18 Mar 2010 08:54:42 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <6BA840870C4D4005B5DD866C4853452A@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server> <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg> <6BA840870C4D4005B5DD866C4853452A@Server> Message-ID: Good point from Stuart. I think I'll stick with my little function. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 18 08:12:16 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 13:12:16 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server> Message-ID: <44A77D3FF3524568A998CB5E1627DB54@Server> But the sample below works a lot better and handles UNC : str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Go on. Be a Devil. Move to the 21st Century!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 12:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Good point from Stuart. I think I'll stick with my little function. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 18 08:42:23 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 18 Mar 2010 09:42:23 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <44A77D3FF3524568A998CB5E1627DB54@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server> <44A77D3FF3524568A998CB5E1627DB54@Server> Message-ID: My function handles UNC paths from the get go. And UNCs are very much 20th century. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? But the sample below works a lot better and handles UNC : str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Go on. Be a Devil. Move to the 21st Century!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 12:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Good point from Stuart. I think I'll stick with my little function. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 18 08:50:23 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 13:50:23 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server> Message-ID: <354E82FFD4AF49AB9246FC65DD7D1A6E@Server> Are you saying:- A. mine doesn't B. mine is 20th century too. Co'mon now. Don't beat about the bush...out with it... Answers: A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. So there! C. Mine adheres to the CRAB principle invented by yours truly (Clear, Relevant, Accurate and Brief). There we go...over and out.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 1:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? My function handles UNC paths from the get go. And UNCs are very much 20th century. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? But the sample below works a lot better and handles UNC : str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Go on. Be a Devil. Move to the 21st Century!! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 12:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Good point from Stuart. I think I'll stick with my little function. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 17, 2010 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Bit more complicated. str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, March 17, 2010 9:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? And what happens when it is a UNC path? Str = "\\Server\Share\" :-( -- Stuart On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > Str = str & "\" > Str = replace(str,"\\","\") > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 18 09:05:49 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 18 Mar 2010 10:05:49 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <354E82FFD4AF49AB9246FC65DD7D1A6E@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server> <354E82FFD4AF49AB9246FC65DD7D1A6E@Server> Message-ID: CRAB eh? I maintain that this code Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function Is thoroughly self documenting and orders of magnitude clearer than str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR In fact I'd go as far as to suggest that those few lines of VB code are almost as cryptic as some c/c++ code I have reviewed in the past. The C family has a well deserved reputation of being a write-only language. Well in the hands of some programmers. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Are you saying:- A. mine doesn't B. mine is 20th century too. Co'mon now. Don't beat about the bush...out with it... Answers: A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. So there! C. Mine adheres to the CRAB principle invented by yours truly (Clear, Relevant, Accurate and Brief). There we go...over and out.... Max From max.wanadoo at gmail.com Thu Mar 18 09:56:13 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 14:56:13 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server> Message-ID: <0DF8E55B851C441FA88CCC446CBB7A54@Server> Sigh... str = str & IIf(Right(str, 1) = "\", "", "\") Easy peasy - one liner. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 2:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CRAB eh? I maintain that this code Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function Is thoroughly self documenting and orders of magnitude clearer than str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR In fact I'd go as far as to suggest that those few lines of VB code are almost as cryptic as some c/c++ code I have reviewed in the past. The C family has a well deserved reputation of being a write-only language. Well in the hands of some programmers. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Are you saying:- A. mine doesn't B. mine is 20th century too. Co'mon now. Don't beat about the bush...out with it... Answers: A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. So there! C. Mine adheres to the CRAB principle invented by yours truly (Clear, Relevant, Accurate and Brief). There we go...over and out.... Max -- 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 Mar 18 10:49:43 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 18 Mar 2010 11:49:43 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <0DF8E55B851C441FA88CCC446CBB7A54@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server> <0DF8E55B851C441FA88CCC446CBB7A54@Server> Message-ID: Double deep sigh.... You know there used to be a contest in c-programmers land (might still be running) on who could put the greatest amount of functionality into a "one-liner" function. Lots of fun I'm sure, but still the code is obscure - hence the term write-only language, one where even the coder can't figure out what code does when returning to it after some time. So iif() is a one liner, where If Then Else takes five. Back in the days of 48k RAM machines that difference was significant, but not any more. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Sigh... str = str & IIf(Right(str, 1) = "\", "", "\") Easy peasy - one liner. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 2:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CRAB eh? I maintain that this code Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function Is thoroughly self documenting and orders of magnitude clearer than str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR In fact I'd go as far as to suggest that those few lines of VB code are almost as cryptic as some c/c++ code I have reviewed in the past. The C family has a well deserved reputation of being a write-only language. Well in the hands of some programmers. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Are you saying:- A. mine doesn't B. mine is 20th century too. Co'mon now. Don't beat about the bush...out with it... Answers: A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. So there! C. Mine adheres to the CRAB principle invented by yours truly (Clear, Relevant, Accurate and Brief). There we go...over and out.... Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 18 10:55:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 15:55:25 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server><0DF8E55B851C441FA88CCC446CBB7A54@Server> Message-ID: I thought the contest was about how many double-double-deep-sighs you could get into 4Gb of memory!! Ok, we will stop there. Good fun though. Max Ps. Don't forget all those nono-seconds being saved... Pps.My fondest memories of "back-when" was on the commodor PET with the peeks and pokes trying to get as much as pos into avail mem. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 3:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Double deep sigh.... You know there used to be a contest in c-programmers land (might still be running) on who could put the greatest amount of functionality into a "one-liner" function. Lots of fun I'm sure, but still the code is obscure - hence the term write-only language, one where even the coder can't figure out what code does when returning to it after some time. So iif() is a one liner, where If Then Else takes five. Back in the days of 48k RAM machines that difference was significant, but not any more. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Sigh... str = str & IIf(Right(str, 1) = "\", "", "\") Easy peasy - one liner. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 2:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? CRAB eh? I maintain that this code Public Function QualifyPath(sPath As String) As String If sPath & "" > "" Then If right$(sPath, 1) = "\" Then QualifyPath = sPath Else QualifyPath = sPath & "\" End If End If End Function Is thoroughly self documenting and orders of magnitude clearer than str = "\\svr\c\" strL = Left(str, 2) strR = Replace(Mid(str, 3) & "\", "\\", "\") str = strL & strR In fact I'd go as far as to suggest that those few lines of VB code are almost as cryptic as some c/c++ code I have reviewed in the past. The C family has a well deserved reputation of being a write-only language. Well in the hands of some programmers. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? Are you saying:- A. mine doesn't B. mine is 20th century too. Co'mon now. Don't beat about the bush...out with it... Answers: A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. So there! C. Mine adheres to the CRAB principle invented by yours truly (Clear, Relevant, Accurate and Brief). There we go...over and out.... Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Mar 18 11:02:36 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 18 Mar 2010 12:02:36 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server><0DF8E55B851C441FA88CCC446CBB7A54@Server> Message-ID: Didn't you just love saving/loading code to/from compact cassette! :-))))))))))))) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? I thought the contest was about how many double-double-deep-sighs you could get into 4Gb of memory!! Ok, we will stop there. Good fun though. Max Ps. Don't forget all those nono-seconds being saved... Pps.My fondest memories of "back-when" was on the commodor PET with the peeks and pokes trying to get as much as pos into avail mem. From max.wanadoo at gmail.com Thu Mar 18 11:07:06 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 16:07:06 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server><0DF8E55B851C441FA88CCC446CBB7A54@Server> Message-ID: Lambert, you JUST know the answer to that...and then 30 secs from end it throws a wobbly... My favourite game on Commodore-64 was on a cassette...loved the game, but getting it to load...oh, dear where are my suicide pills. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 18, 2010 4:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? Didn't you just love saving/loading code to/from compact cassette! :-))))))))))))) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? I thought the contest was about how many double-double-deep-sighs you could get into 4Gb of memory!! Ok, we will stop there. Good fun though. Max Ps. Don't forget all those nono-seconds being saved... Pps.My fondest memories of "back-when" was on the commodor PET with the peeks and pokes trying to get as much as pos into avail mem. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 18 11:21:39 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 16:21:39 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: <039201cac600$8ac90550$3701a8c0@adtpc> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server> <039201cac600$8ac90550$3701a8c0@adtpc> Message-ID: AD, There were some problems with the code so I am posting back what I ended up with. Once again, for me, Access did not like deleting the Forms, so I just had to jump around the error (as shown). Also a test for zero Forms. Any thoughts on the error? Max Public Function libDeleteLocalForms() On Error GoTo EH Dim obj As Object, Rtv As Variant, Cnt As Long If CurrentProject.AllForms.Count > 0 Then ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms DoCmd.Close acForm, obj.Name Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next End If EX: Set obj = Nothing Exit Function EH: Select Case Err.Number Case 29068 Resume Next Case Else MsgBox "Error: " & Err.Number & vbCrLf & Err.Description Resume EX End Select End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Wednesday, March 17, 2010 6:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Max, It can be done quite conveniently in DAO. For smooth deletion of all forms/reports, you have to do the deletion part outside the For Each loop. Sample procedure named P_DeleteAllForms() as given below, will remove all forms in the db. Just make sure that all forms are in closed state before running the subroutine. Similar procedure can be devised for deleting all reports. Best wishes, A.D. Tejpal ------------ ' Sample procedure for deleting all forms. '=========================== Sub P_DeleteAllForms() ' Before running this subroutine, ' pl. make sure that no form is in open state Dim obj As Object Dim Rtv As Variant, Cnt As Long ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next Set obj = Nothing End Sub '=============================== ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Wednesday, March 17, 2010 21:58 Subject: [AccessD] Delete all reports and all forms Anybody know how to loop through and delete all reports and all forms. It seems that Access will not let you delete from the collections. Must be a programmable way but never done it before. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Mar 18 11:48:16 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 18 Mar 2010 12:48:16 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <354E82FFD4AF49AB9246FC65DD7D1A6E@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server> <354E82FFD4AF49AB9246FC65DD7D1A6E@Server> Message-ID: ...whatever it is you're drinking, smoking, ingesting, or injecting ...I want some :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 9:50 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > Are you saying:- > > A. mine doesn't > B. mine is 20th century too. > > Co'mon now. Don't beat about the bush...out with it... > > Answers: > A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. > So > there! > C. Mine adheres to the CRAB principle invented by yours truly (Clear, > Relevant, Accurate and Brief). > > There we go...over and out.... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, March 18, 2010 1:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > My function handles UNC paths from the get go. And UNCs are very much 20th > century. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 18, 2010 9:12 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > But the sample below works a lot better and handles UNC : > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Go on. Be a Devil. Move to the 21st Century!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, March 18, 2010 12:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Good point from Stuart. I think I'll stick with my little function. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > Bit more complicated. > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, March 17, 2010 9:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > And what happens when it is a UNC path? > > Str = "\\Server\Share\" > > :-( > > -- > Stuart > > On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > >> Str = str & "\" >> Str = replace(str,"\\","\") >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Thu Mar 18 11:55:44 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 18 Mar 2010 11:55:44 -0500 Subject: [AccessD] OT:ScreenSavers In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> Message-ID: Sorry for the delayed response. Just do a search for *.scr. That is the extension of a screen saver. However, .scr's are actually just renamed .exe's, so you won't find a filed full of pictures. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, March 14, 2010 12:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:ScreenSavers Anybody know where I can find the location of the screen savers in Windows 7? I particularly want to look at the background pictures called "United Kingdom" which has a great picture of the Tower of London. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 Thu Mar 18 12:01:01 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 18 Mar 2010 12:01:01 -0500 Subject: [AccessD] UNION slowness In-Reply-To: References: Message-ID: Did this fix the problem for you JWC? If not, it sounds like this is in Access, make sure that your SQL is SQL Server friendly, so it's passthrough. Otherwise Access is going to want to work on the data. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 15, 2010 10:02 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] UNION slowness Hi John How about using UNION ALL? Without the ALL it performs a default DISTINCT which may be very slow. /gustav >>> jwcolby at colbyconsulting.com 15-03-2010 15:51 >>> I have always done a UNION to get a combo list with *; All as the first item in a combo of other items. PKID, Client or PKID, Product etc. These unions are takling as looooooong time (many seconds) when going against a SQL database. Not sure why because the actual data itself is almost instant, it is just when unioned with my other piece it takes forever to get the result set. Strange. I could do a custom callback but it takes me forever to figure out the callback crap, and I just generally hate them. I wanted to do a value list since the lists are short, but AFAICT the list value function has to be interpreted and dumped in to the property in OnEnter and the like. Clumsey, particularly when one combo depends on (is filtered by) another list (products filtered by client etc). Any words of wisdom on this? Something I have forgotten or never knew? -- John W. Colby www.ColbyConsulting.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 max.wanadoo at gmail.com Thu Mar 18 12:02:07 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 17:02:07 -0000 Subject: [AccessD] OT:ScreenSavers In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> Message-ID: No, in Win 7 they are completely different. Just checked and they are all protected mysteriously with copyright by MS et all. Not your normal screen saver stuff but the stuff under Personalize/Themes. If you download new ones you can click and they get installed but you cannot get your hands on them AFAICT. The Avatar ones are good and the Tigers and the UK and the.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 18, 2010 4:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:ScreenSavers Sorry for the delayed response. Just do a search for *.scr. That is the extension of a screen saver. However, .scr's are actually just renamed .exe's, so you won't find a filed full of pictures. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, March 14, 2010 12:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:ScreenSavers Anybody know where I can find the location of the screen savers in Windows 7? I particularly want to look at the background pictures called "United Kingdom" which has a great picture of the Tower of London. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 max.wanadoo at gmail.com Thu Mar 18 12:02:31 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 17:02:31 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server> Message-ID: <186ADDBBE52D4B028D47DA9B21C8B086@Server> Lambert, obviously for you... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 18, 2010 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CurrentProject.Path syntax? ...whatever it is you're drinking, smoking, ingesting, or injecting ...I want some :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 9:50 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > Are you saying:- > > A. mine doesn't > B. mine is 20th century too. > > Co'mon now. Don't beat about the bush...out with it... > > Answers: > A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. > So > there! > C. Mine adheres to the CRAB principle invented by yours truly (Clear, > Relevant, Accurate and Brief). > > There we go...over and out.... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, March 18, 2010 1:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > My function handles UNC paths from the get go. And UNCs are very much > 20th century. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 18, 2010 9:12 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > But the sample below works a lot better and handles UNC : > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Go on. Be a Devil. Move to the 21st Century!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, March 18, 2010 12:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Good point from Stuart. I think I'll stick with my little function. > :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > Bit more complicated. > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, March 17, 2010 9:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > And what happens when it is a UNC path? > > Str = "\\Server\Share\" > > :-( > > -- > Stuart > > On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > >> Str = str & "\" >> Str = replace(str,"\\","\") >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Mar 18 12:09:45 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 18 Mar 2010 12:09:45 -0500 Subject: [AccessD] OT:ScreenSavers In-Reply-To: References: <29f585dd1003110642o16eb4e20n3640fdcc222962ed@mail.gmail.com><76AFC23B042048A69C073D04559AD86F@creativesystemdesigns.com> Message-ID: That's just Windows 7's security. It's not insurmountable, it is much better at protecting external intruders and pretty good and preventing user 'bumbling' (meddling maliciously without the intent...;) ). You need to turn off the setting that hides protected system files. OR, boot up with a BootPE disk, and just browse through your files. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 18, 2010 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:ScreenSavers No, in Win 7 they are completely different. Just checked and they are all protected mysteriously with copyright by MS et all. Not your normal screen saver stuff but the stuff under Personalize/Themes. If you download new ones you can click and they get installed but you cannot get your hands on them AFAICT. The Avatar ones are good and the Tigers and the UK and the.... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 18, 2010 4:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:ScreenSavers Sorry for the delayed response. Just do a search for *.scr. That is the extension of a screen saver. However, .scr's are actually just renamed .exe's, so you won't find a filed full of pictures. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Sunday, March 14, 2010 12:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:ScreenSavers Anybody know where I can find the location of the screen savers in Windows 7? I particularly want to look at the background pictures called "United Kingdom" which has a great picture of the Tower of London. Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 -- 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 wdhindman at dejpolsystems.com Thu Mar 18 12:00:54 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 18 Mar 2010 13:00:54 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <0DF8E55B851C441FA88CCC446CBB7A54@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server> <0DF8E55B851C441FA88CCC446CBB7A54@Server> Message-ID: <032730F985C24AE6A3ACAFB8E0F55940@jislaptopdev> ...but your IIf forces a compare of every condition, Lambert's function doesn't ...nanosecs, I know ...but still William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 10:56 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > > Sigh... > > str = str & IIf(Right(str, 1) = "\", "", "\") > > Easy peasy - one liner. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, March 18, 2010 2:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > CRAB eh? > > I maintain that this code > > Public Function QualifyPath(sPath As String) As String > If sPath & "" > "" Then > If right$(sPath, 1) = "\" Then > QualifyPath = sPath > Else > QualifyPath = sPath & "\" > End If > End If > End Function > > Is thoroughly self documenting and orders of magnitude clearer than > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > In fact I'd go as far as to suggest that those few lines of VB code are > almost as cryptic as some c/c++ code I have reviewed in the past. The C > family has a well deserved reputation of being a write-only language. Well > in the hands of some programmers. :-) > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 18, 2010 9:50 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Are you saying:- > > A. mine doesn't > B. mine is 20th century too. > > Co'mon now. Don't beat about the bush...out with it... > > Answers: > A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. > So > there! > C. Mine adheres to the CRAB principle invented by yours truly (Clear, > Relevant, Accurate and Brief). > > There we go...over and out.... > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Mar 18 12:20:58 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 17:20:58 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <032730F985C24AE6A3ACAFB8E0F55940@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server><0DF8E55B851C441FA88CCC446CBB7A54@Server> <032730F985C24AE6A3ACAFB8E0F55940@jislaptopdev> Message-ID: You mean EVERY condition. All ONE of them...gee, some overhead. As opposed to if..then...else...endif Now, if you had of used my code in your problem, you wouldn't have had to post it, now would you? Mypath = currentproject.path & IIf(Right(currentproject.path, 1) = "\", "", "\") & "mygraphic.jpg" Or if you saved as a function Mypath = MyFunc(currentproject.path) & "mygraphic.jpg" There we go... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 18, 2010 5:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? ...but your IIf forces a compare of every condition, Lambert's function doesn't ...nanosecs, I know ...but still William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 10:56 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > > Sigh... > > str = str & IIf(Right(str, 1) = "\", "", "\") > > Easy peasy - one liner. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, March 18, 2010 2:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > CRAB eh? > > I maintain that this code > > Public Function QualifyPath(sPath As String) As String > If sPath & "" > "" Then > If right$(sPath, 1) = "\" Then > QualifyPath = sPath > Else > QualifyPath = sPath & "\" > End If > End If > End Function > > Is thoroughly self documenting and orders of magnitude clearer than > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > In fact I'd go as far as to suggest that those few lines of VB code > are almost as cryptic as some c/c++ code I have reviewed in the past. > The C family has a well deserved reputation of being a write-only > language. Well in the hands of some programmers. :-) > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, March 18, 2010 9:50 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Are you saying:- > > A. mine doesn't > B. mine is 20th century too. > > Co'mon now. Don't beat about the bush...out with it... > > Answers: > A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. > So > there! > C. Mine adheres to the CRAB principle invented by yours truly (Clear, > Relevant, Accurate and Brief). > > There we go...over and out.... > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Mar 18 12:41:39 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 18 Mar 2010 13:41:39 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><354E82FFD4AF49AB9246FC65DD7D1A6E@Server><0DF8E55B851C441FA88CCC446CBB7A54@Server><032730F985C24AE6A3ACAFB8E0F55940@jislaptopdev> Message-ID: <2F80295AAC744BB39F60355C734E1D65@jislaptopdev> there you go :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 1:20 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > > You mean EVERY condition. All ONE of them...gee, some overhead. > > As opposed to if..then...else...endif > > Now, if you had of used my code in your problem, you wouldn't have had to > post it, now would you? > > Mypath = currentproject.path & IIf(Right(currentproject.path, 1) = "\", > "", > "\") & "mygraphic.jpg" > > Or if you saved as a function > > Mypath = MyFunc(currentproject.path) & "mygraphic.jpg" > > There we go... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, March 18, 2010 5:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > ...but your IIf forces a compare of every condition, Lambert's function > doesn't ...nanosecs, I know ...but still > > William > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Thursday, March 18, 2010 10:56 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] CurrentProject.Path syntax? > >> >> Sigh... >> >> str = str & IIf(Right(str, 1) = "\", "", "\") >> >> Easy peasy - one liner. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Thursday, March 18, 2010 2:06 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] CurrentProject.Path syntax? >> >> CRAB eh? >> >> I maintain that this code >> >> Public Function QualifyPath(sPath As String) As String >> If sPath & "" > "" Then >> If right$(sPath, 1) = "\" Then >> QualifyPath = sPath >> Else >> QualifyPath = sPath & "\" >> End If >> End If >> End Function >> >> Is thoroughly self documenting and orders of magnitude clearer than >> >> str = "\\svr\c\" >> strL = Left(str, 2) >> strR = Replace(Mid(str, 3) & "\", "\\", "\") >> str = strL & strR >> >> In fact I'd go as far as to suggest that those few lines of VB code >> are almost as cryptic as some c/c++ code I have reviewed in the past. >> The C family has a well deserved reputation of being a write-only >> language. Well in the hands of some programmers. :-) >> >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >> Sent: Thursday, March 18, 2010 9:50 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] CurrentProject.Path syntax? >> >> Are you saying:- >> >> A. mine doesn't >> B. mine is 20th century too. >> >> Co'mon now. Don't beat about the bush...out with it... >> >> Answers: >> A. Mine does UNCs better than yours. Stamps foot and sticks tongue out. >> So >> there! >> C. Mine adheres to the CRAB principle invented by yours truly (Clear, >> Relevant, Accurate and Brief). >> >> There we go...over and out.... >> >> Max >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jedi at charm.net Thu Mar 18 12:59:06 2010 From: jedi at charm.net (Michael Bahr) Date: Thu, 18 Mar 2010 13:59:06 -0400 (EDT) Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <44A77D3FF3524568A998CB5E1627DB54@Server> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server> <44A77D3FF3524568A998CB5E1627DB54@Server> Message-ID: <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> 21st Century is using regular expressions! }:p> Mike... > > But the sample below works a lot better and handles UNC : > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Go on. Be a Devil. Move to the 21st Century!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, March 18, 2010 12:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Good point from Stuart. I think I'll stick with my little function. :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > Bit more complicated. > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, March 17, 2010 9:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > And what happens when it is a UNC path? > > Str = "\\Server\Share\" > > :-( > > -- > Stuart > > On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > >> Str = str & "\" >> Str = replace(str,"\\","\") >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Mar 18 13:27:39 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 18:27:39 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server> <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> Message-ID: <20721038567E4AB0A7AA32D80FFD8E2E@Server> > 21st Century is using regular expressions! Sorted... http://xkcd.com/208/ Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Thursday, March 18, 2010 5:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? 21st Century is using regular expressions! }:p> Mike... > > But the sample below works a lot better and handles UNC : > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Go on. Be a Devil. Move to the 21st Century!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, March 18, 2010 12:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Good point from Stuart. I think I'll stick with my little function. > :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > Bit more complicated. > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, March 17, 2010 9:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > And what happens when it is a UNC path? > > Str = "\\Server\Share\" > > :-( > > -- > Stuart > > On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > >> Str = str & "\" >> Str = replace(str,"\\","\") >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Thu Mar 18 13:35:46 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 19 Mar 2010 00:05:46 +0530 Subject: [AccessD] Delete all reports and all forms References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server><039201cac600$8ac90550$3701a8c0@adtpc> Message-ID: <006501cac6c9$ea608280$3701a8c0@adtpc> Max, While trying to close the open forms, prior to deletion, it would be desirable to do so via the Forms collection and not AllForms collection. This way your code would not be attempting to close already closed forms, or try to address any subform as if it were a stand-alone form. Forms collection reflects only the open forms, ignoring subforms. In case you wish to use a test form for calling the function for deleting all forms, the calling form has to be excluded from its scope. The function duly modified on these lines is given below. In this version, the array of form names is getting populated only from second element onwards. This facilitates a cross-check whether it holds any valid form name for deletion, thus eliminating the risk of attempting to perform deletion based upon possible Null value in any element. If called from a form, sample statement would be: libDeleteLocalForms Me.Name Note: The argument is optional and can be omitted if the function is executed directly within VBA window. You might like to test it out. The function should be able to run smoothly without any error handling code. Eventually, you could add the error handler, or simply insert On Error Resume Next at start. Tests at my end (Access 2003 on Win XP) did not attract any error. If you still happen to encounter any problem, you could consider sending me a zipped copy of skeleton sample file featuring the problem. Best wishes, A.D. Tejpal ------------ ' Sample function '================================ Public Function libDeleteLocalForms( _ Optional CallingFormName As String = "") Dim obj As Object, fm As Access.Form Dim Cnt As Long, Rtv As Variant For Each fm In Application.Forms If fm.Name <> CallingFormName Then DoCmd.Close acForm, fm.Name End If Next ' Populate the zero based array from ' second element onwards. ReDim Rtv(0) Cnt = 0 For Each obj In CurrentProject.AllForms If obj.Name <> CallingFormName Then Cnt = Cnt + 1 ReDim Preserve Rtv(Cnt) Rtv(Cnt) = obj.Name End If Next ' Delete forms if array has grown beyond ' first element If UBound(Rtv) > 0 Then For Cnt = 1 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next End If Set obj = Nothing Set fm = Nothing End Function '================================= ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Thursday, March 18, 2010 21:51 Subject: Re: [AccessD] Delete all reports and all forms AD, There were some problems with the code so I am posting back what I ended up with. Once again, for me, Access did not like deleting the Forms, so I just had to jump around the error (as shown). Also a test for zero Forms. Any thoughts on the error? Max Public Function libDeleteLocalForms() On Error GoTo EH Dim obj As Object, Rtv As Variant, Cnt As Long If CurrentProject.AllForms.Count > 0 Then ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms DoCmd.Close acForm, obj.Name Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next End If EX: Set obj = Nothing Exit Function EH: Select Case Err.Number Case 29068 Resume Next Case Else MsgBox "Error: " & Err.Number & vbCrLf & Err.Description Resume EX End Select End Function From max.wanadoo at gmail.com Thu Mar 18 14:05:11 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 19:05:11 -0000 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server> <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> Message-ID: 21st Century. William won't be using this... Dim RE As New RegExp Dim sPath As String sPath = CurrentProject.path RE.Pattern = "\\$" If Not RE.test(sPath) Then sPath = sPath & "\" Debug.Print sPath ' requires windows vbscript regular expressions 5.5 to be referenced. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Thursday, March 18, 2010 5:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentProject.Path syntax? 21st Century is using regular expressions! }:p> Mike... > > But the sample below works a lot better and handles UNC : > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Go on. Be a Devil. Move to the 21st Century!! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, March 18, 2010 12:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > Good point from Stuart. I think I'll stick with my little function. > :-) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, March 17, 2010 5:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] CurrentProject.Path syntax? > > > Bit more complicated. > > str = "\\svr\c\" > strL = Left(str, 2) > strR = Replace(Mid(str, 3) & "\", "\\", "\") > str = strL & strR > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Wednesday, March 17, 2010 9:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > And what happens when it is a UNC path? > > Str = "\\Server\Share\" > > :-( > > -- > Stuart > > On 17 Mar 2010 at 15:49, Max Wanadoo wrote: > >> Str = str & "\" >> Str = replace(str,"\\","\") >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 18 14:38:57 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 18 Mar 2010 19:38:57 -0000 Subject: [AccessD] Delete all reports and all forms In-Reply-To: <006501cac6c9$ea608280$3701a8c0@adtpc> References: <9AB7E60E35D14691B5604BA56C10B3FC@Server><68AACFC887D54257AD4D59A6122C8D5F@Server><039201cac600$8ac90550$3701a8c0@adtpc> <006501cac6c9$ea608280$3701a8c0@adtpc> Message-ID: Hi AD, 1. There is no error either with or without closing forms with the docmd.closeform while enumerating the .allForms collection. 2. The code is called from a class function not from a form but that is a check I should have to build in just in case it needs to be called from a form. For now this is not the source of the problem. 3. The forms I am using are anyformfromanywhere. I just import any old forms from any old mdb and run the code against them. There are no forms that I wish to retain. The code should just delete them all (which it does) but without the errors. I am creating a library (class) and there are no forms, tables, etc in there, just class code and one module to test them with plus whatever I drag in to do the testing. I am using Access 2003 SP3 (11.8166.8221) The vb editor shows Microsoft Visual Basic 6.5 Version 1024. Thanks for the interest. Max Ps. 29068 = "Microsoft Office Access cannot complete this operation. You must stop the code and try again." -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Thursday, March 18, 2010 6:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Delete all reports and all forms Max, While trying to close the open forms, prior to deletion, it would be desirable to do so via the Forms collection and not AllForms collection. This way your code would not be attempting to close already closed forms, or try to address any subform as if it were a stand-alone form. Forms collection reflects only the open forms, ignoring subforms. In case you wish to use a test form for calling the function for deleting all forms, the calling form has to be excluded from its scope. The function duly modified on these lines is given below. In this version, the array of form names is getting populated only from second element onwards. This facilitates a cross-check whether it holds any valid form name for deletion, thus eliminating the risk of attempting to perform deletion based upon possible Null value in any element. If called from a form, sample statement would be: libDeleteLocalForms Me.Name Note: The argument is optional and can be omitted if the function is executed directly within VBA window. You might like to test it out. The function should be able to run smoothly without any error handling code. Eventually, you could add the error handler, or simply insert On Error Resume Next at start. Tests at my end (Access 2003 on Win XP) did not attract any error. If you still happen to encounter any problem, you could consider sending me a zipped copy of skeleton sample file featuring the problem. Best wishes, A.D. Tejpal ------------ ' Sample function '================================ Public Function libDeleteLocalForms( _ Optional CallingFormName As String = "") Dim obj As Object, fm As Access.Form Dim Cnt As Long, Rtv As Variant For Each fm In Application.Forms If fm.Name <> CallingFormName Then DoCmd.Close acForm, fm.Name End If Next ' Populate the zero based array from ' second element onwards. ReDim Rtv(0) Cnt = 0 For Each obj In CurrentProject.AllForms If obj.Name <> CallingFormName Then Cnt = Cnt + 1 ReDim Preserve Rtv(Cnt) Rtv(Cnt) = obj.Name End If Next ' Delete forms if array has grown beyond ' first element If UBound(Rtv) > 0 Then For Cnt = 1 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next End If Set obj = Nothing Set fm = Nothing End Function '================================= ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Thursday, March 18, 2010 21:51 Subject: Re: [AccessD] Delete all reports and all forms AD, There were some problems with the code so I am posting back what I ended up with. Once again, for me, Access did not like deleting the Forms, so I just had to jump around the error (as shown). Also a test for zero Forms. Any thoughts on the error? Max Public Function libDeleteLocalForms() On Error GoTo EH Dim obj As Object, Rtv As Variant, Cnt As Long If CurrentProject.AllForms.Count > 0 Then ReDim Rtv(CurrentProject.AllForms.Count - 1) Cnt = 0 For Each obj In CurrentProject.AllForms DoCmd.Close acForm, obj.Name Rtv(Cnt) = obj.Name Cnt = Cnt + 1 Next For Cnt = 0 To UBound(Rtv) DoCmd.DeleteObject acForm, Rtv(Cnt) Next End If EX: Set obj = Nothing Exit Function EH: Select Case Err.Number Case 29068 Resume Next Case Else MsgBox "Error: " & Err.Number & vbCrLf & Err.Description Resume EX End Select 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 Thu Mar 18 16:37:31 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Mar 2010 17:37:31 -0400 Subject: [AccessD] UNION slowness In-Reply-To: References: Message-ID: <4BA29D1B.6010909@colbyconsulting.com> Nope, but it may just be a SQL Server issue. I am having SQL Server issues right now. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Did this fix the problem for you JWC? If not, it sounds like this is in > Access, make sure that your SQL is SQL Server friendly, so it's > passthrough. Otherwise Access is going to want to work on the data. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, March 15, 2010 10:02 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] UNION slowness > > Hi John > > How about using UNION ALL? Without the ALL it performs a default > DISTINCT which may be very slow. > > /gustav > > >>>> jwcolby at colbyconsulting.com 15-03-2010 15:51 >>> > I have always done a UNION to get a combo list with *; All as the first > item in a combo of other > items. PKID, Client or PKID, Product etc. > > These unions are takling as looooooong time (many seconds) when going > against a SQL database. Not > sure why because the actual data itself is almost instant, it is just > when unioned with my other > piece it takes forever to get the result set. Strange. > > I could do a custom callback but it takes me forever to figure out the > callback crap, and I just > generally hate them. > > I wanted to do a value list since the lists are short, but AFAICT the > list value function has to be > interpreted and dumped in to the property in OnEnter and the like. > Clumsey, particularly when one > combo depends on (is filtered by) another list (products filtered by > client etc). > > Any words of wisdom on this? Something I have forgotten or never knew? > From ab-mi at post3.tele.dk Thu Mar 18 18:31:51 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 19 Mar 2010 00:31:51 +0100 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <4BA150EE.29996.17D27DC3@stuart.lexacorp.com.pg> References: <4B9FE4EC.3040607@colbyconsulting.com>, <21F31B819CB74F229C393F044FB47BB6@abpc>, <000001cac618$0f946a60$2ebd3f20$@com> <4BA150EE.29996.17D27DC3@stuart.lexacorp.com.pg> Message-ID: <0F9D75A6B1E540B0835F36B9D17F3F60@abpc> Hi Stuart, Interesting observation. And curious: how did you get the resolution "~!" for vbCrLf? I often need this kind of information, but neither a MsgBox or a Debug.Print will do. So what statement did you use to get what vbCrLf is resolved to? TIA Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 17. marts 2010 23:00 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Need some Simple SQL help The vbCRLFs would definitely have been causing a problem. Substituting "~!" for vbCrLf for visibilty: ..., Customer.[Last Name], " & vbCrLf & "Customer.Address1,... resolves to: ...,Customer.[Last Name],~!Customer.Address1,.... which should cause an error when you Access tries to resolve it as a recordsource. If you have correctly removed the vbCRLF part, you should have: ..., Customer.[Last Name], " & "Customer.Address1,... which resolves to: ...,Cutomer.[Last Name],Customer.Address1,.... Another possible problem - is CustomerID numeric? If not, you need to enclose ICID in quotes in the SQL string. -- Stuart On 17 Mar 2010 at 17:23, Robert wrote: > Ok, > Removed the vbCrLf's, but as suspected made no difference.. So strange.... > > WBR > Robert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > Sent: Wednesday, March 17, 2010 8:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Need some Simple SQL help > > Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert > Sendt: 17. marts 2010 12:57 > Til: 'Access Developers discussion and problem solving' > Emne: [AccessD] Need some Simple SQL help > > Goal: Try to speed up the filter of a form with 2 subforms > > I'm trying to move to a specific record on the main form (and another > un-linked subform) from a record on a subform. The main form is based on a > saved query, and has it's "Data Entry" property set as YES. > > I can use this and it works: > > .Filter = "[Customer ID]=" & lCID > .FilterOn = True > > But If I try to use the SQL below and RecordSource it fails. > > strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], > Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ > "Customer.Address1, Customer.Address2, Customer.City, > Customer.Zip, Customer.HomePhone, " & vbCrLf & _ > "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, > Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ > "Customer.Ext3, Customer.Phone_Other, Customer.[Customer > Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ > "Customer.[Type of Terms], Customer.[Term Day], > Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ > "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses > PO], Customer.Active, Customer.State, " & vbCrLf & _ > "Customer.Advertizements, Customer.SpecNeeds, > Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ > "Customer.TentPerm, Customer.Landlord, Customer.Directions, > Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ > "Customer.Field1, Customer.Field4, Customer.Ext, > Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ > "Customer.Phone2Type, Customer.Phone3Type, > Customer.Phone4Type " & vbCrLf & _ > "FROM Customer " & vbCrLf & _ > "WHERE Customer.[Customer ID] =" & lCID > .RecordSource = strSQL > > Can you see what I'm doing wrong, and is this faster? > > WBR > Robert > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Mar 18 18:31:05 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 18 Mar 2010 19:31:05 -0400 Subject: [AccessD] CurrentProject.Path syntax? In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> Message-ID: <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev> ...another reference? ...damn straight I won't :) William -------------------------------------------------- From: "Max Wanadoo" Sent: Thursday, March 18, 2010 3:05 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] CurrentProject.Path syntax? > > 21st Century. William won't be using this... > > > Dim RE As New RegExp > Dim sPath As String > sPath = CurrentProject.path > RE.Pattern = "\\$" > If Not RE.test(sPath) Then sPath = sPath & "\" > Debug.Print sPath > ' requires windows vbscript regular expressions 5.5 to be referenced. > > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Thursday, March 18, 2010 5:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CurrentProject.Path syntax? > > 21st Century is using regular expressions! }:p> > > Mike... > >> >> But the sample below works a lot better and handles UNC : >> >> str = "\\svr\c\" >> strL = Left(str, 2) >> strR = Replace(Mid(str, 3) & "\", "\\", "\") >> str = strL & strR >> >> Go on. Be a Devil. Move to the 21st Century!! >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, >> Lambert >> Sent: Thursday, March 18, 2010 12:55 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] CurrentProject.Path syntax? >> >> Good point from Stuart. I think I'll stick with my little function. >> :-) >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >> Sent: Wednesday, March 17, 2010 5:46 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] CurrentProject.Path syntax? >> >> >> Bit more complicated. >> >> str = "\\svr\c\" >> strL = Left(str, 2) >> strR = Replace(Mid(str, 3) & "\", "\\", "\") >> str = strL & strR >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Wednesday, March 17, 2010 9:07 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] CurrentProject.Path syntax? >> >> And what happens when it is a UNC path? >> >> Str = "\\Server\Share\" >> >> :-( >> >> -- >> Stuart >> >> On 17 Mar 2010 at 15:49, Max Wanadoo wrote: >> >>> Str = str & "\" >>> Str = replace(str,"\\","\") >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Thu Mar 18 18:57:47 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 19 Mar 2010 09:57:47 +1000 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <0F9D75A6B1E540B0835F36B9D17F3F60@abpc> References: <4B9FE4EC.3040607@colbyconsulting.com>, <4BA150EE.29996.17D27DC3@stuart.lexacorp.com.pg>, <0F9D75A6B1E540B0835F36B9D17F3F60@abpc> Message-ID: <4BA2BDFB.24964.1D64799C@stuart.lexacorp.com.pg> I just used a couple of visible characters to represent Ascii 13 and Ascii 10 for clarity. I could have just as easily used other characters such as "#" and "^". In essence, I just did this: Function ShowReturns(strText) ShowReturns = Replace(Replace(strText, Chr$(13), "~"), Chr$(10), "!") End Function ? Showreturns(strSQL) -- Stuart On 19 Mar 2010 at 0:31, Asger Blond wrote: > Hi Stuart, > Interesting observation. And curious: how did you get the resolution "~!" for vbCrLf? > I often need this kind of information, but neither a MsgBox or a Debug.Print will do. So what statement did you use to get what vbCrLf is resolved to? > TIA > Asger > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan > Sendt: 17. marts 2010 23:00 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Need some Simple SQL help > > The vbCRLFs would definitely have been causing a problem. > > Substituting "~!" for vbCrLf for visibilty: > > ..., Customer.[Last Name], " & vbCrLf & "Customer.Address1,... > > resolves to: > ...,Customer.[Last Name],~!Customer.Address1,.... > which should cause an error when you Access tries to resolve it as a recordsource. > > If you have correctly removed the vbCRLF part, you should have: > ..., Customer.[Last Name], " & "Customer.Address1,... > > which resolves to: > ...,Cutomer.[Last Name],Customer.Address1,.... > > > Another possible problem - is CustomerID numeric? If not, you need to enclose ICID in > quotes in the SQL string. > > > -- > Stuart > > > On 17 Mar 2010 at 17:23, Robert wrote: > > > Ok, > > Removed the vbCrLf's, but as suspected made no difference.. So strange.... > > > > WBR > > Robert > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > > Sent: Wednesday, March 17, 2010 8:32 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Need some Simple SQL help > > > > Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? > > > > Asger > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert > > Sendt: 17. marts 2010 12:57 > > Til: 'Access Developers discussion and problem solving' > > Emne: [AccessD] Need some Simple SQL help > > > > Goal: Try to speed up the filter of a form with 2 subforms > > > > I'm trying to move to a specific record on the main form (and another > > un-linked subform) from a record on a subform. The main form is based on a > > saved query, and has it's "Data Entry" property set as YES. > > > > I can use this and it works: > > > > .Filter = "[Customer ID]=" & lCID > > .FilterOn = True > > > > But If I try to use the SQL below and RecordSource it fails. > > > > strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], > > Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ > > "Customer.Address1, Customer.Address2, Customer.City, > > Customer.Zip, Customer.HomePhone, " & vbCrLf & _ > > "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, > > Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ > > "Customer.Ext3, Customer.Phone_Other, Customer.[Customer > > Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ > > "Customer.[Type of Terms], Customer.[Term Day], > > Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ > > "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses > > PO], Customer.Active, Customer.State, " & vbCrLf & _ > > "Customer.Advertizements, Customer.SpecNeeds, > > Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ > > "Customer.TentPerm, Customer.Landlord, Customer.Directions, > > Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ > > "Customer.Field1, Customer.Field4, Customer.Ext, > > Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ > > "Customer.Phone2Type, Customer.Phone3Type, > > Customer.Phone4Type " & vbCrLf & _ > > "FROM Customer " & vbCrLf & _ > > "WHERE Customer.[Customer ID] =" & lCID > > .RecordSource = strSQL > > > > Can you see what I'm doing wrong, and is this faster? > > > > WBR > > Robert > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 18 19:20:36 2010 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 19 Mar 2010 01:20:36 +0100 Subject: [AccessD] Need some Simple SQL help In-Reply-To: <4BA2BDFB.24964.1D64799C@stuart.lexacorp.com.pg> References: <4B9FE4EC.3040607@colbyconsulting.com>, <4BA150EE.29996.17D27DC3@stuart.lexacorp.com.pg>, <0F9D75A6B1E540B0835F36B9D17F3F60@abpc> <4BA2BDFB.24964.1D64799C@stuart.lexacorp.com.pg> Message-ID: <12BF0B4E99EF4B92889383E8E27006BF@abpc> Thanks Stuart - very useful! Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 19. marts 2010 00:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Need some Simple SQL help I just used a couple of visible characters to represent Ascii 13 and Ascii 10 for clarity. I could have just as easily used other characters such as "#" and "^". In essence, I just did this: Function ShowReturns(strText) ShowReturns = Replace(Replace(strText, Chr$(13), "~"), Chr$(10), "!") End Function ? Showreturns(strSQL) -- Stuart On 19 Mar 2010 at 0:31, Asger Blond wrote: > Hi Stuart, > Interesting observation. And curious: how did you get the resolution "~!" for vbCrLf? > I often need this kind of information, but neither a MsgBox or a Debug.Print will do. So what statement did you use to get what vbCrLf is resolved to? > TIA > Asger > > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan > Sendt: 17. marts 2010 23:00 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Need some Simple SQL help > > The vbCRLFs would definitely have been causing a problem. > > Substituting "~!" for vbCrLf for visibilty: > > ..., Customer.[Last Name], " & vbCrLf & "Customer.Address1,... > > resolves to: > ...,Customer.[Last Name],~!Customer.Address1,.... > which should cause an error when you Access tries to resolve it as a recordsource. > > If you have correctly removed the vbCRLF part, you should have: > ..., Customer.[Last Name], " & "Customer.Address1,... > > which resolves to: > ...,Cutomer.[Last Name],Customer.Address1,.... > > > Another possible problem - is CustomerID numeric? If not, you need to enclose ICID in > quotes in the SQL string. > > > -- > Stuart > > > On 17 Mar 2010 at 17:23, Robert wrote: > > > Ok, > > Removed the vbCrLf's, but as suspected made no difference.. So strange.... > > > > WBR > > Robert > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond > > Sent: Wednesday, March 17, 2010 8:32 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Need some Simple SQL help > > > > Don't see the purpose of the vbCrLf's in a SQL - maybe removing them will do? > > > > Asger > > > > -----Oprindelig meddelelse----- > > Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Robert > > Sendt: 17. marts 2010 12:57 > > Til: 'Access Developers discussion and problem solving' > > Emne: [AccessD] Need some Simple SQL help > > > > Goal: Try to speed up the filter of a form with 2 subforms > > > > I'm trying to move to a specific record on the main form (and another > > un-linked subform) from a record on a subform. The main form is based on a > > saved query, and has it's "Data Entry" property set as YES. > > > > I can use this and it works: > > > > .Filter = "[Customer ID]=" & lCID > > .FilterOn = True > > > > But If I try to use the SQL below and RecordSource it fails. > > > > strSQL = "SELECT Customer.[Customer ID], Customer.[First Name], > > Customer.[Mid Init], Customer.[Last Name], " & vbCrLf & _ > > "Customer.Address1, Customer.Address2, Customer.City, > > Customer.Zip, Customer.HomePhone, " & vbCrLf & _ > > "Customer.WorkPhone1, Customer.Ext1, Customer.WorkPhone2, > > Customer.Ext2, Customer.CellPhone, " & vbCrLf & _ > > "Customer.Ext3, Customer.Phone_Other, Customer.[Customer > > Type], Customer.Comment, Customer.Balance, " & vbCrLf & _ > > "Customer.[Type of Terms], Customer.[Term Day], > > Customer.[Contact person], Customer.[Tax Exempt Status], " & vbCrLf & _ > > "Customer.[Tax Number], Customer.[Ship To], Customer.[Uses > > PO], Customer.Active, Customer.State, " & vbCrLf & _ > > "Customer.Advertizements, Customer.SpecNeeds, > > Customer.LocationType, Customer.[Service ID], Customer.MDRID, " & vbCrLf & _ > > "Customer.TentPerm, Customer.Landlord, Customer.Directions, > > Customer.ExtStaticNotes, Customer.IntNotes, " & vbCrLf & _ > > "Customer.Field1, Customer.Field4, Customer.Ext, > > Customer.CreatedBy, Customer.CreateDate, Customer.Phone1Type, " & vbCrLf & _ > > "Customer.Phone2Type, Customer.Phone3Type, > > Customer.Phone4Type " & vbCrLf & _ > > "FROM Customer " & vbCrLf & _ > > "WHERE Customer.[Customer ID] =" & lCID > > .RecordSource = strSQL > > > > Can you see what I'm doing wrong, and is this faster? > > > > WBR > > Robert > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 18 20:47:14 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Mar 2010 21:47:14 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION Message-ID: <4BA2D7A2.2090704@colbyconsulting.com> I want to do some coding DIRECTLY in Excel. I know nothing about how to move around in the editor, see a list of all of the modules, rename a module, create a new class, save it, see that class and open it again etc. I am having a heck of a time finding anything using Google. Everything assumes I already know this basic stuff. HELP! -- John W. Colby www.ColbyConsulting.com From joeo at appoli.com Thu Mar 18 20:54:54 2010 From: joeo at appoli.com (Joe O'Connell) Date: Thu, 18 Mar 2010 21:54:54 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <4BA2D7A2.2090704@colbyconsulting.com> References: <4BA2D7A2.2090704@colbyconsulting.com> Message-ID: <1CF20DB644BE124083B31638E5D5C0235BF98E@exch2.Onappsad.net> John, Tools ==> Macro ==> Visual Basic Editor Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 18, 2010 9:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION I want to do some coding DIRECTLY in Excel. I know nothing about how to move around in the editor, see a list of all of the modules, rename a module, create a new class, save it, see that class and open it again etc. I am having a heck of a time finding anything using Google. Everything assumes I already know this basic stuff. HELP! -- 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 Thu Mar 18 21:06:07 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Mar 2010 22:06:07 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <1CF20DB644BE124083B31638E5D5C0235BF98E@exch2.Onappsad.net> References: <4BA2D7A2.2090704@colbyconsulting.com> <1CF20DB644BE124083B31638E5D5C0235BF98E@exch2.Onappsad.net> Message-ID: <4BA2DC0F.5010903@colbyconsulting.com> I could figure out how to get there. I was looking for the project explorer back in the spreadsheet instead of from in the code editor. (Brain farts). I'm good now. John W. Colby www.ColbyConsulting.com Joe O'Connell wrote: > John, > > Tools ==> Macro ==> Visual Basic Editor > > Joe O'Connell > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, March 18, 2010 9:47 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION > > I want to do some coding DIRECTLY in Excel. I know nothing about how to > move around in the editor, > see a list of all of the modules, rename a module, create a new class, > save it, see that class and > open it again etc. > > I am having a heck of a time finding anything using Google. Everything > assumes I already know this > basic stuff. > > HELP! From Darryl.Collins at anz.com Thu Mar 18 21:13:56 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Fri, 19 Mar 2010 13:13:56 +1100 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <4BA2D7A2.2090704@colbyconsulting.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC910@EXUAU020HWT110.oceania.corp.anz.com> John, Coding in Excel in my bread and butter. Feel free to ask on or off line. The VBE is very similar to MS Access - if you can code in VBE Access you will pick up Excel very quickly. Open Excel, and press F11 to open the VBE In the VBE goto the View option on the menu Ensure you can view 1: Project Explorer (Ctrl+R) 2: Code Window (F7) 3: Properties (F4) 4: Locals Window (not absolutely necessary but very handy I find). In the explorer window you will only the sheet modules. You can code directly into these, but I usually put everything in modules. Insert Module will create a standard Module just like in Access. You can also insert Class modules (I know you like to play with those classes). "Option Private Module" up the top of the module will keep the code hidden from the user. I nearly always use this along with "Option Explicit" (just like Access). An Excellent mailing list for Excel help are: http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-G http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-L X-posting is usually not necessary as most folks (including me) are subbed to both lists. I hope this helps. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, 19 March 2010 12:47 PM To: Access Developers discussion and problem solving Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION I want to do some coding DIRECTLY in Excel. I know nothing about how to move around in the editor, see a list of all of the modules, rename a module, create a new class, save it, see that class and open it again etc. I am having a heck of a time finding anything using Google. Everything assumes I already know this basic stuff. HELP! -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From jwcolby at colbyconsulting.com Thu Mar 18 21:27:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Mar 2010 22:27:47 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC910@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC910@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <4BA2E123.4080703@colbyconsulting.com> Darryl, Thanks for the offer. I am trying to create a class (of course ;) I can create the class but it automatically gives it the name Class1 and I can't figure out how to set the name, or change the name once created. Excel has a ways to go to match the friendliness of Access. So how do I change the name? John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > John, > > Coding in Excel in my bread and butter. Feel free to ask on or off > line. > > The VBE is very similar to MS Access - if you can code in VBE Access you > will pick up Excel very quickly. Open Excel, and press F11 to open the > VBE > > In the VBE goto the View option on the menu > > Ensure you can view > 1: Project Explorer (Ctrl+R) > 2: Code Window (F7) > 3: Properties (F4) > 4: Locals Window (not absolutely necessary but very handy I find). > > In the explorer window you will only the sheet modules. You can code > directly into these, but I usually put everything in modules. Insert > Module will create a standard Module just like in Access. You can also > insert Class modules (I know you like to play with those classes). > > > "Option Private Module" up the top of the module will keep the code > hidden from the user. I nearly always use this along with "Option > Explicit" (just like Access). > > > > An Excellent mailing list for Excel help are: > http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-G stuff> > http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-L advanced stuff> > > X-posting is usually not necessary as most folks (including me) are > subbed to both lists. > > I hope this helps. > > Cheers > Darryl From Darryl.Collins at anz.com Thu Mar 18 22:10:06 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Fri, 19 Mar 2010 14:10:06 +1100 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <4BA2E123.4080703@colbyconsulting.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC911@EXUAU020HWT110.oceania.corp.anz.com> Hi John, Make sure you have the properties window visible (View > Properties or F4). Then in the project explorer window click on the class "Class1" under the Class Module Folder. In the properties window under the "Alphabetic" tab the top option will be "(Name)". You can change the module name here from "Class1" to "Whateveryouwant". There are some restrictions as in Access on what you can call a module, but that should get you started. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, 19 March 2010 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION Darryl, Thanks for the offer. I am trying to create a class (of course ;) I can create the class but it automatically gives it the name Class1 and I can't figure out how to set the name, or change the name once created. Excel has a ways to go to match the friendliness of Access. So how do I change the name? John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > John, > > Coding in Excel in my bread and butter. Feel free to ask on or off > line. > > The VBE is very similar to MS Access - if you can code in VBE Access > you will pick up Excel very quickly. Open Excel, and press F11 to > open the VBE > > In the VBE goto the View option on the menu > > Ensure you can view > 1: Project Explorer (Ctrl+R) > 2: Code Window (F7) > 3: Properties (F4) > 4: Locals Window (not absolutely necessary but very handy I find). > > In the explorer window you will only the sheet modules. You can code > directly into these, but I usually put everything in modules. Insert > Module will create a standard Module just like in Access. You can > also insert Class modules (I know you like to play with those classes). > > > "Option Private Module" up the top of the module will keep the code > hidden from the user. I nearly always use this along with "Option > Explicit" (just like Access). > > > > An Excellent mailing list for Excel help are: > http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-G stuff> > http://peach.ease.lsoft.com/scripts/wa.exe?A0=EXCEL-L advanced stuff> > > X-posting is usually not necessary as most folks (including me) are > subbed to both lists. > > I hope this helps. > > Cheers > Darryl -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From jwcolby at colbyconsulting.com Thu Mar 18 23:06:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 19 Mar 2010 00:06:13 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC911@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC911@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <4BA2F835.8000409@colbyconsulting.com> That did it. Thanks. So, I am playing this game, Ikariam. The alliance I am in is doing a "practice war". My General has created a spreadsheet with the enemy cities in a sheet, and a "map" sheet displaying the islands in green, water in blue and the enemy islands in red. I have added a new sheet with alliance cities, same info as enemy. I wrote a class to load the enemy and alliance city lists into clsCity instances and store those instances in clsCities instances - one for the enemy and one for the alliance. Now I can: Load the alliance city list and iterate through it setting the island color to something (yellow), or orange if it is already red (enemy) but there is an alliance city on the same island. Provide a list of alliance islands close to the enemy city clicked on or vice versa. At this point I am very new to doing stuff in Excel so my visual is just a message box. A form would be a good thing but I don't know how to create one, how to open it, push text to controls on it etc. But just what I can do is good. Ikariam has the ability to use this scripting language called GreaseMonkey. I have never even looked at it but it would be really cool to manage to read each island, what it produces, cities on it etc and populate a spreadsheet with that stuff. Just dreaming of course. John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > > Hi John, > > Make sure you have the properties window visible (View > Properties or > F4). Then in the project explorer window click on the class "Class1" > under the Class Module Folder. In the properties window under the > "Alphabetic" tab the top option will be "(Name)". You can change the > module name here from "Class1" to "Whateveryouwant". There are some > restrictions as in Access on what you can call a module, but that should > get you started. > > Cheers > Darryl. From Darryl.Collins at anz.com Thu Mar 18 23:34:08 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Fri, 19 Mar 2010 15:34:08 +1100 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <4BA2F835.8000409@colbyconsulting.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> "A form would be a good thing but I don't know how to create one, how to open it, push text to controls on it etc." Hi John, To create a form, goto the VBE and Choose "Insert" > "User Form" from the menu. This will create a form in the code window that can be viewed (and toggled) between an Object View (which looks like the form) and a code view (which will show you the underlying code for the form). Adding controls etc is pretty much like in Access, although in Access you create your forms in the app rather than the VBE. To make the form visible to the user in the app you need some additional code in a module like this '===================================================================== Sub ShowMyForm() Application.ScreenUpdating = True frmMyTestForm.Show End Sub '===================================================================== The code underlying the form is just like in Access: You can toggle between Form view and code view in the VBE by right mouse clicking in the project explorer or form itself. For example here is a basic example that returns values to a hidden control sheet depending on what radio button a user chooses. '===================================================================== Option Explicit Private Sub cmdCancel_Click() Unload Me ' this unload the form and closes it ' otherwise it can still be active but hidden from the user. End End Sub '----------------------------------------------------- Private Sub cmdOk_Click() If Me.rbBlueGates.Value = True Then Sheet5.Range("xlnrVersionGates").Value = "Blue Gates Included" Unload Me Call RunChangeViewOnly ElseIf Me.obNormalGates.Value = True Then Sheet5.Range("xlnrVersionGates").Value = "Normal Gates Only" Unload Me Call RunChangeViewOnly End If End Sub '----------------------------------------------------- Private Sub obBlueGates_Click() Me.rbBlueGates.Value = True Me.rbNormalGates.Value = False End Sub '----------------------------------------------------- Private Sub obNormalGates_Click() Me.rbNormalGates.Value = True Me.rbBlueGates.Value = False End Sub '====================================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, 19 March 2010 3:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION That did it. Thanks. So, I am playing this game, Ikariam. The alliance I am in is doing a "practice war". My General has created a spreadsheet with the enemy cities in a sheet, and a "map" sheet displaying the islands in green, water in blue and the enemy islands in red. I have added a new sheet with alliance cities, same info as enemy. I wrote a class to load the enemy and alliance city lists into clsCity instances and store those instances in clsCities instances - one for the enemy and one for the alliance. Now I can: Load the alliance city list and iterate through it setting the island color to something (yellow), or orange if it is already red (enemy) but there is an alliance city on the same island. Provide a list of alliance islands close to the enemy city clicked on or vice versa. At this point I am very new to doing stuff in Excel so my visual is just a message box. A form would be a good thing but I don't know how to create one, how to open it, push text to controls on it etc. But just what I can do is good. Ikariam has the ability to use this scripting language called GreaseMonkey. I have never even looked at it but it would be really cool to manage to read each island, what it produces, cities on it etc and populate a spreadsheet with that stuff. Just dreaming of course. John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > > Hi John, > > Make sure you have the properties window visible (View > Properties or > F4). Then in the project explorer window click on the class "Class1" > under the Class Module Folder. In the properties window under the > "Alphabetic" tab the top option will be "(Name)". You can change the > module name here from "Class1" to "Whateveryouwant". There are some > restrictions as in Access on what you can call a module, but that > should get you started. > > Cheers > Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From max.wanadoo at gmail.com Fri Mar 19 03:46:51 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 19 Mar 2010 08:46:51 -0000 Subject: [AccessD] References In-Reply-To: <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev> References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev> Message-ID: Hi William, I know we spoke about References a short while back. Below is a Class which may help you. It has two functions, one to export a list of references and the other to re-create references from that exporting list. Basically, when you have everthing working ok in an mdb you should export the References to the text file. The next time you create a new mdb and don't want to have to manually re-create or select the References you can just use the second function to create them for you. The import will also import any references that are found in specific files and thus you can modularise your references to suit different MDBs. HTH Max Option Compare Database Option Explicit Sub TestReferences() Dim var As Variant Dim clsRef As New clsReferences var = clsRef.libExportReferencesToTextFile ' export them var = clsRef.libImportReferencesFromTextFile ' import them End Sub ' clsReference - max.wanadoo at gmail.com 19 March 2010. Option Compare Database Option Explicit Public Function libExportReferencesToTextFile(Optional strReferenceFilesFileNameDefault As String = "References.txt") On Error GoTo EH Close ' close any open files Dim strReferenceFiles As String, strSourceFileName As String, strMsg As String Dim pIntFile As Integer, Ref As Reference, bFound As Boolean, strMissing As String, strReferences strSourceFileName = CurrentProject.path & "\" & strReferenceFilesFileNameDefault strReferenceFiles = "EXPORT REFERENCE FILES:" & vbCrLf strMissing = "MISSING: " & vbCrLf For Each Ref In References 'Debug.Print Ref.Name, Ref.FullPath, Ref.IsBroken If Ref.IsBroken = True Then strMissing = strMissing & " - " & Ref.FullPath & " (" & Ref.Name & ")" & vbCrLf Else strReferenceFiles = strReferenceFiles & " - " & Ref.FullPath & " (" & Ref.Name & ")" & vbCrLf strReferences = strReferences & Ref.FullPath & vbCrLf End If Next ' output the results. pIntFile = FreeFile Open strSourceFileName For Output As pIntFile Print #pIntFile, strReferences Close pIntFile EX: If Not strMissing = "MISSING: " & vbCrLf Then strMissing = strMissing & "Missing Files are NOT Listed in the Export Reference File just created." End If strMsg = strReferenceFiles & vbCrLf & strMissing MsgBox strMsg Set Ref = Nothing Close ' close any open files Exit Function EH: Select Case Err.Number Case Else MsgBox "Error: " & Err.Number & vbCrLf & Err.Description Resume Next End Select Resume EX End Function Public Function libImportReferencesFromTextFile(Optional strReferencesFileNameDefault As String = "References.txt") ' this function will try to LOAD as a Reference all items listed in ANY file in the currentproject.path folder ' where the filename starts with "Reference" and ends in ".txt" ' this means that to load differing sets of Reference based on differing circumstances, you have only ' to place the text file in this folder with the name like "Reference*.txt", ' replacing * with a number or letter or whateve. ' eg. ReferenceBasic.txt, ReferenceStock.txt, ReferencesOCX.txt, etc On Error GoTo EH Close ' close any open files Dim strReference As String, strSourceFolder As String, strSourceFileName As String Dim strReferenceFiles As String, strReferences As String Dim strMissing As String, strErrs As String, strAlreadyloaded As String, strNewlyLoaded As String Dim pIntFile As Integer, bFound As Boolean strSourceFolder = CurrentProject.path & "\" strSourceFileName = Dir(strSourceFolder, vbNormal) strReferenceFiles = "IMPORT REFERENCE FILES:" & vbCrLf strMissing = "MISSING: " & vbCrLf strAlreadyloaded = "ALREADY LOADED:" & vbCrLf strNewlyLoaded = "NEWLY LOADED: " & vbCrLf While (Len(strSourceFileName) > 0) If Left(strSourceFileName, 9) = "Reference" And Right(strSourceFileName, 4) = ".txt" Then strReferenceFiles = strReferenceFiles & " - " & strSourceFileName & vbCrLf pIntFile = FreeFile Open strSourceFolder & strSourceFileName For Input As pIntFile Do While Not EOF(pIntFile) Line Input #pIntFile, strReference If Len(Trim(strReference)) > 0 Then Debug.Print strReference If InStr(strReference, "Missing") > 0 Then strMissing = strMissing & " - " & strReference & vbCrLf Else bFound = True References.AddFromFile strReference If bFound = True Then strNewlyLoaded = strNewlyLoaded & " - " & strReference & vbCrLf End If End If End If Loop Close pIntFile End If strSourceFileName = Dir Wend If strReferenceFiles = "IMPORT REFERENCE FILES:" & vbCrLf Then strReferenceFiles = strReferenceFiles & vbCrLf & " - No Reference Files found" & vbCrLf End If EX: strReferenceFiles = strReferenceFiles & vbCrLf & strNewlyLoaded & vbCrLf & strMissing & vbCrLf & strAlreadyloaded & vbCrLf & strErrs MsgBox strReferenceFiles Close ' close any open files Exit Function EH: Select Case Err.Number Case 53 strErrs = strErrs & "Input File Missing - Aborting (" & strSourceFileName & ")" Resume EX Case 32813 ' This is expected for the basic references that Access loads itself and any others already loaded. strAlreadyloaded = strAlreadyloaded & " - " & strReference & vbCrLf bFound = False Resume Next Case 29060 strMissing = strMissing & " - " & strReference & vbCrLf bFound = False Resume Next Case Else MsgBox "Error: " & Err.Number & vbCrLf & Err.Description Resume Next End Select Resume EX End Function From jwcolby at colbyconsulting.com Fri Mar 19 06:52:52 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 19 Mar 2010 07:52:52 -0400 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> References: <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <4BA36594.7030103@colbyconsulting.com> Very good, thanks! Can I insert a button into a cell so that they have something to click on to open a specific form? John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > "A form would be a good thing but I don't know how to create one, how to > open it, push text to controls on it etc." > > > Hi John, > > To create a form, goto the VBE and Choose "Insert" > "User Form" from > the menu. This will create a form in the code window that can be viewed > (and toggled) between an Object View (which looks like the form) and a > code view (which will show you the underlying code for the form). > > Adding controls etc is pretty much like in Access, although in Access > you create your forms in the app rather than the VBE. > > To make the form visible to the user in the app you need some additional > code in a module like this > > '===================================================================== > Sub ShowMyForm() > Application.ScreenUpdating = True > frmMyTestForm.Show > End Sub > '===================================================================== > > > > > > The code underlying the form is just like in Access: You can toggle > between Form view and code view in the VBE by right mouse clicking in > the project explorer or form itself. > For example here is a basic example that returns values to a hidden > control sheet depending on what radio button a user chooses. > '===================================================================== > Option Explicit > > Private Sub cmdCancel_Click() > Unload Me ' this unload the form and closes it > ' otherwise it can still be active but hidden from the user. > End > End Sub > '----------------------------------------------------- > > Private Sub cmdOk_Click() > > If Me.rbBlueGates.Value = True Then > Sheet5.Range("xlnrVersionGates").Value = "Blue Gates Included" > Unload Me > Call RunChangeViewOnly > > ElseIf Me.obNormalGates.Value = True Then > Sheet5.Range("xlnrVersionGates").Value = "Normal Gates Only" > Unload Me > Call RunChangeViewOnly > > End If > > End Sub > > '----------------------------------------------------- > Private Sub obBlueGates_Click() > > Me.rbBlueGates.Value = True > Me.rbNormalGates.Value = False > > End Sub > > '----------------------------------------------------- > Private Sub obNormalGates_Click() > > Me.rbNormalGates.Value = True > Me.rbBlueGates.Value = False > > End Sub > '====================================================== > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, 19 March 2010 3:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION > > That did it. Thanks. > > So, I am playing this game, Ikariam. The alliance I am in is doing a > "practice war". My General has created a spreadsheet with the enemy > cities in a sheet, and a "map" sheet displaying the islands in green, > water in blue and the enemy islands in red. > > I have added a new sheet with alliance cities, same info as enemy. I > wrote a class to load the enemy and alliance city lists into clsCity > instances and store those instances in clsCities instances - one for the > enemy and one for the alliance. > > Now I can: > > Load the alliance city list and iterate through it setting the island > color to something (yellow), or orange if it is already red (enemy) but > there is an alliance city on the same island. > > Provide a list of alliance islands close to the enemy city clicked on or > vice versa. > > At this point I am very new to doing stuff in Excel so my visual is just > a message box. A form would be a good thing but I don't know how to > create one, how to open it, push text to controls on it etc. > > But just what I can do is good. > > Ikariam has the ability to use this scripting language called > GreaseMonkey. I have never even looked at it but it would be really > cool to manage to read each island, what it produces, cities on it etc > and populate a spreadsheet with that stuff. > > Just dreaming of course. > > John W. Colby > www.ColbyConsulting.com > > > Collins, Darryl wrote: >> Hi John, >> >> Make sure you have the properties window visible (View > Properties or > >> F4). Then in the project explorer window click on the class "Class1" >> under the Class Module Folder. In the properties window under the >> "Alphabetic" tab the top option will be "(Name)". You can change the >> module name here from "Class1" to "Whateveryouwant". There are some >> restrictions as in Access on what you can call a module, but that >> should get you started. >> >> Cheers >> Darryl. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." > From robert at servicexp.com Fri Mar 19 08:10:02 2010 From: robert at servicexp.com (Robert) Date: Fri, 19 Mar 2010 09:10:02 -0400 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <000701cac765$7d633b40$7829b1c0$@com> Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert From rockysmolin at bchacc.com Fri Mar 19 08:19:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 19 Mar 2010 06:19:53 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <000701cac765$7d633b40$7829b1c0$@com> References: <4BA2F835.8000409@colbyconsulting.com><6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> Message-ID: Do you think the same kind of problems will occur with A2K3/W7? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 19 08:26:00 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 19 Mar 2010 13:26:00 -0000 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: References: <4BA2F835.8000409@colbyconsulting.com><6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com><000701cac765$7d633b40$7829b1c0$@com> Message-ID: I am not seeing them Rocky, but I only have one PC with Win 7 at work (mine!!). My apps are in a2k3 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 1:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Do you think the same kind of problems will occur with A2K3/W7? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Fri Mar 19 08:57:46 2010 From: robert at servicexp.com (Robert) Date: Fri, 19 Mar 2010 09:57:46 -0400 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: References: <4BA2F835.8000409@colbyconsulting.com><6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> Message-ID: <000801cac76c$27edc610$77c95230$@com> Unlikely, as I believe it has something to do with the 2007 "engine" and Windows 7 WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 9:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Do you think the same kind of problems will occur with A2K3/W7? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Mar 19 10:43:52 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 19 Mar 2010 08:43:52 -0700 Subject: [AccessD] References In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com> <0ECE0613B7A24E859C4938F8CA87D874@Server> <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg> <6BA840870C4D4005B5DD866C4853452A@Server> <44A77D3FF3524568A998CB5E1627DB54@Server> <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net> <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev> Message-ID: <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> Cool! This looks very useful. Thanks, Max. Doug On Fri, Mar 19, 2010 at 1:46 AM, Max Wanadoo wrote: > > Hi William, > > I know we spoke about References a short while back. Below is a Class which > may help you. > It has two functions, one to export a list of references and the other to > re-create references from that exporting list. > From jwelz at hotmail.com Fri Mar 19 11:04:51 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 19 Mar 2010 10:04:51 -0600 Subject: [AccessD] Pop up Calendar date validation In-Reply-To: <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> References: <4B9FE4EC.3040607@colbyconsulting.com>, <0ECE0613B7A24E859C4938F8CA87D874@Server>, <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg>, <6BA840870C4D4005B5DD866C4853452A@Server>, , <44A77D3FF3524568A998CB5E1627DB54@Server>, <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net>, , <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev>, , <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> Message-ID: I've got a reprieve on some other duties and have been tasked with some new reporting and that raised a question of whether I could simplify some of what I've built. Scenario: Every date textbox allows a dual entry method. Double click the textbox and a calendar pops or a user may enter the control and key the date. Validation can run in the controls BeforeUpdate event when a date is keyed but this event is not raised when the data is set from a PopUp form. The BeforeUpdate calls the same validate event that is triggered via PopUp calendar so that controls validation code is in one place. Every date textbox is just copy/paste from a template so that the control comes hooked up with a property sheet function event in the double-click: =fnGetDate(Screen.ActiveControl). A given specific control may be on a form that is sometimes a standalone form. That exact form may be on a sub form and may even be multi-instanced sub form and it may also be a subsubform, single or multi-instances. I am currently using a somewhat kludgy approach to validation. If it?s an employee birthdate, we must ensure that the date makes sense so the person should be between the age of 18 and 65 and warn if it is out of range, yet accept a manual over ride. If it?s a closing date of a newly entered project, it should accept a future date but warn if the date is past or more than 3 months in the future. For a date range, it should be able to verify that the ?from? and ?to? dates are in sequence and if not, switch them. In some cases, this enables and sets focus on a button that pops a report that uses the date range. Since the control requires a double click, my preference is that the validation warnings appear before the calendar pop up closes to minimize excess mousing. As long as the calendar is on screen, best make sure a reasonable date will be returned before closing it. The problem is hooking the control?s before update to run the validation and thereby cancel the unload of the calendar and ensure the appropriate validation runs. The Calendar form Pop Up property is yes, Modal no. I don?t have to do some massive select case to perform the validation in the calendar. For a given textbox, the validation is the same regardless of whether the form is embedded on a parent form or as a subsubForm. The text box event property runs the procedure that opens the calendar in the first line and sets the reference to the control in the 2nd line by calling a public event on the calendar to set a variable pointing directly to the control being changed. As the function runs it is possible to get a reference to the screen active control. This is not the case once the calendar opens as it takes the screen. The click event on any date on the calendar triggers the close and unload events that then need to find and run the particular validation event for that control. Because of the pop up nature, the calendar needs to run the ctl.Parent or ctl.Parent.Parent or ctl.Parent.Parent.Parent validate event. using on error resume next: strFrmSubSub = ctl.Parent.Parent.Parent.Name strFrmSub = ctl.Parent.Parent.Name strFrm = ctl.Parent.Name there always a length to strFrm but the others may be zero length. A select case determines if Len(strFrmSubSub), we need the following reference to call the form's public ValidateDate procedure: Case Len(strFrmSubSub) Forms(strFrm).(strFrmSub).Form.(strFrmSubSub).Form.ValidateDate Case Len(strFrmSub) Forms(strFrm).(strFruSub).Form.ValidateDate Case Else Forms(strFrm).ValidateDate Where it gets messy is when there are numerous controls that have multiple date textboxes with different validation events. This is handled in the got focus event of the form that sets a module scoped variable that is resolved in a select case on the form as to which control's validation event runs in the form?s ValidateDate procedure. Of course, several date textboxes can share the same validation routine on a control provided they need to meet the same criteria. Is there a cleaner way? Can I raise the before update event of the control from a popup form to cancel the calendar unload? It would be ideal to be able to pass a reference to the control in the event that opens the form and raise its before update when a date is clicked on the calendar. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 From wdhindman at dejpolsystems.com Fri Mar 19 11:13:02 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 19 Mar 2010 12:13:02 -0400 Subject: [AccessD] References In-Reply-To: <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> References: <4B9FE4EC.3040607@colbyconsulting.com><0ECE0613B7A24E859C4938F8CA87D874@Server><4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg><6BA840870C4D4005B5DD866C4853452A@Server><44A77D3FF3524568A998CB5E1627DB54@Server><3706.24.35.23.165.1268935146.squirrel@mail.expedient.net><6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev> <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> Message-ID: ...it does indeed ...I'd shuffled it off into my MadMax folder and not got around to reading it yet :( William -------------------------------------------------- From: "Doug Steele" Sent: Friday, March 19, 2010 11:43 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] References > Cool! This looks very useful. Thanks, Max. > > Doug > > On Fri, Mar 19, 2010 at 1:46 AM, Max Wanadoo > wrote: > >> >> Hi William, >> >> I know we spoke about References a short while back. Below is a Class >> which >> may help you. >> It has two functions, one to export a list of references and the other to >> re-create references from that exporting list. >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Mar 19 11:22:30 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Mar 2010 17:22:30 +0100 Subject: [AccessD] References Message-ID: Hi Max References are a bit more complicated than this. They should be added by their GUID. I've sent you some code off-line. /gustav >>> max.wanadoo at gmail.com 19-03-2010 09:46 >>> Hi William, I know we spoke about References a short while back. Below is a Class which may help you. It has two functions, one to export a list of references and the other to re-create references from that exporting list. Basically, when you have everthing working ok in an mdb you should export the References to the text file. The next time you create a new mdb and don't want to have to manually re-create or select the References you can just use the second function to create them for you. The import will also import any references that are found in specific files and thus you can modularise your references to suit different MDBs. HTH Max From Lambert.Heenan at chartisinsurance.com Fri Mar 19 12:03:05 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 19 Mar 2010 13:03:05 -0400 Subject: [AccessD] References In-Reply-To: References: Message-ID: Care to share it with the rest of us? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 19, 2010 12:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] References Hi Max References are a bit more complicated than this. They should be added by their GUID. I've sent you some code off-line. /gustav >>> max.wanadoo at gmail.com 19-03-2010 09:46 >>> Hi William, I know we spoke about References a short while back. Below is a Class which may help you. It has two functions, one to export a list of references and the other to re-create references from that exporting list. Basically, when you have everthing working ok in an mdb you should export the References to the text file. The next time you create a new mdb and don't want to have to manually re-create or select the References you can just use the second function to create them for you. The import will also import any references that are found in specific files and thus you can modularise your references to suit different MDBs. HTH Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 19 12:11:10 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Mar 2010 18:11:10 +0100 Subject: [AccessD] References Message-ID: Hi Lambert Oh, it was only some code snippets and functions most of which posted previously here and too many to be posted. And Max tells these are not needed for the purpose: copying references from and to the same local database. /gustav >>> Lambert.Heenan at chartisinsurance.com 19-03-2010 18:03 >>> Care to share it with the rest of us? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 19, 2010 12:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] References Hi Max References are a bit more complicated than this. They should be added by their GUID. I've sent you some code off-line. /gustav >>> max.wanadoo at gmail.com 19-03-2010 09:46 >>> Hi William, I know we spoke about References a short while back. Below is a Class which may help you. It has two functions, one to export a list of references and the other to re-create references from that exporting list. Basically, when you have everthing working ok in an mdb you should export the References to the text file. The next time you create a new mdb and don't want to have to manually re-create or select the References you can just use the second function to create them for you. The import will also import any references that are found in specific files and thus you can modularise your references to suit different MDBs. HTH Max From max.wanadoo at gmail.com Fri Mar 19 12:26:34 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 19 Mar 2010 17:26:34 -0000 Subject: [AccessD] References In-Reply-To: References: Message-ID: <6E36B75C90234386B47799F0E29887F6@Server> Yes, keep forgetting about them. I will include GUIDs and re-post. Ta mucho Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 19, 2010 4:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] References Hi Max References are a bit more complicated than this. They should be added by their GUID. I've sent you some code off-line. /gustav >>> max.wanadoo at gmail.com 19-03-2010 09:46 >>> Hi William, I know we spoke about References a short while back. Below is a Class which may help you. It has two functions, one to export a list of references and the other to re-create references from that exporting list. Basically, when you have everthing working ok in an mdb you should export the References to the text file. The next time you create a new mdb and don't want to have to manually re-create or select the References you can just use the second function to create them for you. The import will also import any references that are found in specific files and thus you can modularise your references to suit different MDBs. HTH Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Fri Mar 19 14:16:54 2010 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 19 Mar 2010 12:16:54 -0700 Subject: [AccessD] PDF into Access Message-ID: <000c01cac798$bcf59d10$5bdea8c0@edz1> Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. From cfoust at infostatsystems.com Fri Mar 19 14:42:19 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Mar 2010 14:42:19 -0500 Subject: [AccessD] PDF into Access In-Reply-To: <000c01cac798$bcf59d10$5bdea8c0@edz1> References: <000c01cac798$bcf59d10$5bdea8c0@edz1> Message-ID: Are you talking about extracting the data from a PDF file or storing the file in a database? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 12:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. From DWUTKA at Marlow.com Fri Mar 19 14:59:24 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 19 Mar 2010 14:59:24 -0500 Subject: [AccessD] Pop up Calendar date validation In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, <0ECE0613B7A24E859C4938F8CA87D874@Server>, <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg>, <6BA840870C4D4005B5DD866C4853452A@Server>, , <44A77D3FF3524568A998CB5E1627DB54@Server>, <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net>, , <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev>, , <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com> Message-ID: Jurgen, years ago I began writing an update to my Access 97 MiniCalendar. It's written in Access 2000, and is event driven. In other words, when you open it up, you are actually dimming it 'withevents', so you actually get an event raised when a date is clicked on the calendar. I'd be more than happy to send this new version to you offlist, but with the caveat that it would be 'as is' . The calendar works just fine, it even has a 'sample form' so you can see how to implement and use it. It's got a LOT of code behind it. Has dropdown forms on it, etc. Lots of fun and neat stuff. Some things I never finished, which is why I haven't put it out in the wild. But there have been a handful of times where I needed a calendar, and I've thrown that working version in, and it's worked just fine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Friday, March 19, 2010 11:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Pop up Calendar date validation I've got a reprieve on some other duties and have been tasked with some new reporting and that raised a question of whether I could simplify some of what I've built. Scenario: Every date textbox allows a dual entry method. Double click the textbox and a calendar pops or a user may enter the control and key the date. Validation can run in the controls BeforeUpdate event when a date is keyed but this event is not raised when the data is set from a PopUp form. The BeforeUpdate calls the same validate event that is triggered via PopUp calendar so that controls validation code is in one place. Every date textbox is just copy/paste from a template so that the control comes hooked up with a property sheet function event in the double-click: =fnGetDate(Screen.ActiveControl). A given specific control may be on a form that is sometimes a standalone form. That exact form may be on a sub form and may even be multi-instanced sub form and it may also be a subsubform, single or multi-instances. I am currently using a somewhat kludgy approach to validation. If it's an employee birthdate, we must ensure that the date makes sense so the person should be between the age of 18 and 65 and warn if it is out of range, yet accept a manual over ride. If it's a closing date of a newly entered project, it should accept a future date but warn if the date is past or more than 3 months in the future. For a date range, it should be able to verify that the 'from' and 'to' dates are in sequence and if not, switch them. In some cases, this enables and sets focus on a button that pops a report that uses the date range. Since the control requires a double click, my preference is that the validation warnings appear before the calendar pop up closes to minimize excess mousing. As long as the calendar is on screen, best make sure a reasonable date will be returned before closing it. The problem is hooking the control's before update to run the validation and thereby cancel the unload of the calendar and ensure the appropriate validation runs. The Calendar form Pop Up property is yes, Modal no. I don't have to do some massive select case to perform the validation in the calendar. For a given textbox, the validation is the same regardless of whether the form is embedded on a parent form or as a subsubForm. The text box event property runs the procedure that opens the calendar in the first line and sets the reference to the control in the 2nd line by calling a public event on the calendar to set a variable pointing directly to the control being changed. As the function runs it is possible to get a reference to the screen active control. This is not the case once the calendar opens as it takes the screen. The click event on any date on the calendar triggers the close and unload events that then need to find and run the particular validation event for that control. Because of the pop up nature, the calendar needs to run the ctl.Parent or ctl.Parent.Parent or ctl.Parent.Parent.Parent validate event. using on error resume next: strFrmSubSub = ctl.Parent.Parent.Parent.Name strFrmSub = ctl.Parent.Parent.Name strFrm = ctl.Parent.Name there always a length to strFrm but the others may be zero length. A select case determines if Len(strFrmSubSub), we need the following reference to call the form's public ValidateDate procedure: Case Len(strFrmSubSub) Forms(strFrm).(strFrmSub).Form.(strFrmSubSub).Form.ValidateDate Case Len(strFrmSub) Forms(strFrm).(strFruSub).Form.ValidateDate Case Else Forms(strFrm).ValidateDate Where it gets messy is when there are numerous controls that have multiple date textboxes with different validation events. This is handled in the got focus event of the form that sets a module scoped variable that is resolved in a select case on the form as to which control's validation event runs in the form's ValidateDate procedure. Of course, several date textboxes can share the same validation routine on a control provided they need to meet the same criteria. Is there a cleaner way? Can I raise the before update event of the control from a popup form to cancel the calendar unload? It would be ideal to be able to pass a reference to the control in the event that opens the form and raise its before update when a date is clicked on the calendar. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ IM on the go with Messenger on your phone http://go.microsoft.com/?linkid=9712960 -- 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 Fri Mar 19 15:02:09 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 19 Mar 2010 15:02:09 -0500 Subject: [AccessD] PDF into Access In-Reply-To: <000c01cac798$bcf59d10$5bdea8c0@edz1> References: <000c01cac798$bcf59d10$5bdea8c0@edz1> Message-ID: With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 Gustav at cactus.dk Fri Mar 19 16:38:58 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Mar 2010 22:38:58 +0100 Subject: [AccessD] PDF into Access Message-ID: Hi Ed You can run the command line converter ps2txt.exe (which converts pdf files as well as ps files): http://www.verydoc.com/ps-to-text.html The evaluation version will run forever and can convert a couple of pages to text which you then can parse for information/data to import. /gustav >>> edzedz at comcast.net 19-03-2010 20:16 >>> Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. From edzedz at comcast.net Fri Mar 19 17:46:01 2010 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 19 Mar 2010 15:46:01 -0700 Subject: [AccessD] PDF into Access In-Reply-To: Message-ID: <000f01cac7b5$f3dee6c0$5bdea8c0@edz1> Hi Drew, I have office 2000. And access to a computer with access 2003. Is there any ADD-IN that can be used with PDF files ? Thanks. Ed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 19, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 edzedz at comcast.net Fri Mar 19 17:53:37 2010 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 19 Mar 2010 15:53:37 -0700 Subject: [AccessD] PDF into Access In-Reply-To: Message-ID: <001001cac7b7$033889e0$5bdea8c0@edz1> Yes Charlotte, that is the case. The PDF data is a report in tabular form where if a column doesn't have data, the PDF text export doesn't leave an indication that the column was empty. So if several columns have no data, it is hard to figure out which date belongs under what column heading. I have played with the free download product from http://www.simpopdf.com/ It at least will make a text file that keeps the columns lined up, thus I can parse the data knowing which date belongs to what column. So, are there any ADD-IN's, or something, that be part of MsAccess that can do the same ? Or some other better solution ? Thanks. Ed. . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, March 19, 2010 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access Are you talking about extracting the data from a PDF file or storing the file in a database? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 12:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Fri Mar 19 17:57:12 2010 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 19 Mar 2010 16:57:12 -0600 Subject: [AccessD] Pop up Calendar date validation In-Reply-To: References: <4B9FE4EC.3040607@colbyconsulting.com>, , <0ECE0613B7A24E859C4938F8CA87D874@Server>, , <4BA14480.25148.17A1F33F@stuart.lexacorp.com.pg>, , <6BA840870C4D4005B5DD866C4853452A@Server>, , , , <44A77D3FF3524568A998CB5E1627DB54@Server>, , <3706.24.35.23.165.1268935146.squirrel@mail.expedient.net>, , , , <6FC73BAF8E72426CA8DC451E7839C099@jislaptopdev>, , , , <4dd71a0c1003190843h464f3c1du48e24f930595ae52@mail.gmail.com>, , Message-ID: Drew: That would be worth having a look at. What I'm really looking at is raising events on the form containing the date control that's being changed by the calendar. I've seen your mini calendar and it is similar to mine in many ways. I added a few bells and whistles to mine to allow it to be used to show appointments for multiple people and to set appointments based on a multi-select list of people to notify, a list of 32 for each long with some bitwise query joins. All unbound mind you, but definitely not something likely to cause multi user conflicts in the manner we used it. I had to builit a scroll bar out of Access controls to navigate the records which were stored in an array of controls (control array?, not quite but really close). What a dog's breakfast of code that all turned out to be. 30 odd module level variables, mouse move on a scaled size thumb that responed clicks above and below and on the ears... The one I now use is actually messier than I described. In order to figure out the subform control names, I have to compare the control reference using the IS operator with like named controls on each of the subforms with the same source object. But it does require an interation for control type = 112 and test of source object and trap the error when the control name is not found. The reason this is necessary is because the form name and it's control name on a form must be different when multi-instances of the form are embedded in a form. If ctlTxt Is Forms(strFrm)(strSubFrm).Form(strSubSubForm).Form(ctlTxt.Name) Then exit the For control iteration and leave the str variables set. It also requires a public ValidateDate function on each form that uses a textbox date control. I had it implemented for a few years and then started working with Outlook tasks. The focus events on the scroll bar were making me crazy as I needed always to return focus to the last control. I understand the caveats. My email is as stated below or you can use my corp account: jurgenw a t gracom.ca. Corp account requires an innocuous file extension or it will be blocked. I think I have a 10 mB file attachment limit. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > Date: Fri, 19 Mar 2010 14:59:24 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Pop up Calendar date validation > > Jurgen, years ago I began writing an update to my Access 97 MiniCalendar. It's written in Access 2000, and is event driven. In other words, when you open it up, you are actually dimming it 'withevents', so you actually get an event raised when a date is clicked on the calendar. > > I'd be more than happy to send this new version to you offlist, but with the caveat that it would be 'as is' . The calendar works just fine, it even has a 'sample form' so you can see how to implement and use it. It's got a LOT of code behind it. Has dropdown forms on it, etc. Lots of fun and neat stuff. Some things I never finished, which is why I haven't put it out in the wild. But there have been a handful of times where I needed a calendar, and I've thrown that working version in, and it's worked just fine. > > Drew > _________________________________________________________________ Check your Hotmail from your phone. http://go.microsoft.com/?linkid=9712957 From rockysmolin at bchacc.com Fri Mar 19 18:14:22 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 19 Mar 2010 16:14:22 -0700 Subject: [AccessD] Combo Box Query Fails Message-ID: Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky From max.wanadoo at gmail.com Fri Mar 19 18:39:02 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 19 Mar 2010 23:39:02 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: References: Message-ID: <9AE11ABD0DED4B9A8008261665E31EF4@Server> Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky From accessd at shaw.ca Fri Mar 19 18:49:35 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 19 Mar 2010 16:49:35 -0700 Subject: [AccessD] PDF into Access In-Reply-To: <000f01cac7b5$f3dee6c0$5bdea8c0@edz1> References: <000f01cac7b5$f3dee6c0$5bdea8c0@edz1> Message-ID: <9CA25877B94542CF9424B0682950F9AF@creativesystemdesigns.com> Hi Edward: There is Adobe PDF reader... Just select a file with the appropriate extension 'pdf' and your are good to go... no add-ins or nothing. That can be easily done in code. One line I believe; DOCMD.... If you are talking about creating PDF files through Access, that is also fairly straight forward but does require a bit more code and a free third party app: PDFCreator. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Drew, I have office 2000. And access to a computer with access 2003. Is there any ADD-IN that can be used with PDF files ? Thanks. Ed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 19, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Mar 19 18:53:38 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 19 Mar 2010 16:53:38 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <000701cac765$7d633b40$7829b1c0$@com> References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> Message-ID: Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Fri Mar 19 18:53:44 2010 From: davidmcafee at gmail.com (David McAfee) Date: Fri, 19 Mar 2010 16:53:44 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: References: Message-ID: <8786a4c01003191653j630b7032h7f6a48d3db49f282@mail.gmail.com> Yes, I was going to say the same thing. Using Sagekey script should deal with the issue of his box with Office 2003 (with or without access). On Fri, Mar 19, 2010 at 4:14 PM, Rocky Smolin wrote: > Dear List: > > New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime > (Wise/Sagekey). ?The program file itself is an mde. > > Runs fine on his box. ?All other boxes on his network fail when he tries > this combo box that has a query as its row source. ?The query uses Left, > Instr, and Chr(10) and that is failing. > > I discovered one difference between his box and the other - he's got Office > 2003 Standard (no Access); the box we were testing it where it failed has > Office 97 - Word, Excel, PowerPoint. > > Could that be creating the problem? > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From rockysmolin at bchacc.com Fri Mar 19 20:15:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 19 Mar 2010 18:15:31 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <9AE11ABD0DED4B9A8008261665E31EF4@Server> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server> Message-ID: <8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Mar 20 04:06:02 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 20 Mar 2010 09:06:02 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server> <8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> Message-ID: <609C991C00584789AD7C0893B3AA9262@Server> Ok, but I still think it is one of the references. Different versions perhaps. Can you provide a 97 version for the other boxes? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 20, 2010 1:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cclenright at yahoo.com Sat Mar 20 06:26:31 2010 From: cclenright at yahoo.com (Chris Enright) Date: Sat, 20 Mar 2010 04:26:31 -0700 (PDT) Subject: [AccessD] loretta clark Message-ID: <591468.25226.qm@web34305.mail.mud.yahoo.com> http://abibjanvie.com/olivier.html From darren at activebilling.com.au Sat Mar 20 06:39:26 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Sat, 20 Mar 2010 22:39:26 +1100 Subject: [AccessD] loretta clark In-Reply-To: <591468.25226.qm@web34305.mail.mud.yahoo.com> References: <591468.25226.qm@web34305.mail.mud.yahoo.com> Message-ID: <037356869FC84FB8A3A2E1C445A9D818@darrendPC> Dufus here clicked on that link - Bugger!!!!!!!!!!!!! For anyone who's interested - Don't click on it It's the Canadian Health Care Mall - Selling Viagra, Cialis and so on. Do I need to run a scan now???????????? Chris E, who is Loretta Clark and what's the link for? Anyone know what this is about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, 20 March 2010 10:27 PM To: elhovo at bulgarianproperties.com; accessd at databaseadvisors.com; admin at shadow-blades.com; aniaw at flashecom.com; peter.archer at ndevon.swest.nhs.uk; becca at pressies4princesses.co.uk; dekra at orange.net; luke at langocity.com; Orders at uk66.com Subject: [AccessD] loretta clark http://abibjanvie.com/olivier.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Mar 20 08:48:23 2010 From: robert at servicexp.com (Robert) Date: Sat, 20 Mar 2010 09:48:23 -0400 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> Message-ID: <000601cac834$033833f0$09a89bd0$@com> Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sat Mar 20 11:16:23 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sat, 20 Mar 2010 09:16:23 -0700 Subject: [AccessD] PDF into Access In-Reply-To: <9CA25877B94542CF9424B0682950F9AF@creativesystemdesigns.com> Message-ID: <001901cac848$afbbc740$5bdea8c0@edz1> Hi Jim, I think I am missing something here. The PDF reader can make a text file, but if the data is columns and rows of dates where every so often a column will be missing a date, the text will shift the next date to the left. Thus after awhile you can't tell which date belongs to which column. Are we talking about two different things ? Thanks. Edward. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 4:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Edward: There is Adobe PDF reader... Just select a file with the appropriate extension 'pdf' and your are good to go... no add-ins or nothing. That can be easily done in code. One line I believe; DOCMD.... If you are talking about creating PDF files through Access, that is also fairly straight forward but does require a bit more code and a free third party app: PDFCreator. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Drew, I have office 2000. And access to a computer with access 2003. Is there any ADD-IN that can be used with PDF files ? Thanks. Ed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 19, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 20 11:47:40 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 20 Mar 2010 09:47:40 -0700 Subject: [AccessD] loretta clark In-Reply-To: <037356869FC84FB8A3A2E1C445A9D818@darrendPC> References: <591468.25226.qm@web34305.mail.mud.yahoo.com> <037356869FC84FB8A3A2E1C445A9D818@darrendPC> Message-ID: <351B250097A74877B6ECD90E7A77324A@creativesystemdesigns.com> Darren: Just delete it... after a while you sort of get an instinct about these things. Someone must have sent it through the DBA lists... it could be a zombie driven thing from some unexpecting member. If you get a chance, now that you have openned it, trace its source. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active Billing Sent: Saturday, March 20, 2010 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] loretta clark Dufus here clicked on that link - Bugger!!!!!!!!!!!!! For anyone who's interested - Don't click on it It's the Canadian Health Care Mall - Selling Viagra, Cialis and so on. Do I need to run a scan now???????????? Chris E, who is Loretta Clark and what's the link for? Anyone know what this is about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright Sent: Saturday, 20 March 2010 10:27 PM To: elhovo at bulgarianproperties.com; accessd at databaseadvisors.com; admin at shadow-blades.com; aniaw at flashecom.com; peter.archer at ndevon.swest.nhs.uk; becca at pressies4princesses.co.uk; dekra at orange.net; luke at langocity.com; Orders at uk66.com Subject: [AccessD] loretta clark http://abibjanvie.com/olivier.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 20 12:20:38 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 20 Mar 2010 10:20:38 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <000601cac834$033833f0$09a89bd0$@com> References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> <000601cac834$033833f0$09a89bd0$@com> Message-ID: Hi Robert: I have already ran into error number 5... sort of resolved it by making it a separate function, turn off errors and then catching the error and looping until it works... Another one is the use the 'sleep' function. I think it is as much the Windows7 OS and the faster computers as it is the Access version. I have already started to have issues with Access2003 and have found that if I can get control of the processing it 'seems' to work better. Here is a couple of methods I have found that help: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) ... DoCmd.Close, "MyForm" intLoop = 0 Do While (IsLoaded("MyForm")=True) And (intLoop < 5000) intloop = intloop + 1 Sleep 200 Loop ...or sometimes just plain... Sleep 2000 ...and then the DoEvents... bolLoaded = True DoCmd.OpenForm "Customers" 'bolLoaded is set to False on Close Do While bolLoaded = True DoEvents Loop ...and you are saying that it will only get worse! I wonder if Access2007 should just be avoided and jump right to Access2010? ...or should I just rewrite the code in .Net and charge the client 10 to 15K for the process? ;-) Thanks for the heads up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, March 20, 2010 6:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 20 12:31:53 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 20 Mar 2010 10:31:53 -0700 Subject: [AccessD] PDF into Access In-Reply-To: <001901cac848$afbbc740$5bdea8c0@edz1> References: <9CA25877B94542CF9424B0682950F9AF@creativesystemdesigns.com> <001901cac848$afbbc740$5bdea8c0@edz1> Message-ID: <13DDD192CAE546B0B42BD53F02F53A24@creativesystemdesigns.com> Hi Edward: I have only managed PDF files as far as translating reports to PDF files and reading PDF files while in Access. The translating of PDF files to text is something I have avoided because like you I have found out the results are not always consistent. Unless you are up to building a really complex parser or have a very static data layout it is going to be real difficult. Why not work with vanilla spreadsheet CSV type files? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Saturday, March 20, 2010 9:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Jim, I think I am missing something here. The PDF reader can make a text file, but if the data is columns and rows of dates where every so often a column will be missing a date, the text will shift the next date to the left. Thus after awhile you can't tell which date belongs to which column. Are we talking about two different things ? Thanks. Edward. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 4:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Edward: There is Adobe PDF reader... Just select a file with the appropriate extension 'pdf' and your are good to go... no add-ins or nothing. That can be easily done in code. One line I believe; DOCMD.... If you are talking about creating PDF files through Access, that is also fairly straight forward but does require a bit more code and a free third party app: PDFCreator. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Drew, I have office 2000. And access to a computer with access 2003. Is there any ADD-IN that can be used with PDF files ? Thanks. Ed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 19, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sat Mar 20 14:19:59 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sat, 20 Mar 2010 12:19:59 -0700 Subject: [AccessD] PDF into Access In-Reply-To: <13DDD192CAE546B0B42BD53F02F53A24@creativesystemdesigns.com> Message-ID: <001101cac862$5a74ba70$5bdea8c0@edz1> The data is sent to me in PDF form. So, I am kind of stuck. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 20, 2010 10:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Edward: I have only managed PDF files as far as translating reports to PDF files and reading PDF files while in Access. The translating of PDF files to text is something I have avoided because like you I have found out the results are not always consistent. Unless you are up to building a really complex parser or have a very static data layout it is going to be real difficult. Why not work with vanilla spreadsheet CSV type files? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Saturday, March 20, 2010 9:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Jim, I think I am missing something here. The PDF reader can make a text file, but if the data is columns and rows of dates where every so often a column will be missing a date, the text will shift the next date to the left. Thus after awhile you can't tell which date belongs to which column. Are we talking about two different things ? Thanks. Edward. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 4:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Edward: There is Adobe PDF reader... Just select a file with the appropriate extension 'pdf' and your are good to go... no add-ins or nothing. That can be easily done in code. One line I believe; DOCMD.... If you are talking about creating PDF files through Access, that is also fairly straight forward but does require a bit more code and a free third party app: PDFCreator. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] PDF into Access Hi Drew, I have office 2000. And access to a computer with access 2003. Is there any ADD-IN that can be used with PDF files ? Thanks. Ed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 19, 2010 1:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF into Access With Office 2003, you have a Microsoft Document Printer (or something along those lines, you have to have all the features/tools installed for Office 2003). Printing to that printer, will create a file that will open in another Office tool that has OCR capabilities. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, March 19, 2010 2:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] PDF into Access Any suggestions on how to import PDF files/data in to Access 2000 and 2003 ? Thanks. Sincerely, Ed Zuris. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sat Mar 20 14:32:03 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sat, 20 Mar 2010 12:32:03 -0700 Subject: [AccessD] Any VBA code thats reads PDF Message-ID: <000001cac864$058ad5b0$5bdea8c0@edz1> Is there any VBA code available around out there that can read PDF file data ? I am sure, I an not the first programmer to run into this. Or any ideas that would help. Many Thanks. Sincerely, Edward S. Zuris. From Gustav at cactus.dk Sat Mar 20 13:49:10 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Mar 2010 19:49:10 +0100 Subject: [AccessD] Any VBA code thats reads PDF Message-ID: Hi Edward No you are not the first. As mentioned, ps2txt works great. /gustav >>> edzedz at comcast.net 20-03-2010 20:32 >>> Is there any VBA code available around out there that can read PDF file data ? I am sure, I an not the first programmer to run into this. Or any ideas that would help. Many Thanks. Sincerely, Edward S. Zuris. From max.wanadoo at gmail.com Sat Mar 20 14:16:30 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 20 Mar 2010 19:16:30 -0000 Subject: [AccessD] Outlook Automation Problem In-Reply-To: References: <67EB8564B9264AD089F9F729F744D1AF@HAL9005> <8610DE20372A454595285A06872FADED@HAL9005> Message-ID: I have run into a problem where Outlook has "locked down" the rules - cannot change or delete them and they don't run. All the options in the rules form are grayed. Any ideas folks> Max From stuart at lexacorp.com.pg Sat Mar 20 16:50:14 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 21 Mar 2010 07:50:14 +1000 Subject: [AccessD] loretta clark In-Reply-To: <351B250097A74877B6ECD90E7A77324A@creativesystemdesigns.com> References: <591468.25226.qm@web34305.mail.mud.yahoo.com>, <037356869FC84FB8A3A2E1C445A9D818@darrendPC>, <351B250097A74877B6ECD90E7A77324A@creativesystemdesigns.com> Message-ID: <4BA54316.18384.273C79FD@stuart.lexacorp.com.pg> Tracing its source doesn't help much, it's from a compromised Yahoo account: Received: from [69.147.111.189] by web34305.mail.mud.yahoo.com via HTTP; Sat, 20 Mar 2010 04:26:31 PDT X-Mailer: YahooMailWebService/0.8.100.260964 (69.147.111.189 is a Yahoo server in Sunnyvale, California) -- Stuart On 20 Mar 2010 at 9:47, Jim Lawrence wrote: > Darren: Just delete it... after a while you sort of get an instinct about > these things. Someone must have sent it through the DBA lists... it could be > a zombie driven thing from some unexpecting member. If you get a chance, now > that you have openned it, trace its source. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active > Billing > Sent: Saturday, March 20, 2010 4:39 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] loretta clark > > Dufus here clicked on that link - Bugger!!!!!!!!!!!!! > > For anyone who's interested - Don't click on it > > It's the Canadian Health Care Mall - Selling Viagra, Cialis and so on. > > Do I need to run a scan now???????????? > > Chris E, who is Loretta Clark and what's the link for? > > Anyone know what this is about? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Enright > Sent: Saturday, 20 March 2010 10:27 PM > To: elhovo at bulgarianproperties.com; accessd at databaseadvisors.com; > admin at shadow-blades.com; aniaw at flashecom.com; > peter.archer at ndevon.swest.nhs.uk; becca at pressies4princesses.co.uk; > dekra at orange.net; luke at langocity.com; Orders at uk66.com > Subject: [AccessD] loretta clark > > http://abibjanvie.com/olivier.html > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Mar 20 16:54:54 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 21 Mar 2010 07:54:54 +1000 Subject: [AccessD] PDF into Access In-Reply-To: <001101cac862$5a74ba70$5bdea8c0@edz1> References: <13DDD192CAE546B0B42BD53F02F53A24@creativesystemdesigns.com>, <001101cac862$5a74ba70$5bdea8c0@edz1> Message-ID: <4BA5442E.10034.2740BC4A@stuart.lexacorp.com.pg> Bottom line - PDF is just not a suitable format for sharing of structured data. Unless you can get the people sending the data to use an appropriate file type, you will always have problems extractng the data consistently. -- Stuart On 20 Mar 2010 at 12:19, Edward Zuris wrote: > > The data is sent to me in PDF form. > > So, I am kind of stuck. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Saturday, March 20, 2010 10:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] PDF into Access > > Hi Edward: > > I have only managed PDF files as far as > translating reports to PDF files and reading > PDF files while in Access. The translating > of PDF files to text is something I have > avoided because like you I have found out > the results are not always consistent. > Unless you are up to building a really > complex parser or have a very static data > layout it is going to be real difficult. > > Why not work with vanilla spreadsheet CSV type files? > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris > Sent: Saturday, March 20, 2010 9:16 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] PDF into Access > > > Hi Jim, > > I think I am missing something here. > > The PDF reader can make a text file, but if the > data is columns and rows of dates where every so > often a column will be missing a date, the text > will shift the next date to the left. Thus after > awhile you can't tell which date belongs to > which column. > > Are we talking about two different things ? > > Thanks. > > Edward. . . . > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Friday, March 19, 2010 4:50 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] PDF into Access > > > Hi Edward: > > There is Adobe PDF reader... Just select a file with > the appropriate extension 'pdf' and your are good to > go... no add-ins or nothing. That can be easily done > in code. One line I believe; DOCMD.... > > If you are talking about creating PDF files through > Access, that is also fairly straight forward but does > require a bit more code and a free third > party app: PDFCreator. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris > Sent: Friday, March 19, 2010 3:46 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] PDF into Access > > > Hi Drew, > > I have office 2000. > > And access to a computer with access 2003. > > Is there any ADD-IN that can be used with > PDF files ? > > Thanks. > > Ed. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, March 19, 2010 1:02 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] PDF into Access > > > With Office 2003, you have a Microsoft Document Printer (or something > along those lines, you have to have all the features/tools installed for > Office 2003). Printing to that printer, will create a file that will > open in another Office tool that has OCR capabilities. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris > Sent: Friday, March 19, 2010 2:17 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] PDF into Access > > > Any suggestions on how to import PDF files/data > in to Access 2000 and 2003 ? > > Thanks. > > Sincerely, > Ed Zuris. > > > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dw-murphy at cox.net Sat Mar 20 16:57:11 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 20 Mar 2010 14:57:11 -0700 Subject: [AccessD] Outlook Automation Problem In-Reply-To: References: <67EB8564B9264AD089F9F729F744D1AF@HAL9005> <8610DE20372A454595285A06872FADED@HAL9005> Message-ID: Check Outlook/Help/About Outlook/Disabled Items. This is a guess but sometime Outlook turns things off -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, March 20, 2010 12:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Automation Problem I have run into a problem where Outlook has "locked down" the rules - cannot change or delete them and they don't run. All the options in the rules form are grayed. Any ideas folks> Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Mar 20 17:10:13 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 21 Mar 2010 08:10:13 +1000 Subject: [AccessD] Any VBA code thats reads PDF In-Reply-To: <000001cac864$058ad5b0$5bdea8c0@edz1> References: <000001cac864$058ad5b0$5bdea8c0@edz1> Message-ID: <4BA547C5.5033.274EC34C@stuart.lexacorp.com.pg> PDF stands for Portable Document Format. It is a "language" which describes how to display pieces of information (printable characters, images etc) on a page. It consists of a collection of instructions to the PDF reader application along the lines of "display the characters '12345' at position (x,y) on page 3". It does not retain tabulated data in a tabulated structure. Essentially, you are asking how to unscramble scrambled eggs or how to extract the butter, flour, eggs and milk separately out of a baked cake. However ( ain't there always one of those) - if you are asking about Formdata in a PDF, the situation is different. Formdata is where tthe PDF document is specifically designed with data fields for the users to fill out using an appropriate program. This data can be extracted. \ Take a look at A-PDF at http://www.a-pdf.com/form-data-extractor/ or the CutePDF SDK at http://www.cutepdf.com/solutions/FormSDK2.asp for a couple of tools that you could integrate with VBA using Shell(). You can use these to extract the data to a temporary file which you can then import into Access. -- Stuart On 20 Mar 2010 at 12:32, Edward Zuris wrote: > > Is there any VBA code available around out > there that can read PDF file data ? > > I am sure, I an not the first programmer to > run into this. > > Or any ideas that would help. > > Many Thanks. > > Sincerely, > Edward S. Zuris. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Mar 20 19:02:41 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 20 Mar 2010 17:02:41 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <609C991C00584789AD7C0893B3AA9262@Server> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> <609C991C00584789AD7C0893B3AA9262@Server> Message-ID: <5356E446394C4991A383B7E94CD44D9A@HAL9005> No deal. I can't roll this app back to 97. Too many differences. I'm urging him to get Office 2003 w/Access. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, March 20, 2010 2:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Ok, but I still think it is one of the references. Different versions perhaps. Can you provide a 97 version for the other boxes? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 20, 2010 1:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Mar 20 19:38:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 20 Mar 2010 17:38:47 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <5356E446394C4991A383B7E94CD44D9A@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><609C991C00584789AD7C0893B3AA9262@Server> <5356E446394C4991A383B7E94CD44D9A@HAL9005> Message-ID: <3180D43E2C624A51AB5B225D359A3C6A@HAL9005> Here's a communication from the client and my questions: ************************************************** Hi Rocky, I installed the new 2319 file on my wife's Sony VAIO and it works fine. *** Was E-Z-MRP connected to the back end on your server or running locally on her machine? It also works fine on my Sony VAIO. *** Was E-Z-MRP connected to the back end on your server or running locally on your machine? Both computers run XP as well as Office 2003 (without Access and Outlook). Based on this it seemed reasonable to assume that the lack of Office 2003 was the problem. *** I think getting Office 2003 with Access will be the ultimate solution. I also installed the new 2319 you sent on another computer and still had the problem. *** Did this other computer have Office 97 installed? *** On this other computer was E-Z-MRP connected to the back end on your server or running locally on this machine? I then installed Office 2003 on said computer but the problem persisted. *** Was Office 97 also installed? If so try uninstalling both versions of Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. I started thinking that maybe Windows 7 on the server was the problem. *** I don't think that the OS on the server is relevant. The mdb on the server is being read by Access in the client machine. I then installed the TSi company file on the old server--still had the same problem. *** Again, the server is not the problem. I think we checked that out by running the back end locally on one of the machines with Office 97 and generated the error. The error message is now random *** Random how? Does it work sometimes and not other times? Or are you getting different errors? --when I click on the arrow I don't see any address information except on the two VAIOS. This is REALLY STRANGE. HELP!!!! *** But consistent. I have never encountered this problem before at a client site and am polling my forum for clues. Again, I think the ultimate answer will be to upgrade all the clients to Office 2003. ************************************************** Any clues there? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 20, 2010 5:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails No deal. I can't roll this app back to 97. Too many differences. I'm urging him to get Office 2003 w/Access. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, March 20, 2010 2:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Ok, but I still think it is one of the references. Different versions perhaps. Can you provide a 97 version for the other boxes? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, March 20, 2010 1:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Sat Mar 20 20:43:15 2010 From: edzedz at comcast.net (Edward Zuris) Date: Sat, 20 Mar 2010 18:43:15 -0700 Subject: [AccessD] Any VBA code thats reads PDF In-Reply-To: <4BA547C5.5033.274EC34C@stuart.lexacorp.com.pg> Message-ID: <000001cac897$e036b8e0$5bdea8c0@edz1> Thanks Stuart, I am already playing with a-pdf's PDFtoExcel product. And think I can automate it using a shell command. The scrambled eggs is the misleading text file that the PDF reader creates. If said text file kept all the spaces then I could figure out the rest. I have worked with worse text file reports. I look into the cutePDF to see if I can use it. Thanks. Edz. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, March 20, 2010 3:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Any VBA code thats reads PDF PDF stands for Portable Document Format. It is a "language" which describes how to display pieces of information (printable characters, images etc) on a page. It consists of a collection of instructions to the PDF reader application along the lines of "display the characters '12345' at position (x,y) on page 3". It does not retain tabulated data in a tabulated structure. Essentially, you are asking how to unscramble scrambled eggs or how to extract the butter, flour, eggs and milk separately out of a baked cake. However ( ain't there always one of those) - if you are asking about Formdata in a PDF, the situation is different. Formdata is where tthe PDF document is specifically designed with data fields for the users to fill out using an appropriate program. This data can be extracted. \ Take a look at A-PDF at http://www.a-pdf.com/form-data-extractor/ or the CutePDF SDK at http://www.cutepdf.com/solutions/FormSDK2.asp for a couple of tools that you could integrate with VBA using Shell(). You can use these to extract the data to a temporary file which you can then import into Access. -- Stuart On 20 Mar 2010 at 12:32, Edward Zuris wrote: > > Is there any VBA code available around out > there that can read PDF file data ? > > I am sure, I an not the first programmer to > run into this. > > Or any ideas that would help. > > Many Thanks. > > Sincerely, > Edward S. Zuris. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Mar 20 20:41:13 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 20 Mar 2010 21:41:13 -0400 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <3180D43E2C624A51AB5B225D359A3C6A@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><609C991C00584789AD7C0893B3AA9262@Server><5356E446394C4991A383B7E94CD44D9A@HAL9005> <3180D43E2C624A51AB5B225D359A3C6A@HAL9005> Message-ID: ...have their A2k3 runtimes been updated to the latest version? William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, March 20, 2010 8:38 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Combo Box Query Fails > Here's a communication from the client and my questions: > > ************************************************** > Hi Rocky, > > I installed the new 2319 file on my wife's Sony VAIO and it works fine. > *** Was E-Z-MRP connected to the back end on your server or running > locally > on her machine? > > It also works fine on my Sony VAIO. > *** Was E-Z-MRP connected to the back end on your server or running > locally > on your machine? > > Both computers run XP as well as Office 2003 (without Access and Outlook). > Based on this it seemed reasonable to assume that the lack of Office 2003 > was the problem. > *** I think getting Office 2003 with Access will be the ultimate solution. > > I also installed the new 2319 you sent on another computer and still had > the problem. > *** Did this other computer have Office 97 installed? > *** On this other computer was E-Z-MRP connected to the back end on your > server or running locally on this machine? > > I then installed Office 2003 on said computer but the problem persisted. > *** Was Office 97 also installed? If so try uninstalling both versions of > Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. > > I started thinking that maybe Windows 7 on the server was the problem. > *** I don't think that the OS on the server is relevant. The mdb on the > server is being read by Access in the client machine. > > I then installed the TSi company file on the old server--still had the > same > problem. > *** Again, the server is not the problem. I think we checked that out by > running the back end locally on one of the machines with Office 97 and > generated the error. > > The error message is now random > *** Random how? Does it work sometimes and not other times? Or are you > getting different errors? > > --when I click on the arrow I don't see any address information except on > the two VAIOS. This is REALLY STRANGE. HELP!!!! > *** But consistent. I have never encountered this problem before at a > client site and am polling my forum for clues. > > Again, I think the ultimate answer will be to upgrade all the clients to > Office 2003. > ************************************************** > > Any clues there? > > MTIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Saturday, March 20, 2010 5:03 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > No deal. > > I can't roll this app back to 97. Too many differences. I'm urging him > to > get Office 2003 w/Access. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Saturday, March 20, 2010 2:06 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Ok, but I still think it is one of the references. Different versions > perhaps. > > Can you provide a 97 version for the other boxes? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Saturday, March 20, 2010 1:16 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Can't check the refs because it's an mde. But there should be no ref > problem with the Wise/Sagekey install. At least I've never had one before > with any mde. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Friday, March 19, 2010 4:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Rocky, > > My suspicion when "common" items such as these fail is that there is a > missing reference which has nothing to do with these particular functions > but which just case Access to wobble. > > Can he check the Refs to see if there is a Missing one? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, March 19, 2010 11:14 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Combo Box Query Fails > > Dear List: > > New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime > (Wise/Sagekey). The program file itself is an mde. > > Runs fine on his box. All other boxes on his network fail when he tries > this combo box that has a query as its row source. The query uses Left, > Instr, and Chr(10) and that is failing. > > I discovered one difference between his box and the other - he's got > Office > 2003 Standard (no Access); the box we were testing it where it failed has > Office 97 - Word, Excel, PowerPoint. > > Could that be creating the problem? > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sat Mar 20 20:50:19 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 20 Mar 2010 21:50:19 -0400 Subject: [AccessD] Any VBA code thats reads PDF In-Reply-To: <000001cac897$e036b8e0$5bdea8c0@edz1> References: <000001cac897$e036b8e0$5bdea8c0@edz1> Message-ID: <737272CAEE714E99AEE7A8954BCB0DC3@jislaptopdev> ...you really need to talk to your client before investing so much time in something that most likely isn't going to work reliably anyway ...whoever is generating the pdf can almost certainly produce a usable file quite easily if they understood the problem ...or pay for you to have each report rekeyed on your end ...imnsho of course. ...clients are usually more than willing to fix such things once they understand that it is a cost driver. William -------------------------------------------------- From: "Edward Zuris" Sent: Saturday, March 20, 2010 9:43 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Any VBA code thats reads PDF > > Thanks Stuart, > > I am already playing with a-pdf's PDFtoExcel product. > And think I can automate it using a shell command. > > The scrambled eggs is the misleading text file that > the PDF reader creates. If said text file kept all > the spaces then I could figure out the rest. > > I have worked with worse text file reports. > > I look into the cutePDF to see if I can use it. > > Thanks. > > Edz. . . . > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Saturday, March 20, 2010 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Any VBA code thats reads PDF > > > PDF stands for Portable Document Format. It is a "language" which > describes how to display > pieces of information (printable characters, images etc) on a page. It > consists of a collection > of instructions to the PDF reader application along the lines of > "display the characters '12345' > at position (x,y) on page 3". > > It does not retain tabulated data in a tabulated structure. > Essentially, you are asking how to > unscramble scrambled eggs or how to extract the butter, flour, eggs and > milk separately out > of a baked cake. > > However ( ain't there always one of those) - if you are asking about > Formdata in a PDF, the > situation is different. Formdata is where tthe PDF document is > specifically designed with > data fields for the users to fill out using an appropriate program. This > data can be extracted. \ > > Take a look at A-PDF at http://www.a-pdf.com/form-data-extractor/ or the > CutePDF SDK at > http://www.cutepdf.com/solutions/FormSDK2.asp for a couple of tools that > you could > integrate with VBA using Shell(). You can use these to extract the data > to a temporary file > which you can then import into Access. > > -- > Stuart > > > On 20 Mar 2010 at 12:32, Edward Zuris wrote: > >> >> Is there any VBA code available around out >> there that can read PDF file data ? >> >> I am sure, I an not the first programmer to >> run into this. >> >> Or any ideas that would help. >> >> Many Thanks. >> >> Sincerely, >> Edward S. Zuris. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Sun Mar 21 03:21:57 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 21 Mar 2010 08:21:57 -0000 Subject: [AccessD] Outlook Automation Problem In-Reply-To: References: <67EB8564B9264AD089F9F729F744D1AF@HAL9005> <8610DE20372A454595285A06872FADED@HAL9005> Message-ID: <9907604912B946EB9D3EA862FF5C2048@Server> Hi Doug, I didn't know about that - intersting but doesn't solve my problem. That particular box says that there is nothing disabled. I have turned Macro security to LOW in case that was the problem. On the Tools/Rules Alerts I can see the rules with tick boxes. The only options available are the up/down blue arrows which will move the rule ok. A button which says "New Rule". That works and the rule created can be edited, deleted etc. A button which says "Run Rule Now" which works but display a blank box with no rules shown to choose from. A button which says "Options". This allows me to export and re-import the rules but all I get is double the amount of rules all in the same sad sorry codition of not wanting to come out and play. If I could delete them that would be ok. Any other ideas? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Saturday, March 20, 2010 9:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Automation Problem Check Outlook/Help/About Outlook/Disabled Items. This is a guess but sometime Outlook turns things off -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Saturday, March 20, 2010 12:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Automation Problem I have run into a problem where Outlook has "locked down" the rules - cannot change or delete them and they don't run. All the options in the rules form are grayed. Any ideas folks> Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Mar 21 11:34:46 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 21 Mar 2010 09:34:46 -0700 Subject: [AccessD] FW: Strange Ship/Bill To Problem Message-ID: <52144EE418A24B8BA5502E8A58ED7AA9@HAL9005> Further to the problem - here's the client's answers to my questions. TIA Rocky _____ From: Sent: Sunday, March 21, 2010 8:26 AM To: Rocky Smolin Subject: Re: Strange Ship/Bill To Problem Rocky, Thanks. I'll answer your questions below. Let's talk later. Regards, Peter On Sat, Mar 20, 2010 at 7:35 PM, Rocky Smolin wrote: Peter: Was gone all day on a long bike ride. Please see my questions and comments *** in line Rocky _____ From: Peter Nystrom [mailto:peter at tsipower.com] Sent: Saturday, March 20, 2010 1:32 PM To: rockysmolin at bchacc.com Subject: Strange Ship/Bill To Problem Hi Rocky, I installed the new 2319 file on my wife's Sony VAIO and it works fine. *** Was E-Z-MRP connected to the back end on your server or running locally on her machine? CONNECTED TO SERVER. It also works fine on my Sony VAIO. *** Was E-Z-MRP connected to the back end on your server or running locally on your machine? CONNECTED TO SERVER Both computers run XP as well as Office 2003 (without Access and Outlook). Based on this it seemed reasonable to assume that the lack of Office 2003 was the problem. *** I think getting Office 2003 with Access will be the ultimate solution. I HAVE ORDERED A COUPLE OF OFFICE 2003 PROFESSIONAL--ACCESS INCLUDED I also installed the new 2319 you sent on another computer and still had the problem. *** Did this other computer have Office 97 installed? NO *** On this other computer was E-Z-MRP connected to the back end on your server or running locally on this machine? CONNECTED TO SERVER I then installed Office 2003 on said computer but the problem persisted. *** Was Office 97 also installed? If so try uninstalling both versions of Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. 2003 WAS INSTALLED AS AN UPGRADE TO 97 I started thinking that maybe Windows 7 on the server was the problem. *** I don't think that the OS on the server is relevant. The mdb on the server is being read by Access in the client machine. I AGREE I then installed the TSi company file on the old server--still had the same problem. *** Again, the server is not the problem. I think we checked that out by running the back end locally on one of the machines with Office 97 and generated the error. I AGREE The error message is now random *** Random how? Does it work sometimes and not other times? Or are you getting different errors? THE MESSAGE I READ TO YOU FRIDAY WOULD RETURN ON A RANDOM BASIS. THIS NO LONGER HAPPENS. --when I click on the arrow I don't see any address information except on the two VAIOS. This is REALLY STRANGE. HELP!!!! *** But consistent. I have never encountered this problem before at a client site and am polling my forum for clues. I AGREE THAT IT IS CONSISTENT TO THE TWO VAIOS. CAN THE PROBLEM BE DIFFERENT VERSIONS OF XP? CAN IT BE A HARDWARE ISSUE? Again, I think the ultimate answer will be to upgrade all the clients to Office 2003. IF ALL GOES WELL I SHOULD RECEIVE THE TWO OFFICE 2003 COPIES BY TUESDAY. I still think this whole thing is quite strange. Hope you can help us solve the problem. Regards, Rocky Regards, Peter Nystrom From jeff.developer at gmail.com Sun Mar 21 14:19:42 2010 From: jeff.developer at gmail.com (Jeff B) Date: Sun, 21 Mar 2010 14:19:42 -0500 Subject: [AccessD] Introduction Letter Message-ID: Hey all, Just wondering if any of you have and are willing to share a sample of a letter you use to introduce yourselves to potential clients. I would prefer not to create one from scratch if I don?t have to. Anyone willing to share could send me their samples at my GMAIL account listed below. Many Thanks in Advance! Jeff Barrows MCP, MCAD, MCSD ? Outbak Technologies, LLC Racine, WI jeff.developer at gmail.com From robert at servicexp.com Sun Mar 21 17:56:13 2010 From: robert at servicexp.com (Robert) Date: Sun, 21 Mar 2010 18:56:13 -0400 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> <000601cac834$033833f0$09a89bd0$@com> Message-ID: <000001cac949$b5db3c80$2191b580$@com> Jim, Thanks for the code suggestion(s). Since re-writing an application that I have been working on for over 10 years, in DOT.NET isn't really an option for me.. :-), as I would have to learn .NET first... :-). I guess it would take me about 1-2 years to get to the point of just being able to work in it effectively, then what another 30 years to re-create the same app... :-) If this combination doesn't yield better "base" results over the next few Windows & Access updates, I have been giving serious thought of ending my development in it (just going to close the doors on the application development). It's becoming simply too painful dealing with Microsoft's increasing disregard for this (and others) products function and performance.. It seems that M$ is only interested in creating flashy new "gadgets", rather making sure the existing code base is stable and functioning properly. Never mind what the masses of tried and true Access developers want to see happen. I loved the early days of 1.1 and A97, when you felt like they were listening and fixing the problems being presented to them. Now..., In the sea of their own dissolutions, I'm not sure they can even hear the cry's of the countless Access developers.. I have a bad feeling A2010 will be no better than A2007 in regards to stability and performance, and if history repeats yet again most likely be worst... Ok, time to get of my box, and go play some chess..... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 20, 2010 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: I have already ran into error number 5... sort of resolved it by making it a separate function, turn off errors and then catching the error and looping until it works... Another one is the use the 'sleep' function. I think it is as much the Windows7 OS and the faster computers as it is the Access version. I have already started to have issues with Access2003 and have found that if I can get control of the processing it 'seems' to work better. Here is a couple of methods I have found that help: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) ... DoCmd.Close, "MyForm" intLoop = 0 Do While (IsLoaded("MyForm")=True) And (intLoop < 5000) intloop = intloop + 1 Sleep 200 Loop ...or sometimes just plain... Sleep 2000 ...and then the DoEvents... bolLoaded = True DoCmd.OpenForm "Customers" 'bolLoaded is set to False on Close Do While bolLoaded = True DoEvents Loop ...and you are saying that it will only get worse! I wonder if Access2007 should just be avoided and jump right to Access2010? ...or should I just rewrite the code in .Net and charge the client 10 to 15K for the process? ;-) Thanks for the heads up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, March 20, 2010 6:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at anz.com Sun Mar 21 18:45:46 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 22 Mar 2010 10:45:46 +1100 Subject: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION In-Reply-To: <4BA36594.7030103@colbyconsulting.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC91E@EXUAU020HWT110.oceania.corp.anz.com> Hi John, Sorry for the sluggish reply... We are a day ahead in here Oz so it was Friday afternoon real quick. Now of course it is Monday morning real quick as well .... Hmmmmm. There numerous ways to fire code (or call a form) from the worksheet. '------------------------------------------------------- 1: Form Button This method is the most simple and will work great in most Excel applications. There are a few drawbacks and gotchas, but these depend on what you want to do and how you use the workbook. To insert a form button goto the Excel Application and right mouse click anywhere in the command bar space (or even on a command bar) usually sitting between the top "File > Open Menu" and the actual worksheet. You will get a whole list of available toolbars, one of them will be called "Forms" - choose this one. The Forms toolbar will usually 'float' in the middle of the worksheet. Anyway, the 4th option will be "Insert button". Click on this and then 'draw' the button with the mouse on the worksheet. You can make it as big or small as you like (and resize it later if you get it wrong). When you finish the draw Excel immediately pops open an "assign macro" button. If you already have your code written (and it is not in a "option private" module you can see it here and assign it to the button. As all my code module are usually hidden from the users I just press cancel here to get rid of the pop up. These buttons are very simple. To rename the button you merely highlight the text and type what you want. You can change the font properties merely by using the font options on the toolbar - just like you would any font properties in the workbook or MS Word or whatever. To assign your code to it, right mouse click on the actual button - choose "assign macro" and copy or type in the name of your procedure you want to call when the user presses the button. Pros: - Very quick and easy to set up - Fairly reliable as long as users leave them alone and you are not doing lots of copy / paste worksheet stuff - Native to Excel so they rarely cause application issues or crashes. - No internal security issues Cons - It is easy for a user to foul these buttons up - rename, resize, delete etc. Worksheet protection and some button properties options can limit the potential damage but just be aware this maybe be an issue - If you are doing Excel trickery like copying and pasting sheets you can run into problems such as multiple buttons all sitting on top of each other, they look like one, but there maybe 100's of them there, this can cause Excel to become unstable. - If you copy the sheet to another workbook, Excel tries to be clever and will automatically link the button to the original workbook - this is usually a right PITA. '------------------------------------------------------- 2: Active X Control Button To insert an Active X Control button goto the Excel Application and right mouse click anywhere in the command bar space (or even on a command bar) usually sitting between the top "File > Open Menu" and the actual worksheet. You will get a whole list of available toolbars, one of them will be called "Control Toolbox" - choose this one. The 6th Option will be an Active X Button. These are a bit more fiddley to setup and use. For the novice they are downright confusing. Firstly I recommend you also make the "Visual Basic" Toolbar visible. You will need this toolbar to toggle the 'design mode' on and off. Without design mode turned on you cannot change any of the properties of the Active X button. To assign properties or changes the Active X command button. First goto the "visual basic" toolbar and ensure you are in design mode. You can toggle this on and off by press the design mode button on the toolbar. Once in design mode you can move and resize the command button. Right Mouse Click on the command button and the properties popup will appear. This is very similar to MS Access and is exactly the same as Excel VBE, only it floats in the actual application (weird but true). To make something happen when you press the button, you can Right Mouse Click on the command button (again when in design mode, otherwise this wont work) and choose "View code". I suggest you rename your command button first using the properties window and then choose view code, otherwise you can going to have to manually reword the code later. Pros: - You have a lot more control over the properties on an Active X control then over a form button Cons: - Depending on your settings, Active X controls in Excel often trigger a second security warning to users on startup (over and above the 'do you want to enable macros?' warning). A lot of folks get annoyed at all these darn warnings. - Active X controls are known to be unstable in Excel and can cause the application to crash from time to time. - Active X controls in Excel will sometimes change shape (usually the keep growing bigger) when the application opens. Sometimes a restart of the app will put everything back correctly, but this is a well known problem. Doesn't happen everytime but usually it will happen occasionally - Normally when you are showing your application to a prospective client I find!! I rarely use Active X control in Excel. They are usually more trouble (or potenital risk) then they are worth in my experience, but there are times they are useful to have around and there are some nice helpful controls (such as the calendar date picker). '------------------------------------------------------- 3: Custom Toolbars You can create custom commandbars via code quickly and easily in Excel. If you want to take this path, let me know and I will email you some code showing you how to do this. Pros: - Rock solid! custom commandbars are virtually unbreakable and pretty much never fail. They are fantastically reliable and useful as the users can dock them when it suits them. (top, bottom, right left or floating). - They are very fast and easy to create using code. - You can turn them off and on when required (such as when the users move to a particular sheet, or a user click on a particular cell). - The work in any version of XL including XL2007* (see caveat below) - Users are familiar with Commandbars are very comfortable using them. Cons: - That damn Ribbon in XL2007 has pretty much fouled up the functionality of custom command bars. The command bars will still work fine and can still be called on and off on demand, but rather than the command bar magically appearing for the user (say floating in the middle of the application where they can see it) it will be stuck under the addin tab on the ribbon. This means that unless the user knows or is told to activate the addin tab and look for the toolbar, well, nothing happens as far the the user is concerned. Sure you can write custom Tabs into Excel's ribbon, but then it is not backwardly compatible with older versions of XL. Maybe XL2010 will improve on this foul up but I am not hopeful. - You need to use a "worksheet/workbook" activate / deactive event to turn off and on the commandbars (such as when the user leaves your workbook and goes to another, you would turn off your custom commandbars so they are not visible in the other workbook. The event bit works great and is very reliable, problem is it will empty Excel's clipboard. This means if your uses are trying to copy from one workbook to another in the same application of Excel it will fail. If you have two workbook open in two separate applications then you don't have this issue. I usually have code that will force the application to open in it's own version of Excel and if the user trys to open another workbook it will push it automatically into another Excel app. '------------------------------------------------------- 4: Events You can call code from specific events such as worksheet_change - which can be limited to a specified range. There are numerous events that can be used to fire code. If you want to know more about this approach then I will try and fill you in on some methods. Hope that helps Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, 19 March 2010 10:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Excel - HOW TO SEE MY MODULES COLLECTION Very good, thanks! Can I insert a button into a cell so that they have something to click on to open a specific form? John W. Colby www.ColbyConsulting.com Collins, Darryl wrote: > "A form would be a good thing but I don't know how to create one, how > to open it, push text to controls on it etc." > > > Hi John, > > To create a form, goto the VBE and Choose "Insert" > "User Form" from > the menu. This will create a form in the code window that can be > viewed (and toggled) between an Object View (which looks like the > form) and a code view (which will show you the underlying code for the form). > > Adding controls etc is pretty much like in Access, although in Access > you create your forms in the app rather than the VBE. > > To make the form visible to the user in the app you need some > additional code in a module like this > > '===================================================================== > Sub ShowMyForm() > Application.ScreenUpdating = True > frmMyTestForm.Show > End Sub > '===================================================================== > > > > "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From Darryl.Collins at anz.com Sun Mar 21 18:52:53 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 22 Mar 2010 10:52:53 +1100 Subject: [AccessD] Combo Box Query Fails In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC920@EXUAU020HWT110.oceania.corp.anz.com> Yep, I would agree with this. I suspect the issue will be Chr(10) and it is VBE reference related. I have seen this before. Regards Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, 20 March 2010 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From accessd at shaw.ca Sun Mar 21 22:30:03 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 21 Mar 2010 20:30:03 -0700 Subject: [AccessD] FW: Strange Ship/Bill To Problem In-Reply-To: <52144EE418A24B8BA5502E8A58ED7AA9@HAL9005> References: <52144EE418A24B8BA5502E8A58ED7AA9@HAL9005> Message-ID: Hi Rocky: Is there any way you can remote into the client's site and actually run the app per station. The client can setup a free LogMeIn version and you and they can then access any of their computers remotely. >From that point you can do a complete hardware and software dump to file, and then mail yourself the results looking for inconsistencies, run a full set of tests module per module or what ever else it takes. If you need any help in setting up such a network I will be glad to assist. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 21, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Strange Ship/Bill To Problem Further to the problem - here's the client's answers to my questions. TIA Rocky _____ From: Sent: Sunday, March 21, 2010 8:26 AM To: Rocky Smolin Subject: Re: Strange Ship/Bill To Problem Rocky, Thanks. I'll answer your questions below. Let's talk later. Regards, Peter On Sat, Mar 20, 2010 at 7:35 PM, Rocky Smolin wrote: Peter: Was gone all day on a long bike ride. Please see my questions and comments *** in line Rocky _____ From: Peter Nystrom [mailto:peter at tsipower.com] Sent: Saturday, March 20, 2010 1:32 PM To: rockysmolin at bchacc.com Subject: Strange Ship/Bill To Problem Hi Rocky, I installed the new 2319 file on my wife's Sony VAIO and it works fine. *** Was E-Z-MRP connected to the back end on your server or running locally on her machine? CONNECTED TO SERVER. It also works fine on my Sony VAIO. *** Was E-Z-MRP connected to the back end on your server or running locally on your machine? CONNECTED TO SERVER Both computers run XP as well as Office 2003 (without Access and Outlook). Based on this it seemed reasonable to assume that the lack of Office 2003 was the problem. *** I think getting Office 2003 with Access will be the ultimate solution. I HAVE ORDERED A COUPLE OF OFFICE 2003 PROFESSIONAL--ACCESS INCLUDED I also installed the new 2319 you sent on another computer and still had the problem. *** Did this other computer have Office 97 installed? NO *** On this other computer was E-Z-MRP connected to the back end on your server or running locally on this machine? CONNECTED TO SERVER I then installed Office 2003 on said computer but the problem persisted. *** Was Office 97 also installed? If so try uninstalling both versions of Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. 2003 WAS INSTALLED AS AN UPGRADE TO 97 I started thinking that maybe Windows 7 on the server was the problem. *** I don't think that the OS on the server is relevant. The mdb on the server is being read by Access in the client machine. I AGREE I then installed the TSi company file on the old server--still had the same problem. *** Again, the server is not the problem. I think we checked that out by running the back end locally on one of the machines with Office 97 and generated the error. I AGREE The error message is now random *** Random how? Does it work sometimes and not other times? Or are you getting different errors? THE MESSAGE I READ TO YOU FRIDAY WOULD RETURN ON A RANDOM BASIS. THIS NO LONGER HAPPENS. --when I click on the arrow I don't see any address information except on the two VAIOS. This is REALLY STRANGE. HELP!!!! *** But consistent. I have never encountered this problem before at a client site and am polling my forum for clues. I AGREE THAT IT IS CONSISTENT TO THE TWO VAIOS. CAN THE PROBLEM BE DIFFERENT VERSIONS OF XP? CAN IT BE A HARDWARE ISSUE? Again, I think the ultimate answer will be to upgrade all the clients to Office 2003. IF ALL GOES WELL I SHOULD RECEIVE THE TWO OFFICE 2003 COPIES BY TUESDAY. I still think this whole thing is quite strange. Hope you can help us solve the problem. Regards, Rocky Regards, Peter Nystrom -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Mar 21 23:22:55 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 21 Mar 2010 21:22:55 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <000001cac949$b5db3c80$2191b580$@com> References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> <000601cac834$033833f0$09a89bd0$@com> <000001cac949$b5db3c80$2191b580$@com> Message-ID: <2EAFAA1CABEC4F93B7498ADE07189836@creativesystemdesigns.com> I am sorry to hear of your problems. Access appears to be actually in the process of being dummed down. In older versions of forms you could overlap any object like fields, labels, combo boxes etc. Try that now and the form will crash and be unrecoverable... you will have to bring it back from a backup period... no export or decompile code resolve it. So do not do anything too fancy. It is best to use a couple of forms than push the limits on one. Keep away from any imbedded objects...like with graphics no imbedded Photoshop... use external graphic png or jpg and pass in the graphic via directory name. Microsoft for years was using Access internally for some of their projects but I am sure they are not now and the only people that are working on the code are a bunch of first year hacks. No MS senior programmer wants to get stuck with having to work with Access...it is real bad for their career and they get tired of being made fun of by their peers. This is just my personal opinion but, you know the old saying, if it walks like duck and talks like a duck...it is most likely soon to be a dead duck. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, March 21, 2010 3:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Thanks for the code suggestion(s). Since re-writing an application that I have been working on for over 10 years, in DOT.NET isn't really an option for me.. :-), as I would have to learn .NET first... :-). I guess it would take me about 1-2 years to get to the point of just being able to work in it effectively, then what another 30 years to re-create the same app... :-) If this combination doesn't yield better "base" results over the next few Windows & Access updates, I have been giving serious thought of ending my development in it (just going to close the doors on the application development). It's becoming simply too painful dealing with Microsoft's increasing disregard for this (and others) products function and performance.. It seems that M$ is only interested in creating flashy new "gadgets", rather making sure the existing code base is stable and functioning properly. Never mind what the masses of tried and true Access developers want to see happen. I loved the early days of 1.1 and A97, when you felt like they were listening and fixing the problems being presented to them. Now..., In the sea of their own dissolutions, I'm not sure they can even hear the cry's of the countless Access developers.. I have a bad feeling A2010 will be no better than A2007 in regards to stability and performance, and if history repeats yet again most likely be worst... Ok, time to get of my box, and go play some chess..... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 20, 2010 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: I have already ran into error number 5... sort of resolved it by making it a separate function, turn off errors and then catching the error and looping until it works... Another one is the use the 'sleep' function. I think it is as much the Windows7 OS and the faster computers as it is the Access version. I have already started to have issues with Access2003 and have found that if I can get control of the processing it 'seems' to work better. Here is a couple of methods I have found that help: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) ... DoCmd.Close, "MyForm" intLoop = 0 Do While (IsLoaded("MyForm")=True) And (intLoop < 5000) intloop = intloop + 1 Sleep 200 Loop ...or sometimes just plain... Sleep 2000 ...and then the DoEvents... bolLoaded = True DoCmd.OpenForm "Customers" 'bolLoaded is set to False on Close Do While bolLoaded = True DoEvents Loop ...and you are saying that it will only get worse! I wonder if Access2007 should just be avoided and jump right to Access2010? ...or should I just rewrite the code in .Net and charge the client 10 to 15K for the process? ;-) Thanks for the heads up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, March 20, 2010 6:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 22 01:06:02 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 21 Mar 2010 23:06:02 -0700 Subject: [AccessD] FW: Strange Ship/Bill To Problem In-Reply-To: References: <52144EE418A24B8BA5502E8A58ED7AA9@HAL9005> Message-ID: I used Team Viewer with this client before they bought the system - to do demos and such. It worked very well. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, March 21, 2010 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Strange Ship/Bill To Problem Hi Rocky: Is there any way you can remote into the client's site and actually run the app per station. The client can setup a free LogMeIn version and you and they can then access any of their computers remotely. >From that point you can do a complete hardware and software dump to >file, and then mail yourself the results looking for inconsistencies, run a full set of tests module per module or what ever else it takes. If you need any help in setting up such a network I will be glad to assist. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 21, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Strange Ship/Bill To Problem Further to the problem - here's the client's answers to my questions. TIA Rocky _____ From: Sent: Sunday, March 21, 2010 8:26 AM To: Rocky Smolin Subject: Re: Strange Ship/Bill To Problem Rocky, Thanks. I'll answer your questions below. Let's talk later. Regards, Peter On Sat, Mar 20, 2010 at 7:35 PM, Rocky Smolin wrote: Peter: Was gone all day on a long bike ride. Please see my questions and comments *** in line Rocky _____ From: Peter Nystrom [mailto:peter at tsipower.com] Sent: Saturday, March 20, 2010 1:32 PM To: rockysmolin at bchacc.com Subject: Strange Ship/Bill To Problem Hi Rocky, I installed the new 2319 file on my wife's Sony VAIO and it works fine. *** Was E-Z-MRP connected to the back end on your server or running locally on her machine? CONNECTED TO SERVER. It also works fine on my Sony VAIO. *** Was E-Z-MRP connected to the back end on your server or running locally on your machine? CONNECTED TO SERVER Both computers run XP as well as Office 2003 (without Access and Outlook). Based on this it seemed reasonable to assume that the lack of Office 2003 was the problem. *** I think getting Office 2003 with Access will be the ultimate solution. I HAVE ORDERED A COUPLE OF OFFICE 2003 PROFESSIONAL--ACCESS INCLUDED I also installed the new 2319 you sent on another computer and still had the problem. *** Did this other computer have Office 97 installed? NO *** On this other computer was E-Z-MRP connected to the back end on your server or running locally on this machine? CONNECTED TO SERVER I then installed Office 2003 on said computer but the problem persisted. *** Was Office 97 also installed? If so try uninstalling both versions of Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. 2003 WAS INSTALLED AS AN UPGRADE TO 97 I started thinking that maybe Windows 7 on the server was the problem. *** I don't think that the OS on the server is relevant. The mdb on the server is being read by Access in the client machine. I AGREE I then installed the TSi company file on the old server--still had the same problem. *** Again, the server is not the problem. I think we checked that out by running the back end locally on one of the machines with Office 97 and generated the error. I AGREE The error message is now random *** Random how? Does it work sometimes and not other times? Or are you getting different errors? THE MESSAGE I READ TO YOU FRIDAY WOULD RETURN ON A RANDOM BASIS. THIS NO LONGER HAPPENS. --when I click on the arrow I don't see any address information except on the two VAIOS. This is REALLY STRANGE. HELP!!!! *** But consistent. I have never encountered this problem before at a client site and am polling my forum for clues. I AGREE THAT IT IS CONSISTENT TO THE TWO VAIOS. CAN THE PROBLEM BE DIFFERENT VERSIONS OF XP? CAN IT BE A HARDWARE ISSUE? Again, I think the ultimate answer will be to upgrade all the clients to Office 2003. IF ALL GOES WELL I SHOULD RECEIVE THE TWO OFFICE 2003 COPIES BY TUESDAY. I still think this whole thing is quite strange. Hope you can help us solve the problem. Regards, Rocky Regards, Peter Nystrom -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 22 03:09:43 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 Mar 2010 01:09:43 -0700 Subject: [AccessD] FW: Strange Ship/Bill To Problem In-Reply-To: References: <52144EE418A24B8BA5502E8A58ED7AA9@HAL9005> Message-ID: <7B2D08F959144C7EB6DB8C904DBA2FB6@creativesystemdesigns.com> Excellent Rocky. It would appear you have the access you need...now to work. ;-)...to all the working and delinquent computers? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 21, 2010 11:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Strange Ship/Bill To Problem I used Team Viewer with this client before they bought the system - to do demos and such. It worked very well. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, March 21, 2010 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Strange Ship/Bill To Problem Hi Rocky: Is there any way you can remote into the client's site and actually run the app per station. The client can setup a free LogMeIn version and you and they can then access any of their computers remotely. >From that point you can do a complete hardware and software dump to >file, and then mail yourself the results looking for inconsistencies, run a full set of tests module per module or what ever else it takes. If you need any help in setting up such a network I will be glad to assist. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, March 21, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Strange Ship/Bill To Problem Further to the problem - here's the client's answers to my questions. TIA Rocky _____ From: Sent: Sunday, March 21, 2010 8:26 AM To: Rocky Smolin Subject: Re: Strange Ship/Bill To Problem Rocky, Thanks. I'll answer your questions below. Let's talk later. Regards, Peter On Sat, Mar 20, 2010 at 7:35 PM, Rocky Smolin wrote: Peter: Was gone all day on a long bike ride. Please see my questions and comments *** in line Rocky _____ From: Peter Nystrom [mailto:peter at tsipower.com] Sent: Saturday, March 20, 2010 1:32 PM To: rockysmolin at bchacc.com Subject: Strange Ship/Bill To Problem Hi Rocky, I installed the new 2319 file on my wife's Sony VAIO and it works fine. *** Was E-Z-MRP connected to the back end on your server or running locally on her machine? CONNECTED TO SERVER. It also works fine on my Sony VAIO. *** Was E-Z-MRP connected to the back end on your server or running locally on your machine? CONNECTED TO SERVER Both computers run XP as well as Office 2003 (without Access and Outlook). Based on this it seemed reasonable to assume that the lack of Office 2003 was the problem. *** I think getting Office 2003 with Access will be the ultimate solution. I HAVE ORDERED A COUPLE OF OFFICE 2003 PROFESSIONAL--ACCESS INCLUDED I also installed the new 2319 you sent on another computer and still had the problem. *** Did this other computer have Office 97 installed? NO *** On this other computer was E-Z-MRP connected to the back end on your server or running locally on this machine? CONNECTED TO SERVER I then installed Office 2003 on said computer but the problem persisted. *** Was Office 97 also installed? If so try uninstalling both versions of Office and E-Z-MRP and reinstalling Office 2003 and then E-Z-MRP. 2003 WAS INSTALLED AS AN UPGRADE TO 97 I started thinking that maybe Windows 7 on the server was the problem. *** I don't think that the OS on the server is relevant. The mdb on the server is being read by Access in the client machine. I AGREE I then installed the TSi company file on the old server--still had the same problem. *** Again, the server is not the problem. I think we checked that out by running the back end locally on one of the machines with Office 97 and generated the error. I AGREE The error message is now random *** Random how? Does it work sometimes and not other times? Or are you getting different errors? THE MESSAGE I READ TO YOU FRIDAY WOULD RETURN ON A RANDOM BASIS. THIS NO LONGER HAPPENS. --when I click on the arrow I don't see any address information except on the two VAIOS. This is REALLY STRANGE. HELP!!!! *** But consistent. I have never encountered this problem before at a client site and am polling my forum for clues. I AGREE THAT IT IS CONSISTENT TO THE TWO VAIOS. CAN THE PROBLEM BE DIFFERENT VERSIONS OF XP? CAN IT BE A HARDWARE ISSUE? Again, I think the ultimate answer will be to upgrade all the clients to Office 2003. IF ALL GOES WELL I SHOULD RECEIVE THE TWO OFFICE 2003 COPIES BY TUESDAY. I still think this whole thing is quite strange. Hope you can help us solve the problem. Regards, Rocky Regards, Peter Nystrom -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 22 10:23:46 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Mar 2010 10:23:46 -0500 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server> <8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> Message-ID: Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 22 11:32:48 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 22 Mar 2010 09:32:48 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> Message-ID: <4598DFFE1BE24F20B6C8D120B196A628@HAL9005> Yeah, pointing to the Launch exe. He got another error that is common with a missing reference...and I think I just figured it out - there's a reference to Excel 11 in the app - the runtime isn't going to install Excel on a system where there's no Excel, is it? And if it's Excel 97 that reference may not resolve. Seem likely? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 22 13:07:56 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Mar 2010 13:07:56 -0500 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <4598DFFE1BE24F20B6C8D120B196A628@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> <4598DFFE1BE24F20B6C8D120B196A628@HAL9005> Message-ID: If you have a reference to an office app like that, it has to be there or you'll get the failure you see. You could write checks into your code to disable the Excel features if it isn't found but that's undoubtedly your issue. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 22, 2010 9:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Yeah, pointing to the Launch exe. He got another error that is common with a missing reference...and I think I just figured it out - there's a reference to Excel 11 in the app - the runtime isn't going to install Excel on a system where there's no Excel, is it? And if it's Excel 97 that reference may not resolve. Seem likely? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Mar 22 13:59:31 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 22 Mar 2010 11:59:31 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: <2EAFAA1CABEC4F93B7498ADE07189836@creativesystemdesigns.com> References: <4BA2F835.8000409@colbyconsulting.com><6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com><000701cac765$7d633b40$7829b1c0$@com><000601cac834$033833f0$09a89bd0$@com><000001cac949$b5db3c80$2191b580$@com> <2EAFAA1CABEC4F93B7498ADE07189836@creativesystemdesigns.com> Message-ID: Hi Jim, Not defending Access 2007 but I have been using overlapping controls without any issues so far. I use text boxes over combo boxes and they seem to work OK. I have had lots of other problems, some being pretty bizar and machine specific. Hopefully Office 10 will be more stable. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, March 21, 2010 9:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty I am sorry to hear of your problems. Access appears to be actually in the process of being dummed down. In older versions of forms you could overlap any object like fields, labels, combo boxes etc. Try that now and the form will crash and be unrecoverable... you will have to bring it back from a backup period... no export or decompile code resolve it. So do not do anything too fancy. It is best to use a couple of forms than push the limits on one. Keep away from any imbedded objects...like with graphics no imbedded Photoshop... use external graphic png or jpg and pass in the graphic via directory name. Microsoft for years was using Access internally for some of their projects but I am sure they are not now and the only people that are working on the code are a bunch of first year hacks. No MS senior programmer wants to get stuck with having to work with Access...it is real bad for their career and they get tired of being made fun of by their peers. This is just my personal opinion but, you know the old saying, if it walks like duck and talks like a duck...it is most likely soon to be a dead duck. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, March 21, 2010 3:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Thanks for the code suggestion(s). Since re-writing an application that I have been working on for over 10 years, in DOT.NET isn't really an option for me.. :-), as I would have to learn .NET first... :-). I guess it would take me about 1-2 years to get to the point of just being able to work in it effectively, then what another 30 years to re-create the same app... :-) If this combination doesn't yield better "base" results over the next few Windows & Access updates, I have been giving serious thought of ending my development in it (just going to close the doors on the application development). It's becoming simply too painful dealing with Microsoft's increasing disregard for this (and others) products function and performance.. It seems that M$ is only interested in creating flashy new "gadgets", rather making sure the existing code base is stable and functioning properly. Never mind what the masses of tried and true Access developers want to see happen. I loved the early days of 1.1 and A97, when you felt like they were listening and fixing the problems being presented to them. Now..., In the sea of their own dissolutions, I'm not sure they can even hear the cry's of the countless Access developers.. I have a bad feeling A2010 will be no better than A2007 in regards to stability and performance, and if history repeats yet again most likely be worst... Ok, time to get of my box, and go play some chess..... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 20, 2010 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: I have already ran into error number 5... sort of resolved it by making it a separate function, turn off errors and then catching the error and looping until it works... Another one is the use the 'sleep' function. I think it is as much the Windows7 OS and the faster computers as it is the Access version. I have already started to have issues with Access2003 and have found that if I can get control of the processing it 'seems' to work better. Here is a couple of methods I have found that help: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) ... DoCmd.Close, "MyForm" intLoop = 0 Do While (IsLoaded("MyForm")=True) And (intLoop < 5000) intloop = intloop + 1 Sleep 200 Loop ...or sometimes just plain... Sleep 2000 ...and then the DoEvents... bolLoaded = True DoCmd.OpenForm "Customers" 'bolLoaded is set to False on Close Do While bolLoaded = True DoEvents Loop ...and you are saying that it will only get worse! I wonder if Access2007 should just be avoided and jump right to Access2010? ...or should I just rewrite the code in .Net and charge the client 10 to 15K for the process? ;-) Thanks for the heads up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, March 20, 2010 6:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 22 21:49:31 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 Mar 2010 19:49:31 -0700 Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty In-Reply-To: References: <4BA2F835.8000409@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC91A@EXUAU020HWT110.oceania.corp.anz.com> <000701cac765$7d633b40$7829b1c0$@com> <000601cac834$033833f0$09a89bd0$@com> <000001cac949$b5db3c80$2191b580$@com> <2EAFAA1CABEC4F93B7498ADE07189836@creativesystemdesigns.com> Message-ID: <3692794125704FC8846C52D1D92AFE43@creativesystemdesigns.com> Hi Doug: Well, that gives some possibility of hope as it may just be a A2003 thing. 8-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 22, 2010 12:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Jim, Not defending Access 2007 but I have been using overlapping controls without any issues so far. I use text boxes over combo boxes and they seem to work OK. I have had lots of other problems, some being pretty bizar and machine specific. Hopefully Office 10 will be more stable. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, March 21, 2010 9:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty I am sorry to hear of your problems. Access appears to be actually in the process of being dummed down. In older versions of forms you could overlap any object like fields, labels, combo boxes etc. Try that now and the form will crash and be unrecoverable... you will have to bring it back from a backup period... no export or decompile code resolve it. So do not do anything too fancy. It is best to use a couple of forms than push the limits on one. Keep away from any imbedded objects...like with graphics no imbedded Photoshop... use external graphic png or jpg and pass in the graphic via directory name. Microsoft for years was using Access internally for some of their projects but I am sure they are not now and the only people that are working on the code are a bunch of first year hacks. No MS senior programmer wants to get stuck with having to work with Access...it is real bad for their career and they get tired of being made fun of by their peers. This is just my personal opinion but, you know the old saying, if it walks like duck and talks like a duck...it is most likely soon to be a dead duck. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, March 21, 2010 3:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Thanks for the code suggestion(s). Since re-writing an application that I have been working on for over 10 years, in DOT.NET isn't really an option for me.. :-), as I would have to learn .NET first... :-). I guess it would take me about 1-2 years to get to the point of just being able to work in it effectively, then what another 30 years to re-create the same app... :-) If this combination doesn't yield better "base" results over the next few Windows & Access updates, I have been giving serious thought of ending my development in it (just going to close the doors on the application development). It's becoming simply too painful dealing with Microsoft's increasing disregard for this (and others) products function and performance.. It seems that M$ is only interested in creating flashy new "gadgets", rather making sure the existing code base is stable and functioning properly. Never mind what the masses of tried and true Access developers want to see happen. I loved the early days of 1.1 and A97, when you felt like they were listening and fixing the problems being presented to them. Now..., In the sea of their own dissolutions, I'm not sure they can even hear the cry's of the countless Access developers.. I have a bad feeling A2010 will be no better than A2007 in regards to stability and performance, and if history repeats yet again most likely be worst... Ok, time to get of my box, and go play some chess..... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 20, 2010 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: I have already ran into error number 5... sort of resolved it by making it a separate function, turn off errors and then catching the error and looping until it works... Another one is the use the 'sleep' function. I think it is as much the Windows7 OS and the faster computers as it is the Access version. I have already started to have issues with Access2003 and have found that if I can get control of the processing it 'seems' to work better. Here is a couple of methods I have found that help: Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) ... DoCmd.Close, "MyForm" intLoop = 0 Do While (IsLoaded("MyForm")=True) And (intLoop < 5000) intloop = intloop + 1 Sleep 200 Loop ...or sometimes just plain... Sleep 2000 ...and then the DoEvents... bolLoaded = True DoCmd.OpenForm "Customers" 'bolLoaded is set to False on Close Do While bolLoaded = True DoEvents Loop ...and you are saying that it will only get worse! I wonder if Access2007 should just be avoided and jump right to Access2010? ...or should I just rewrite the code in .Net and charge the client 10 to 15K for the process? ;-) Thanks for the heads up. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, March 20, 2010 6:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Jim, Keep in mind that this is an complex mdb(e) in Access 2007. If your app. is the same, I can pretty much guaranty you will have problems. With all the problems that I have and had, I just don't see how it's possible you won't have some strange stuff happen if installed in Windows 7.. I'm still dealing with absolutely bizarre issues that have absolutely no foreseeable solution using this (combination (mdb(e) + Access 2007 on Windows 7) For example: Something like Set ctrCalendar = New clsCalendar will intermittently fail with error "Error: 5 Invalid procedure call or argument" I have never had an error report dispatched for this, and It's only on Window 7 OS's.. Unfortunately there is no fixing this, as it appears to simply be a breakdown in Access on Windows 7 for some reason.. All these stupid errors have pushed my development so far back now I'm really struggling to convert this app to a native access 2007 format, which I'm really hoping solves these crazy problems. A warning to everyone.. if you're like me and have a large complex mdb(e) application running in the A07 "Engine", DON'T "allow" it to be installed on any Windows 7 system, you will regret it like I have... :-( WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 19, 2010 7:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Hi Robert: Ouch, but I am glad to see you resolved that error. I will be migrating an Access2003 application to Access2007 and you are not making me feel very confident. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, March 19, 2010 6:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Yet Another Access 2007 & Win 7 Bug -- Nasty Been dealing with yet another program bug after switching the same program that ran fine on Win XP to Window 7. I was getting this error on 2 different section of the program. (There may be others but we have not found them yet.) Design: Form / Sub form design. Sub form based on simple query with 4 tables. 3 query based functions. Sub form OnCurrent event sunk to re-query some list boxes on main form. (Error persist when removing the OnCurrent event) Imbedded Query Function Example: GetOnOrderAmount([tblInventory.InventoryID],[Location]) Symptoms: Intermittently; when a user moves from one record to the next 2 things would / could happen. 1) Throws 2 different errors (2465, 2424) and even though there is error handling in place it would crash Access 2) After trapping (and throwing a DoEvent after the error) for the specific error(s), I could prevent Access from crashing. a) when the error would occur; the field that had the prev. focus would change to "#Name?" and lock up the entire database unless the user would click back on that exact record. b) I could cause the error by moving between records rapidly. I could always reproduce the error in just a few seconds of doing this. c) Users said it was more likely to happen if using the record selector for moving between records. Pictures of what that looked like. http://i40.tinypic.com/n6ztcl.png http://i44.tinypic.com/2929mx1.png Corrective Measures. After much trial and error, I discovered that if I completely remove ** ALL ** the imbedded functions in the query(s) and move them to the actual sub form field(s) the problem completely went away.. =GetOnOrderAmount([tblInventory.InventoryID],[Location]) Just thought I would add to the continuing saga of Access 2007 and Windows 7.. I can say this with confidence. This is a lethal combination for anyone utilizing an Access .mdb(e) as a front end program. If your program has ANY complexity to it, I can pretty much guarantee you will encounter some of the strangest errors and anomalies you have ever experienced with Access before... ;-) Garbage is what it really is, utter garbage.... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 23 08:11:47 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 09:11:47 -0400 Subject: [AccessD] Binding forms and controls directly to SQL Server Message-ID: <4BA8BE13.2050301@colbyconsulting.com> Guys, One thing I have always wanted to learn is how to bind Access objects directly to SQL Server. Does anyone out there do this and would you be willing to assist me in figuring this out. My billing database is in SQL Server. SQL Server 2008 is running directly on my laptop and the database files are on my laptop. I know some stuff about SQL Server but there is a bunch that I don't know. I tend to know the "data side" but not know the admin side. I can create tables, indexes, views and stored procedures. I have never created a stored procedure that returned a result set, only SPs that return an integer, and also (from C#) SPs that have Output Parameters for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. So, what do I do to: 1) Cause combos to pull their data from SQL Server. Do I create a view on the server side? If so how do I then cause Access to see the view and use that for the combo. 2) Pass parameters to the server side so that (for example) I could filter a combo to only display products for a specific client. 3) Cause forms to pull data from sql server such that the forms are able to see and edit the data, but bound to something (a view?) out in sql server so that SQL Server "does the work" of narrowing down the data displayed. Let's take a reasonable simple example. I have a "time sheet form". This form has a pair of controls which I can use to set from / to dates so that by default when opened the form displays this week's time entries. However I can set dates for any time period and display the time records that match that to / from filter. I have a Client Product combo that displays only products for currently active Clients and currently active products for those clients. Thus that combo pulls data from the client and product table, filtered on the active flag of both. I have a work category combo that pulls data from a table which is essentially the product / bill rate, so once a client is selected, a filtered (by client) product is selected, and then a filtered (by product) work category is selected. Pretty simple stuff to do directly in Access. But how do I do this such that SQL Server does this filtering and presents the filtered data to the combos? I have never even looked at this stuff so I need very specific instructions one time. I seem to vaguely remember that I need to build views (or SPs?) out in SQL Server, and then do a passthrough query? Can anyone help me figure this out? Once I do it one time I will be off to the races. Thanks guys! -- John W. Colby www.ColbyConsulting.com From dwaters at usinternet.com Tue Mar 23 08:22:37 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 08:22:37 -0500 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: Are you using ODBC table links? If so, then it's the same as if you were linking to an Access BE. Although you need to set the Bit (Yes/No) fields in SQL Server to not allow nulls. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 8:12 AM To: Access Developers discussion and problem solving Subject: [AccessD] Binding forms and controls directly to SQL Server Guys, One thing I have always wanted to learn is how to bind Access objects directly to SQL Server. Does anyone out there do this and would you be willing to assist me in figuring this out. My billing database is in SQL Server. SQL Server 2008 is running directly on my laptop and the database files are on my laptop. I know some stuff about SQL Server but there is a bunch that I don't know. I tend to know the "data side" but not know the admin side. I can create tables, indexes, views and stored procedures. I have never created a stored procedure that returned a result set, only SPs that return an integer, and also (from C#) SPs that have Output Parameters for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. So, what do I do to: 1) Cause combos to pull their data from SQL Server. Do I create a view on the server side? If so how do I then cause Access to see the view and use that for the combo. 2) Pass parameters to the server side so that (for example) I could filter a combo to only display products for a specific client. 3) Cause forms to pull data from sql server such that the forms are able to see and edit the data, but bound to something (a view?) out in sql server so that SQL Server "does the work" of narrowing down the data displayed. Let's take a reasonable simple example. I have a "time sheet form". This form has a pair of controls which I can use to set from / to dates so that by default when opened the form displays this week's time entries. However I can set dates for any time period and display the time records that match that to / from filter. I have a Client Product combo that displays only products for currently active Clients and currently active products for those clients. Thus that combo pulls data from the client and product table, filtered on the active flag of both. I have a work category combo that pulls data from a table which is essentially the product / bill rate, so once a client is selected, a filtered (by client) product is selected, and then a filtered (by product) work category is selected. Pretty simple stuff to do directly in Access. But how do I do this such that SQL Server does this filtering and presents the filtered data to the combos? I have never even looked at this stuff so I need very specific instructions one time. I seem to vaguely remember that I need to build views (or SPs?) out in SQL Server, and then do a passthrough query? Can anyone help me figure this out? Once I do it one time I will be off to the races. Thanks guys! -- 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 fuller.artful at gmail.com Tue Mar 23 08:25:52 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 23 Mar 2010 09:25:52 -0400 Subject: [AccessD] IsLoaded function Message-ID: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com> For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur From dwaters at usinternet.com Tue Mar 23 08:28:39 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 08:28:39 -0500 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: <25D88744A8D44C029DFE5A3A0CA955B9@danwaters> However, If you want to bind an Access form to SQL Server while using an OLEDB connection, take a look at MS KB 281998. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 8:12 AM To: Access Developers discussion and problem solving Subject: [AccessD] Binding forms and controls directly to SQL Server Guys, One thing I have always wanted to learn is how to bind Access objects directly to SQL Server. Does anyone out there do this and would you be willing to assist me in figuring this out. My billing database is in SQL Server. SQL Server 2008 is running directly on my laptop and the database files are on my laptop. I know some stuff about SQL Server but there is a bunch that I don't know. I tend to know the "data side" but not know the admin side. I can create tables, indexes, views and stored procedures. I have never created a stored procedure that returned a result set, only SPs that return an integer, and also (from C#) SPs that have Output Parameters for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. So, what do I do to: 1) Cause combos to pull their data from SQL Server. Do I create a view on the server side? If so how do I then cause Access to see the view and use that for the combo. 2) Pass parameters to the server side so that (for example) I could filter a combo to only display products for a specific client. 3) Cause forms to pull data from sql server such that the forms are able to see and edit the data, but bound to something (a view?) out in sql server so that SQL Server "does the work" of narrowing down the data displayed. Let's take a reasonable simple example. I have a "time sheet form". This form has a pair of controls which I can use to set from / to dates so that by default when opened the form displays this week's time entries. However I can set dates for any time period and display the time records that match that to / from filter. I have a Client Product combo that displays only products for currently active Clients and currently active products for those clients. Thus that combo pulls data from the client and product table, filtered on the active flag of both. I have a work category combo that pulls data from a table which is essentially the product / bill rate, so once a client is selected, a filtered (by client) product is selected, and then a filtered (by product) work category is selected. Pretty simple stuff to do directly in Access. But how do I do this such that SQL Server does this filtering and presents the filtered data to the combos? I have never even looked at this stuff so I need very specific instructions one time. I seem to vaguely remember that I need to build views (or SPs?) out in SQL Server, and then do a passthrough query? Can anyone help me figure this out? Once I do it one time I will be off to the races. Thanks guys! -- 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 dwaters at usinternet.com Tue Mar 23 08:34:57 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 08:34:57 -0500 Subject: [AccessD] IsLoaded function In-Reply-To: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com> References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com> Message-ID: <6134FB6934CD4FB698862377B7A3916E@danwaters> It looks like .IsLoaded is a property of an access object, rather than a function. Like this: If CurrentProject.AllForms(stgFormName).IsLoaded = False Then ... Do Something End If HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 23, 2010 8:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] IsLoaded function For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur -- 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 Mar 23 08:45:28 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 23 Mar 2010 09:45:28 -0400 Subject: [AccessD] IsLoaded function In-Reply-To: <6134FB6934CD4FB698862377B7A3916E@danwaters> References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com> <6134FB6934CD4FB698862377B7A3916E@danwaters> Message-ID: Unless you are working with Access 97 or earlier. In which case IsLoaded() is not built in. In which case the code looks like this... Function IsLoaded(FrmName As String) As Boolean Dim i As Integer IsLoaded = False For i = 0 To Forms.Count - 1 If Forms(i).Name = FrmName Then IsLoaded = True Exit Function End If Next i End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function It looks like .IsLoaded is a property of an access object, rather than a function. Like this: If CurrentProject.AllForms(stgFormName).IsLoaded = False Then ... Do Something End If HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 23, 2010 8:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] IsLoaded function For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Mar 23 08:41:16 2010 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 23 Mar 2010 13:41:16 +0000 Subject: [AccessD] IsLoaded function In-Reply-To: <6134FB6934CD4FB698862377B7A3916E@danwaters> References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com>, <6134FB6934CD4FB698862377B7A3916E@danwaters> Message-ID: Included a couple of versions ago as a property. I might be mistaken...but I think I had to remove the function when I moved someone to XP or 03 because it conflicted with the new property...or was giving the wrong answer...can't remember which. Mark > From: dwaters at usinternet.com > To: accessd at databaseadvisors.com > Date: Tue, 23 Mar 2010 08:34:57 -0500 > Subject: Re: [AccessD] IsLoaded function > > It looks like .IsLoaded is a property of an access object, rather than a > function. > > Like this: > > If CurrentProject.AllForms(stgFormName).IsLoaded = False Then > ... Do Something > End If > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Tuesday, March 23, 2010 8:26 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] IsLoaded function > > For some reason I'm a "procedure not found" error on a call to the function > IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in > but maybe I got it from ADH or somewhere. > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/210850553/direct/01/ From darren at activebilling.com.au Tue Mar 23 08:54:31 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Wed, 24 Mar 2010 00:54:31 +1100 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: <9F314642BD1D4CB484613739329B7BB4@darrendPC> Hi John Using a paradigm we all know and love Link to the tables and build forms over these linked tables Edits are directly entered into the SQL tables from the ACCESS Forms You can build a wrapper for the stuff that handles the connections - but I've included it all here in one function so you get the idea OK Assume You have a table named "Ledger" in SQLSVR - Assume I have form called frmLedgerItems in my Access dB that I want to be the interface to this SQL table Also - You get the relevant data for your combos the same way - It's very quick and very easy Now I don't claim to know a lot about this stuff so those who know can look at this stuff and point out better ways to do it I'm sure Got the Transferdatabase tip this from Stuart By the way !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Private Sub ps_GetLedgerItems() On Error GoTo Err_ Dim stDocName As String Dim strUserID As String Dim strPassword As String Dim strServer As String Dim strServerIPAddress As String Dim strdBName As String Dim strODBCConn As String stDocName = "frmLedgerItems" strUserID = "UuserNameHere" ''Could be a DLOOKUP strPassword = "passwordHere" ''Could be a Dlookup strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & Forms!frmClients!txtClientID) strServer = Trim(strServer) strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", "ServerName = '" & strServer & "'") strdBName = DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! frmClients!txtClientID) strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL Server;SERVER=" & strServerIPAddress & ";APP=Microsoft Data Access Components;DATABASE=" & strdBName & ";UID=" & strUserID & ";PWD=" & strPassword & ";Trusted_Connection=no" 'I connect to many SQL Server dBs so I need to always get the 'right one' 'So I delete the link to any previous table DoCmd.DeleteObject acTable, "tbl_ledger" DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, "ledger", "tbl_ledger", False DoCmd.OpenForm stDocName Exit_: Exit Sub Err_: MsgBox Err.Number & " " & Err.Description, vbCritical, "error in ps_GetLedgeritems" End If Resume Exit_ End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, 24 March 2010 12:12 AM To: Access Developers discussion and problem solving Subject: [AccessD] Binding forms and controls directly to SQL Server Guys, One thing I have always wanted to learn is how to bind Access objects directly to SQL Server. Does anyone out there do this and would you be willing to assist me in figuring this out. My billing database is in SQL Server. SQL Server 2008 is running directly on my laptop and the database files are on my laptop. I know some stuff about SQL Server but there is a bunch that I don't know. I tend to know the "data side" but not know the admin side. I can create tables, indexes, views and stored procedures. I have never created a stored procedure that returned a result set, only SPs that return an integer, and also (from C#) SPs that have Output Parameters for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. So, what do I do to: 1) Cause combos to pull their data from SQL Server. Do I create a view on the server side? If so how do I then cause Access to see the view and use that for the combo. 2) Pass parameters to the server side so that (for example) I could filter a combo to only display products for a specific client. 3) Cause forms to pull data from sql server such that the forms are able to see and edit the data, but bound to something (a view?) out in sql server so that SQL Server "does the work" of narrowing down the data displayed. Let's take a reasonable simple example. I have a "time sheet form". This form has a pair of controls which I can use to set from / to dates so that by default when opened the form displays this week's time entries. However I can set dates for any time period and display the time records that match that to / from filter. I have a Client Product combo that displays only products for currently active Clients and currently active products for those clients. Thus that combo pulls data from the client and product table, filtered on the active flag of both. I have a work category combo that pulls data from a table which is essentially the product / bill rate, so once a client is selected, a filtered (by client) product is selected, and then a filtered (by product) work category is selected. Pretty simple stuff to do directly in Access. But how do I do this such that SQL Server does this filtering and presents the filtered data to the combos? I have never even looked at this stuff so I need very specific instructions one time. I seem to vaguely remember that I need to build views (or SPs?) out in SQL Server, and then do a passthrough query? Can anyone help me figure this out? Once I do it one time I will be off to the races. Thanks guys! -- 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 dwaters at usinternet.com Tue Mar 23 08:56:12 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 08:56:12 -0500 Subject: [AccessD] IsLoaded function In-Reply-To: References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com><6134FB6934CD4FB698862377B7A3916E@danwaters> Message-ID: <2972E7E9597C486BAA90FA0AEB1AC376@danwaters> The .IsLoaded property of an access object is in Access 2003. I could see where an IsLoaded function may have difficulty if a version of Access uses IsLoaded as the name of a property. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 23, 2010 8:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IsLoaded function Unless you are working with Access 97 or earlier. In which case IsLoaded() is not built in. In which case the code looks like this... Function IsLoaded(FrmName As String) As Boolean Dim i As Integer IsLoaded = False For i = 0 To Forms.Count - 1 If Forms(i).Name = FrmName Then IsLoaded = True Exit Function End If Next i End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function It looks like .IsLoaded is a property of an access object, rather than a function. Like this: If CurrentProject.AllForms(stgFormName).IsLoaded = False Then ... Do Something End If HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 23, 2010 8:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] IsLoaded function For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 Mar 23 09:24:04 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 23 Mar 2010 10:24:04 -0400 Subject: [AccessD] IsLoaded function In-Reply-To: <2972E7E9597C486BAA90FA0AEB1AC376@danwaters> References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com><6134FB6934CD4FB698862377B7A3916E@danwaters> <2972E7E9597C486BAA90FA0AEB1AC376@danwaters> Message-ID: Actually it was introduced with Access 2002 IIRC. Because it is a property of an Access object, as you point out, it is always called with a dot in front as in... SomeObject.IsLoaded() Or With SomeObject if .IsLoaded() Then ... End If End With So therefore its name does not clash with a function named "IsLoaded()". I can confirm that if you have the IsLoaded() function as part of an Access 2002 app you can call it happily instead of the form object's IsLoaded property: i.e. legacy code still runs. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function The .IsLoaded property of an access object is in Access 2003. I could see where an IsLoaded function may have difficulty if a version of Access uses IsLoaded as the name of a property. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 23, 2010 8:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IsLoaded function Unless you are working with Access 97 or earlier. In which case IsLoaded() is not built in. In which case the code looks like this... Function IsLoaded(FrmName As String) As Boolean Dim i As Integer IsLoaded = False For i = 0 To Forms.Count - 1 If Forms(i).Name = FrmName Then IsLoaded = True Exit Function End If Next i End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function It looks like .IsLoaded is a property of an access object, rather than a function. Like this: If CurrentProject.AllForms(stgFormName).IsLoaded = False Then ... Do Something End If HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 23, 2010 8:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] IsLoaded function For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 23 09:24:26 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 10:24:26 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <9F314642BD1D4CB484613739329B7BB4@darrendPC> References: <4BA8BE13.2050301@colbyconsulting.com> <9F314642BD1D4CB484613739329B7BB4@darrendPC> Message-ID: <4BA8CF1A.6090509@colbyconsulting.com> I know how to link to the tables, and in fact do that right now. I am talking about the next step. If you just link to the tables, then when you try to pull two tables, join them on PK/FK, and filter, all of that work is done client-side. The indexes used in joins and filters have to be sent to Access (JET), which in memory client-side grabs data, joins, filters etc. and finally applies the data to a combo or form. I want to set up SQL Server to join the two tables, apply filters and just send the DATA to Access. I know that this is possible, but I do not know the details, the mechanics of doing this. John W. Colby www.ColbyConsulting.com Darren - Active Billing wrote: > Hi John > > Using a paradigm we all know and love > Link to the tables and build forms over these linked tables > Edits are directly entered into the SQL tables from the ACCESS Forms > You can build a wrapper for the stuff that handles the connections - but > I've included it all here in one function so you get the idea > > OK Assume You have a table named "Ledger" in SQLSVR - > Assume I have form called frmLedgerItems in my Access dB that I want to be > the interface to this SQL table > > Also - You get the relevant data for your combos the same way - It's very > quick and very easy > > Now I don't claim to know a lot about this stuff so those who know can look > at this stuff and point out better ways to do it I'm sure > > Got the Transferdatabase tip this from Stuart By the way > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > Private Sub ps_GetLedgerItems() > > On Error GoTo Err_ > > Dim stDocName As String > > Dim strUserID As String > Dim strPassword As String > > Dim strServer As String > Dim strServerIPAddress As String > Dim strdBName As String > > Dim strODBCConn As String > > stDocName = "frmLedgerItems" > > strUserID = "UuserNameHere" ''Could be a DLOOKUP > strPassword = "passwordHere" ''Could be a Dlookup > > strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & > Forms!frmClients!txtClientID) > > strServer = Trim(strServer) > strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", "ServerName > = '" & strServer & "'") > strdBName = DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! > frmClients!txtClientID) > > > strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL Server;SERVER=" & > strServerIPAddress & ";APP=Microsoft Data Access Components;DATABASE=" & > strdBName & ";UID=" & strUserID & ";PWD=" & strPassword & > ";Trusted_Connection=no" > > 'I connect to many SQL Server dBs so I need to always get the 'right one' > 'So I delete the link to any previous table > DoCmd.DeleteObject acTable, "tbl_ledger" > > DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, > "ledger", "tbl_ledger", False > > DoCmd.OpenForm stDocName > > Exit_: > Exit Sub > > Err_: > > MsgBox Err.Number & " " & Err.Description, vbCritical, "error in > ps_GetLedgeritems" > End If > > Resume Exit_ > > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, 24 March 2010 12:12 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Binding forms and controls directly to SQL Server > > Guys, > > One thing I have always wanted to learn is how to bind Access objects > directly to SQL Server. Does > anyone out there do this and would you be willing to assist me in figuring > this out. > > My billing database is in SQL Server. SQL Server 2008 is running directly > on my laptop and the > database files are on my laptop. I know some stuff about SQL Server but > there is a bunch that I > don't know. I tend to know the "data side" but not know the admin side. I > can create tables, > indexes, views and stored procedures. I have never created a stored > procedure that returned a > result set, only SPs that return an integer, and also (from C#) SPs that > have Output Parameters for > things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. > > So, what do I do to: > > 1) Cause combos to pull their data from SQL Server. Do I create a view on > the server side? If so > how do I then cause Access to see the view and use that for the combo. > 2) Pass parameters to the server side so that (for example) I could filter a > combo to only display > products for a specific client. > 3) Cause forms to pull data from sql server such that the forms are able to > see and edit the data, > but bound to something (a view?) out in sql server so that SQL Server "does > the work" of narrowing > down the data displayed. > > Let's take a reasonable simple example. > > I have a "time sheet form". This form has a pair of controls which I can > use to set from / to dates > so that by default when opened the form displays this week's time entries. > However I can set dates > for any time period and display the time records that match that to / from > filter. > > I have a Client Product combo that displays only products for currently > active Clients and currently > active products for those clients. Thus that combo pulls data from the > client and product table, > filtered on the active flag of both. > > I have a work category combo that pulls data from a table which is > essentially the product / bill > rate, so once a client is selected, a filtered (by client) product is > selected, and then a filtered > (by product) work category is selected. > > Pretty simple stuff to do directly in Access. But how do I do this such > that SQL Server does this > filtering and presents the filtered data to the combos? > > I have never even looked at this stuff so I need very specific instructions > one time. I seem to > vaguely remember that I need to build views (or SPs?) out in SQL Server, and > then do a passthrough > query? > > Can anyone help me figure this out? Once I do it one time I will be off to > the races. > > Thanks guys! > From rusty.hammond at cpiqpc.com Tue Mar 23 09:50:42 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 23 Mar 2010 09:50:42 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8CF1A.6090509@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> If you setup a view on SQL, you can add it as a linked table just like you would a sql table. When adding the linked table, keep scrolling through the list until you get to your views. Be sure to select a primary key field if you want to make updates to the data. For combo boxes, I'll often use a pass through query. To filter the data of the pass through, you can just change the sql of the pass through query via code. HTH Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server I know how to link to the tables, and in fact do that right now. I am talking about the next step. If you just link to the tables, then when you try to pull two tables, join them on PK/FK, and filter, all of that work is done client-side. The indexes used in joins and filters have to be sent to Access (JET), which in memory client-side grabs data, joins, filters etc. and finally applies the data to a combo or form. I want to set up SQL Server to join the two tables, apply filters and just send the DATA to Access. I know that this is possible, but I do not know the details, the mechanics of doing this. John W. Colby www.ColbyConsulting.com Darren - Active Billing wrote: > Hi John > > Using a paradigm we all know and love > Link to the tables and build forms over these linked tables Edits are > directly entered into the SQL tables from the ACCESS Forms You can > build a wrapper for the stuff that handles the connections - but I've > included it all here in one function so you get the idea > > OK Assume You have a table named "Ledger" in SQLSVR - Assume I have > form called frmLedgerItems in my Access dB that I want to be the > interface to this SQL table > > Also - You get the relevant data for your combos the same way - It's > very quick and very easy > > Now I don't claim to know a lot about this stuff so those who know can > look at this stuff and point out better ways to do it I'm sure > > Got the Transferdatabase tip this from Stuart By the way > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > Private Sub ps_GetLedgerItems() > > On Error GoTo Err_ > > Dim stDocName As String > > Dim strUserID As String > Dim strPassword As String > > Dim strServer As String > Dim strServerIPAddress As String > Dim strdBName As String > > Dim strODBCConn As String > > stDocName = "frmLedgerItems" > > strUserID = "UuserNameHere" ''Could be a DLOOKUP strPassword = > "passwordHere" ''Could be a Dlookup > > strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & > Forms!frmClients!txtClientID) > > strServer = Trim(strServer) > strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", > "ServerName = '" & strServer & "'") strdBName = > DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! > frmClients!txtClientID) > > > strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL > Server;SERVER=" & strServerIPAddress & ";APP=Microsoft Data Access > Components;DATABASE=" & strdBName & ";UID=" & strUserID & ";PWD=" & > strPassword & ";Trusted_Connection=no" > > 'I connect to many SQL Server dBs so I need to always get the 'right one' > 'So I delete the link to any previous table DoCmd.DeleteObject > acTable, "tbl_ledger" > > DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, > "ledger", "tbl_ledger", False > > DoCmd.OpenForm stDocName > > Exit_: > Exit Sub > > Err_: > > MsgBox Err.Number & " " & Err.Description, vbCritical, "error in > ps_GetLedgeritems" > End If > > Resume Exit_ > > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, 24 March 2010 12:12 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Binding forms and controls directly to SQL Server > > Guys, > > One thing I have always wanted to learn is how to bind Access objects > directly to SQL Server. Does anyone out there do this and would you > be willing to assist me in figuring this out. > > My billing database is in SQL Server. SQL Server 2008 is running > directly on my laptop and the database files are on my laptop. I know > some stuff about SQL Server but there is a bunch that I don't know. I > tend to know the "data side" but not know the admin side. I can > create tables, indexes, views and stored procedures. I have never > created a stored procedure that returned a result set, only SPs that > return an integer, and also (from C#) SPs that have Output Parameters > for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff > like that. > > So, what do I do to: > > 1) Cause combos to pull their data from SQL Server. Do I create a > view on the server side? If so how do I then cause Access to see the > view and use that for the combo. > 2) Pass parameters to the server side so that (for example) I could > filter a combo to only display products for a specific client. > 3) Cause forms to pull data from sql server such that the forms are > able to see and edit the data, but bound to something (a view?) out in > sql server so that SQL Server "does the work" of narrowing down the > data displayed. > > Let's take a reasonable simple example. > > I have a "time sheet form". This form has a pair of controls which I > can use to set from / to dates so that by default when opened the form > displays this week's time entries. > However I can set dates > for any time period and display the time records that match that to / > from filter. > > I have a Client Product combo that displays only products for > currently active Clients and currently active products for those > clients. Thus that combo pulls data from the client and product > table, filtered on the active flag of both. > > I have a work category combo that pulls data from a table which is > essentially the product / bill rate, so once a client is selected, a > filtered (by client) product is selected, and then a filtered (by > product) work category is selected. > > Pretty simple stuff to do directly in Access. But how do I do this > such that SQL Server does this filtering and presents the filtered > data to the combos? > > I have never even looked at this stuff so I need very specific > instructions one time. I seem to vaguely remember that I need to > build views (or SPs?) out in SQL Server, and then do a passthrough > query? > > Can anyone help me figure this out? Once I do it one time I will be > off to the races. > > Thanks guys! > -- 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 dwaters at usinternet.com Tue Mar 23 10:01:51 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 10:01:51 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8CF1A.6090509@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com> Message-ID: If you can find an old book named 'Microsoft Access Developer's Guide to SQL Server', you'll have what you need - Chapter 10. $5.70 used. http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 /ref=sr_1_1?ie=UTF8&s=books&qid=1269356371&sr=8-1 Or, the ADH 2002 Enterprise Edition also has info on this subject. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server I know how to link to the tables, and in fact do that right now. I am talking about the next step. If you just link to the tables, then when you try to pull two tables, join them on PK/FK, and filter, all of that work is done client-side. The indexes used in joins and filters have to be sent to Access (JET), which in memory client-side grabs data, joins, filters etc. and finally applies the data to a combo or form. I want to set up SQL Server to join the two tables, apply filters and just send the DATA to Access. I know that this is possible, but I do not know the details, the mechanics of doing this. John W. Colby www.ColbyConsulting.com Darren - Active Billing wrote: > Hi John > > Using a paradigm we all know and love > Link to the tables and build forms over these linked tables > Edits are directly entered into the SQL tables from the ACCESS Forms > You can build a wrapper for the stuff that handles the connections - but > I've included it all here in one function so you get the idea > > OK Assume You have a table named "Ledger" in SQLSVR - > Assume I have form called frmLedgerItems in my Access dB that I want to be > the interface to this SQL table > > Also - You get the relevant data for your combos the same way - It's very > quick and very easy > > Now I don't claim to know a lot about this stuff so those who know can look > at this stuff and point out better ways to do it I'm sure > > Got the Transferdatabase tip this from Stuart By the way > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > Private Sub ps_GetLedgerItems() > > On Error GoTo Err_ > > Dim stDocName As String > > Dim strUserID As String > Dim strPassword As String > > Dim strServer As String > Dim strServerIPAddress As String > Dim strdBName As String > > Dim strODBCConn As String > > stDocName = "frmLedgerItems" > > strUserID = "UuserNameHere" ''Could be a DLOOKUP > strPassword = "passwordHere" ''Could be a Dlookup > > strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & > Forms!frmClients!txtClientID) > > strServer = Trim(strServer) > strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", "ServerName > = '" & strServer & "'") > strdBName = DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! > frmClients!txtClientID) > > > strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL Server;SERVER=" & > strServerIPAddress & ";APP=Microsoft Data Access Components;DATABASE=" & > strdBName & ";UID=" & strUserID & ";PWD=" & strPassword & > ";Trusted_Connection=no" > > 'I connect to many SQL Server dBs so I need to always get the 'right one' > 'So I delete the link to any previous table > DoCmd.DeleteObject acTable, "tbl_ledger" > > DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, > "ledger", "tbl_ledger", False > > DoCmd.OpenForm stDocName > > Exit_: > Exit Sub > > Err_: > > MsgBox Err.Number & " " & Err.Description, vbCritical, "error in > ps_GetLedgeritems" > End If > > Resume Exit_ > > End Sub > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, 24 March 2010 12:12 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Binding forms and controls directly to SQL Server > > Guys, > > One thing I have always wanted to learn is how to bind Access objects > directly to SQL Server. Does > anyone out there do this and would you be willing to assist me in figuring > this out. > > My billing database is in SQL Server. SQL Server 2008 is running directly > on my laptop and the > database files are on my laptop. I know some stuff about SQL Server but > there is a bunch that I > don't know. I tend to know the "data side" but not know the admin side. I > can create tables, > indexes, views and stored procedures. I have never created a stored > procedure that returned a > result set, only SPs that return an integer, and also (from C#) SPs that > have Output Parameters for > things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. > > So, what do I do to: > > 1) Cause combos to pull their data from SQL Server. Do I create a view on > the server side? If so > how do I then cause Access to see the view and use that for the combo. > 2) Pass parameters to the server side so that (for example) I could filter a > combo to only display > products for a specific client. > 3) Cause forms to pull data from sql server such that the forms are able to > see and edit the data, > but bound to something (a view?) out in sql server so that SQL Server "does > the work" of narrowing > down the data displayed. > > Let's take a reasonable simple example. > > I have a "time sheet form". This form has a pair of controls which I can > use to set from / to dates > so that by default when opened the form displays this week's time entries. > However I can set dates > for any time period and display the time records that match that to / from > filter. > > I have a Client Product combo that displays only products for currently > active Clients and currently > active products for those clients. Thus that combo pulls data from the > client and product table, > filtered on the active flag of both. > > I have a work category combo that pulls data from a table which is > essentially the product / bill > rate, so once a client is selected, a filtered (by client) product is > selected, and then a filtered > (by product) work category is selected. > > Pretty simple stuff to do directly in Access. But how do I do this such > that SQL Server does this > filtering and presents the filtered data to the combos? > > I have never even looked at this stuff so I need very specific instructions > one time. I seem to > vaguely remember that I need to build views (or SPs?) out in SQL Server, and > then do a passthrough > query? > > Can anyone help me figure this out? Once I do it one time I will be off to > the races. > > Thanks guys! > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 23 10:10:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 11:10:41 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4BA8D9F1.8080105@colbyconsulting.com> OK, I can do that. To make a query a pass through query I set a property of the query? John W. Colby www.ColbyConsulting.com Rusty Hammond wrote: > If you setup a view on SQL, you can add it as a linked table just like > you would a sql table. When adding the linked table, keep scrolling > through the list until you get to your views. Be sure to select a > primary key field if you want to make updates to the data. > > For combo boxes, I'll often use a pass through query. To filter the > data of the pass through, you can just change the sql of the pass > through query via code. > > > HTH > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 23, 2010 9:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly > to SQL Server > > I know how to link to the tables, and in fact do that right now. I am > talking about the next step. > > If you just link to the tables, then when you try to pull two tables, > join them on PK/FK, and filter, all of that work is done client-side. > The indexes used in joins and filters have to be sent to Access (JET), > which in memory client-side grabs data, joins, filters etc. and finally > applies the data to a combo or form. > > I want to set up SQL Server to join the two tables, apply filters and > just send the DATA to Access. > > I know that this is possible, but I do not know the details, the > mechanics of doing this. > > John W. Colby > www.ColbyConsulting.com > > > Darren - Active Billing wrote: >> Hi John >> >> Using a paradigm we all know and love >> Link to the tables and build forms over these linked tables Edits are >> directly entered into the SQL tables from the ACCESS Forms You can >> build a wrapper for the stuff that handles the connections - but I've >> included it all here in one function so you get the idea >> >> OK Assume You have a table named "Ledger" in SQLSVR - Assume I have >> form called frmLedgerItems in my Access dB that I want to be the >> interface to this SQL table >> >> Also - You get the relevant data for your combos the same way - It's >> very quick and very easy >> >> Now I don't claim to know a lot about this stuff so those who know can > >> look at this stuff and point out better ways to do it I'm sure >> >> Got the Transferdatabase tip this from Stuart By the way >> >> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >> Private Sub ps_GetLedgerItems() >> >> On Error GoTo Err_ >> >> Dim stDocName As String >> >> Dim strUserID As String >> Dim strPassword As String >> >> Dim strServer As String >> Dim strServerIPAddress As String >> Dim strdBName As String >> >> Dim strODBCConn As String >> >> stDocName = "frmLedgerItems" >> >> strUserID = "UuserNameHere" ''Could be a DLOOKUP strPassword = >> "passwordHere" ''Could be a Dlookup >> >> strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & >> Forms!frmClients!txtClientID) >> >> strServer = Trim(strServer) >> strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", >> "ServerName = '" & strServer & "'") strdBName = >> DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! >> frmClients!txtClientID) >> >> >> strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL >> Server;SERVER=" & strServerIPAddress & ";APP=Microsoft Data Access >> Components;DATABASE=" & strdBName & ";UID=" & strUserID & ";PWD=" & >> strPassword & ";Trusted_Connection=no" >> >> 'I connect to many SQL Server dBs so I need to always get the 'right > one' >> 'So I delete the link to any previous table DoCmd.DeleteObject >> acTable, "tbl_ledger" >> >> DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, >> "ledger", "tbl_ledger", False >> >> DoCmd.OpenForm stDocName >> >> Exit_: >> Exit Sub >> >> Err_: >> >> MsgBox Err.Number & " " & Err.Description, vbCritical, "error in >> ps_GetLedgeritems" >> End If >> >> Resume Exit_ >> >> End Sub >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, 24 March 2010 12:12 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Binding forms and controls directly to SQL Server >> >> Guys, >> >> One thing I have always wanted to learn is how to bind Access objects >> directly to SQL Server. Does anyone out there do this and would you >> be willing to assist me in figuring this out. >> >> My billing database is in SQL Server. SQL Server 2008 is running >> directly on my laptop and the database files are on my laptop. I know > >> some stuff about SQL Server but there is a bunch that I don't know. I > >> tend to know the "data side" but not know the admin side. I can >> create tables, indexes, views and stored procedures. I have never >> created a stored procedure that returned a result set, only SPs that >> return an integer, and also (from C#) SPs that have Output Parameters >> for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff >> like that. >> >> So, what do I do to: >> >> 1) Cause combos to pull their data from SQL Server. Do I create a >> view on the server side? If so how do I then cause Access to see the >> view and use that for the combo. >> 2) Pass parameters to the server side so that (for example) I could >> filter a combo to only display products for a specific client. >> 3) Cause forms to pull data from sql server such that the forms are >> able to see and edit the data, but bound to something (a view?) out in > >> sql server so that SQL Server "does the work" of narrowing down the >> data displayed. >> >> Let's take a reasonable simple example. >> >> I have a "time sheet form". This form has a pair of controls which I >> can use to set from / to dates so that by default when opened the form > >> displays this week's time entries. >> However I can set dates >> for any time period and display the time records that match that to / >> from filter. >> >> I have a Client Product combo that displays only products for >> currently active Clients and currently active products for those >> clients. Thus that combo pulls data from the client and product >> table, filtered on the active flag of both. >> >> I have a work category combo that pulls data from a table which is >> essentially the product / bill rate, so once a client is selected, a >> filtered (by client) product is selected, and then a filtered (by >> product) work category is selected. >> >> Pretty simple stuff to do directly in Access. But how do I do this >> such that SQL Server does this filtering and presents the filtered >> data to the combos? >> >> I have never even looked at this stuff so I need very specific >> instructions one time. I seem to vaguely remember that I need to >> build views (or SPs?) out in SQL Server, and then do a passthrough >> query? >> >> Can anyone help me figure this out? Once I do it one time I will be >> off to the races. >> >> Thanks guys! >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. > corporate e-mail system and is subject to archival, monitoring or review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > From rusty.hammond at cpiqpc.com Tue Mar 23 10:21:04 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 23 Mar 2010 10:21:04 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8D9F1.8080105@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> >From the SQL view of the query, go to the Query menu, SQL Specific, Pass-Through. Then right click the title bar of the query and go to Properties. Setup your ODBC Connect Str and you should be good to go. The SQL of the pass-through needs to be in T-SQL and not access sql. Pass-Through queries are read-only which is why I only use them for combo boxes or to call stored procedures. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 10:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server OK, I can do that. To make a query a pass through query I set a property of the query? John W. Colby www.ColbyConsulting.com Rusty Hammond wrote: > If you setup a view on SQL, you can add it as a linked table just like > you would a sql table. When adding the linked table, keep scrolling > through the list until you get to your views. Be sure to select a > primary key field if you want to make updates to the data. > > For combo boxes, I'll often use a pass through query. To filter the > data of the pass through, you can just change the sql of the pass > through query via code. > > > HTH > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 23, 2010 9:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls > directly to SQL Server > > I know how to link to the tables, and in fact do that right now. I am > talking about the next step. > > If you just link to the tables, then when you try to pull two tables, > join them on PK/FK, and filter, all of that work is done client-side. > The indexes used in joins and filters have to be sent to Access (JET), > which in memory client-side grabs data, joins, filters etc. and > finally applies the data to a combo or form. > > I want to set up SQL Server to join the two tables, apply filters and > just send the DATA to Access. > > I know that this is possible, but I do not know the details, the > mechanics of doing this. > > John W. Colby > www.ColbyConsulting.com > > > Darren - Active Billing wrote: >> Hi John >> >> Using a paradigm we all know and love Link to the tables and build >> forms over these linked tables Edits are directly entered into the >> SQL tables from the ACCESS Forms You can build a wrapper for the >> stuff that handles the connections - but I've included it all here in >> one function so you get the idea >> >> OK Assume You have a table named "Ledger" in SQLSVR - Assume I have >> form called frmLedgerItems in my Access dB that I want to be the >> interface to this SQL table >> >> Also - You get the relevant data for your combos the same way - It's >> very quick and very easy >> >> Now I don't claim to know a lot about this stuff so those who know >> can > >> look at this stuff and point out better ways to do it I'm sure >> >> Got the Transferdatabase tip this from Stuart By the way >> >> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >> Private Sub ps_GetLedgerItems() >> >> On Error GoTo Err_ >> >> Dim stDocName As String >> >> Dim strUserID As String >> Dim strPassword As String >> >> Dim strServer As String >> Dim strServerIPAddress As String >> Dim strdBName As String >> >> Dim strODBCConn As String >> >> stDocName = "frmLedgerItems" >> >> strUserID = "UuserNameHere" ''Could be a DLOOKUP strPassword = >> "passwordHere" ''Could be a Dlookup >> >> strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & >> Forms!frmClients!txtClientID) >> >> strServer = Trim(strServer) >> strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", >> "ServerName = '" & strServer & "'") strdBName = >> DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! >> frmClients!txtClientID) >> >> >> strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL >> Server;SERVER=" & strServerIPAddress & ";APP=Microsoft Data Access >> Components;DATABASE=" & strdBName & ";UID=" & strUserID & ";PWD=" & >> strPassword & ";Trusted_Connection=no" >> >> 'I connect to many SQL Server dBs so I need to always get the 'right > one' >> 'So I delete the link to any previous table DoCmd.DeleteObject >> acTable, "tbl_ledger" >> >> DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, >> "ledger", "tbl_ledger", False >> >> DoCmd.OpenForm stDocName >> >> Exit_: >> Exit Sub >> >> Err_: >> >> MsgBox Err.Number & " " & Err.Description, vbCritical, "error in >> ps_GetLedgeritems" >> End If >> >> Resume Exit_ >> >> End Sub >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, 24 March 2010 12:12 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Binding forms and controls directly to SQL Server >> >> Guys, >> >> One thing I have always wanted to learn is how to bind Access objects >> directly to SQL Server. Does anyone out there do this and would you >> be willing to assist me in figuring this out. >> >> My billing database is in SQL Server. SQL Server 2008 is running >> directly on my laptop and the database files are on my laptop. I >> know > >> some stuff about SQL Server but there is a bunch that I don't know. >> I > >> tend to know the "data side" but not know the admin side. I can >> create tables, indexes, views and stored procedures. I have never >> created a stored procedure that returned a result set, only SPs that >> return an integer, and also (from C#) SPs that have Output Parameters >> for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff >> like that. >> >> So, what do I do to: >> >> 1) Cause combos to pull their data from SQL Server. Do I create a >> view on the server side? If so how do I then cause Access to see the >> view and use that for the combo. >> 2) Pass parameters to the server side so that (for example) I could >> filter a combo to only display products for a specific client. >> 3) Cause forms to pull data from sql server such that the forms are >> able to see and edit the data, but bound to something (a view?) out >> in > >> sql server so that SQL Server "does the work" of narrowing down the >> data displayed. >> >> Let's take a reasonable simple example. >> >> I have a "time sheet form". This form has a pair of controls which I >> can use to set from / to dates so that by default when opened the >> form > >> displays this week's time entries. >> However I can set dates >> for any time period and display the time records that match that to / >> from filter. >> >> I have a Client Product combo that displays only products for >> currently active Clients and currently active products for those >> clients. Thus that combo pulls data from the client and product >> table, filtered on the active flag of both. >> >> I have a work category combo that pulls data from a table which is >> essentially the product / bill rate, so once a client is selected, a >> filtered (by client) product is selected, and then a filtered (by >> product) work category is selected. >> >> Pretty simple stuff to do directly in Access. But how do I do this >> such that SQL Server does this filtering and presents the filtered >> data to the combos? >> >> I have never even looked at this stuff so I need very specific >> instructions one time. I seem to vaguely remember that I need to >> build views (or SPs?) out in SQL Server, and then do a passthrough >> query? >> >> Can anyone help me figure this out? Once I do it one time I will be >> off to the races. >> >> Thanks guys! >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. > corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwcolby at colbyconsulting.com Tue Mar 23 11:53:43 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 12:53:43 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4BA8F217.9090007@colbyconsulting.com> > Pass-Through queries are read-only which is why I only use them for combo boxes or to call stored procedures. Which would explain why I can't update or add records. But this is the big time sink for this form. Can I bind the form to a stored procedure and pass parameters to the stored procedure? John W. Colby www.ColbyConsulting.com Rusty Hammond wrote: >>From the SQL view of the query, go to the Query menu, SQL Specific, > Pass-Through. Then right click the title bar of the query and go to > Properties. Setup your ODBC Connect Str and you should be good to go. > The SQL of the pass-through needs to be in T-SQL and not access sql. > Pass-Through queries are read-only which is why I only use them for > combo boxes or to call stored procedures. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 23, 2010 10:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly > to SQL Server > > OK, I can do that. To make a query a pass through query I set a > property of the query? > > John W. Colby > www.ColbyConsulting.com > > > Rusty Hammond wrote: >> If you setup a view on SQL, you can add it as a linked table just like >> you would a sql table. When adding the linked table, keep > scrolling >> through the list until you get to your views. Be sure to select a >> primary key field if you want to make updates to the data. >> >> For combo boxes, I'll often use a pass through query. To filter the >> data of the pass through, you can just change the sql of the pass >> through query via code. >> >> >> HTH >> >> Rusty >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, March 23, 2010 9:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls >> directly to SQL Server >> >> I know how to link to the tables, and in fact do that right now. I am > >> talking about the next step. >> >> If you just link to the tables, then when you try to pull two tables, >> join them on PK/FK, and filter, all of that work is done client-side. >> The indexes used in joins and filters have to be sent to Access (JET), > >> which in memory client-side grabs data, joins, filters etc. and >> finally applies the data to a combo or form. >> >> I want to set up SQL Server to join the two tables, apply filters and >> just send the DATA to Access. >> >> I know that this is possible, but I do not know the details, the >> mechanics of doing this. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Darren - Active Billing wrote: >>> Hi John >>> >>> Using a paradigm we all know and love Link to the tables and build >>> forms over these linked tables Edits are directly entered into the >>> SQL tables from the ACCESS Forms You can build a wrapper for the >>> stuff that handles the connections - but I've included it all here in > >>> one function so you get the idea >>> >>> OK Assume You have a table named "Ledger" in SQLSVR - Assume I have >>> form called frmLedgerItems in my Access dB that I want to be the >>> interface to this SQL table >>> >>> Also - You get the relevant data for your combos the same way - It's >>> very quick and very easy >>> >>> Now I don't claim to know a lot about this stuff so those who know >>> can >>> look at this stuff and point out better ways to do it I'm sure >>> >>> Got the Transferdatabase tip this from Stuart By the way >>> >>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >>> Private Sub ps_GetLedgerItems() >>> >>> On Error GoTo Err_ >>> >>> Dim stDocName As String >>> >>> Dim strUserID As String >>> Dim strPassword As String >>> >>> Dim strServer As String >>> Dim strServerIPAddress As String >>> Dim strdBName As String >>> >>> Dim strODBCConn As String >>> >>> stDocName = "frmLedgerItems" >>> >>> strUserID = "UuserNameHere" ''Could be a DLOOKUP strPassword = >>> "passwordHere" ''Could be a Dlookup >>> >>> strServer = DLookup("[DefaultServer]", "tblClients", "ClientID = " & >>> Forms!frmClients!txtClientID) >>> >>> strServer = Trim(strServer) >>> strServerIPAddress = DLookup("[ServerIPAddress]", "tblServers", >>> "ServerName = '" & strServer & "'") strdBName = >>> DLookup("[DatabaseName]", "tblClients", "ClientID = " & Forms! >>> frmClients!txtClientID) >>> >>> >>> strODBCConn = "ODBC;Description=Test Connection;DRIVER=SQL >>> Server;SERVER=" & strServerIPAddress & ";APP=Microsoft Data Access >>> Components;DATABASE=" & strdBName & ";UID=" & strUserID & ";PWD=" & >>> strPassword & ";Trusted_Connection=no" >>> >>> 'I connect to many SQL Server dBs so I need to always get the 'right >> one' >>> 'So I delete the link to any previous table DoCmd.DeleteObject >>> acTable, "tbl_ledger" >>> >>> DoCmd.TransferDatabase acLink, "ODBC Database", strODBCConn, acTable, > >>> "ledger", "tbl_ledger", False >>> >>> DoCmd.OpenForm stDocName >>> >>> Exit_: >>> Exit Sub >>> >>> Err_: >>> >>> MsgBox Err.Number & " " & Err.Description, vbCritical, "error in >>> ps_GetLedgeritems" >>> End If >>> >>> Resume Exit_ >>> >>> End Sub >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Wednesday, 24 March 2010 12:12 AM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Binding forms and controls directly to SQL Server >>> >>> Guys, >>> >>> One thing I have always wanted to learn is how to bind Access objects > >>> directly to SQL Server. Does anyone out there do this and would you >>> be willing to assist me in figuring this out. >>> >>> My billing database is in SQL Server. SQL Server 2008 is running >>> directly on my laptop and the database files are on my laptop. I >>> know >>> some stuff about SQL Server but there is a bunch that I don't know. >>> I >>> tend to know the "data side" but not know the admin side. I can >>> create tables, indexes, views and stored procedures. I have never >>> created a stored procedure that returned a result set, only SPs that >>> return an integer, and also (from C#) SPs that have Output Parameters > >>> for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff >>> like that. >>> >>> So, what do I do to: >>> >>> 1) Cause combos to pull their data from SQL Server. Do I create a >>> view on the server side? If so how do I then cause Access to see the > >>> view and use that for the combo. >>> 2) Pass parameters to the server side so that (for example) I could >>> filter a combo to only display products for a specific client. >>> 3) Cause forms to pull data from sql server such that the forms are >>> able to see and edit the data, but bound to something (a view?) out >>> in >>> sql server so that SQL Server "does the work" of narrowing down the >>> data displayed. >>> >>> Let's take a reasonable simple example. >>> >>> I have a "time sheet form". This form has a pair of controls which I > >>> can use to set from / to dates so that by default when opened the >>> form >>> displays this week's time entries. >>> However I can set dates >>> for any time period and display the time records that match that to / > >>> from filter. >>> >>> I have a Client Product combo that displays only products for >>> currently active Clients and currently active products for those >>> clients. Thus that combo pulls data from the client and product >>> table, filtered on the active flag of both. >>> >>> I have a work category combo that pulls data from a table which is >>> essentially the product / bill rate, so once a client is selected, a >>> filtered (by client) product is selected, and then a filtered (by >>> product) work category is selected. >>> >>> Pretty simple stuff to do directly in Access. But how do I do this >>> such that SQL Server does this filtering and presents the filtered >>> data to the combos? >>> >>> I have never even looked at this stuff so I need very specific >>> instructions one time. I seem to vaguely remember that I need to >>> build views (or SPs?) out in SQL Server, and then do a passthrough >>> query? >>> >>> Can anyone help me figure this out? Once I do it one time I will be >>> off to the races. >>> >>> Thanks guys! >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> ********************************************************************** >> WARNING: All e-mail sent to and from this address will be received, >> scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. >> corporate e-mail system and is subject to archival, monitoring or >> review by, and/or disclosure to, someone other than the recipient. >> ********************************************************************** >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. > corporate e-mail system and is subject to archival, monitoring or review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > From jwcolby at colbyconsulting.com Tue Mar 23 11:59:00 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 12:59:00 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4BA8F354.9020500@colbyconsulting.com> I seem to remember Charlotte saying that you could open an ADO RECORDSET and bind the form to that recordset to make the form read/write. John W. Colby www.ColbyConsulting.com Rusty Hammond wrote: >>From the SQL view of the query, go to the Query menu, SQL Specific, > Pass-Through. Then right click the title bar of the query and go to > Properties. Setup your ODBC Connect Str and you should be good to go. > The SQL of the pass-through needs to be in T-SQL and not access sql. > Pass-Through queries are read-only which is why I only use them for > combo boxes or to call stored procedures. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 23, 2010 10:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly > to SQL Server > > OK, I can do that. To make a query a pass through query I set a > property of the query? > > John W. Colby > www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Mar 23 12:23:12 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 13:23:12 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F354.9020500@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8F354.9020500@colbyconsulting.com> Message-ID: <4BA8F900.5080004@colbyconsulting.com> OK, I got it working using the ADO recordset thing. Basically I just do the typical ADO recordset: Private Function GetADORst(strsql) Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Create a new ADO Connection object On Error GoTo Err_GetADORst Set cn = New ADODB.Connection 'Use the Access 10 and SQL Server OLEDB providers to 'open the Connection 'You will need to replace MySQLServer with the name 'of a valid SQL Server With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = "M90" .Properties("Integrated Security").Value = "SSPI" ' .Properties("User ID").Value = "sa" ' .Properties("Password").Value = "" .Properties("Initial Catalog").Value = "C2DbBilling" .Open End With Then open the recordset 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn ' .Source = "SELECT * FROM tblTime" .Source = strsql .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With then assign that as the recordset. Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Voila, editable form. And FAST! John W. Colby www.ColbyConsulting.com jwcolby wrote: > I seem to remember Charlotte saying that you could open an ADO RECORDSET and bind the form to that > recordset to make the form read/write. > > John W. Colby > www.ColbyConsulting.com From rusty.hammond at cpiqpc.com Tue Mar 23 12:30:12 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 23 Mar 2010 12:30:12 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F900.5080004@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET><4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D79712@CPIEMAIL-EVS1.CPIQPC.NET> Very cool. I'll have to try that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 12:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server OK, I got it working using the ADO recordset thing. Basically I just do the typical ADO recordset: Private Function GetADORst(strsql) Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Create a new ADO Connection object On Error GoTo Err_GetADORst Set cn = New ADODB.Connection 'Use the Access 10 and SQL Server OLEDB providers to 'open the Connection 'You will need to replace MySQLServer with the name 'of a valid SQL Server With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = "M90" .Properties("Integrated Security").Value = "SSPI" ' .Properties("User ID").Value = "sa" ' .Properties("Password").Value = "" .Properties("Initial Catalog").Value = "C2DbBilling" .Open End With Then open the recordset 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn ' .Source = "SELECT * FROM tblTime" .Source = strsql .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With then assign that as the recordset. Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Voila, editable form. And FAST! John W. Colby www.ColbyConsulting.com jwcolby wrote: > I seem to remember Charlotte saying that you could open an ADO > RECORDSET and bind the form to that recordset to make the form read/write. > > 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 dw-murphy at cox.net Tue Mar 23 13:22:03 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 23 Mar 2010 11:22:03 -0700 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F900.5080004@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET><4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> Message-ID: <7000B2EA053249DF9FF36BF188540747@murphy3234aaf1> HI John, Interesting. Do you have to perform an update after changing data? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server OK, I got it working using the ADO recordset thing. Basically I just do the typical ADO recordset: Private Function GetADORst(strsql) Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Create a new ADO Connection object On Error GoTo Err_GetADORst Set cn = New ADODB.Connection 'Use the Access 10 and SQL Server OLEDB providers to 'open the Connection 'You will need to replace MySQLServer with the name 'of a valid SQL Server With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = "M90" .Properties("Integrated Security").Value = "SSPI" ' .Properties("User ID").Value = "sa" ' .Properties("Password").Value = "" .Properties("Initial Catalog").Value = "C2DbBilling" .Open End With Then open the recordset 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn ' .Source = "SELECT * FROM tblTime" .Source = strsql .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With then assign that as the recordset. Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Voila, editable form. And FAST! John W. Colby www.ColbyConsulting.com jwcolby wrote: > I seem to remember Charlotte saying that you could open an ADO > RECORDSET and bind the form to that recordset to make the form read/write. > > 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 Tue Mar 23 14:28:30 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 15:28:30 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <7000B2EA053249DF9FF36BF188540747@murphy3234aaf1> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET><4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> <7000B2EA053249DF9FF36BF188540747@murphy3234aaf1> Message-ID: <4BA9165E.8030509@colbyconsulting.com> Nope. If I edit an existing record and just close the form, when I reopen the form the changes are retained. However I am not able to create a new record yet. Working on the why of that now. John W. Colby www.ColbyConsulting.com Doug Murphy wrote: > HI John, > > Interesting. Do you have to perform an update after changing data? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, March 23, 2010 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to > SQL Server > > OK, I got it working using the ADO recordset thing. Basically I just do the > typical ADO recordset: > > Private Function GetADORst(strsql) > Dim cn As ADODB.Connection > Dim rs As ADODB.Recordset > > 'Create a new ADO Connection object > On Error GoTo Err_GetADORst > > Set cn = New ADODB.Connection > > 'Use the Access 10 and SQL Server OLEDB providers to > 'open the Connection > 'You will need to replace MySQLServer with the name > 'of a valid SQL Server > With cn > .Provider = "Microsoft.Access.OLEDB.10.0" > .Properties("Data Provider").Value = "SQLOLEDB" > .Properties("Data Source").Value = "M90" > .Properties("Integrated Security").Value = "SSPI" > ' .Properties("User ID").Value = "sa" > ' .Properties("Password").Value = "" > .Properties("Initial Catalog").Value = "C2DbBilling" > .Open > End With > > Then open the recordset > > 'Create an instance of the ADO Recordset class, and > 'set its properties > Set rs = New ADODB.Recordset > With rs > Set .ActiveConnection = cn > ' .Source = "SELECT * FROM tblTime" > .Source = strsql > .LockType = adLockOptimistic > .CursorType = adOpenKeyset > .Open > End With > > then assign that as the recordset. > > Set Me.Recordset = rs > Set rs = Nothing > Set cn = Nothing > > Voila, editable form. And FAST! > > John W. Colby > www.ColbyConsulting.com > > > jwcolby wrote: >> I seem to remember Charlotte saying that you could open an ADO >> RECORDSET and bind the form to that recordset to make the form read/write. >> >> 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 Tue Mar 23 14:31:35 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 23 Mar 2010 15:31:35 -0400 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F900.5080004@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> Message-ID: <4BA91717.40209@colbyconsulting.com> BTW this came from here: http://support.microsoft.com/kb/281998 John W. Colby www.ColbyConsulting.com jwcolby wrote: > OK, I got it working using the ADO recordset thing. Basically I just do the typical ADO recordset: > > Private Function GetADORst(strsql) > Dim cn As ADODB.Connection > Dim rs As ADODB.Recordset > > 'Create a new ADO Connection object > On Error GoTo Err_GetADORst > > Set cn = New ADODB.Connection > > 'Use the Access 10 and SQL Server OLEDB providers to > 'open the Connection > 'You will need to replace MySQLServer with the name > 'of a valid SQL Server > With cn > .Provider = "Microsoft.Access.OLEDB.10.0" > .Properties("Data Provider").Value = "SQLOLEDB" > .Properties("Data Source").Value = "M90" > .Properties("Integrated Security").Value = "SSPI" > ' .Properties("User ID").Value = "sa" > ' .Properties("Password").Value = "" > .Properties("Initial Catalog").Value = "C2DbBilling" > .Open > End With > > Then open the recordset > > 'Create an instance of the ADO Recordset class, and > 'set its properties > Set rs = New ADODB.Recordset > With rs > Set .ActiveConnection = cn > ' .Source = "SELECT * FROM tblTime" > .Source = strsql > .LockType = adLockOptimistic > .CursorType = adOpenKeyset > .Open > End With > > then assign that as the recordset. > > Set Me.Recordset = rs > Set rs = Nothing > Set cn = Nothing > > Voila, editable form. And FAST! > > John W. Colby > www.ColbyConsulting.com > > > jwcolby wrote: >> I seem to remember Charlotte saying that you could open an ADO RECORDSET and bind the form to that >> recordset to make the form read/write. >> >> John W. Colby >> www.ColbyConsulting.com > From stuart at lexacorp.com.pg Tue Mar 23 16:32:21 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 24 Mar 2010 07:32:21 +1000 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: References: <4BA8BE13.2050301@colbyconsulting.com>, Message-ID: <4BA93365.16966.369F43B2@stuart.lexacorp.com.pg> Why didn't you post that yesterday! I'd forgotten about the bit field problem. I was working on updating some Access applications I put together a few years ago and couldn't work out why I could create new records but couldn't edit existing ones in an app which hasn't been used for a few years (this is part of a 5 year election cycle) Took me a long time to work out that it was a new bit field that had been added to the table since this particular application was last used. -- Stuart On 23 Mar 2010 at 8:22, Dan Waters wrote: > Are you using ODBC table links? If so, then it's the same as if you were > linking to an Access BE. > > Although you need to set the Bit (Yes/No) fields in SQL Server to not allow > nulls. > > Dan From dwaters at usinternet.com Tue Mar 23 17:23:17 2010 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 23 Mar 2010 17:23:17 -0500 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA93365.16966.369F43B2@stuart.lexacorp.com.pg> References: <4BA8BE13.2050301@colbyconsulting.com>, <4BA93365.16966.369F43B2@stuart.lexacorp.com.pg> Message-ID: <8048F24BCB9B4E6594CE191B35604137@danwaters> Hi Stuart, I'm sorry I didn't post this yesterday. From now on, I'll post everything yesterday! ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, March 23, 2010 4:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Binding forms and controls directly to SQL Server Why didn't you post that yesterday! I'd forgotten about the bit field problem. I was working on updating some Access applications I put together a few years ago and couldn't work out why I could create new records but couldn't edit existing ones in an app which hasn't been used for a few years (this is part of a 5 year election cycle) Took me a long time to work out that it was a new bit field that had been added to the table since this particular application was last used. -- Stuart On 23 Mar 2010 at 8:22, Dan Waters wrote: > Are you using ODBC table links? If so, then it's the same as if you were > linking to an Access BE. > > Although you need to set the Bit (Yes/No) fields in SQL Server to not allow > nulls. > > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From anitatiedemann at gmail.com Tue Mar 23 20:52:58 2010 From: anitatiedemann at gmail.com (anitatiedemann at gmail.com) Date: Wed, 24 Mar 2010 01:52:58 +0000 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: <00504502f54a88a2a5048282307e@google.com> John, I use mostly SQL Server BE with Access FE's these days. Here is how I do it: 1. Use a project with connection to SQL Server - once you create that you will see the tables/views and stored procedures within your Access FE 2. Use stored procedures to feed forms and reports. You can bind a form to a stored procedure exactly the same way you can with a normal Access query 3. You can pass parameters to forms and reports by using the Input Parameter property which can be found on forms and reports Example - this procedure feeds the customer form and accepts a customer id; CREATE PROCEDURE spFrmCustomers ( @CustID long ) AS SELECT * FROM tblCustomers WHERE CustomerID = @CustID The customer form would then have the following Input Parameter = CurrCust() ... and its recordsource would be spFrmCustomers CurrCust being a Property that can be set before the customer form is opened I hope this helps. I find the above approach really works well and ensures that no form is opened with a massive recordset behind it Anita Smith On , jwcolby wrote: > Guys, > One thing I have always wanted to learn is how to bind Access objects > directly to SQL Server. Does > anyone out there do this and would you be willing to assist me in > figuring this out. > My billing database is in SQL Server. SQL Server 2008 is running directly > on my laptop and the > database files are on my laptop. I know some stuff about SQL Server but > there is a bunch that I > don't know. I tend to know the "data side" but not know the admin side. I > can create tables, > indexes, views and stored procedures. I have never created a stored > procedure that returned a > result set, only SPs that return an integer, and also (from C#) SPs that > have Output Parameters for > things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. > So, what do I do to: > 1) Cause combos to pull their data from SQL Server. Do I create a view on > the server side? If so > how do I then cause Access to see the view and use that for the combo. > 2) Pass parameters to the server side so that (for example) I could > filter a combo to only display > products for a specific client. > 3) Cause forms to pull data from sql server such that the forms are able > to see and edit the data, > but bound to something (a view?) out in sql server so that SQL > Server "does the work" of narrowing > down the data displayed. > Let's take a reasonable simple example. > I have a "time sheet form". This form has a pair of controls which I can > use to set from / to dates > so that by default when opened the form displays this week's time > entries. However I can set dates > for any time period and display the time records that match that to / > from filter. > I have a Client Product combo that displays only products for currently > active Clients and currently > active products for those clients. Thus that combo pulls data from the > client and product table, > filtered on the active flag of both. > I have a work category combo that pulls data from a table which is > essentially the product / bill > rate, so once a client is selected, a filtered (by client) product is > selected, and then a filtered > (by product) work category is selected. > Pretty simple stuff to do directly in Access. But how do I do this such > that SQL Server does this > filtering and presents the filtered data to the combos? > I have never even looked at this stuff so I need very specific > instructions one time. I seem to > vaguely remember that I need to build views (or SPs?) out in SQL Server, > and then do a passthrough > query? > Can anyone help me figure this out? Once I do it one time I will be off > to the races. > Thanks guys! > -- > 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 anitatiedemann at gmail.com Tue Mar 23 20:58:34 2010 From: anitatiedemann at gmail.com (anitatiedemann at gmail.com) Date: Wed, 24 Mar 2010 01:58:34 +0000 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: <0016e64c3d9890d0e60482824430@google.com> John, I forgot to mention that you can use code to set a combo row source like this: Me.cboCustomers.RowSource = "Exec spFrmCustomers " & CurrCust() This will execute the stored procedure spFrmCustomers and pass the Property CurrCust to it Anita Again On , jwcolby wrote: > Guys, > One thing I have always wanted to learn is how to bind Access objects > directly to SQL Server. Does > anyone out there do this and would you be willing to assist me in > figuring this out. > My billing database is in SQL Server. SQL Server 2008 is running directly > on my laptop and the > database files are on my laptop. I know some stuff about SQL Server but > there is a bunch that I > don't know. I tend to know the "data side" but not know the admin side. I > can create tables, > indexes, views and stored procedures. I have never created a stored > procedure that returned a > result set, only SPs that return an integer, and also (from C#) SPs that > have Output Parameters for > things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. > So, what do I do to: > 1) Cause combos to pull their data from SQL Server. Do I create a view on > the server side? If so > how do I then cause Access to see the view and use that for the combo. > 2) Pass parameters to the server side so that (for example) I could > filter a combo to only display > products for a specific client. > 3) Cause forms to pull data from sql server such that the forms are able > to see and edit the data, > but bound to something (a view?) out in sql server so that SQL > Server "does the work" of narrowing > down the data displayed. > Let's take a reasonable simple example. > I have a "time sheet form". This form has a pair of controls which I can > use to set from / to dates > so that by default when opened the form displays this week's time > entries. However I can set dates > for any time period and display the time records that match that to / > from filter. > I have a Client Product combo that displays only products for currently > active Clients and currently > active products for those clients. Thus that combo pulls data from the > client and product table, > filtered on the active flag of both. > I have a work category combo that pulls data from a table which is > essentially the product / bill > rate, so once a client is selected, a filtered (by client) product is > selected, and then a filtered > (by product) work category is selected. > Pretty simple stuff to do directly in Access. But how do I do this such > that SQL Server does this > filtering and presents the filtered data to the combos? > I have never even looked at this stuff so I need very specific > instructions one time. I seem to > vaguely remember that I need to build views (or SPs?) out in SQL Server, > and then do a passthrough > query? > Can anyone help me figure this out? Once I do it one time I will be off > to the races. > Thanks guys! > -- > 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 rbgajewski at roadrunner.com Tue Mar 23 21:06:19 2010 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Tue, 23 Mar 2010 22:06:19 -0400 Subject: [AccessD] IsLoaded function In-Reply-To: References: <29f585dd1003230625v24a2a469ie5b89c515766c90@mail.gmail.com><6134FB6934CD4FB698862377B7A3916E@danwaters><2972E7E9597C486BAA90FA0AEB1AC376@danwaters> Message-ID: <40D1A512EC084B368D2F0EA90E0CE141@DCYN3T81> If you just want to check to see if a form is loaded/open, you can use this function too: Function IsLoaded(ByVal strFormName As String) As Boolean Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then If Forms(strFormName).CurrentView <> conDesignView Then IsLoaded = True End If End If End Function Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 23, 2010 10:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IsLoaded function Actually it was introduced with Access 2002 IIRC. Because it is a property of an Access object, as you point out, it is always called with a dot in front as in... SomeObject.IsLoaded() Or With SomeObject if .IsLoaded() Then ... End If End With So therefore its name does not clash with a function named "IsLoaded()". I can confirm that if you have the IsLoaded() function as part of an Access 2002 app you can call it happily instead of the form object's IsLoaded property: i.e. legacy code still runs. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function The .IsLoaded property of an access object is in Access 2003. I could see where an IsLoaded function may have difficulty if a version of Access uses IsLoaded as the name of a property. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 23, 2010 8:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IsLoaded function Unless you are working with Access 97 or earlier. In which case IsLoaded() is not built in. In which case the code looks like this... Function IsLoaded(FrmName As String) As Boolean Dim i As Integer IsLoaded = False For i = 0 To Forms.Count - 1 If Forms(i).Name = FrmName Then IsLoaded = True Exit Function End If Next i End Function Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 23, 2010 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] IsLoaded function It looks like .IsLoaded is a property of an access object, rather than a function. Like this: If CurrentProject.AllForms(stgFormName).IsLoaded = False Then ... Do Something End If HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 23, 2010 8:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] IsLoaded function For some reason I'm a "procedure not found" error on a call to the function IsLoaded(). Does anyone have a copy of it handy? I thought it was built-in but maybe I got it from ADH or somewhere. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 23 21:51:36 2010 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 23 Mar 2010 19:51:36 -0700 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <0016e64c3d9890d0e60482824430@google.com> References: <4BA8BE13.2050301@colbyconsulting.com> <0016e64c3d9890d0e60482824430@google.com> Message-ID: <4dd71a0c1003231951pe6fc276m2e4935f4ef80e9a6@mail.gmail.com> Thanks, Anita - I don't know if you've helped John, but you've certainly helped me. I have always assumed that you had to create a recordset first using a stored procedure, then use that recordset as a source. Doug Steele On Tue, Mar 23, 2010 at 6:58 PM, wrote: > John, > I forgot to mention that you can use code to set a combo row source like > this: > > Me.cboCustomers.RowSource = "Exec spFrmCustomers " & CurrCust() > > This will execute the stored procedure spFrmCustomers and pass the Property > CurrCust to it > > From davidmcafee at gmail.com Tue Mar 23 23:36:21 2010 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 23 Mar 2010 21:36:21 -0700 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4dd71a0c1003231951pe6fc276m2e4935f4ef80e9a6@mail.gmail.com> References: <4BA8BE13.2050301@colbyconsulting.com> <0016e64c3d9890d0e60482824430@google.com> <4dd71a0c1003231951pe6fc276m2e4935f4ef80e9a6@mail.gmail.com> Message-ID: <8786a4c01003232136o72b9cd5btddc678c783cbcc06@mail.gmail.com> That's why I love adp's. Comboboxes and list boxes are so easy. Sent from my Droid phone. On Mar 23, 2010 7:53 PM, "Doug Steele" wrote: Thanks, Anita - I don't know if you've helped John, but you've certainly helped me. I have always assumed that you had to create a recordset first using a stored procedure, then use that recordset as a source. Doug Steele On Tue, Mar 23, 2010 at 6:58 PM, wrote: > John, > I forgot to mention t... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/acces... From rusty.hammond at cpiqpc.com Wed Mar 24 08:42:27 2010 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Wed, 24 Mar 2010 08:42:27 -0500 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <8786a4c01003232136o72b9cd5btddc678c783cbcc06@mail.gmail.com> References: <4BA8BE13.2050301@colbyconsulting.com><0016e64c3d9890d0e60482824430@google.com><4dd71a0c1003231951pe6fc276m2e4935f4ef80e9a6@mail.gmail.com> <8786a4c01003232136o72b9cd5btddc678c783cbcc06@mail.gmail.com> Message-ID: <49A286ABF515E94A8505CD14DEB7217006D79720@CPIEMAIL-EVS1.CPIQPC.NET> I've built one app using an adp and really like the way it works with SQL Server. I keep hearing rumors Microsoft is going to drop support for them but every time a new version comes out, they are still there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, March 23, 2010 11:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Binding forms and controls directly to SQL Server That's why I love adp's. Comboboxes and list boxes are so easy. Sent from my Droid phone. On Mar 23, 2010 7:53 PM, "Doug Steele" wrote: Thanks, Anita - I don't know if you've helped John, but you've certainly helped me. I have always assumed that you had to create a recordset first using a stored procedure, then use that recordset as a source. Doug Steele On Tue, Mar 23, 2010 at 6:58 PM, wrote: > John, > I forgot to mention t... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/acces... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwcolby at colbyconsulting.com Wed Mar 24 08:42:45 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 24 Mar 2010 09:42:45 -0400 Subject: [AccessD] Sometimes Microsoft really is good Message-ID: <4BAA16D5.8090605@colbyconsulting.com> I had an issue with Visual Studio, it decided that I was using it for the first time. BOO! I had to reconfigure how the panes dock. BOO! When I finished and tried to run, the application crashed. BOO! It reported the error. YEAAA! It told me I needed to download a hotfix. YEAAA! It took me directly to the page to get the hotfix! YEAAA! Which I did. Now, I have no idea whether this is going to actually fix it or not but it is in areas like this that I am impressed with Microsoft. Yea, bugs are a PITA, but we all have them. It is how we handle them that makes the difference and MS really handles that side of things well IMHO. To have a list of bugs, the specific patch that fixes it, the reporting that finds it, and the system to get it and install it is pretty cool. -- John W. Colby www.ColbyConsulting.com From cfoust at infostatsystems.com Wed Mar 24 10:24:57 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 24 Mar 2010 10:24:57 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F354.9020500@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8F354.9020500@colbyconsulting.com> Message-ID: Yes, I did. In A2k and above that works. ADO is the way to go on this, John. You can call your stored procedure in code and pass it the parameters it need to return an ADO recordset. My code library seems to have gone AWOL with my old machine, so I don't have the code at hand, but there are samples in my section of Roger's Access Library. One of the sample, No Tables, does this kind of magic between two Access databases without table links. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 9:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server I seem to remember Charlotte saying that you could open an ADO RECORDSET and bind the form to that recordset to make the form read/write. John W. Colby www.ColbyConsulting.com Rusty Hammond wrote: >>From the SQL view of the query, go to the Query menu, SQL Specific, > Pass-Through. Then right click the title bar of the query and go to > Properties. Setup your ODBC Connect Str and you should be good to go. > The SQL of the pass-through needs to be in T-SQL and not access sql. > Pass-Through queries are read-only which is why I only use them for > combo boxes or to call stored procedures. > > From Gustav at cactus.dk Wed Mar 24 10:29:37 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 24 Mar 2010 16:29:37 +0100 Subject: [AccessD] OT: Paris Message-ID: Hi all You can now study Paris from a single spot on one amazing 354159x75570 px picture: http://www.paris-26-gigapixels.com/index-en.html /gustav From cfoust at infostatsystems.com Wed Mar 24 10:30:56 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 24 Mar 2010 10:30:56 -0500 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA9165E.8030509@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com><9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com><49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET><4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> <7000B2EA053249DF9FF36BF188540747@murphy3234aaf1> <4BA9165E.8030509@colbyconsulting.com> Message-ID: Here's the link to my old samples, John. Watch out for the wrap. http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=14&SID=9ebf18d12zb6c586c94d4a8f69eafzbc Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 12:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server Nope. If I edit an existing record and just close the form, when I reopen the form the changes are retained. However I am not able to create a new record yet. Working on the why of that now. John W. Colby www.ColbyConsulting.com From jedi at charm.net Wed Mar 24 11:04:43 2010 From: jedi at charm.net (Michael Bahr) Date: Wed, 24 Mar 2010 12:04:43 -0400 (EDT) Subject: [AccessD] OT: Paris In-Reply-To: References: Message-ID: <2428.24.35.23.165.1269446683.squirrel@mail.expedient.net> Nice! Not a lot of people out for 1:27pm though. Mike... > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Wed Mar 24 11:29:10 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 24 Mar 2010 12:29:10 -0400 Subject: [AccessD] OT: Paris In-Reply-To: References: Message-ID: <905C3FA19A4F4112BA08E9222A8B89EE@jislaptopdev> ...nice ...even nicer is what it promises for the future of the web. William -------------------------------------------------- From: "Gustav Brock" Sent: Wednesday, March 24, 2010 11:29 AM To: Subject: [AccessD] OT: Paris > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From EdTesiny at oasas.state.ny.us Wed Mar 24 11:39:51 2010 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 24 Mar 2010 12:39:51 -0400 Subject: [AccessD] OT: Paris In-Reply-To: References: Message-ID: When my wife sees this, the travel brochures will be arriving shortly thereafter. Perhaps our favorite city in Europe. Thanks, Gustav Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 24, 2010 11:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Paris Hi all You can now study Paris from a single spot on one amazing 354159x75570 px picture: http://www.paris-26-gigapixels.com/index-en.html /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Wed Mar 24 14:17:15 2010 From: delam at zyterra.com (Debbie) Date: Wed, 24 Mar 2010 14:17:15 -0500 Subject: [AccessD] Report preview bug Message-ID: <82B7D82F-4659-4891-9E8B-568099C48A82@zyterra.com> I am working on an existing software package in access 2007 that is new to me. I have observed a bug in the report preview that is occurring randomly. The menu to close the preview will grey out and the only way to close the report is to close access altogether. The customer says it pops up randomly in various reports, they don't see it in any particular report or occurring when specific things happen. Has anyone else ever run into this before? Debbie Sent from my iPhone From robert at servicexp.com Wed Mar 24 14:41:01 2010 From: robert at servicexp.com (Robert) Date: Wed, 24 Mar 2010 15:41:01 -0400 Subject: [AccessD] Report preview bug In-Reply-To: <82B7D82F-4659-4891-9E8B-568099C48A82@zyterra.com> References: <82B7D82F-4659-4891-9E8B-568099C48A82@zyterra.com> Message-ID: <002501cacb89$efb5fd40$cf21f7c0$@com> I have only seen where the "close" button doesn't work.. No other problems regarding the menu bar. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Wednesday, March 24, 2010 3:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Report preview bug I am working on an existing software package in access 2007 that is new to me. I have observed a bug in the report preview that is occurring randomly. The menu to close the preview will grey out and the only way to close the report is to close access altogether. The customer says it pops up randomly in various reports, they don't see it in any particular report or occurring when specific things happen. Has anyone else ever run into this before? Debbie Sent from my iPhone -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeff.developer at gmail.com Wed Mar 24 15:53:25 2010 From: jeff.developer at gmail.com (Jeff Barrows) Date: Wed, 24 Mar 2010 15:53:25 -0500 Subject: [AccessD] (cross posted) Looking for some Crystal Reports help Message-ID: <2dad32081003241353x605dfa9fs3558d54395696b6@mail.gmail.com> Has anyone done a crystal report for shipping labels where you know the total number of cartons, but do not have a record for each carton? For example, I have 1 record telling me there will be 9 cartons. I need to be able to loop through the records and print a label for each carton. -- Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI From stuart at lexacorp.com.pg Wed Mar 24 16:48:48 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 25 Mar 2010 07:48:48 +1000 Subject: [AccessD] [dba-SQLServer] (cross posted) Looking for some Crystal Reports help In-Reply-To: <2dad32081003241353x605dfa9fs3558d54395696b6@mail.gmail.com> References: <2dad32081003241353x605dfa9fs3558d54395696b6@mail.gmail.com> Message-ID: <4BAA88C0.23212.4AA33E3@stuart.lexacorp.com.pg> Classic situation for a "numbers table" or "dimension table". Create a table called tblNumbers containing a single PK field. Populate it with numbers from 1 to whatever you may need. Then include that table in your query SELECT QyrLabels.Name, qryLabels,Adress,, tblNumbers.Number, qryLabels.Cartons FROM qryLables, tblNumbers WHERE tblNumbers.Number<=[Cartons]; Order by Name,Number will return something like Name Address Number Cartons Joe 1 Main St 1 3 Joe 1 Main St 2 3 Joe 1 Main St 3 3 Fred 2 New St 1 2 Fred 2 New St 2 2 -- Stuart On 24 Mar 2010 at 15:53, Jeff Barrows wrote: > Has anyone done a crystal report for shipping labels where you know the > total number of cartons, but do not have a record for each carton? > > For example, I have 1 record telling me there will be 9 cartons. I need to > be able to loop through the records and print a label for each carton. > > -- > Jeff Barrows > MCP, MCAD, MCSD > > Outbak Technologies, LLC > Racine, WI > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > From Darryl.Collins at anz.com Wed Mar 24 17:46:48 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Thu, 25 Mar 2010 09:46:48 +1100 Subject: [AccessD] Sometimes Microsoft really is good In-Reply-To: <4BAA16D5.8090605@colbyconsulting.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com> I think this is an excellent point/lesson for any of us (or any business). Everyone is going to foul something up sometime, but it is how we handle it - especially in regards to our customers, that makes the difference between our customers feeling happy or annoyed at us. Regards Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, 25 March 2010 12:43 AM To: VBA; Access Developers discussion and problem solving Subject: [AccessD] Sometimes Microsoft really is good I had an issue with Visual Studio, it decided that I was using it for the first time. BOO! I had to reconfigure how the panes dock. BOO! When I finished and tried to run, the application crashed. BOO! It reported the error. YEAAA! It told me I needed to download a hotfix. YEAAA! It took me directly to the page to get the hotfix! YEAAA! Which I did. Now, I have no idea whether this is going to actually fix it or not but it is in areas like this that I am impressed with Microsoft. Yea, bugs are a PITA, but we all have them. It is how we handle them that makes the difference and MS really handles that side of things well IMHO. To have a list of bugs, the specific patch that fixes it, the reporting that finds it, and the system to get it and install it is pretty cool. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From max.wanadoo at gmail.com Wed Mar 24 18:21:58 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 24 Mar 2010 23:21:58 -0000 Subject: [AccessD] Autonumbers - Change ID from Number to AutoNumber In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com> References: <4BAA16D5.8090605@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: <675E194CD31249139F16AE1B75C55B21@Server> Hi Guys, I have a table with a unique indexed ID with random numbers throughout. Many blanks in the sequences. Some of these IDs are related / cross-referenced to other tables. Is there anyway I can change this ID to an Autonumber so that future records get an autoincremented ID? I do not want to change the numbers in there if possible. Thanks Max From dbdoug at gmail.com Wed Mar 24 18:40:56 2010 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 24 Mar 2010 16:40:56 -0700 Subject: [AccessD] Autonumbers - Change ID from Number to AutoNumber In-Reply-To: <675E194CD31249139F16AE1B75C55B21@Server> References: <4BAA16D5.8090605@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com> <675E194CD31249139F16AE1B75C55B21@Server> Message-ID: <4dd71a0c1003241640m2fd1544fl5c6a969ca3062a1f@mail.gmail.com> Build a new empty table with the autonumber field instead of your old id field. Use an append query to add all the records from your old table, appending the old id field to the new autonumber field. Replace the old table with the new. Doug On Wed, Mar 24, 2010 at 4:21 PM, Max Wanadoo wrote: > Hi Guys, > > I have a table with a unique indexed ID with random numbers throughout. > Many blanks in the sequences. > > Some of these IDs are related / cross-referenced to other tables. > > Is there anyway I can change this ID to an Autonumber so that future > records get an autoincremented ID? > > I do not want to change the numbers in there if possible. > > Thanks > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Mar 24 19:00:01 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 25 Mar 2010 00:00:01 -0000 Subject: [AccessD] Autonumbers - Change ID from Number to AutoNumber In-Reply-To: <4dd71a0c1003241640m2fd1544fl5c6a969ca3062a1f@mail.gmail.com> References: <4BAA16D5.8090605@colbyconsulting.com><6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com><675E194CD31249139F16AE1B75C55B21@Server> <4dd71a0c1003241640m2fd1544fl5c6a969ca3062a1f@mail.gmail.com> Message-ID: <30B2B1A1BBFC4F0AACA7E7E4F45CF03F@Server> Thanks Doug I will get on that tomorrow. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, March 24, 2010 11:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Autonumbers - Change ID from Number to AutoNumber Build a new empty table with the autonumber field instead of your old id field. Use an append query to add all the records from your old table, appending the old id field to the new autonumber field. Replace the old table with the new. Doug On Wed, Mar 24, 2010 at 4:21 PM, Max Wanadoo wrote: > Hi Guys, > > I have a table with a unique indexed ID with random numbers throughout. > Many blanks in the sequences. > > Some of these IDs are related / cross-referenced to other tables. > > Is there anyway I can change this ID to an Autonumber so that > future records get an autoincremented ID? > > I do not want to change the numbers in there if possible. > > Thanks > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Wed Mar 24 19:18:43 2010 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 24 Mar 2010 17:18:43 -0700 Subject: [AccessD] Autonumbers - Change ID from Number to AutoNumber In-Reply-To: <30B2B1A1BBFC4F0AACA7E7E4F45CF03F@Server> References: <4BAA16D5.8090605@colbyconsulting.com> <6DC4725FDCDD72428D6114F1B6CC6E81029FC938@EXUAU020HWT110.oceania.corp.anz.com> <675E194CD31249139F16AE1B75C55B21@Server> <4dd71a0c1003241640m2fd1544fl5c6a969ca3062a1f@mail.gmail.com> <30B2B1A1BBFC4F0AACA7E7E4F45CF03F@Server> Message-ID: <4dd71a0c1003241718r12c98ca4p6e78d53f05faf50c@mail.gmail.com> Oh, and I guess you will need to delete then recreate any relationships when you replace the old table with the new Doug On Wed, Mar 24, 2010 at 5:00 PM, Max Wanadoo wrote: > Thanks Doug I will get on that tomorrow. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Wednesday, March 24, 2010 11:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Autonumbers - Change ID from Number to AutoNumber > > Build a new empty table with the autonumber field instead of your old id > field. > Use an append query to add all the records from your old table, appending > the old id field to the new autonumber field. > Replace the old table with the new. > > Doug > > On Wed, Mar 24, 2010 at 4:21 PM, Max Wanadoo > wrote: > > > Hi Guys, > > > > I have a table with a unique indexed ID with random numbers throughout. > > Many blanks in the sequences. > > > > Some of these IDs are related / cross-referenced to other tables. > > > > Is there anyway I can change this ID to an Autonumber so that > > future records get an autoincremented ID? > > > > I do not want to change the numbers in there if possible. > > > > Thanks > > > > Max > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Wed Mar 24 19:29:29 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 Mar 2010 17:29:29 -0700 Subject: [AccessD] Binding forms and controls directly to SQL Server In-Reply-To: <4BA8BE13.2050301@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com> Message-ID: Hi John: You are not and can not really connect to an MS SQL DB as you can to a MDB BE. You can at the most hold a connection open and therefore hold a group of records. As long as that connection remains on you effectively are bound to these records This connection does not have the same functionality as your would have with an MDB file. Depending on the recordset connection type to the SQL any changes that someone else may make to the records will not be reflected in the records that you are holding. Their changes may just be queued until you release your connection. If you are tricky enough and are adamant about holding on to a process/connection and another person or operation is also requesting the same record a situation called the 'deadly embraces' can be created. I do not know if you could do that in MS SQL but in Oracle, at times the DBA would have to go in and unlock records. I think MS SQL just either cancels a second connection to the same records or just cancels the whole process. Binding records to any major SQL DB is basically a waste of time as SQL DBs are designed to work unbound. Conflicts in changing or deleting data are most likely ignored by the system...It tends to be a first come first serve rule based system. If a particular process must go through then it may be better to code a loop which holds a set of changes and processes those changes when the conflicting records have been released or prompts the user to abandon those changes... but you would have to write some code. SQL DBs require a whole different mindset than you would and could have with an MDB. That said, there are some pseudo 'external links' to SQL tables through an ODBC connection you can achieve and even queries. All results I have seem using this method to emulate an MDB BE has been slow at best, unstable at worst and down-right dangerous in certain situations...if you think data corruption is dangerous. (In the past I have made some good coin rebuilding from some of these aborted attempts caused, with the best of intensions, from some deluded application developers.) Redesigning a is not a simple task but I have been doing this application function and design over 10 years now... so if you need any help. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 6:12 AM To: Access Developers discussion and problem solving Subject: [AccessD] Binding forms and controls directly to SQL Server Guys, One thing I have always wanted to learn is how to bind Access objects directly to SQL Server. Does anyone out there do this and would you be willing to assist me in figuring this out. My billing database is in SQL Server. SQL Server 2008 is running directly on my laptop and the database files are on my laptop. I know some stuff about SQL Server but there is a bunch that I don't know. I tend to know the "data side" but not know the admin side. I can create tables, indexes, views and stored procedures. I have never created a stored procedure that returned a result set, only SPs that return an integer, and also (from C#) SPs that have Output Parameters for things like ErrorNo and ErrorDescr and NoOfRecsAffected. Stuff like that. So, what do I do to: 1) Cause combos to pull their data from SQL Server. Do I create a view on the server side? If so how do I then cause Access to see the view and use that for the combo. 2) Pass parameters to the server side so that (for example) I could filter a combo to only display products for a specific client. 3) Cause forms to pull data from sql server such that the forms are able to see and edit the data, but bound to something (a view?) out in sql server so that SQL Server "does the work" of narrowing down the data displayed. Let's take a reasonable simple example. I have a "time sheet form". This form has a pair of controls which I can use to set from / to dates so that by default when opened the form displays this week's time entries. However I can set dates for any time period and display the time records that match that to / from filter. I have a Client Product combo that displays only products for currently active Clients and currently active products for those clients. Thus that combo pulls data from the client and product table, filtered on the active flag of both. I have a work category combo that pulls data from a table which is essentially the product / bill rate, so once a client is selected, a filtered (by client) product is selected, and then a filtered (by product) work category is selected. Pretty simple stuff to do directly in Access. But how do I do this such that SQL Server does this filtering and presents the filtered data to the combos? I have never even looked at this stuff so I need very specific instructions one time. I seem to vaguely remember that I need to build views (or SPs?) out in SQL Server, and then do a passthrough query? Can anyone help me figure this out? Once I do it one time I will be off to the races. Thanks guys! -- 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 accessd at shaw.ca Wed Mar 24 19:32:40 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 Mar 2010 17:32:40 -0700 Subject: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server In-Reply-To: <4BA8F900.5080004@colbyconsulting.com> References: <4BA8BE13.2050301@colbyconsulting.com> <9F314642BD1D4CB484613739329B7BB4@darrendPC> <4BA8CF1A.6090509@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79710@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8D9F1.8080105@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB7217006D79711@CPIEMAIL-EVS1.CPIQPC.NET> <4BA8F354.9020500@colbyconsulting.com> <4BA8F900.5080004@colbyconsulting.com> Message-ID: <5F7150AA245B40218D8E734411B45B2C@creativesystemdesigns.com> Excellent John... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 23, 2010 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Binding forms and controls directly to SQL Server OK, I got it working using the ADO recordset thing. Basically I just do the typical ADO recordset: Private Function GetADORst(strsql) Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Create a new ADO Connection object On Error GoTo Err_GetADORst Set cn = New ADODB.Connection 'Use the Access 10 and SQL Server OLEDB providers to 'open the Connection 'You will need to replace MySQLServer with the name 'of a valid SQL Server With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = "M90" .Properties("Integrated Security").Value = "SSPI" ' .Properties("User ID").Value = "sa" ' .Properties("Password").Value = "" .Properties("Initial Catalog").Value = "C2DbBilling" .Open End With Then open the recordset 'Create an instance of the ADO Recordset class, and 'set its properties Set rs = New ADODB.Recordset With rs Set .ActiveConnection = cn ' .Source = "SELECT * FROM tblTime" .Source = strsql .LockType = adLockOptimistic .CursorType = adOpenKeyset .Open End With then assign that as the recordset. Set Me.Recordset = rs Set rs = Nothing Set cn = Nothing Voila, editable form. And FAST! John W. Colby www.ColbyConsulting.com jwcolby wrote: > I seem to remember Charlotte saying that you could open an ADO RECORDSET and bind the form to that > recordset to make the form read/write. > > 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 Wed Mar 24 20:49:32 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Wed, 24 Mar 2010 18:49:32 -0700 Subject: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) Message-ID: <014001cacbbd$6a7c7800$3f756800$@net> Hello, I finally bit the bullet and am customizing the ribbon. I figured out how to assign a different ribbon to each form and how to assign a different ribbon to the same form based on user login. What I can't find, tried Google and Archives in both lists, is how to programmatically activate.setfocus.a specific ribbon. Has anyone figured this out? TIA, Kevin Waddle thewaddles at sbcglobal.net Do not pray for easy lives. Pray to be stronger men! Do not pray for tasks equal to your powers. Pray for power equal to your tasks. - Phillip Brooks From dw-murphy at cox.net Wed Mar 24 20:55:43 2010 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 24 Mar 2010 18:55:43 -0700 Subject: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) In-Reply-To: <014001cacbbd$6a7c7800$3f756800$@net> References: <014001cacbbd$6a7c7800$3f756800$@net> Message-ID: <4AB466AD7D79470EBCF4F2DF331B7946@murphy3234aaf1> Set that property on forms and reports. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Wednesday, March 24, 2010 6:50 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) Hello, I finally bit the bullet and am customizing the ribbon. I figured out how to assign a different ribbon to each form and how to assign a different ribbon to the same form based on user login. What I can't find, tried Google and Archives in both lists, is how to programmatically activate.setfocus.a specific ribbon. Has anyone figured this out? TIA, Kevin Waddle thewaddles at sbcglobal.net Do not pray for easy lives. Pray to be stronger men! Do not pray for tasks equal to your powers. Pray for power equal to your tasks. - Phillip Brooks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thewaddles at sbcglobal.net Wed Mar 24 21:47:23 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Wed, 24 Mar 2010 19:47:23 -0700 Subject: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) In-Reply-To: <4AB466AD7D79470EBCF4F2DF331B7946@murphy3234aaf1> References: <014001cacbbd$6a7c7800$3f756800$@net> <4AB466AD7D79470EBCF4F2DF331B7946@murphy3234aaf1> Message-ID: <016101cacbc5$7f7c0330$7e740990$@net> Doug, Thanks for the quick response. I've got that part. I have the following code in the OnCurrent Event for each form... If RegistryGet("EF Database", "Login", "Initials") = "ADMIN" Then Me.RibbonName = "Admin" Else Me.RibbonName = "User" End If This puts the Ribbon on the Ribbon Bar but does not activate it. I would like to make my custom tab active when a form is selected. Thanks, Kevin Waddle thewaddles at sbcglobal.net God never gives us discernment in order that we may criticize, but that we may intercede. -- Oswald Chambers -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, March 24, 2010 6:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) Set that property on forms and reports. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Sent: Wednesday, March 24, 2010 6:50 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Ribbon Set Focus (Cross Posted - AccessD and Access-L) Hello, I finally bit the bullet and am customizing the ribbon. I figured out how to assign a different ribbon to each form and how to assign a different ribbon to the same form based on user login. What I can't find, tried Google and Archives in both lists, is how to programmatically activate.setfocus.a specific ribbon. Has anyone figured this out? TIA, Kevin Waddle thewaddles at sbcglobal.net Do not pray for easy lives. Pray to be stronger men! Do not pray for tasks equal to your powers. Pray for power equal to your tasks. - Phillip Brooks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 24 23:34:03 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 24 Mar 2010 21:34:03 -0700 Subject: [AccessD] break key Message-ID: On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to break into the CBF. Does anyone know if there's an equivalent to Ctrl-Break on this kind of keyboard? MTIA Rocky From darren at activebilling.com.au Thu Mar 25 00:10:35 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Thu, 25 Mar 2010 16:10:35 +1100 Subject: [AccessD] break key In-Reply-To: References: Message-ID: <21D7D36558364AFD90B47EA41CD0F46B@darrendPC> Hi Rocky Look for the PAUSE key The Break will most likely be a blue text item on the PAUSE KEY Thus requiring the use of the Function Key as well good luck https://www.support.com/Community/forums/p/6110/7664.aspx Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, 25 March 2010 3:34 PM To: List; 'Off Topic'; 'Access Developers discussion and problem solving' Subject: [AccessD] break key On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to break into the CBF. Does anyone know if there's an equivalent to Ctrl-Break on this kind of keyboard? MTIA Rocky From wdhindman at dejpolsystems.com Thu Mar 25 01:57:13 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 25 Mar 2010 02:57:13 -0400 Subject: [AccessD] break key In-Reply-To: References: Message-ID: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> Rocky ...depends on the model ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 ...my dell user manual doesn't say a thing about it ...good luck William -------------------------------------------------- From: "Rocky Smolin" Sent: Thursday, March 25, 2010 12:34 AM To: "List" ; "'Off Topic'" ; "'Access Developers discussion and problem solving'" Subject: [AccessD] break key > On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to break > into the CBF. Does anyone know if there's an equivalent to Ctrl-Break on > this kind of keyboard? > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Mar 25 09:21:15 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 07:21:15 -0700 Subject: [AccessD] break key In-Reply-To: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> Message-ID: <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> None of them worked. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 24, 2010 11:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Rocky ...depends on the model ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 ...my dell user manual doesn't say a thing about it ...good luck William -------------------------------------------------- From: "Rocky Smolin" Sent: Thursday, March 25, 2010 12:34 AM To: "List" ; "'Off Topic'" ; "'Access Developers discussion and problem solving'" Subject: [AccessD] break key > On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to > break into the CBF. Does anyone know if there's an equivalent to > Ctrl-Break on this kind of keyboard? > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From EdTesiny at oasas.state.ny.us Thu Mar 25 09:52:31 2010 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 25 Mar 2010 10:52:31 -0400 Subject: [AccessD] break key In-Reply-To: <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> Message-ID: What's the model number? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 10:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key None of them worked. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 24, 2010 11:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Rocky ...depends on the model ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 ...my dell user manual doesn't say a thing about it ...good luck William -------------------------------------------------- From: "Rocky Smolin" Sent: Thursday, March 25, 2010 12:34 AM To: "List" ; "'Off Topic'" ; "'Access Developers discussion and problem solving'" Subject: [AccessD] break key > On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to > break into the CBF. Does anyone know if there's an equivalent to > Ctrl-Break on this kind of keyboard? > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 25 10:05:11 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 25 Mar 2010 10:05:11 -0500 Subject: [AccessD] break key In-Reply-To: <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> Message-ID: That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 ...my > dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and problem > solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From rockysmolin at bchacc.com Thu Mar 25 11:13:31 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 09:13:31 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005> Message-ID: <416003984DC24691AEC62B11ED16FA6D@HAL9005> Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 rockysmolin at bchacc.com Thu Mar 25 11:14:15 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 09:14:15 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005> Message-ID: <721D9D350FC84CD9A4EB69CBC0313525@HAL9005> 1545 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed Sent: Thursday, March 25, 2010 7:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key What's the model number? Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 10:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key None of them worked. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, March 24, 2010 11:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Rocky ...depends on the model ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 ...my dell user manual doesn't say a thing about it ...good luck William -------------------------------------------------- From: "Rocky Smolin" Sent: Thursday, March 25, 2010 12:34 AM To: "List" ; "'Off Topic'" ; "'Access Developers discussion and problem solving'" Subject: [AccessD] break key > On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to > break into the CBF. Does anyone know if there's an equivalent to > Ctrl-Break on this kind of keyboard? > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 25 11:15:06 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 25 Mar 2010 11:15:06 -0500 Subject: [AccessD] break key In-Reply-To: <416003984DC24691AEC62B11ED16FA6D@HAL9005> References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005> <416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 rockysmolin at bchacc.com Thu Mar 25 11:20:53 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 09:20:53 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 25 11:21:47 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 25 Mar 2010 11:21:47 -0500 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: I'll play with it at home tonight and see what it does in Access. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Mar 25 11:36:15 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 09:36:15 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: Thanks. What kinda box? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key I'll play with it at home tonight and see what it does in Access. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 25 11:52:04 2010 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 25 Mar 2010 11:52:04 -0500 Subject: [AccessD] break key In-Reply-To: <416003984DC24691AEC62B11ED16FA6D@HAL9005> References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev> <754C1F5BB5A747D4A5B835873BE674E3@HAL9005> <416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253-9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From rockysmolin at bchacc.com Thu Mar 25 12:48:50 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 10:48:50 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Mar 25 13:12:27 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 25 Mar 2010 14:12:27 -0400 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Thu Mar 25 14:10:15 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Thu, 25 Mar 2010 15:10:15 -0400 Subject: [AccessD] break key References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: Rocky, I have searched looking for Dell Inspiron 1545 Pause/Break key issues. I did not find a specific reference to the 1545, but I did find the following that you may want to pursue. This is at: http://en.community.dell.com/forums/p/19285247/19520977.aspx#19520977 Question in Dell Community: Hi everybody, I've just received my brand new Studio 1555 Laptop but I was disconcerted when I noticed that there is no PAUSE/BREAK key. This is a key that I actually need for a few applications. Could you please let me know which is the shortcut to reproduce the PAUSE key? Along the same line, it looks like that also the embedded numerical keypad (i.e. small blue numbers on JKL UIO 789) is gone. That was useful to type accented letters with FN+ALT+0234 (and the like). Any way to reproduce that behaviour? Thank you for your assistance. H. Response: H, I too was surprised to see the Pause/Break missing. Looks like Dell decided it is more important to have a cd eject button instead of the Pause/Break. I am a programmer and need that key for debuggining purposes. Fortunately, I was able to remap the F10 key to be Pause/Break. There is a greak free keyboard remapping program called smartkey which can be downloaded from http://www.randyrants.com/2008/12/sharpkeys_30.html Here is the registry setting for setting the F10 to act as the Pause/Break in Win XP. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,46,e0,44,00,00,00,00,00 Another suggestion at the site was to Re: Dell Studio 1555: missing PAUSE/BREAK key 11 Aug 2009 02:16PM Try... Start, search. Type osk hit enter. The On Screen keyboard will display and you can use the pause/break key from there. Good luck , Jack From rockysmolin at bchacc.com Thu Mar 25 14:33:38 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 12:33:38 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: <4B1C747319EE46479586B70BEC9C3B58@HAL9005> Sharpkeys might work. I'll check it out. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Thursday, March 25, 2010 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Rocky, I have searched looking for Dell Inspiron 1545 Pause/Break key issues. I did not find a specific reference to the 1545, but I did find the following that you may want to pursue. This is at: http://en.community.dell.com/forums/p/19285247/19520977.aspx#19520977 Question in Dell Community: Hi everybody, I've just received my brand new Studio 1555 Laptop but I was disconcerted when I noticed that there is no PAUSE/BREAK key. This is a key that I actually need for a few applications. Could you please let me know which is the shortcut to reproduce the PAUSE key? Along the same line, it looks like that also the embedded numerical keypad (i.e. small blue numbers on JKL UIO 789) is gone. That was useful to type accented letters with FN+ALT+0234 (and the like). Any way to reproduce that behaviour? Thank you for your assistance. H. Response: H, I too was surprised to see the Pause/Break missing. Looks like Dell decided it is more important to have a cd eject button instead of the Pause/Break. I am a programmer and need that key for debuggining purposes. Fortunately, I was able to remap the F10 key to be Pause/Break. There is a greak free keyboard remapping program called smartkey which can be downloaded from http://www.randyrants.com/2008/12/sharpkeys_30.html Here is the registry setting for setting the F10 to act as the Pause/Break in Win XP. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,46,e0,44,00,00,00,00,00 Another suggestion at the site was to Re: Dell Studio 1555: missing PAUSE/BREAK key 11 Aug 2009 02:16PM Try... Start, search. Type osk hit enter. The On Screen keyboard will display and you can use the pause/break key from there. Good luck , Jack -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Mar 25 15:19:00 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 25 Mar 2010 15:19:00 -0500 Subject: [AccessD] break key References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: About a year ago, I posted a question on another Access forum and someone suggested that I look into AutoHotKey (AHK) to accomplish what I was trying to do. I took their advice and dug into AHK a bit. I have found AHK to be very useful. AutoHotkey is a free, open-source utility for Windows. One of the things that it can be used for is to "Send" keyboard button(s). Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. #b::Send {CtrlBreak} I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. AHK can be downloaded at www.autohotkey.com Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 25, 2010 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From stuart at lexacorp.com.pg Thu Mar 25 17:29:25 2010 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 26 Mar 2010 08:29:25 +1000 Subject: [AccessD] break key In-Reply-To: References: , Message-ID: <4BABE3C5.13026.9F5C239@stuart.lexacorp.com.pg> AHK started off as a fork of an earlier version of AutoIt. You may like to look at the current version of AutoIt. See http://www.autoitscript.com/autoit3/ Both have their own strengths and weaknesses, I find AutoIt preferable for what I do with it and find its syntax easier to use (more Basic like). YMMV -- Stuart In 25 Mar 2010 at 15:19, Brad Marks wrote: > About a year ago, I posted a question on another Access forum and > someone suggested that I look into AutoHotKey (AHK) to accomplish what > I was trying to do. I took their advice and dug into AHK a bit. I > have found AHK to be very useful. > > AutoHotkey is a free, open-source utility for Windows. > > One of the things that it can be used for is to "Send" keyboard button(s). > > > Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. > > > > #b::Send {CtrlBreak} > > > > I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. > > AHK can be downloaded at www.autohotkey.com > > > Brad > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Thursday, March 25, 2010 1:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, March 25, 2010 1:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] break key > > That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Remap the keyboard then??? > > Microsoft Keyboard Layout Creator 1.4 > > http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- > 9e0a-e17e51db2223&DisplayLang=en > > GK > > > On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin > wrote: > > Yes laptop - but I use it on the road. ?Having to pack and attach an > > external keyboard is not an attractive solution. :( > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Thursday, March 25, 2010 8:05 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] break key > > > > That is a laptop I take it? Maybe you have to use an External USB > keyboard. > > > > GK > > > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > > wrote: > >> None of them worked. :( > >> > >> Rocky > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > >> Hindman > >> Sent: Wednesday, March 24, 2010 11:57 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] break key > >> > >> Rocky > >> > >> ...depends on the model > >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > >> ...my dell user manual doesn't say a thing about it ...good luck > >> > >> William > >> > >> -------------------------------------------------- > >> From: "Rocky Smolin" > >> Sent: Thursday, March 25, 2010 12:34 AM > >> To: "List" ; "'Off Topic'" > >> ; "'Access Developers discussion and > >> problem solving'" > >> Subject: [AccessD] break key > >> > >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to > >>> break into the CBF. ?Does anyone know if there's an equivalent to > >>> Ctrl-Break on this kind of keyboard? > >>> > >>> MTIA > >>> > >>> > >>> > >>> Rocky > >>> > >>> > >>> > >>> > >> > >> > >> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >>> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Mar 25 18:41:20 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 16:41:20 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> Message-ID: <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Mar 25 19:31:25 2010 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 25 Mar 2010 19:31:25 -0500 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> Message-ID: <41BEB3C1711448ABAF069B2781AB5135@danwaters> It's too bad when you spend a lot of time on something where someone else just didn't tell you something. However, late binding wouldn't have solved the problem in this case. In early binding, you have checked the reference during design time. In late binding, your code effectively checks the reference during run time. But if the reference simply isn't installed on the PC, there isn't anything to bind to, early or late. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 6:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 25 19:45:45 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 25 Mar 2010 19:45:45 -0500 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: Dell Inspiron, don't recall the model. About a 1-1/4 years old. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Thanks. What kinda box? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key I'll play with it at home tonight and see what it does in Access. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 25 19:48:35 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 25 Mar 2010 19:48:35 -0500 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> Message-ID: This is exactly the reason we use Redemption. There is no way to be sure Outlook will even be on the machine. Just because something comes with the package doesn't mean it gets installed! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 4:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 25 21:23:46 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 25 Mar 2010 19:23:46 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <41BEB3C1711448ABAF069B2781AB5135@danwaters> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> <41BEB3C1711448ABAF069B2781AB5135@danwaters> Message-ID: <43BD32B543A94BE3B5ED19360232AFB6@HAL9005> The function that requires Outlook and the function that requires Excel are both custom modifications for a specific customer. So they're not run by anyone else. They obviously have Excel and Outlook because they wanted the custom mod to my system to automate them. Anyone who wants a run-time of the system would not 'see' those two programs. The command buttons are visible or invisible depending on the license. So that way I only have to support one version of the system - everybody's customizations are built in but only visible to them. In this case would late binding solve the problem? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, March 25, 2010 5:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails It's too bad when you spend a lot of time on something where someone else just didn't tell you something. However, late binding wouldn't have solved the problem in this case. In early binding, you have checked the reference during design time. In late binding, your code effectively checks the reference during run time. But if the reference simply isn't installed on the PC, there isn't anything to bind to, early or late. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 6:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Mar 25 21:51:17 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 25 Mar 2010 22:51:17 -0400 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <43BD32B543A94BE3B5ED19360232AFB6@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><41BEB3C1711448ABAF069B2781AB5135@danwaters> <43BD32B543A94BE3B5ED19360232AFB6@HAL9005> Message-ID: ...I'd build a set of separate references libraries ...deliver as mdes with the app ...call the applicable library based on their license ...build it once, run forever William -------------------------------------------------- From: "Rocky Smolin" Sent: Thursday, March 25, 2010 10:23 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Combo Box Query Fails > The function that requires Outlook and the function that requires Excel > are > both custom modifications for a specific customer. So they're not run by > anyone else. They obviously have Excel and Outlook because they wanted the > custom mod to my system to automate them. > > Anyone who wants a run-time of the system would not 'see' those two > programs. The command buttons are visible or invisible depending on the > license. So that way I only have to support one version of the system - > everybody's customizations are built in but only visible to them. > > In this case would late binding solve the problem? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Thursday, March 25, 2010 5:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > It's too bad when you spend a lot of time on something where someone else > just didn't tell you something. > > However, late binding wouldn't have solved the problem in this case. In > early binding, you have checked the reference during design time. In late > binding, your code effectively checks the reference during run time. But > if > the reference simply isn't installed on the PC, there isn't anything to > bind > to, early or late. > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, March 25, 2010 6:41 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Problem solved. I sent him a one-form mdb with the same references > checked > as the mde. And in the CBF I used the Left and CHR functions. Sure > enough > it failed, but this time I was able to see the problem. It was missing > the > Outlook library. Although he bought O2K3 Pro and installed it he didn't > tell me he had not installed Outlook. Adding Outlook solved the problem. > > But I think I have to figure out how to do late binding so that this > doesn't > happen again. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, March 22, 2010 8:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Combo Box Query Fails > > Make sure whatever shortcut they're using points to the correct runtime > executable, which IIRC is NOT Access.exe. You can get problems unless you > point to the Sagekey exe. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, March 19, 2010 6:16 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Can't check the refs because it's an mde. But there should be no ref > problem with the Wise/Sagekey install. At least I've never had one before > with any mde. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Friday, March 19, 2010 4:39 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Combo Box Query Fails > > Rocky, > > My suspicion when "common" items such as these fail is that there is a > missing reference which has nothing to do with these particular functions > but which just case Access to wobble. > > Can he check the Refs to see if there is a Missing one? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, March 19, 2010 11:14 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Combo Box Query Fails > > Dear List: > > New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime > (Wise/Sagekey). The program file itself is an mde. > > Runs fine on his box. All other boxes on his network fail when he tries > this combo box that has a query as its row source. The query uses Left, > Instr, and Chr(10) and that is failing. > > I discovered one difference between his box and the other - he's got > Office > 2003 Standard (no Access); the box we were testing it where it failed has > Office 97 - Word, Excel, PowerPoint. > > Could that be creating the problem? > > MTIA > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Fri Mar 26 03:21:52 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 08:21:52 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005> <836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> Message-ID: <2EF0847CD98F480EA52A4A935486880D@Server> Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Mar 26 08:23:18 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 26 Mar 2010 06:23:18 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <2EF0847CD98F480EA52A4A935486880D@Server> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005> <2EF0847CD98F480EA52A4A935486880D@Server> Message-ID: <2D6DD2916A2B4157816AD9A4978FECC6@HAL9005> However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 26 08:27:25 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 13:27:25 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <2D6DD2916A2B4157816AD9A4978FECC6@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><2EF0847CD98F480EA52A4A935486880D@Server> <2D6DD2916A2B4157816AD9A4978FECC6@HAL9005> Message-ID: <7F804001C3F6442FB816E5018758860E@Server> Hmm, perhaps not but it would have told you where the problem lay within 2 micro-seconds (on my machine anyway, yours may be slower ). Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Mar 26 08:32:29 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 26 Mar 2010 06:32:29 -0700 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <7F804001C3F6442FB816E5018758860E@Server> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><2EF0847CD98F480EA52A4A935486880D@Server><2D6DD2916A2B4157816AD9A4978FECC6@HAL9005> <7F804001C3F6442FB816E5018758860E@Server> Message-ID: <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> Too true. Slowest machine is actually between my ears. In retrospect, it was obvious. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Hmm, perhaps not but it would have told you where the problem lay within 2 micro-seconds (on my machine anyway, yours may be slower ). Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 26 08:38:41 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 13:38:41 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><2EF0847CD98F480EA52A4A935486880D@Server><2D6DD2916A2B4157816AD9A4978FECC6@HAL9005><7F804001C3F6442FB816E5018758860E@Server> <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> Message-ID: <1A28D7FDE4804B83BC7C26022D170879@Server> Yes, well I did tell you that when it was first posted (almost certainly a missing reference). Ahem! BUT what we couldn't have known was which reference was causing the problem. If you check the reference on-load up then it will tell you what is missing and as long as that is the first thing it calls and the code itself passes muster then you wouldn't have had that long discussion with the client or this list. Worth considering I would say. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Too true. Slowest machine is actually between my ears. In retrospect, it was obvious. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Hmm, perhaps not but it would have told you where the problem lay within 2 micro-seconds (on my machine anyway, yours may be slower ). Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 26 08:49:06 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 13:49:06 -0000 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><2EF0847CD98F480EA52A4A935486880D@Server><2D6DD2916A2B4157816AD9A4978FECC6@HAL9005><7F804001C3F6442FB816E5018758860E@Server> <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> Message-ID: <8526FD9847754800B7123C2EE43D77DF@Server> This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Too true. Slowest machine is actually between my ears. In retrospect, it was obvious. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Hmm, perhaps not but it would have told you where the problem lay within 2 micro-seconds (on my machine anyway, yours may be slower ). Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Mar 26 09:43:38 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 26 Mar 2010 10:43:38 -0400 Subject: [AccessD] MZTools and Windows 7 Message-ID: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> For the last several years, I have used MzTools within the Access editor, and grown so addicted to it that it's hard to imagine a VbA-progamming life without it. I've customized its templates to my liking, I've added new templates for such snippets as declaring and manipulating DAO and ADO recordsets, etc. Recently I updated the OS on my laptop to Windows 7. After that, I attempted to install MzTools (which is accomplished by opening a command window and then running the command "regsvr32 mztools3vba.dll". To my shock and horror, I received a message saying that mztools was loaded but not registered in the registry. Which means ultimately that Access won't know it's there. Has anyone faced this problem and discovered a workaround? Strangely enough, MzTools runs fine on my desktop, which runs Windows Server 2008. I searched its registry and found two items: MZTools3VBA.Connect MZTools3VBA.UserDocumentResults Might it work if I manually enter these nodes and their values in the Windows 7 registry? I'm afraid to work directly with the registry since it's risky. Any advice is appreciated. In the worst case, I suppose that I can copy the MDB of interest back to my desktop, run Access and MZTools there and update the headers etc., then copy it back to my laptop, but that choice leaves a bad taste in my mouth. TIA, Arthur From accessd at shaw.ca Fri Mar 26 09:57:22 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 26 Mar 2010 07:57:22 -0700 Subject: [AccessD] OT: Paris In-Reply-To: References: Message-ID: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com> Hi Gustav: That link is truly incredible... Even links to the tools so you could do the same for Copenhagen. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 24, 2010 8:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Paris Hi all You can now study Paris from a single spot on one amazing 354159x75570 px picture: http://www.paris-26-gigapixels.com/index-en.html /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Mar 26 10:03:19 2010 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 26 Mar 2010 08:03:19 -0700 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> Message-ID: <4dd71a0c1003260803l577a0c27y1c0654643fa99b38@mail.gmail.com> Try emailing MzTools. Last time I did that, he answered within a couple of hours. Doug On Fri, Mar 26, 2010 at 7:43 AM, Arthur Fuller wrote: > For the last several years, I have used MzTools within the Access editor, > and grown so addicted to it that it's hard to imagine a VbA-progamming life > without it. I've customized its templates to my liking, I've added new > templates for such snippets as declaring and manipulating DAO and ADO > recordsets, etc. > > > From robert at servicexp.com Fri Mar 26 10:20:48 2010 From: robert at servicexp.com (Robert) Date: Fri, 26 Mar 2010 11:20:48 -0400 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> Message-ID: <002201caccf7$ea4acec0$bee06c40$@com> Download the latest version (installer version)... Works perfectly for me on Windows 7... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 26, 2010 10:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] MZTools and Windows 7 For the last several years, I have used MzTools within the Access editor, and grown so addicted to it that it's hard to imagine a VbA-progamming life without it. I've customized its templates to my liking, I've added new templates for such snippets as declaring and manipulating DAO and ADO recordsets, etc. Recently I updated the OS on my laptop to Windows 7. After that, I attempted to install MzTools (which is accomplished by opening a command window and then running the command "regsvr32 mztools3vba.dll". To my shock and horror, I received a message saying that mztools was loaded but not registered in the registry. Which means ultimately that Access won't know it's there. Has anyone faced this problem and discovered a workaround? Strangely enough, MzTools runs fine on my desktop, which runs Windows Server 2008. I searched its registry and found two items: MZTools3VBA.Connect MZTools3VBA.UserDocumentResults Might it work if I manually enter these nodes and their values in the Windows 7 registry? I'm afraid to work directly with the registry since it's risky. Any advice is appreciated. In the worst case, I suppose that I can copy the MDB of interest back to my desktop, run Access and MZTools there and update the headers etc., then copy it back to my laptop, but that choice leaves a bad taste in my mouth. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 26 10:18:23 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 Mar 2010 10:18:23 -0500 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <4dd71a0c1003260803l577a0c27y1c0654643fa99b38@mail.gmail.com> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> <4dd71a0c1003260803l577a0c27y1c0654643fa99b38@mail.gmail.com> Message-ID: That's been my experience too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, March 26, 2010 8:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZTools and Windows 7 Try emailing MzTools. Last time I did that, he answered within a couple of hours. Doug On Fri, Mar 26, 2010 at 7:43 AM, Arthur Fuller wrote: > For the last several years, I have used MzTools within the Access editor, > and grown so addicted to it that it's hard to imagine a VbA-progamming life > without it. I've customized its templates to my liking, I've added new > templates for such snippets as declaring and manipulating DAO and ADO > recordsets, etc. > > > -- From cfoust at infostatsystems.com Fri Mar 26 10:18:55 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 Mar 2010 10:18:55 -0500 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: Ack! I totally forgot about this last night! Sorry! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 5:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Dell Inspiron, don't recall the model. About a 1-1/4 years old. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Thanks. What kinda box? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key I'll play with it at home tonight and see what it does in Access. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From phpons at gmail.com Fri Mar 26 10:24:29 2010 From: phpons at gmail.com (philippe pons) Date: Fri, 26 Mar 2010 16:24:29 +0100 Subject: [AccessD] OT: Paris In-Reply-To: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com> References: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com> Message-ID: <57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /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 cfoust at infostatsystems.com Fri Mar 26 10:23:23 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 Mar 2010 10:23:23 -0500 Subject: [AccessD] Combo Box Query Fails In-Reply-To: <8526FD9847754800B7123C2EE43D77DF@Server> References: <9AE11ABD0DED4B9A8008261665E31EF4@Server><8D9A81B68A8A4C49B9974C3D31D12BA5@HAL9005><836B02E7755A4CCCB4C483ABCA8C61CB@HAL9005><2EF0847CD98F480EA52A4A935486880D@Server><2D6DD2916A2B4157816AD9A4978FECC6@HAL9005><7F804001C3F6442FB816E5018758860E@Server> <1292A6DD074347C0AC16B9DD7B2CEB16@HAL9005> <8526FD9847754800B7123C2EE43D77DF@Server> Message-ID: The problem is that IsBroken is unreliable unless they've fixed it in 2007. Back in the archives somewhere is a long discussion around broken references, code to determine whether they exist (it has to run first and be in its own module) and a workaround for IsBroken. I wrote code for this for my employer, but as I recall they never used it because the boss didn't understand it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Too true. Slowest machine is actually between my ears. In retrospect, it was obvious. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Hmm, perhaps not but it would have told you where the problem lay within 2 micro-seconds (on my machine anyway, yours may be slower ). Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 26, 2010 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails However, reading your post I was just thinking that the problem occurred in a standard module that used the Left function (a sure sign you've got a missing reference). So not calling those options that reference excel and outlook would not solve the problem. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 1:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky You could put the code I posted here earlier to run with the Autoexec on start up and if any reference are found to be MISSING then the code could report the fact that these dependent options will not be available. You would then know that this was the case and set a flag in your program not to call those modules. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 11:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Problem solved. I sent him a one-form mdb with the same references checked as the mde. And in the CBF I used the Left and CHR functions. Sure enough it failed, but this time I was able to see the problem. It was missing the Outlook library. Although he bought O2K3 Pro and installed it he didn't tell me he had not installed Outlook. Adding Outlook solved the problem. But I think I have to figure out how to do late binding so that this doesn't happen again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 22, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Combo Box Query Fails Make sure whatever shortcut they're using points to the correct runtime executable, which IIRC is NOT Access.exe. You can get problems unless you point to the Sagekey exe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Can't check the refs because it's an mde. But there should be no ref problem with the Wise/Sagekey install. At least I've never had one before with any mde. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 19, 2010 4:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails Rocky, My suspicion when "common" items such as these fail is that there is a missing reference which has nothing to do with these particular functions but which just case Access to wobble. Can he check the Refs to see if there is a Missing one? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, March 19, 2010 11:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Combo Box Query Fails Dear List: New user of my E-Z-MRP system does not have A2K3 so I sent him the runtime (Wise/Sagekey). The program file itself is an mde. Runs fine on his box. All other boxes on his network fail when he tries this combo box that has a query as its row source. The query uses Left, Instr, and Chr(10) and that is failing. I discovered one difference between his box and the other - he's got Office 2003 Standard (no Access); the box we were testing it where it failed has Office 97 - Word, Excel, PowerPoint. Could that be creating the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 26 10:38:17 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Mar 2010 16:38:17 +0100 Subject: [AccessD] Check if reference is broken (was: Combo Box Query Fails) Message-ID: Hi Max and Charlotte That's right, though neither have I checked this for newer versions. Here is an example of such function: Public Function IsBroken97( _ ByVal ref As Access.Reference) _ As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' 2003-05-20. VBA explicitely stated for functions. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> cfoust at infostatsystems.com 26-03-2010 16:23 >>> The problem is that IsBroken is unreliable unless they've fixed it in 2007. Back in the archives somewhere is a long discussion around broken references, code to determine whether they exist (it has to run first and be in its own module) and a workaround for IsBroken. I wrote code for this for my employer, but as I recall they never used it because the boss didn't understand it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max From max.wanadoo at gmail.com Fri Mar 26 10:55:32 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 15:55:32 -0000 Subject: [AccessD] Check if reference is broken (was: Combo Box QueryFails) In-Reply-To: References: Message-ID: I think we need to find a way WITHOUT using any functions otherwise it will TILT (as per the machines in the arcade when you push too hard).!! Max Ps. Charlotte and I must have worked for the same boss at some stage. Mine didn't understand my code either - strange... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 26, 2010 3:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) Hi Max and Charlotte That's right, though neither have I checked this for newer versions. Here is an example of such function: Public Function IsBroken97( _ ByVal ref As Access.Reference) _ As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' 2003-05-20. VBA explicitely stated for functions. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> cfoust at infostatsystems.com 26-03-2010 16:23 >>> The problem is that IsBroken is unreliable unless they've fixed it in 2007. Back in the archives somewhere is a long discussion around broken references, code to determine whether they exist (it has to run first and be in its own module) and a workaround for IsBroken. I wrote code for this for my employer, but as I recall they never used it because the boss didn't understand it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 26 11:04:06 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Mar 2010 17:04:06 +0100 Subject: [AccessD] Check if reference is broken (was: Combo Box Query Fails) Message-ID: Hi Max Strange? Charlotte's boss passed on the intellectual level of Charlotte's code; yours boss couldn't look through your mess! Ha ha. It's Friday! You have been mobbed. /gustav >>> max.wanadoo at gmail.com 26-03-2010 16:55 >>> Ps. Charlotte and I must have worked for the same boss at some stage. Mine didn't understand my code either - strange... From max.wanadoo at gmail.com Fri Mar 26 11:13:49 2010 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 26 Mar 2010 16:13:49 -0000 Subject: [AccessD] Check if reference is broken (was: Combo Box QueryFails) In-Reply-To: References: Message-ID: <123070505EEB410BA2D04CDCD79FF62C@Server> What do you mean! Huh! My code is crystal clear. I am not the one using classes for no reason... Max Ps. Have a good weekend yourself Gustav. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 26, 2010 4:04 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) Hi Max Strange? Charlotte's boss passed on the intellectual level of Charlotte's code; yours boss couldn't look through your mess! Ha ha. It's Friday! You have been mobbed. /gustav >>> max.wanadoo at gmail.com 26-03-2010 16:55 >>> Ps. Charlotte and I must have worked for the same boss at some stage. Mine didn't understand my code either - strange... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Fri Mar 26 12:05:28 2010 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 26 Mar 2010 13:05:28 -0400 Subject: [AccessD] Check if reference is broken (was: Combo Box QueryFails) In-Reply-To: References: Message-ID: I seem to recall reading that if you prefix your VBA functions with VBA. then the will run even with broken references, and indeed this is illustrated in the quoted article "If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then" so you *can* use functions, just not the usual way. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) I think we need to find a way WITHOUT using any functions otherwise it will TILT (as per the machines in the arcade when you push too hard).!! Max Ps. Charlotte and I must have worked for the same boss at some stage. Mine didn't understand my code either - strange... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 26, 2010 3:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) Hi Max and Charlotte That's right, though neither have I checked this for newer versions. Here is an example of such function: Public Function IsBroken97( _ ByVal ref As Access.Reference) _ As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' 2003-05-20. VBA explicitely stated for functions. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> cfoust at infostatsystems.com 26-03-2010 16:23 >>> The problem is that IsBroken is unreliable unless they've fixed it in 2007. Back in the archives somewhere is a long discussion around broken references, code to determine whether they exist (it has to run first and be in its own module) and a workaround for IsBroken. I wrote code for this for my employer, but as I recall they never used it because the boss didn't understand it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Mar 26 12:35:29 2010 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 26 Mar 2010 13:35:29 -0400 Subject: [AccessD] Check if reference is broken (was: Combo Box QueryFails) In-Reply-To: References: Message-ID: <5F124E44559B4427A3D8EAC666747632@XPS> <> Yes, but with the catch that you are explicit with *everything* up to that point (not just VBA), VBA will not try to walk down the reference chain. If you leave anything ambiguous and VBA hits it, it will look down the reference list and as soon as it hits a broken reference, your hosed. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, March 26, 2010 1:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) I seem to recall reading that if you prefix your VBA functions with VBA. then the will run even with broken references, and indeed this is illustrated in the quoted article "If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then" so you *can* use functions, just not the usual way. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) I think we need to find a way WITHOUT using any functions otherwise it will TILT (as per the machines in the arcade when you push too hard).!! Max Ps. Charlotte and I must have worked for the same boss at some stage. Mine didn't understand my code either - strange... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 26, 2010 3:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Check if reference is broken (was: Combo Box QueryFails) Hi Max and Charlotte That's right, though neither have I checked this for newer versions. Here is an example of such function: Public Function IsBroken97( _ ByVal ref As Access.Reference) _ As Boolean ' Alternative method to check if a reference is broken ' as the IsBroken property cannot be used in Access97. ' ' 2000-03-19. Gustav Brock. Cactus Data ApS. ' 2003-05-20. VBA explicitely stated for functions. ' Refer to this article at Microsoft Technet: ' ' Article ID: Q186720 ' ' The information in this article applies to: ' Microsoft Access 97 ' ' SYMPTOMS ' In Microsoft Access, IsBroken is a property of the References collection. ' The Microsoft Access Help topic on the Isbroken property states the following: ' ' The IsBroken property returns a Boolean value indicating whether a ' Reference object points to a valid reference in the Windows Registry. ' ' Although this statement is correct, to receive this Boolean value ' you must trap for errors that are generated by the broken reference. ' Also, the IsBroken property becomes True only when the file being referenced ' is deleted and the Microsoft Windows Recycle Bin is emptied. ' This article details the steps necessary to receive the Boolean value. Dim booRefOK As Boolean On Error GoTo Err_IsBroken97 If VBA.Len(VBA.Dir(ref.FullPath, vbNormal)) > 0 Then booRefOK = Not ref.IsBroken End If Exit_IsBroken97: IsBroken97 = Not booRefOK Exit Function Err_IsBroken97: ' Ignore non existing servers, drives, and paths. Resume Exit_IsBroken97 End Function /gustav >>> cfoust at infostatsystems.com 26-03-2010 16:23 >>> The problem is that IsBroken is unreliable unless they've fixed it in 2007. Back in the archives somewhere is a long discussion around broken references, code to determine whether they exist (it has to run first and be in its own module) and a workaround for IsBroken. I wrote code for this for my employer, but as I recall they never used it because the boss didn't understand it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 26, 2010 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Combo Box Query Fails This is the simplest code I can come up with which will check it. for each reference in application.References : debug.Print reference.name, reference.isbroken : next Just a one-liner without using any other functions. Type it into the IW and run it. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Mar 26 14:32:34 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 26 Mar 2010 15:32:34 -0400 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> <4dd71a0c1003260803l577a0c27y1c0654643fa99b38@mail.gmail.com> Message-ID: <29f585dd1003261232o2b277d3nfe7e06dbac858ac@mail.gmail.com> Thanks. I shall try that right now! Yet another reason why I love this list! That makes about 407. A. On Fri, Mar 26, 2010 at 11:18 AM, Charlotte Foust < cfoust at infostatsystems.com> wrote: > That's been my experience too. > > Charlotte Foust > > From delam at zyterra.com Fri Mar 26 15:27:21 2010 From: delam at zyterra.com (Debbie) Date: Fri, 26 Mar 2010 15:27:21 -0500 Subject: [AccessD] Source control Message-ID: <101EC1DA-4912-4C4E-9601-A943670FD248@zyterra.com> I am looking for a program to do some source control with multiple developers. I have seen discussions here before, but they did not apply to me before now. Any suggestions are helpful, but the company is looking at Team Foundation and Source Anywhere. Do we know what is happening with Source Safe too? Debbie Sent from my iPhone From rockysmolin at bchacc.com Fri Mar 26 15:34:07 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 26 Mar 2010 13:34:07 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: <2BB54FB056AD4C95909BBEC612F0D188@HAL9005> Not to worry. It'll keep. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, March 26, 2010 8:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Ack! I totally forgot about this last night! Sorry! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 5:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Dell Inspiron, don't recall the model. About a 1-1/4 years old. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Thanks. What kinda box? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key I'll play with it at home tonight and see what it does in Access. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key No soap. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 25, 2010 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key My laptop recognizes fn + Pause, at least in Visual Studio. I've not tried it in VBA. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Yes laptop - but I use it on the road. Having to pack and attach an external keyboard is not an attractive solution. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 8:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key That is a laptop I take it? Maybe you have to use an External USB keyboard. GK On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin wrote: > None of them worked. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Wednesday, March 24, 2010 11:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > Rocky > > ...depends on the model > ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron > keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 > ...my dell user manual doesn't say a thing about it ...good luck > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Thursday, March 25, 2010 12:34 AM > To: "List" ; "'Off Topic'" > ; "'Access Developers discussion and > problem solving'" > Subject: [AccessD] break key > >> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >> break into the CBF. ?Does anyone know if there's an equivalent to >> Ctrl-Break on this kind of keyboard? >> >> MTIA >> >> >> >> Rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 26 17:31:37 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 26 Mar 2010 15:31:37 -0700 Subject: [AccessD] OT: Paris In-Reply-To: <57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> References: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com> <57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> Message-ID: <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat Mar 27 05:18:43 2010 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Mar 2010 13:18:43 +0300 Subject: [AccessD] OT: Paris In-Reply-To: <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> References: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com><57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> Message-ID: <001501cacd96$e1f886f0$6a01a8c0@nant> Yes, Musee d'Orsay, Louvre, Montmartre, ... , and don't miss to visit also Fontainebleau (http://en.wikipedia.org/wiki/Fontainebleau) and Chateau de Versailles (http://en.wikipedia.org/wiki/Palace_of_Versailles) and its nearby park... I used to get rented a car there in Paris to drive around - it's very refreshing experience I must say :)... If you go in the beginning of April there should be chestnut trees blossoming there in Paris almost everywhere - that's so beautiful... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 27, 2010 1:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > From accessd at shaw.ca Sat Mar 27 11:18:09 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 27 Mar 2010 09:18:09 -0700 Subject: [AccessD] OT: Paris In-Reply-To: <001501cacd96$e1f886f0$6a01a8c0@nant> References: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com> <57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> <001501cacd96$e1f886f0$6a01a8c0@nant> Message-ID: <72A83066D4994FBCAF4A6EC054F239CE@creativesystemdesigns.com> Hi Shamil: It is sounding so good...I have not been there for a number of years. The wife insisted that I take this chance as I have not had time off or a break in 5 years and my son-in-law is immigrating so... My French makes people puzzled at best and laugh at worse. OTOH, like yourself, Hans speaks many languages fluently. It will be a grand trip. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, March 27, 2010 3:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris Yes, Musee d'Orsay, Louvre, Montmartre, ... , and don't miss to visit also Fontainebleau (http://en.wikipedia.org/wiki/Fontainebleau) and Chateau de Versailles (http://en.wikipedia.org/wiki/Palace_of_Versailles) and its nearby park... I used to get rented a car there in Paris to drive around - it's very refreshing experience I must say :)... If you go in the beginning of April there should be chestnut trees blossoming there in Paris almost everywhere - that's so beautiful... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 27, 2010 1:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sat Mar 27 14:05:36 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 27 Mar 2010 19:05:36 -0000 Subject: [AccessD] OT: Paris In-Reply-To: <72A83066D4994FBCAF4A6EC054F239CE@creativesystemdesigns.com> Message-ID: <8D663FD494124E378EF1BDFF7175D066@MINSTER> A tip. Go to the Louvre Wednesday or Friday in the evening. These are the only 2 late openings. The crowds have largely gone and you can wander in relative peace. The galleries are also beautifully lit and it's quite magical. Go after 6 and the entrance price is even reduced. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 27 March 2010 16:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris Hi Shamil: It is sounding so good...I have not been there for a number of years. The wife insisted that I take this chance as I have not had time off or a break in 5 years and my son-in-law is immigrating so... My French makes people puzzled at best and laugh at worse. OTOH, like yourself, Hans speaks many languages fluently. It will be a grand trip. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, March 27, 2010 3:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris Yes, Musee d'Orsay, Louvre, Montmartre, ... , and don't miss to visit also Fontainebleau (http://en.wikipedia.org/wiki/Fontainebleau) and Chateau de Versailles (http://en.wikipedia.org/wiki/Palace_of_Versailles) and its nearby park... I used to get rented a car there in Paris to drive around - it's very refreshing experience I must say :)... If you go in the beginning of April there should be chestnut trees blossoming there in Paris almost everywhere - that's so beautiful... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 27, 2010 1:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /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 Sat Mar 27 17:29:08 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 27 Mar 2010 15:29:08 -0700 Subject: [AccessD] OT: Paris In-Reply-To: <8D663FD494124E378EF1BDFF7175D066@MINSTER> References: <72A83066D4994FBCAF4A6EC054F239CE@creativesystemdesigns.com> <8D663FD494124E378EF1BDFF7175D066@MINSTER> Message-ID: Thanks for the tip, Andy. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Saturday, March 27, 2010 12:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris A tip. Go to the Louvre Wednesday or Friday in the evening. These are the only 2 late openings. The crowds have largely gone and you can wander in relative peace. The galleries are also beautifully lit and it's quite magical. Go after 6 and the entrance price is even reduced. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 27 March 2010 16:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris Hi Shamil: It is sounding so good...I have not been there for a number of years. The wife insisted that I take this chance as I have not had time off or a break in 5 years and my son-in-law is immigrating so... My French makes people puzzled at best and laugh at worse. OTOH, like yourself, Hans speaks many languages fluently. It will be a grand trip. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, March 27, 2010 3:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris Yes, Musee d'Orsay, Louvre, Montmartre, ... , and don't miss to visit also Fontainebleau (http://en.wikipedia.org/wiki/Fontainebleau) and Chateau de Versailles (http://en.wikipedia.org/wiki/Palace_of_Versailles) and its nearby park... I used to get rented a car there in Paris to drive around - it's very refreshing experience I must say :)... If you go in the beginning of April there should be chestnut trees blossoming there in Paris almost everywhere - that's so beautiful... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, March 27, 2010 1:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could do > the > same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren at activebilling.com.au Sun Mar 28 18:04:52 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Mon, 29 Mar 2010 10:04:52 +1100 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> Message-ID: <1B19EDA4EA0344CE8EB0AAFAE74AFDFA@darrendPC> Hi Arthur Not sure where you are up to with this We have an install we run by registering a DLL too. It fails on Win7 - Just as you describe The solution with the issue we have found was in permissions. Despite being a full rights administrator I discovered I had to create a batch file with the reg server command then 'right click' this batch file the select Run As Administrator" Even then a re-boot was required - not impressed Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, 27 March 2010 1:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] MZTools and Windows 7 For the last several years, I have used MzTools within the Access editor, and grown so addicted to it that it's hard to imagine a VbA-progamming life without it. I've customized its templates to my liking, I've added new templates for such snippets as declaring and manipulating DAO and ADO recordsets, etc. Recently I updated the OS on my laptop to Windows 7. After that, I attempted to install MzTools (which is accomplished by opening a command window and then running the command "regsvr32 mztools3vba.dll". To my shock and horror, I received a message saying that mztools was loaded but not registered in the registry. Which means ultimately that Access won't know it's there. Has anyone faced this problem and discovered a workaround? Strangely enough, MzTools runs fine on my desktop, which runs Windows Server 2008. I searched its registry and found two items: MZTools3VBA.Connect MZTools3VBA.UserDocumentResults Might it work if I manually enter these nodes and their values in the Windows 7 registry? I'm afraid to work directly with the registry since it's risky. Any advice is appreciated. In the worst case, I suppose that I can copy the MDB of interest back to my desktop, run Access and MZTools there and update the headers etc., then copy it back to my laptop, but that choice leaves a bad taste in my mouth. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Sun Mar 28 23:41:31 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Mon, 29 Mar 2010 10:11:31 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <00a201cacefa$438a1870$3701a8c0@adtpc> Feasibility of a universal function for calculation of date difference in terms of completed years, months and days has often featured in various discussion groups. It is also referred as age calculation function when second argument is optional and defaults to today's date. Over the years, different flavors of such a function have been attempted. In this regard, it would be desirable to evolve a consensus as to the governing rules to be followed for computing the results. Proposed draft guidelines are placed below (Let Dy1 & Dy2 be the day parts of start & end dates respectively. Let Dy represent days count in final result): ========================================== 1 - If both Dy1 & Dy2 represent ends of respective months, day part of the final result (Dy) is zero. 2 - If Dy2 is at the end of month and Dy1 is not, Dy equals unfinished days in start month. 3 - If Dy1 is at the end of month and Dy2 is not, Dy equals Dy2. 4 - If neither date represents end of the month, and Dy2 >= Dy1, result days (Dy) = Dy2 - Dy1. 5 - If neither date represents end of the month, and Dy2 < Dy1, result days (Dy) is computed by adding Dy2 and unfinished days in start month. ========================================== It would be nice, if interested members could kindly examine the above and offer their considered views regarding modifications to the draft guidelines, as felt necessary. Best wishes, A.D. Tejpal ------------ From thewaddles at sbcglobal.net Mon Mar 29 00:30:58 2010 From: thewaddles at sbcglobal.net (Kevin) Date: Sun, 28 Mar 2010 22:30:58 -0700 Subject: [AccessD] Date Difference As Completed Years-Months-Days In-Reply-To: <00a201cacefa$438a1870$3701a8c0@adtpc> References: <00a201cacefa$438a1870$3701a8c0@adtpc> Message-ID: <01ad01cacf01$0322f520$0968df60$@net> A.D. I use Chip Pearson's Age Function (http://www.cpearson.com/Excel/DateTimeVBA.htm) Works well in Excel, Access, etc Function fnAGE(Date1 As Date, Date2 As Date) As String Dim Y As Integer Dim M As Integer Dim D As Integer Dim Temp1 As Date Temp1 = DateSerial(Year(Date2), Month(Date1), Day(Date1)) Y = Year(Date2) - Year(Date1) + (Temp1 > Date2) M = Month(Date2) - Month(Date1) - (12 * (Temp1 > Date2)) D = Day(Date2) - Day(Date1) If D < 0 Then M = M - 1 D = Day(DateSerial(Year(Date2), Month(Date2) + 1, 0)) + D + 1 End If fnAGE = Y & " years " & M & " months " & D & " days" End Function Kevin Waddle thewaddles at sbcglobal.net When you are in the dark, listen, and God will give you a very precious message.. ~ Oswald Chambers -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D. Tejpal Sent: Sunday, March 28, 2010 9:42 PM To: Access Developers discussion and problem solving Subject: [AccessD] Date Difference As Completed Years-Months-Days Feasibility of a universal function for calculation of date difference in terms of completed years, months and days has often featured in various discussion groups. It is also referred as age calculation function when second argument is optional and defaults to today's date. Over the years, different flavors of such a function have been attempted. In this regard, it would be desirable to evolve a consensus as to the governing rules to be followed for computing the results. Proposed draft guidelines are placed below (Let Dy1 & Dy2 be the day parts of start & end dates respectively. Let Dy represent days count in final result): ========================================== 1 - If both Dy1 & Dy2 represent ends of respective months, day part of the final result (Dy) is zero. 2 - If Dy2 is at the end of month and Dy1 is not, Dy equals unfinished days in start month. 3 - If Dy1 is at the end of month and Dy2 is not, Dy equals Dy2. 4 - If neither date represents end of the month, and Dy2 >= Dy1, result days (Dy) = Dy2 - Dy1. 5 - If neither date represents end of the month, and Dy2 < Dy1, result days (Dy) is computed by adding Dy2 and unfinished days in start month. ========================================== It would be nice, if interested members could kindly examine the above and offer their considered views regarding modifications to the draft guidelines, as felt necessary. Best wishes, A.D. Tejpal ------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 29 02:06:31 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Mar 2010 09:06:31 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi A.D. Good question. It has really stumped me that such - what seems like a simple task - through the years has raised so many questions and resulted in so much buggy code, including several attempts from myself. Counting age in days is extremely simple, you may think: AgeDays = DateDiff("d", Date1, Date2) However, this assumes that you ignore the hour of the day for the birth. To incorporate this, you could use a method like that for calculating the age in months: Public Function AgeMonths( _ ByVal datDOB As Date, _ ByVal datNow As Date) _ As Integer ' Returns the difference in full months between datDOB and datNow. ' ' Calculates correctly for: ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2008-06-28. Dim intMonths As Integer intMonths = DateDiff("m", datDOB, datNow) intMonths = intMonths + (datNow < DateAdd("m", intMonths, datDOB)) AgeMonths = intMonths End Function The main problem when calculation age in years is that a month is not a month and a year is not a year. Both have varying count of days. This can lead to many worries until you realise that the best method is to turn it upside down - by adding a found interval of years (age) to the first date to prove that the second date is the right. That could lead to a new problem if you should consider how to add years but that is not the case as VBA features the DateAdd function which calculates correctly. Thus: Age = Years(Date1, Date2) <=> Date2 = DateAdd("yyyy", Age, Date1) So the simple answer to your question is to apply DateAdd to check your calculation and correct when needed. After a lengthy discussion and input from several members at Experts Exchange which also introduced the topic "Linear Age", this is how it turned out: Public Function Age( _ ByVal datDateOfBirth As Date, _ Optional ByVal varDate As Variant) _ As Integer ' Calculates age at today's date or at a specified date earlier or later in time. ' Uses Years() for calculating difference in years. ' ' Will return 0 for any varDate of the first year before datDateOfBirth. ' See comments for Years(). ' ' 2000-11-03. Cactus Data ApS, CPH. ' 2007-06-23. Supplemented with AgeLinear for count of negative ages offset by -1. Dim datDate As Date ' No special error handling. On Error Resume Next If IsDate(varDate) Then datDate = CDate(varDate) Else datDate = Date End If Age = Years(datDateOfBirth, datDate) End Function Public Function Years( _ ByVal datDOB As Date, _ ByVal datNow As Date, _ Optional ByVal booLinear As Boolean) _ As Integer ' Returns the difference in full years between datDOB and datNow. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Optionally returns negative counts rounded down to provide a ' linear sequence of year counts. ' For a given datDOB, if datNow is decreased step wise one year from ' returning a positive count to returning a negative count, one or two ' occurrences of count zero will be returned. ' If booLinear is False, the sequence will be: ' 3, 2, 1, 0, 0, -1, -2 ' If booLinear is True, the sequence will be: ' 3, 2, 1, 0, -1, -2, -3 ' ' If booLinear is False, reversing datDOB and datNow will return ' results of same absolute value, only the sign will change. ' This behaviour mimics that of Fix(). ' If booLinear is True, reversing datDOB and datNow will return ' results where the negative count is offset by -1. ' This behaviour mimics that of Int(). ' DateAdd() is used for check for month end of February as it correctly ' returns Feb. 28. when adding a count of years to dates of Feb. 29. ' when the resulting year is a common year. ' ' 2000-11-03. Cactus Data ApS, CPH. ' 2000-12-16. Leap year correction modified to be symmetrical. ' Calculation of intDaysDiff simplified. ' Renamed from YearsDiff() to Years(). ' 2000-12-18. Introduced cbytMonthDaysMax. ' 2007-06-22. Version 2. Complete rewrite. ' Check for month end of February performed with DateAdd() ' after idea of Markus G. Fischer. ' 2008-04-27. Version 2.1. ' Correction for calculation of linear age from Feb. 29th. ' to Feb. 28th of a previous non-leap year as documented ' by Lester Hui. ' ' Example: ' DOB: 2000-02-29, Today: 1999-02-28, Age linear: -1. ' ' Parameters renamed to stress that for age calculations ' first parameter must be Date of Birth as documented ' by Markus G. Fischer. ' 2008-04-27. Version 2.2 ' Rewrite to correct negative years count bug. Dim intSign As Integer Dim intYears As Integer ' Find difference in calendar years. intYears = DateDiff("yyyy", datDOB, datNow) ' For positive resp. negative intervals, check if the second date ' falls before, on, or after the crossing date for a full 12 months period ' while at the same time correcting for February 29. of leap years. If DateDiff("d", datDOB, datNow) > 0 Then If DateDiff("d", DateAdd("yyyy", intYears, datDOB), datNow) < 0 Then ' The last year is not a full year. ' Reduce year count by one. intYears = intYears - 1 End If Else intSign = Sgn(DateDiff("d", DateAdd("yyyy", -intYears, datNow), datDOB)) If intSign <> 0 Then If intSign < 0 Then ' The last year is not a full year. ' Reduce negative year count by one. intYears = intYears + 1 End If If booLinear Then ' Offset negative count of years to continuous sequence if requested. If DateDiff("d", DateAdd("yyyy", intYears, datDOB), datNow) < 0 Then ' Time interval includes a partial year. ' Increase negative year count by one. intYears = intYears - 1 End If End If End If End If ' Return count of years as count of full 12 months periods. Years = intYears End Function Note that if you cut the meat off, the function Years just use DateDiff and checks with DateAdd and corrects if necessary. This function can do "everything" including calculate an age - positive or negative - you later can add with another age while keeping the correct sum. Is "all this" really necessary, I have been asked, when so many quick and dirty methods exist out there? I say why not? This function does it right in any situation, and once copied to your code library module, it is just a function like any other function. Of course, to calculate the age of the members of the local pool club, who cares if one or two members miss a year? The World still stands. But for serious business use like insurance, pension, warranty, leasing, etc., it can be important to know that your calculation is always right. Remember that if you are not sure, you would do a manual calculation in those situations where doubt could exist, and that is waste of time. /gustav >>> adtp at airtelmail.in 29-03-2010 06:41 >>> Feasibility of a universal function for calculation of date difference in terms of completed years, months and days has often featured in various discussion groups. It is also referred as age calculation function when second argument is optional and defaults to today's date. Over the years, different flavors of such a function have been attempted. In this regard, it would be desirable to evolve a consensus as to the governing rules to be followed for computing the results. Proposed draft guidelines are placed below (Let Dy1 & Dy2 be the day parts of start & end dates respectively. Let Dy represent days count in final result): ========================================== 1 - If both Dy1 & Dy2 represent ends of respective months, day part of the final result (Dy) is zero. 2 - If Dy2 is at the end of month and Dy1 is not, Dy equals unfinished days in start month. 3 - If Dy1 is at the end of month and Dy2 is not, Dy equals Dy2. 4 - If neither date represents end of the month, and Dy2 >= Dy1, result days (Dy) = Dy2 - Dy1. 5 - If neither date represents end of the month, and Dy2 < Dy1, result days (Dy) is computed by adding Dy2 and unfinished days in start month. ========================================== It would be nice, if interested members could kindly examine the above and offer their considered views regarding modifications to the draft guidelines, as felt necessary. Best wishes, A.D. Tejpal ------------ From Johncliviger at aol.com Mon Mar 29 05:25:28 2010 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 29 Mar 2010 06:25:28 EDT Subject: [AccessD] Office 2000 Standard with Access 2007 Message-ID: <64813.1fe3fd6f.38e1da18@aol.com> Hi all I've got a Access db to build. It's going to reside on a small network with office 2000 standard edition. eg no Access. With the FE's on workstations and BE on the server. I'm thinking can I run a Access 2007 runtime along side office 2000 std edition on the workstations? Has any one installed Access 2007 runtime on a machine with office 2000? What problems am I like to hit? TIA john cliviger From andy at minstersystems.co.uk Mon Mar 29 06:17:03 2010 From: andy at minstersystems.co.uk (Andrew Lacey) Date: Mon, 29 Mar 2010 12:17:03 +0100 (BST) Subject: [AccessD] Access Security mess In-Reply-To: <64813.1fe3fd6f.38e1da18@aol.com> References: <64813.1fe3fd6f.38e1da18@aol.com> Message-ID: <957763932.20512.1269861423488.JavaMail.open-xchange@oxltgw01.schlund.de> Hi folks, help please. I know ****** all about Access workgroup security and have been handed a problem with it. Great. The situation is that this db has several users who can access it fine, but now they need someone else to do so. It seems like only an Admin user can do that but I don't know, and they don't know, how to log on as Admin. Is it done with a command-line switch? If so can someone spell that out for me? Then the next issue is going to be that no-one knows the admin password. What can I do about that? Anyone got/know a pw cracker for this situation? Oh and there's this. The site has migrated to a different domain. As I say, that hasn't stopped the users using the db, but might this have repercussions on the security or is Access security independent of all that? Just though I should mention it. Help would be greatly appreciated. Andy From fuller.artful at gmail.com Mon Mar 29 08:31:43 2010 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 29 Mar 2010 09:31:43 -0400 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <1B19EDA4EA0344CE8EB0AAFAE74AFDFA@darrendPC> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> <1B19EDA4EA0344CE8EB0AAFAE74AFDFA@darrendPC> Message-ID: <29f585dd1003290631h48ba6157l752f6b35b6c4d748@mail.gmail.com> I was advised to download the latest release, which doesn't rely on regsvr32.exe any more. I did so and it worked a treat. I'm a happy camper once again. A. On Sun, Mar 28, 2010 at 7:04 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi Arthur > Not sure where you are up to with this > We have an install we run by registering a DLL too. > It fails on Win7 - Just as you describe > The solution with the issue we have found was in permissions. > Despite being a full rights administrator I discovered I had to create a > batch file with the reg server command then 'right click' this batch file > the select Run As Administrator" > Even then a re-boot was required - not impressed > > Many thanks > > Darren > From EdTesiny at oasas.state.ny.us Mon Mar 29 08:56:13 2010 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Mon, 29 Mar 2010 09:56:13 -0400 Subject: [AccessD] OT: Paris In-Reply-To: <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> References: <782533392F9A4BBFB884369EB6C50237@creativesystemdesigns.com><57144ced1003260824sad7c0e4v3857d5d76c508bbc@mail.gmail.com> <40A1A31BDB9348C986D74313A17E91AD@creativesystemdesigns.com> Message-ID: Jim, If you haven't already seen it, you have to see the Lady and the Unicorn Tapestry at the Cluny Museum. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, March 26, 2010 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Paris I hope to be in Paris sometime in the next month... 8-) It is like a trip to Mecca for us art lovers. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of philippe pons Sent: Friday, March 26, 2010 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Paris Hi all, I am in Paris, and I will visit an expo about the painter Lucian Freud, the grand son of Sigmund. Very special paintings, if you want to have a look: http://dandylan.canalblog.com/archives/2010/03/16/17245970.html Philippe 2010/3/26 Jim Lawrence > Hi Gustav: > > That link is truly incredible... Even links to the tools so you could > do the same for Copenhagen. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Wednesday, March 24, 2010 8:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Paris > > Hi all > > You can now study Paris from a single spot on one amazing 354159x75570 > px > picture: > > http://www.paris-26-gigapixels.com/index-en.html > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Mar 29 09:40:16 2010 From: robert at servicexp.com (Robert) Date: Mon, 29 Mar 2010 10:40:16 -0400 Subject: [AccessD] MZTools and Windows 7 In-Reply-To: <29f585dd1003290631h48ba6157l752f6b35b6c4d748@mail.gmail.com> References: <29f585dd1003260743q7e35303cnd6da00ac668b42b4@mail.gmail.com> <1B19EDA4EA0344CE8EB0AAFAE74AFDFA@darrendPC> <29f585dd1003290631h48ba6157l752f6b35b6c4d748@mail.gmail.com> Message-ID: <002301cacf4d$c223d4c0$466b7e40$@com> I tried to tell ya.... ;-) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 29, 2010 9:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MZTools and Windows 7 I was advised to download the latest release, which doesn't rely on regsvr32.exe any more. I did so and it worked a treat. I'm a happy camper once again. A. On Sun, Mar 28, 2010 at 7:04 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi Arthur > Not sure where you are up to with this > We have an install we run by registering a DLL too. > It fails on Win7 - Just as you describe > The solution with the issue we have found was in permissions. > Despite being a full rights administrator I discovered I had to create a > batch file with the reg server command then 'right click' this batch file > the select Run As Administrator" > Even then a re-boot was required - not impressed > > Many thanks > > Darren > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Mar 29 10:03:31 2010 From: andy at minstersystems.co.uk (Andrew Lacey) Date: Mon, 29 Mar 2010 16:03:31 +0100 (BST) Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <957763932.20512.1269861423488.JavaMail.open-xchange@oxltgw01.schlund.de> References: <64813.1fe3fd6f.38e1da18@aol.com> <957763932.20512.1269861423488.JavaMail.open-xchange@oxltgw01.schlund.de> Message-ID: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 29 11:26:32 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 29 Mar 2010 09:26:32 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> Message-ID: <47136FAD0BCC4F92B4A17E034FDD3A9C@HAL9005> Brad: Didn't work for me. :( Now I'm thinking that I could use SendKeys to send the control break in the code so the code would break under certain conditions. But I don't know what the ASCII value is to send. Does anyone know what character comes off the keyboard when you press Ctrl-Break? I'm also thinking of a crude approach - put x=1/0 in line where I want the break and it'll generate an error which will give me the Debug option. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, March 25, 2010 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key About a year ago, I posted a question on another Access forum and someone suggested that I look into AutoHotKey (AHK) to accomplish what I was trying to do. I took their advice and dug into AHK a bit. I have found AHK to be very useful. AutoHotkey is a free, open-source utility for Windows. One of the things that it can be used for is to "Send" keyboard button(s). Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. #b::Send {CtrlBreak} I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. AHK can be downloaded at www.autohotkey.com Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 25, 2010 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Mar 29 11:59:35 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 29 Mar 2010 11:59:35 -0500 Subject: [AccessD] break key References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005> <47136FAD0BCC4F92B4A17E034FDD3A9C@HAL9005> Message-ID: Rocky, Sorry to hear that my suggestion did not work for you. I will try to help if you tell me what you ran into. I didn't spell things out very well in my earlier e-mail. Here are the steps that I would suggest. 1. Download AHK from www.autohotkey.com 2. Write a one-line AHK "Program" with this line #b::Send {CtrlBreak} (note that the extension must be .ahk) 3. Fire up this program (you can name it whatever you like, as long as the extension is .ahk) 4. Fire up your Access VBA program and get to the point what you want to do the "Control + Break". 5. Hold down the Windows key and then push the "b" key Good luck and feel free to ask any questions. I have found AHK to be a very useful utility for a variety of purposes. Plus, the price is right...(free). Brad ~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Brad: Didn't work for me. :( Now I'm thinking that I could use SendKeys to send the control break in the code so the code would break under certain conditions. But I don't know what the ASCII value is to send. Does anyone know what character comes off the keyboard when you press Ctrl-Break? I'm also thinking of a crude approach - put x=1/0 in line where I want the break and it'll generate an error which will give me the Debug option. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, March 25, 2010 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key About a year ago, I posted a question on another Access forum and someone suggested that I look into AutoHotKey (AHK) to accomplish what I was trying to do. I took their advice and dug into AHK a bit. I have found AHK to be very useful. AutoHotkey is a free, open-source utility for Windows. One of the things that it can be used for is to "Send" keyboard button(s). Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. #b::Send {CtrlBreak} I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. AHK can be downloaded at www.autohotkey.com Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 25, 2010 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 rockysmolin at bchacc.com Mon Mar 29 12:22:12 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 29 Mar 2010 10:22:12 -0700 Subject: [AccessD] break key In-Reply-To: References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005><47136FAD0BCC4F92B4A17E034FDD3A9C@HAL9005> Message-ID: <0EDEC9C001504BA6AF6A40F451149F7D@HAL9005> I'm using W7 on the laptop now. You think that might be a problem? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, March 29, 2010 10:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Rocky, Sorry to hear that my suggestion did not work for you. I will try to help if you tell me what you ran into. I didn't spell things out very well in my earlier e-mail. Here are the steps that I would suggest. 1. Download AHK from www.autohotkey.com 2. Write a one-line AHK "Program" with this line #b::Send {CtrlBreak} (note that the extension must be .ahk) 3. Fire up this program (you can name it whatever you like, as long as the extension is .ahk) 4. Fire up your Access VBA program and get to the point what you want to do the "Control + Break". 5. Hold down the Windows key and then push the "b" key Good luck and feel free to ask any questions. I have found AHK to be a very useful utility for a variety of purposes. Plus, the price is right...(free). Brad ~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Brad: Didn't work for me. :( Now I'm thinking that I could use SendKeys to send the control break in the code so the code would break under certain conditions. But I don't know what the ASCII value is to send. Does anyone know what character comes off the keyboard when you press Ctrl-Break? I'm also thinking of a crude approach - put x=1/0 in line where I want the break and it'll generate an error which will give me the Debug option. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, March 25, 2010 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key About a year ago, I posted a question on another Access forum and someone suggested that I look into AutoHotKey (AHK) to accomplish what I was trying to do. I took their advice and dug into AHK a bit. I have found AHK to be very useful. AutoHotkey is a free, open-source utility for Windows. One of the things that it can be used for is to "Send" keyboard button(s). Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. #b::Send {CtrlBreak} I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. AHK can be downloaded at www.autohotkey.com Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 25, 2010 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Mar 29 12:47:59 2010 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 29 Mar 2010 12:47:59 -0500 Subject: [AccessD] break key References: <946718D2391A4364BBE30054CDAD218C@jislaptopdev><754C1F5BB5A747D4A5B835873BE674E3@HAL9005><416003984DC24691AEC62B11ED16FA6D@HAL9005><47136FAD0BCC4F92B4A17E034FDD3A9C@HAL9005> <0EDEC9C001504BA6AF6A40F451149F7D@HAL9005> Message-ID: Rocky, It might be a conflict with W7. I am running XP and I don't have access to any PCs with W7 to test with. Here is a link to some info from another person. http://www.howtogeek.com/howto/windows-vista/add-run-as-administrator-for-autohotkey-scripts-in-windows-vista/ It could be that you are running into some W7 security issues that do not surface with XP. You might try compiling the .ahk program into an .exe file. To do this, simply right click on the .ahk member while viewing the list of files in the folder. You should receive a little pop-up window that has compiling as one of the options. This will create an .exe file in the same folder. Good luck with this. I may learn some new stuff about W7 as a result of this exchange of info. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 12:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key I'm using W7 on the laptop now. You think that might be a problem? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, March 29, 2010 10:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Rocky, Sorry to hear that my suggestion did not work for you. I will try to help if you tell me what you ran into. I didn't spell things out very well in my earlier e-mail. Here are the steps that I would suggest. 1. Download AHK from www.autohotkey.com 2. Write a one-line AHK "Program" with this line #b::Send {CtrlBreak} (note that the extension must be .ahk) 3. Fire up this program (you can name it whatever you like, as long as the extension is .ahk) 4. Fire up your Access VBA program and get to the point what you want to do the "Control + Break". 5. Hold down the Windows key and then push the "b" key Good luck and feel free to ask any questions. I have found AHK to be a very useful utility for a variety of purposes. Plus, the price is right...(free). Brad ~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key Brad: Didn't work for me. :( Now I'm thinking that I could use SendKeys to send the control break in the code so the code would break under certain conditions. But I don't know what the ASCII value is to send. Does anyone know what character comes off the keyboard when you press Ctrl-Break? I'm also thinking of a crude approach - put x=1/0 in line where I want the break and it'll generate an error which will give me the Debug option. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, March 25, 2010 1:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key About a year ago, I posted a question on another Access forum and someone suggested that I look into AutoHotKey (AHK) to accomplish what I was trying to do. I took their advice and dug into AHK a bit. I have found AHK to be very useful. AutoHotkey is a free, open-source utility for Windows. One of the things that it can be used for is to "Send" keyboard button(s). Here is one-line AHK "program" that sends a CtrlBreak when the Windows Key and the "b" key are pushed. #b::Send {CtrlBreak} I have used AHK for many other purposes. It is easy to use. The documentation on the internet is very good. AHK can be downloaded at www.autohotkey.com Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, March 25, 2010 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key It won't do you any good because it only allows you to remap the printable characters on the keyboard: A-Z, 1-0, and the space bar. That is when running under XP. When you start it up it tells you that 'certain features may not be available when running on versions of Windows earlier than Windows Vista' Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, March 25, 2010 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] break key That looks like it might work. Except...I just upgraded the laptop to W7 and it doesn't say that W7 is supported. You think it'll work anyway? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 25, 2010 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] break key Remap the keyboard then??? Microsoft Keyboard Layout Creator 1.4 http://www.microsoft.com/downloads/details.aspx?FamilyID=8be579aa-780d-4253- 9e0a-e17e51db2223&DisplayLang=en GK On Thu, Mar 25, 2010 at 11:13 AM, Rocky Smolin wrote: > Yes laptop - but I use it on the road. ?Having to pack and attach an > external keyboard is not an attractive solution. :( > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, March 25, 2010 8:05 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] break key > > That is a laptop I take it? Maybe you have to use an External USB keyboard. > > GK > > On Thu, Mar 25, 2010 at 9:21 AM, Rocky Smolin > wrote: >> None of them worked. :( >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Wednesday, March 24, 2010 11:57 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] break key >> >> Rocky >> >> ...depends on the model >> ...on my inspiron 1501 laptop, its Fn + Pause ...some other inspiron >> keyboards don't have that key and require Fn+F11, others Ctrl+Fn+F11 >> ...my dell user manual doesn't say a thing about it ...good luck >> >> William >> >> -------------------------------------------------- >> From: "Rocky Smolin" >> Sent: Thursday, March 25, 2010 12:34 AM >> To: "List" ; "'Off Topic'" >> ; "'Access Developers discussion and >> problem solving'" >> Subject: [AccessD] break key >> >>> On my Dell Inspiron there's no Break key so I can't do Ctrl-Break to >>> break into the CBF. ?Does anyone know if there's an equivalent to >>> Ctrl-Break on this kind of keyboard? >>> >>> MTIA >>> >>> >>> >>> Rocky >>> >>> >>> >>> >> >> >> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Gary Kjos > garykjos at gmail.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 andy at minstersystems.co.uk Mon Mar 29 14:50:29 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Mar 2010 20:50:29 +0100 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> Message-ID: <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 29 15:55:56 2010 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 29 Mar 2010 15:55:56 -0500 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> References: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> Message-ID: LOL. In my outlook pane, it shows as being from Andy Lacey, I only see Andrew in the text below. My mom calls me Andrew too. The irony for me is that my Dad wanted to call me Andy, and she wanted to call me Drew, so they settled on Andrew, and now that I go by Drew, she can't stand it...go figure. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 29, 2010 2:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 robert at servicexp.com Mon Mar 29 17:20:26 2010 From: robert at servicexp.com (Robert) Date: Mon, 29 Mar 2010 18:20:26 -0400 Subject: [AccessD] Access 2007 (.mde) and Window 2007 Saga.... In-Reply-To: References: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> Message-ID: <000501cacf8e$09118810$1b349830$@com> Here is the latest super strange error ..... :-( "Error: 3085 Undefined function 'CurrentUser' in expression." I guess the imbedded "CurrentUser" function can no longer be handled.. So sad.. Yelling Uncle... I give..!! WBR Robert From Darryl.Collins at anz.com Mon Mar 29 17:48:04 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 30 Mar 2010 09:48:04 +1100 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC967@EXUAU020HWT110.oceania.corp.anz.com> Hah.... I thought you must have been misbehaving and the web sever was getting stern with you "Andrew!! Stop that now!" Hehehehe.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, 30 March 2010 6:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed > a problem with it. Great. > The situation is that this db has several users who can access it > fine, but > now > they need someone else to do so. It seems like only an Admin user can > do that > but I don't know, and they don't know, how to log on as Admin. Is it > done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I > do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have > repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From darren at activebilling.com.au Mon Mar 29 17:48:37 2010 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 30 Mar 2010 09:48:37 +1100 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> References: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> Message-ID: Andrew Mate!!!! I thought we had a new list member Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, 30 March 2010 6:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Mar 29 18:41:06 2010 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 29 Mar 2010 19:41:06 -0400 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> References: <1511765067.37230.1269875011267.JavaMail.open-xchange@oxltgw01.schlund.de> <4F0EE5846E634E18A98282C2B09A90FB@MINSTER> Message-ID: It's ok Andy, I'm sure you've been called worse. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 29, 2010 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.791 / Virus Database: 271.1.1/2777 - Release Date: 03/29/10 02:32:00 From rockysmolin at bchacc.com Mon Mar 29 19:10:04 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 29 Mar 2010 17:10:04 -0700 Subject: [AccessD] Expressions Message-ID: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005> A potential client is trying to decide whether to create a very proprietary algorithm (for matching up patients with doctors - kind of a medical dating service if you will) in Access or Expression Engine. I don't know about Expression. Good alternative? Can you protect your code with Expression? MTIA Rocky From cfoust at infostatsystems.com Mon Mar 29 19:36:20 2010 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 29 Mar 2010 19:36:20 -0500 Subject: [AccessD] Source control In-Reply-To: <101EC1DA-4912-4C4E-9601-A943670FD248@zyterra.com> References: <101EC1DA-4912-4C4E-9601-A943670FD248@zyterra.com> Message-ID: Pretty much nothing is happening with SourceSafe. If you can assign someone full time to administer Team Foundation and Source Anywhere, fine. We looked at them and decided we just couldn't do that, so we went with SourceGear Vault instead, which resembles SourceSafe enough to make the transition fairly painless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Friday, March 26, 2010 1:27 PM To: Access Developers discussion and problem solving Subject: [AccessD] Source control I am looking for a program to do some source control with multiple developers. I have seen discussions here before, but they did not apply to me before now. Any suggestions are helpful, but the company is looking at Team Foundation and Source Anywhere. Do we know what is happening with Source Safe too? Debbie Sent from my iPhone -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 29 22:10:31 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 29 Mar 2010 20:10:31 -0700 Subject: [AccessD] Expressions In-Reply-To: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005> References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005> Message-ID: <2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com> Hi Rocky: Isn't Expression a web designer type tool... it specialized in blog building similar to WordPress. It also has a number programming features built within it so it can be made fairly functional. OTH it is supposed to be a cruddy web designer not at all like my favourite Dreamweaver. I think MS Access is probably a better database management tool but it is not designed for web deployment. So I guess it depends on whether the application is to be desktop or web based. For you, the ultimate would be to quickly hack together an Access BE with all the business logic built in and quickly put together a custom built web site FE and I would recommend Dreamweaver for ease of use... but that would just be my personal opinion. The optimum would be to build the whole in something like ASP.Net or many of the excellent frameworks that are out there. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 5:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Expressions A potential client is trying to decide whether to create a very proprietary algorithm (for matching up patients with doctors - kind of a medical dating service if you will) in Access or Expression Engine. I don't know about Expression. Good alternative? Can you protect your code with Expression? MTIA Rocky From accessd at shaw.ca Mon Mar 29 22:19:49 2010 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 29 Mar 2010 20:19:49 -0700 Subject: [AccessD] Source control In-Reply-To: References: <101EC1DA-4912-4C4E-9601-A943670FD248@zyterra.com> Message-ID: <3B9A6CB8E54D489AA3AC031F3A96FFC1@creativesystemdesigns.com> Hi Debbie: This may be a little late to the topic. Subversion has long been a favourite replacement to SorceSafe. I know a number of friends and companies that use the product and have for years so it must be fairly reliable. But note that Gustav posted a link to another source management product which is supposed to be superior to Subversion called Mercurial: http://hginit.com and http://www.joelonsoftware.com/items/2010/03/17.html It also seems like a very capable package. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, March 29, 2010 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Source control Pretty much nothing is happening with SourceSafe. If you can assign someone full time to administer Team Foundation and Source Anywhere, fine. We looked at them and decided we just couldn't do that, so we went with SourceGear Vault instead, which resembles SourceSafe enough to make the transition fairly painless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Debbie Sent: Friday, March 26, 2010 1:27 PM To: Access Developers discussion and problem solving Subject: [AccessD] Source control I am looking for a program to do some source control with multiple developers. I have seen discussions here before, but they did not apply to me before now. Any suggestions are helpful, but the company is looking at Team Foundation and Source Anywhere. Do we know what is happening with Source Safe too? Debbie Sent from my iPhone -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 30 00:21:47 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 29 Mar 2010 22:21:47 -0700 Subject: [AccessD] Expressions In-Reply-To: <2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com> References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005> <2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com> Message-ID: <29EB2C2CAFB847D2921D83A38FD07257@HAL9005> The BE is already Access. The programming to be done is the process of connecting the patients with doctors - kind of like a medical eHarmony. Currently the referrals are being done manually. So they know how to do it. But they're ramping up so the manual approach is getting quickly overwhelmed. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 29, 2010 8:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Expressions Hi Rocky: Isn't Expression a web designer type tool... it specialized in blog building similar to WordPress. It also has a number programming features built within it so it can be made fairly functional. OTH it is supposed to be a cruddy web designer not at all like my favourite Dreamweaver. I think MS Access is probably a better database management tool but it is not designed for web deployment. So I guess it depends on whether the application is to be desktop or web based. For you, the ultimate would be to quickly hack together an Access BE with all the business logic built in and quickly put together a custom built web site FE and I would recommend Dreamweaver for ease of use... but that would just be my personal opinion. The optimum would be to build the whole in something like ASP.Net or many of the excellent frameworks that are out there. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, March 29, 2010 5:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Expressions A potential client is trying to decide whether to create a very proprietary algorithm (for matching up patients with doctors - kind of a medical dating service if you will) in Access or Expression Engine. I don't know about Expression. Good alternative? Can you protect your code with Expression? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Mar 30 01:56:35 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 30 Mar 2010 07:56:35 +0100 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: Message-ID: So very true -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: 30 March 2010 00:41 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved It's ok Andy, I'm sure you've been called worse. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 29, 2010 3:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed a > problem > with it. Great. > The situation is that this db has several users who can access it fine, but > now > they need someone else to do so. It seems like only an Admin user can do that > but I don't know, and they don't know, how to log on as Admin. Is it done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.791 / Virus Database: 271.1.1/2777 - Release Date: 03/29/10 02:32:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Mar 30 02:00:39 2010 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 30 Mar 2010 08:00:39 +0100 Subject: [AccessD] Access Security mess - Resolved rather than solved In-Reply-To: <6DC4725FDCDD72428D6114F1B6CC6E81029FC967@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: Yea isn't it funny how it has that stern sound? If anyone calls me Andrew I revert to childhood and feel like I've done something wrong. "Andrew", "It wasn't me". -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Collins, Darryl Sent: 29 March 2010 23:48 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Hah.... I thought you must have been misbehaving and the web sever was getting stern with you "Andrew!! Stop that now!" Hehehehe.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, 30 March 2010 6:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Security mess - Resolved rather than solved And in case anyone thinks I've come over all formal the webmail client I have to use from work insists on calling me Andrew and I can't see how to alter it. So it's just webmail and my mother who call me that! Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andrew Lacey Sent: 29 March 2010 16:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Security mess - Resolved rather than solved Panic over, user's fixed it himself. Andy On 29 March 2010 at 13:17 Andrew Lacey wrote: > Hi folks, help please. > I know ****** all about Access workgroup security and have been handed > a problem with it. Great. > The situation is that this db has several users who can access it > fine, but > now > they need someone else to do so. It seems like only an Admin user can > do that > but I don't know, and they don't know, how to log on as Admin. Is it > done with > a > command-line switch? If so can someone spell that out for me? Then the next > issue is going to be that no-one knows the admin password. What can I > do about > that? Anyone got/know a pw cracker for this situation? > Oh and there's this. The site has migrated to a different domain. As I say, > that > hasn't stopped the users using the db, but might this have > repercussions on > the > security or is Access security independent of all that? Just though I should > mention it. > Help would be greatly appreciated. > Andy > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Mar 30 04:09:24 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 30 Mar 2010 05:09:24 -0400 Subject: [AccessD] Expressions In-Reply-To: <29EB2C2CAFB847D2921D83A38FD07257@HAL9005> References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005><2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com> <29EB2C2CAFB847D2921D83A38FD07257@HAL9005> Message-ID: <2C7388F173A441FA8CD41451EA20AD97@jislaptopdev> Rocky "Expression Engine" is a decent web content management system, "MS Expression" is a Microsoft web development suite of tools targeted at the web site "designer" market ...neither is anything like an Access desktop fe nor serves the same purpose ...if the desire is to have a browser based fe/web app for an Access be, then the best tool for your existing skill set would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer version is free and can probably do what you need, certainly in the learning stage ...but the Pro version allows you to compile your code into a dll which meets your criteria for code security. ...assuming that the client is looking for a browser based solution on a web site, and anticipates high traffic, an mdb be can be problematic ...an Access be on the web can handle several hundred users a day quite well ...but anything more and your client will need to move to a SQL Server be. ...either way, if you're looking at anything more than a desktop fe for their current mdb be, the learning curve can be quite steep ...VB.net is NOT vba ...it's a fe programming language for the .net framework, object oriented, and the web resources are quite a bit more limited than for vba or C#.net. ...however, Shamil and a group of AccessD developers recently did a conversion of the Northwind.mdb to .net and the entire project, both results and the interim steps to get there are hosted on codeplex and available for download ...it's a great learning tool that would have helped me immensely in my first foray into .net apps ...if you decide to take the client on, that would be the first place I'd look to especially since help is immediately available from those you already know and respect. William -------------------------------------------------- From: "Rocky Smolin" Sent: Tuesday, March 30, 2010 1:21 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Expressions > The BE is already Access. The programming to be done is the process of > connecting the patients with doctors - kind of like a medical eHarmony. > Currently the referrals are being done manually. So they know how to do > it. > But they're ramping up so the manual approach is getting quickly > overwhelmed. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, March 29, 2010 8:11 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Expressions > > Hi Rocky: > > Isn't Expression a web designer type tool... it specialized in blog > building > similar to WordPress. It also has a number programming features built > within > it so it can be made fairly functional. OTH it is supposed to be a cruddy > web designer not at all like my favourite Dreamweaver. > > I think MS Access is probably a better database management tool but it is > not designed for web deployment. So I guess it depends on whether the > application is to be desktop or web based. > > For you, the ultimate would be to quickly hack together an Access BE with > all the business logic built in and quickly put together a custom built > web > site FE and I would recommend Dreamweaver for ease of use... but that > would > just be my personal opinion. > > The optimum would be to build the whole in something like ASP.Net or many > of > the excellent frameworks that are out there. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Monday, March 29, 2010 5:10 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Expressions > > A potential client is trying to decide whether to create a very > proprietary > algorithm (for matching up patients with doctors - kind of a medical > dating > service if you will) in Access or Expression Engine. I don't know about > Expression. Good alternative? Can you protect your code with Expression? > > > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Tue Mar 30 04:35:39 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 30 Mar 2010 15:05:39 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <003a01cacfec$901be860$3701a8c0@adtpc> Gustav, Thanks for such interesting insight. For this thread, let us say that the result is to be returned as a self contained string of completed years, months and days (in style: y years, m months, d days). Kevin has provided Chip Pearson's Age function, which we could examine further. Would you be in a position to suggest a suitable function, duly taking into account the various factors outlined in your post. Ideally, the proposed function should be able to handle all types of special date combinations that are not straightaway amenable to application of fixed formula. Some examples: 30-Apr-2005 (Month End) to 31-Mar-2009 (Month End) should resolve to 3 years, 11 months, 0 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 3 complete months in 2009). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 1 days) 30-Apr-2005 (Month End) to 30-Mar-2009 should resolve to 3 years, 10 months, 30 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 2 complete months in 2009, plus 30 elapsed days of Mar-2009). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 0 days) 28-Feb-2005 (Month End) to 29-Feb-2008 (Month End) should resolve to 3 years, 0 months, 0 days (10 complete months in 2005, plus 2 complete years 2006 to 2007, plus 2 complete months in 2008). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 0 months 1 days) 29-Feb-2008 (Month End) to 28-Feb-2010 (Month End) should resolve to 2 years, 0 months, 0 days (10 complete months in 2008, plus 1 complete year 2009, plus 2 complete months in 2010). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 1 years 11 months 28 days) Other interested members might also like to kindly offer their views. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Monday, March 29, 2010 12:36 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. <> The main problem when calculation age in years is that a month is not a month and a year is not a year. Both have varying count of days. This can lead to many worries until you realise that the best method is to turn it upside down - by adding a found interval of years (age) to the first date to prove that the second date is the right. That could lead to a new problem if you should consider how to add years but that is not the case as VBA features the DateAdd function which calculates correctly. Thus: Age = Years(Date1, Date2) <=> Date2 = DateAdd("yyyy", Age, Date1) So the simple answer to your question is to apply DateAdd to check your calculation and correct when needed. After a lengthy discussion and input from several members at Experts Exchange which also introduced the topic "Linear Age", this is how it turned out: <> /gustav From rockysmolin at bchacc.com Tue Mar 30 08:35:03 2010 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 30 Mar 2010 06:35:03 -0700 Subject: [AccessD] Expressions In-Reply-To: <2C7388F173A441FA8CD41451EA20AD97@jislaptopdev> References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005><2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com><29EB2C2CAFB847D2921D83A38FD07257@HAL9005> <2C7388F173A441FA8CD41451EA20AD97@jislaptopdev> Message-ID: There are really three components to this - the be with the data and the browser-based fe for the user are done. The third piece is the link between the two. Like a dating service, users enter their criteria for a physician and receive referrals to docs the be database. At the moment that link from input to output is manual, although, IIUC, the methods and procedures are well defined. The current level of activity is just at the threshold of overwhelming the ability of the staff to keep up. So they need to automate that link. As the be is in access, it probably seems logical to them to add a module to the be that would create a table of referrals which could then be driven back to the user through a web-based program. The third party who is helping to coordinate this whole thing told me that they are now thinking of using the Expressions Engine to do that link. If they go that way I will probably not do the job. So I was trying to find out how appropriate that alternative would be and what the strengths and weaknesses are of the EE. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, March 30, 2010 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Expressions Rocky "Expression Engine" is a decent web content management system, "MS Expression" is a Microsoft web development suite of tools targeted at the web site "designer" market ...neither is anything like an Access desktop fe nor serves the same purpose ...if the desire is to have a browser based fe/web app for an Access be, then the best tool for your existing skill set would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer version is free and can probably do what you need, certainly in the learning stage ...but the Pro version allows you to compile your code into a dll which meets your criteria for code security. ...assuming that the client is looking for a browser based solution on a web site, and anticipates high traffic, an mdb be can be problematic ...an Access be on the web can handle several hundred users a day quite well ...but anything more and your client will need to move to a SQL Server be. ...either way, if you're looking at anything more than a desktop fe for their current mdb be, the learning curve can be quite steep ...VB.net is NOT vba ...it's a fe programming language for the .net framework, object oriented, and the web resources are quite a bit more limited than for vba or C#.net. ...however, Shamil and a group of AccessD developers recently did a conversion of the Northwind.mdb to .net and the entire project, both results and the interim steps to get there are hosted on codeplex and available for download ...it's a great learning tool that would have helped me immensely in my first foray into .net apps ...if you decide to take the client on, that would be the first place I'd look to especially since help is immediately available from those you already know and respect. William -------------------------------------------------- From: "Rocky Smolin" Sent: Tuesday, March 30, 2010 1:21 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Expressions > The BE is already Access. The programming to be done is the process > of connecting the patients with doctors - kind of like a medical eHarmony. > Currently the referrals are being done manually. So they know how to > do it. > But they're ramping up so the manual approach is getting quickly > overwhelmed. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Monday, March 29, 2010 8:11 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Expressions > > Hi Rocky: > > Isn't Expression a web designer type tool... it specialized in blog > building similar to WordPress. It also has a number programming > features built within it so it can be made fairly functional. OTH it > is supposed to be a cruddy web designer not at all like my favourite > Dreamweaver. > > I think MS Access is probably a better database management tool but it > is not designed for web deployment. So I guess it depends on whether > the application is to be desktop or web based. > > For you, the ultimate would be to quickly hack together an Access BE > with all the business logic built in and quickly put together a custom > built web site FE and I would recommend Dreamweaver for ease of use... > but that would just be my personal opinion. > > The optimum would be to build the whole in something like ASP.Net or > many of the excellent frameworks that are out there. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Monday, March 29, 2010 5:10 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Expressions > > A potential client is trying to decide whether to create a very > proprietary algorithm (for matching up patients with doctors - kind of > a medical dating service if you will) in Access or Expression Engine. > I don't know about Expression. Good alternative? Can you protect > your code with Expression? > > > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Mar 30 09:41:38 2010 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 30 Mar 2010 10:41:38 -0400 Subject: [AccessD] Expressions In-Reply-To: References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005><2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com><29EB2C2CAFB847D2921D83A38FD07257@HAL9005><2C7388F173A441FA8CD41451EA20AD97@jislaptopdev> Message-ID: ...lol ...talk about getting the cart before the horse! ...so they built a be with no link to the fe and are manually doing the linkage now ...and expect a new piece in the middle to make it all work? ...without significant changes to the existing pieces? ...I'd bail on that faster than a fat mouse on a hungry cat William -------------------------------------------------- From: "Rocky Smolin" Sent: Tuesday, March 30, 2010 9:35 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Expressions > There are really three components to this - the be with the data and the > browser-based fe for the user are done. The third piece is the link > between > the two. > > Like a dating service, users enter their criteria for a physician and > receive referrals to docs the be database. At the moment that link from > input to output is manual, although, IIUC, the methods and procedures are > well defined. The current level of activity is just at the threshold of > overwhelming the ability of the staff to keep up. So they need to > automate > that link. > > As the be is in access, it probably seems logical to them to add a module > to > the be that would create a table of referrals which could then be driven > back to the user through a web-based program. The third party who is > helping to coordinate this whole thing told me that they are now thinking > of > using the Expressions Engine to do that link. > > If they go that way I will probably not do the job. So I was trying to > find > out how appropriate that alternative would be and what the strengths and > weaknesses are of the EE. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, March 30, 2010 2:09 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Expressions > > Rocky > > "Expression Engine" is a decent web content management system, "MS > Expression" is a Microsoft web development suite of tools targeted at the > web site "designer" market ...neither is anything like an Access desktop > fe > nor serves the same purpose ...if the desire is to have a browser based > fe/web app for an Access be, then the best tool for your existing skill > set > would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer > version is free and can probably do what you need, certainly in the > learning > stage ...but the Pro version allows you to compile your code into a dll > which meets your criteria for code security. > > ...assuming that the client is looking for a browser based solution on a > web > site, and anticipates high traffic, an mdb be can be problematic ...an > Access be on the web can handle several hundred users a day quite well > ...but anything more and your client will need to move to a SQL Server be. > > ...either way, if you're looking at anything more than a desktop fe for > their current mdb be, the learning curve can be quite steep ...VB.net is > NOT > vba ...it's a fe programming language for the .net framework, object > oriented, and the web resources are quite a bit more limited than for vba > or > C#.net. > > ...however, Shamil and a group of AccessD developers recently did a > conversion of the Northwind.mdb to .net and the entire project, both > results > and the interim steps to get there are hosted on codeplex and available > for > download ...it's a great learning tool that would have helped me immensely > in my first foray into .net apps ...if you decide to take the client on, > that would be the first place I'd look to especially since help is > immediately available from those you already know and respect. > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Tuesday, March 30, 2010 1:21 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Expressions > >> The BE is already Access. The programming to be done is the process >> of connecting the patients with doctors - kind of like a medical >> eHarmony. >> Currently the referrals are being done manually. So they know how to >> do it. >> But they're ramping up so the manual approach is getting quickly >> overwhelmed. >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, March 29, 2010 8:11 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Expressions >> >> Hi Rocky: >> >> Isn't Expression a web designer type tool... it specialized in blog >> building similar to WordPress. It also has a number programming >> features built within it so it can be made fairly functional. OTH it >> is supposed to be a cruddy web designer not at all like my favourite >> Dreamweaver. >> >> I think MS Access is probably a better database management tool but it >> is not designed for web deployment. So I guess it depends on whether >> the application is to be desktop or web based. >> >> For you, the ultimate would be to quickly hack together an Access BE >> with all the business logic built in and quickly put together a custom >> built web site FE and I would recommend Dreamweaver for ease of use... >> but that would just be my personal opinion. >> >> The optimum would be to build the whole in something like ASP.Net or >> many of the excellent frameworks that are out there. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin >> Sent: Monday, March 29, 2010 5:10 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Expressions >> >> A potential client is trying to decide whether to create a very >> proprietary algorithm (for matching up patients with doctors - kind of >> a medical dating service if you will) in Access or Expression Engine. >> I don't know about Expression. Good alternative? Can you protect >> your code with Expression? >> >> >> >> MTIA >> >> >> >> Rocky >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Mar 30 12:11:34 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Mar 2010 19:11:34 +0200 Subject: [AccessD] Expressions Message-ID: Hi Rocky William and Jim are right. Besides, the Expression suite is a collection of design tools while your task seems to not even require a GUI but could be handled by a command line tool or service. Somehow the input from the current FE must be stored - in some text files, I guess. These could be picked up by watching a drop folder by the service/tool which then would call the database to look up data according to the business rules, and then feed some data back - again probably as some text or xml files. No big deal. Expression?? Even Access could do this if volume is not that high. /gustav >>> wdhindman at dejpolsystems.com 30-03-2010 16:41 >>> ...lol ...talk about getting the cart before the horse! ...so they built a be with no link to the fe and are manually doing the linkage now ...and expect a new piece in the middle to make it all work? ...without significant changes to the existing pieces? ...I'd bail on that faster than a fat mouse on a hungry cat William -------------------------------------------------- From: "Rocky Smolin" Sent: Tuesday, March 30, 2010 9:35 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Expressions > There are really three components to this - the be with the data and the > browser-based fe for the user are done. The third piece is the link > between the two. > > Like a dating service, users enter their criteria for a physician and > receive referrals to docs the be database. At the moment that link from > input to output is manual, although, IIUC, the methods and procedures are > well defined. The current level of activity is just at the threshold of > overwhelming the ability of the staff to keep up. So they need to > automate that link. > > As the be is in access, it probably seems logical to them to add a module to > the be that would create a table of referrals which could then be driven > back to the user through a web-based program. The third party who is > helping to coordinate this whole thing told me that they are now thinking of > using the Expressions Engine to do that link. > > If they go that way I will probably not do the job. So I was trying to find > out how appropriate that alternative would be and what the strengths and > weaknesses are of the EE. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Tuesday, March 30, 2010 2:09 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Expressions > > Rocky > > "Expression Engine" is a decent web content management system, "MS > Expression" is a Microsoft web development suite of tools targeted at the > web site "designer" market ...neither is anything like an Access desktop fe > nor serves the same purpose ...if the desire is to have a browser based > fe/web app for an Access be, then the best tool for your existing skill set > would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer > version is free and can probably do what you need, certainly in the learning > stage ...but the Pro version allows you to compile your code into a dll > which meets your criteria for code security. > > ...assuming that the client is looking for a browser based solution on a web > site, and anticipates high traffic, an mdb be can be problematic ...an > Access be on the web can handle several hundred users a day quite well > ...but anything more and your client will need to move to a SQL Server be. > > ...either way, if you're looking at anything more than a desktop fe for > their current mdb be, the learning curve can be quite steep ...VB.net is NOT > vba ...it's a fe programming language for the .net framework, object > oriented, and the web resources are quite a bit more limited than for vba or > C#.net. > > ...however, Shamil and a group of AccessD developers recently did a > conversion of the Northwind.mdb to .net and the entire project, both results > and the interim steps to get there are hosted on codeplex and available for > download ...it's a great learning tool that would have helped me immensely > in my first foray into .net apps ...if you decide to take the client on, > that would be the first place I'd look to especially since help is > immediately available from those you already know and respect. > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Tuesday, March 30, 2010 1:21 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Expressions > >> The BE is already Access. The programming to be done is the process >> of connecting the patients with doctors - kind of like a medical eHarmony. >> Currently the referrals are being done manually. So they know how to do it. >> But they're ramping up so the manual approach is getting quickly overwhelmed. >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, March 29, 2010 8:11 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Expressions >> >> Hi Rocky: >> >> Isn't Expression a web designer type tool... it specialized in blog >> building similar to WordPress. It also has a number programming >> features built within it so it can be made fairly functional. OTH it >> is supposed to be a cruddy web designer not at all like my favourite >> Dreamweaver. >> >> I think MS Access is probably a better database management tool but it >> is not designed for web deployment. So I guess it depends on whether >> the application is to be desktop or web based. >> >> For you, the ultimate would be to quickly hack together an Access BE >> with all the business logic built in and quickly put together a custom >> built web site FE and I would recommend Dreamweaver for ease of use... >> but that would just be my personal opinion. >> >> The optimum would be to build the whole in something like ASP.Net or >> many of the excellent frameworks that are out there. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin >> Sent: Monday, March 29, 2010 5:10 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Expressions >> >> A potential client is trying to decide whether to create a very >> proprietary algorithm (for matching up patients with doctors - kind of >> a medical dating service if you will) in Access or Expression Engine. >> I don't know about Expression. Good alternative? Can you protect >> your code with Expression? >> >> >> >> MTIA >> >> >> >> Rocky From Gustav at cactus.dk Tue Mar 30 12:40:53 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Mar 2010 19:40:53 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi A.D. I can see I missed your point in my first posting ... However, to handle the 30/31 days problem (not to say the 28/29 days of February) when counting months and days, I have redesigned my old Months function to work the same way as the Years function: Public Function Months( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date, _ Optional ByVal booLinear As Boolean) _ As Integer ' Returns the difference in full months between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Optionally returns negative counts rounded down to provide a ' linear sequence of month counts. ' For a given datDate1, if datDate2 is decreased stepwise one month from ' returning a positive count to returning a negative count, one or two ' occurrences of count zero will be returned. ' If booLinear is False, the sequence will be: ' 3, 2, 1, 0, 0, -1, -2 ' If booLinear is True, the sequence will be: ' 3, 2, 1, 0, -1, -2, -3 ' ' If booLinear is False, reversing datDate1 and datDate2 will return ' results of same absolute Value, only the sign will change. ' This behaviour mimics that of Fix(). ' If booLinear is True, reversing datDate1 and datDate2 will return ' results where the negative count is offset by -1. ' This behaviour mimics that of Int(). ' DateAdd() is used for check for month end of February as it correctly ' returns Feb. 28. when adding a count of months to dates of Feb. 29. ' when the resulting year is a common year. ' ' 2010-03-30. Cactus Data ApS, CPH. Dim intDiff As Integer Dim intSign As Integer Dim intMonths As Integer ' Find difference in calendar months. intMonths = DateDiff("m", datDate1, datDate2) ' For positive resp. negative intervals, check if the second date ' falls before, on, or after the crossing date for a 1 month period ' while at the same time correcting for February 29. of leap years. If DateDiff("d", datDate1, datDate2) > 0 Then intSign = Sgn(DateDiff("d", DateAdd("m", intMonths, datDate1), datDate2)) intDiff = Abs(intSign < 0) Else intSign = Sgn(DateDiff("d", DateAdd("m", -intMonths, datDate2), datDate1)) If intSign <> 0 Then ' Offset negative count of months to continuous sequence if requested. intDiff = Abs(booLinear) End If intDiff = intDiff - Abs(intSign < 0) End If ' Return count of months as count of full 1 month periods. Months = intMonths - intDiff End Function Further, by counting the total months this can easily be converted to full years and remaining months Now, all that is left is to find the count of remaining days. This is not easy as it will be zero for many date combinations where both dates are at ultimo of a month, for example for both of these intervals: From 2015-03-30 to 2016-04-30 From 2015-03-31 to 2016-04-30 But I've created a function that does this: Public Function YearsMonthsDays( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date, _ Optional ByRef lngYears As Long, _ Optional ByRef lngMonths As Long, _ Optional ByRef lngDays As Long) _ As String ' Returns the difference in years, months, and days between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2010-03-30. ' Count of months in a calendar year. Const cintMonths As Integer = 12 Dim datDateMonth As Date Dim intDays As Integer ' No special error handling. On Error Resume Next lngMonths = Months(datDate1, datDate2) datDateMonth = DateAdd("m", lngMonths, datDate1) lngDays = DateDiff("d", datDateMonth, datDate2) intDays = Sgn(lngDays) If intDays <> 0 Then If intDays <> Sgn(DateDiff("d", datDate1, datDate2)) Then lngDays = 0 End If End If lngYears = lngMonths \ cintMonths lngMonths = lngMonths Mod cintMonths YearsMonthsDays = CStr(lngYears) & " year(s), " & CStr(lngMonths) & " month(s), " & CStr(lngDays) & " day(s)" End Function It will even count correctly for negative periods - where date1 is later than date2. To allow for general use, it also returns ByRef the count of years, months, and days while the normal return value is a formatted string like: 12 year(s), 7 month(s), 3 day(s) I think this should fulfil your requirements. /gustav >>> adtp at airtelmail.in 30-03-2010 11:35 >>> Gustav, Thanks for such interesting insight. For this thread, let us say that the result is to be returned as a self contained string of completed years, months and days (in style: y years, m months, d days). Kevin has provided Chip Pearson's Age function, which we could examine further. Would you be in a position to suggest a suitable function, duly taking into account the various factors outlined in your post. Ideally, the proposed function should be able to handle all types of special date combinations that are not straightaway amenable to application of fixed formula. Some examples: 30-Apr-2005 (Month End) to 31-Mar-2009 (Month End) should resolve to 3 years, 11 months, 0 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 3 complete months in 2009). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 1 days) 30-Apr-2005 (Month End) to 30-Mar-2009 should resolve to 3 years, 10 months, 30 days (8 complete months in 2005, plus 3 complete years 2006 to 2008, plus 2 complete months in 2009, plus 30 elapsed days of Mar-2009). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 11 months 0 days) 28-Feb-2005 (Month End) to 29-Feb-2008 (Month End) should resolve to 3 years, 0 months, 0 days (10 complete months in 2005, plus 2 complete years 2006 to 2007, plus 2 complete months in 2008). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 3 years 0 months 1 days) 29-Feb-2008 (Month End) to 28-Feb-2010 (Month End) should resolve to 2 years, 0 months, 0 days (10 complete months in 2008, plus 1 complete year 2009, plus 2 complete months in 2010). (However, as per Chip Pearson's function posted by Kevin, it evaluates to 1 years 11 months 28 days) Other interested members might also like to kindly offer their views. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Monday, March 29, 2010 12:36 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. <> The main problem when calculation age in years is that a month is not a month and a year is not a year. Both have varying count of days. This can lead to many worries until you realise that the best method is to turn it upside down - by adding a found interval of years (age) to the first date to prove that the second date is the right. That could lead to a new problem if you should consider how to add years but that is not the case as VBA features the DateAdd function which calculates correctly. Thus: Age = Years(Date1, Date2) <=> Date2 = DateAdd("yyyy", Age, Date1) So the simple answer to your question is to apply DateAdd to check your calculation and correct when needed. After a lengthy discussion and input from several members at Experts Exchange which also introduced the topic "Linear Age", this is how it turned out: <> /gustav From mmattys at rochester.rr.com Tue Mar 30 13:22:28 2010 From: mmattys at rochester.rr.com (Mike Mattys) Date: Tue, 30 Mar 2010 14:22:28 -0400 Subject: [AccessD] Expressions References: <99EC10EDFA5F412E98F7DC11E95F654D@HAL9005><2FF060D5CE6B4240A8E48C70B6AF7EB7@creativesystemdesigns.com><29EB2C2CAFB847D2921D83A38FD07257@HAL9005> <2C7388F173A441FA8CD41451EA20AD97@jislaptopdev> Message-ID: <9B0E850248EE4EF5AC6180B63B9804A2@Gateway> I worked on such an application about 5 years ago and still have it on backup. It would be interesting to see if we couldn't build a custom front-end to this. Microsoft Expression with Windows Presentation Foundation, Xaml, C#, and Silverlight are not yet mature, but they're a lot of fun! Sounds like you'll be getting into web services also? Michael R Mattys Business Process Developers www.mattysconsulting.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 30, 2010 5:09 AM Subject: Re: [AccessD] Expressions > Rocky > > "Expression Engine" is a decent web content management system, "MS > Expression" is a Microsoft web development suite of tools targeted at the > web site "designer" market ...neither is anything like an Access desktop > fe > nor serves the same purpose ...if the desire is to have a browser based > fe/web app for an Access be, then the best tool for your existing skill > set > would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer > version is free and can probably do what you need, certainly in the > learning > stage ...but the Pro version allows you to compile your code into a dll > which meets your criteria for code security. > > ...assuming that the client is looking for a browser based solution on a > web > site, and anticipates high traffic, an mdb be can be problematic ...an > Access be on the web can handle several hundred users a day quite well > ...but anything more and your client will need to move to a SQL Server be. > > ...either way, if you're looking at anything more than a desktop fe for > their current mdb be, the learning curve can be quite steep ...VB.net is > NOT > vba ...it's a fe programming language for the .net framework, object > oriented, and the web resources are quite a bit more limited than for vba > or > C#.net. > > ...however, Shamil and a group of AccessD developers recently did a > conversion of the Northwind.mdb to .net and the entire project, both > results > and the interim steps to get there are hosted on codeplex and available > for > download ...it's a great learning tool that would have helped me immensely > in my first foray into .net apps ...if you decide to take the client on, > that would be the first place I'd look to especially since help is > immediately available from those you already know and respect. > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Tuesday, March 30, 2010 1:21 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Expressions > >> The BE is already Access. The programming to be done is the process of >> connecting the patients with doctors - kind of like a medical eHarmony. >> Currently the referrals are being done manually. So they know how to do >> it. >> But they're ramping up so the manual approach is getting quickly >> overwhelmed. >> >> R >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >> Sent: Monday, March 29, 2010 8:11 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Expressions >> >> Hi Rocky: >> >> Isn't Expression a web designer type tool... it specialized in blog >> building >> similar to WordPress. It also has a number programming features built >> within >> it so it can be made fairly functional. OTH it is supposed to be a cruddy >> web designer not at all like my favourite Dreamweaver. >> >> I think MS Access is probably a better database management tool but it is >> not designed for web deployment. So I guess it depends on whether the >> application is to be desktop or web based. >> >> For you, the ultimate would be to quickly hack together an Access BE with >> all the business logic built in and quickly put together a custom built >> web >> site FE and I would recommend Dreamweaver for ease of use... but that >> would >> just be my personal opinion. >> >> The optimum would be to build the whole in something like ASP.Net or many >> of >> the excellent frameworks that are out there. >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> Sent: Monday, March 29, 2010 5:10 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Expressions >> >> A potential client is trying to decide whether to create a very >> proprietary >> algorithm (for matching up patients with doctors - kind of a medical >> dating >> service if you will) in Access or Expression Engine. I don't know about >> Expression. Good alternative? Can you protect your code with >> Expression? >> >> >> >> MTIA >> >> >> >> Rocky >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From brad.marks1 at gmail.com Tue Mar 30 18:26:26 2010 From: brad.marks1 at gmail.com (Brad Marks) Date: Tue, 30 Mar 2010 18:26:26 -0500 Subject: [AccessD] Using Access for Microsoft Navision Reporting Message-ID: <38411df71003301626n21e3ae04h2e189908fc2d68e@mail.gmail.com> I am curious if there are companies that have used Microsoft Access to produce reports from Microsoft Navision 2009 (SQL-Server version) data and are willing to share their experiences with this approach. Thanks! Brad From Darryl.Collins at anz.com Tue Mar 30 21:17:40 2010 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Wed, 31 Mar 2010 13:17:40 +1100 Subject: [AccessD] Expressions In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E81029FC973@EXUAU020HWT110.oceania.corp.anz.com> Hi Rocky, I think the first thing you need to do is clarify what they mean by "expressions" Are they referring to the MS Product or the Expression Engine (Web Content Management) software? I tend to agree with William, sounds like more trouble than it would be worth and definitely some design issues. A bit like building the engine and vehicle body, but not thinking about the transmission and running gear until launch date. Good luck Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, 31 March 2010 12:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Expressions There are really three components to this - the be with the data and the browser-based fe for the user are done. The third piece is the link between the two. Like a dating service, users enter their criteria for a physician and receive referrals to docs the be database. At the moment that link from input to output is manual, although, IIUC, the methods and procedures are well defined. The current level of activity is just at the threshold of overwhelming the ability of the staff to keep up. So they need to automate that link. As the be is in access, it probably seems logical to them to add a module to the be that would create a table of referrals which could then be driven back to the user through a web-based program. The third party who is helping to coordinate this whole thing told me that they are now thinking of using the Expressions Engine to do that link. If they go that way I will probably not do the job. So I was trying to find out how appropriate that alternative would be and what the strengths and weaknesses are of the EE. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, March 30, 2010 2:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Expressions Rocky "Expression Engine" is a decent web content management system, "MS Expression" is a Microsoft web development suite of tools targeted at the web site "designer" market ...neither is anything like an Access desktop fe nor serves the same purpose ...if the desire is to have a browser based fe/web app for an Access be, then the best tool for your existing skill set would probably be Visual Studio 2010 ...the VS 2010 Express, Web Developer version is free and can probably do what you need, certainly in the learning stage ...but the Pro version allows you to compile your code into a dll which meets your criteria for code security. ...assuming that the client is looking for a browser based solution on a web site, and anticipates high traffic, an mdb be can be problematic ...an Access be on the web can handle several hundred users a day quite well ...but anything more and your client will need to move to a SQL Server be. ...either way, if you're looking at anything more than a desktop fe for their current mdb be, the learning curve can be quite steep ...VB.net is NOT vba ...it's a fe programming language for the .net framework, object oriented, and the web resources are quite a bit more limited than for vba or C#.net. ...however, Shamil and a group of AccessD developers recently did a conversion of the Northwind.mdb to .net and the entire project, both results and the interim steps to get there are hosted on codeplex and available for download ...it's a great learning tool that would have helped me immensely in my first foray into .net apps ...if you decide to take the client on, that would be the first place I'd look to especially since help is immediately available from those you already know and respect. William -------------------------------------------------- From: "Rocky Smolin" Sent: Tuesday, March 30, 2010 1:21 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Expressions > The BE is already Access. The programming to be done is the process > of connecting the patients with doctors - kind of like a medical eHarmony. > Currently the referrals are being done manually. So they know how to > do it. > But they're ramping up so the manual approach is getting quickly > overwhelmed. > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Monday, March 29, 2010 8:11 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Expressions > > Hi Rocky: > > Isn't Expression a web designer type tool... it specialized in blog > building similar to WordPress. It also has a number programming > features built within it so it can be made fairly functional. OTH it > is supposed to be a cruddy web designer not at all like my favourite > Dreamweaver. > > I think MS Access is probably a better database management tool but it > is not designed for web deployment. So I guess it depends on whether > the application is to be desktop or web based. > > For you, the ultimate would be to quickly hack together an Access BE > with all the business logic built in and quickly put together a custom > built web site FE and I would recommend Dreamweaver for ease of use... > but that would just be my personal opinion. > > The optimum would be to build the whole in something like ASP.Net or > many of the excellent frameworks that are out there. > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > Sent: Monday, March 29, 2010 5:10 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Expressions > > A potential client is trying to decide whether to create a very > proprietary algorithm (for matching up patients with doctors - kind of > a medical dating service if you will) in Access or Expression Engine. > I don't know about Expression. Good alternative? Can you protect > your code with Expression? > > > > MTIA > > > > Rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From adtp at airtelmail.in Wed Mar 31 09:26:53 2010 From: adtp at airtelmail.in (A.D. Tejpal) Date: Wed, 31 Mar 2010 19:56:53 +0530 Subject: [AccessD] Date Difference As Completed Years-Months-Days References: Message-ID: <003201cad0de$5a3f5ea0$3701a8c0@adtpc> Gustav, Your idea of using the built in DateAdd() function is absolutely great. It ensures consistent results without needing conditional checks for various date combinations, including month ends and leap years. Thanks for coming up with this outstanding solution. Amongst the host of similar functions that have been attempted from time to time, yours appears to be the optimum one. Another variation of YMD function, using your approach, is placed below. Results over sample tests at my end appear to be ok. Kevin - You could try out Gustav's function and might consider adopting it in preference to that by Chip Pearson. Best wishes, A.D. Tejpal ------------ ' Sample function for date difference as YMD ' (It uses DateAdd approach evolved by Gustav, ' as demonstrated in his function YearsMonthsDays()) '=================================== Public Function Fn_GetDateDiffAsYMD( _ DtFrom As Date, _ Optional DtUpto As Variant) As String ' Returns date difference as a string of ' Years, Months, Days ' If second argument is not supplied, it defaults ' to today's date - the function then serves as ' age calculator, with first argument being ' date of birth. ' If DtFrom is greater than DtUpto, the result ' gets prefixed with "(minus) " Dim Dt1 As Date, Dt2 As Date, Dt As Date Dim Yr As Long, Mn As Long, Dy As Long Dim Prefix As String If IsMissing(DtUpto) Then Dt = Date Else Dt = IIf(IsDate(DtUpto), DtUpto, Date) End If If Dt = DtFrom Then Fn_GetDateDiffAsYMD = "NIL" Exit Function End If ' Set Dt2 as the greater one If Dt > DtFrom Then Dt2 = Dt Dt1 = DtFrom Prefix = "" Else Dt2 = DtFrom Dt1 = Dt Prefix = "(Minus) " End If ' Get number of completed months ' Subtract 1 if Dt2 is not the last day of ' month and Day(Dt2) < Day(Dt1) Mn = DateDiff("m", Dt1, Dt2) - _ IIf(Day(Dt2 + 1) > 1 And _ Day(Dt2) < Day(Dt1), 1, 0) ' Get the difference of days between Dt2 ' and projected date in last completed month ' (obtained by adding Mn months to Dt1) Dt = DateAdd("m", Mn, Dt1) Dy = DateDiff("d", Dt, Dt2) Yr = Mn \ 12 Mn = Mn Mod 12 Fn_GetDateDiffAsYMD = Prefix & _ IIf(Yr > 0, Yr & _ IIf(Yr > 1, " Years", " Year"), "") & _ IIf(Yr > 0 And Mn > 0, ", ", "") & _ IIf(Mn > 0, Mn & _ IIf(Mn > 1, " Months", " Month"), "") & _ IIf((Yr > 0 Or Mn > 0) And Dy > 0, _ ", ", "") & IIf(Dy > 0, Dy & _ IIf(Dy > 1, " Days", " Day"), "") End Function '================================== ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Tuesday, March 30, 2010 23:10 Subject: Re: [AccessD] Date Difference As Completed Years-Months-Days Hi A.D. I can see I missed your point in my first posting ... However, to handle the 30/31 days problem (not to say the 28/29 days of February) when counting months and days, I have redesigned my old Months function to work the same way as the Years function: Public Function Months( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date, _ Optional ByVal booLinear As Boolean) _ As Integer ' Returns the difference in full months between datDate1 and datDate2. ' <> End Function Further, by counting the total months this can easily be converted to full years and remaining months Now, all that is left is to find the count of remaining days. This is not easy as it will be zero for many date combinations where both dates are at ultimo of a month, for example for both of these intervals: From 2015-03-30 to 2016-04-30 From 2015-03-31 to 2016-04-30 But I've created a function that does this: Public Function YearsMonthsDays( _ ByVal datDate1 As Date, _ ByVal datDate2 As Date, _ Optional ByRef lngYears As Long, _ Optional ByRef lngMonths As Long, _ Optional ByRef lngDays As Long) _ As String ' Returns the difference in years, months, and days between datDate1 and datDate2. ' ' Calculates correctly for: ' negative differences ' leap years ' dates of 29. February ' date/time values with embedded time values ' negative date/time values (prior to 1899-12-29) ' ' Gustav Brock, Cactus Data ApS. ' 2010-03-30. ' Count of months in a calendar year. Const cintMonths As Integer = 12 Dim datDateMonth As Date Dim intDays As Integer ' No special error handling. On Error Resume Next lngMonths = Months(datDate1, datDate2) datDateMonth = DateAdd("m", lngMonths, datDate1) lngDays = DateDiff("d", datDateMonth, datDate2) intDays = Sgn(lngDays) If intDays <> 0 Then If intDays <> Sgn(DateDiff("d", datDate1, datDate2)) Then lngDays = 0 End If End If lngYears = lngMonths \ cintMonths lngMonths = lngMonths Mod cintMonths YearsMonthsDays = CStr(lngYears) & " year(s), " & CStr(lngMonths) & " month(s), " & CStr(lngDays) & " day(s)" End Function It will even count correctly for negative periods - where date1 is later than date2. To allow for general use, it also returns ByRef the count of years, months, and days while the normal return value is a formatted string like: 12 year(s), 7 month(s), 3 day(s) I think this should fulfil your requirements. /gustav From Gustav at cactus.dk Wed Mar 31 13:46:29 2010 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 31 Mar 2010 20:46:29 +0200 Subject: [AccessD] Date Difference As Completed Years-Months-Days Message-ID: Hi A.D. Thanks! Your approach is slightly different than mine and it reveals the issues by these calculations caused by "a month is not a month". For example: d1=#2008-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: 1 year(s), 11 month(s), 2 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: 1 Year, 11 Months, 2 Days Both functions assume that a month's length is the length of February. I can still be in doubt if this is correct; if you had: d1=#2008-03-31# d2=#2010-01-31# you will get a count of 1 year 10 months. Reducing d1 by one month (to #2008-02-29#) will increase the count to 1 year 11 months 0 (not 2) days. But this is the way DateAdd works, and as you can't say it is wrong, I find it best - and logical - to accept this behaviour. If you accept this, you accept that a count forward of x months may not equal a count backwards of x months. Thus, you cannot make a reverse calculation by interchanging the variables, d1 and d2. That is why I created the function to handle both forward and backward periods. Taking the same values, now interchanged, as an example: d1=#2010-01-31# d2=#2008-02-29# YearsMonthsDays(d1, d2) returns: -1 year(s), -11 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 1 Year, 11 Months, 2 Days For both examples DateDiff returns a count of 23 months or 702 days. A third example demonstrates the issue: d1=#2012-02-29# d2=#2010-01-31# YearsMonthsDays(d1, d2) returns: -2 year(s), -1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) returns: (Minus) 2 Years, 1 Month And reversing the parameters: d1=#2010-01-31# d2=#2012-02-29# YearsMonthsDays(d1, d2) 2 year(s), 1 month(s), 0 day(s) Fn_GetDateDiffAsYMD(d1, d2) 2 Years, 1 Month This time both functions return identical results for both directions. Your head gets twisted and you understand why banks operate with a count of 30 days for every month. /gustav >>> adtp at airtelmail.in 31-03-2010 16:26 >>> Gustav, Your idea of using the built in DateAdd() function is absolutely great. It ensures consistent results without needing conditional checks for various date combinations, including month ends and leap years. Thanks for coming up with this outstanding solution. Amongst the host of similar functions that have been attempted from time to time, yours appears to be the optimum one. Another variation of YMD function, using your approach, is placed below. Results over sample tests at my end appear to be ok. Kevin - You could try out Gustav's function and might consider adopting it in preference to that by Chip Pearson. Best wishes, A.D. Tejpal ------------ ' Sample function for date difference as YMD ' (It uses DateAdd approach evolved by Gustav, ' as demonstrated in his function YearsMonthsDays()) '=================================== Public Function Fn_GetDateDiffAsYMD( _ DtFrom As Date, _ Optional DtUpto As Variant) As String ' Returns date difference as a string of ' Years, Months, Days ' If second argument is not supplied, it defaults ' to today's date - the function then serves as ' age calculator, with first argument being ' date of birth. ' If DtFrom is greater than DtUpto, the result ' gets prefixed with "(minus) " Dim Dt1 As Date, Dt2 As Date, Dt As Date Dim Yr As Long, Mn As Long, Dy As Long Dim Prefix As String If IsMissing(DtUpto) Then Dt = Date Else Dt = IIf(IsDate(DtUpto), DtUpto, Date) End If If Dt = DtFrom Then Fn_GetDateDiffAsYMD = "NIL" Exit Function End If ' Set Dt2 as the greater one If Dt > DtFrom Then Dt2 = Dt Dt1 = DtFrom Prefix = "" Else Dt2 = DtFrom Dt1 = Dt Prefix = "(Minus) " End If ' Get number of completed months ' Subtract 1 if Dt2 is not the last day of ' month and Day(Dt2) < Day(Dt1) Mn = DateDiff("m", Dt1, Dt2) - _ IIf(Day(Dt2 + 1) > 1 And _ Day(Dt2) < Day(Dt1), 1, 0) ' Get the difference of days between Dt2 ' and projected date in last completed month ' (obtained by adding Mn months to Dt1) Dt = DateAdd("m", Mn, Dt1) Dy = DateDiff("d", Dt, Dt2) Yr = Mn \ 12 Mn = Mn Mod 12 Fn_GetDateDiffAsYMD = Prefix & _ IIf(Yr > 0, Yr & _ IIf(Yr > 1, " Years", " Year"), "") & _ IIf(Yr > 0 And Mn > 0, ", ", "") & _ IIf(Mn > 0, Mn & _ IIf(Mn > 1, " Months", " Month"), "") & _ IIf((Yr > 0 Or Mn > 0) And Dy > 0, _ ", ", "") & IIf(Dy > 0, Dy & _ IIf(Dy > 1, " Days", " Day"), "") End Function '==================================